facebook

Problems with exploded deployment with 3.8.1 QF3

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #214760 Reply

    siderean
    Member

    I’m using Eclipse 3.0 (final) with 3.8.1/QF3 and JDK1.4.2_03 on Windows XP. I have a project with Web and Struts capabilities and I’ve changed the deployment application server and type (exploded/packaged) at least a dozoen times.

    All of a sudden exploded deployments are no longer complete. If I do a packaged deployment, all files from the project are deployed properly (with libraries using the options found under Project Properties->MyEclipse-Web). All that gets deployed are compiled Java classes (in WEB-INF/classes) and one TLD file (out of 6).

    Other projects deploy just fine (either exploded or packaged) and this project deploys find when packaged. Is there anything I can do to get things working again?

    #214788 Reply

    Riyad Kalla
    Member

    I would first check the log file (workspace dir\.metadata\.log) to see if any errors are popping up.

    Also do you haev any libraries in your WEB-INF/lib directory? Not having any JAR files in there causes some deployment to break (known bug that was fixed).

    #214792 Reply

    siderean
    Member

    I do have jar files in WEB-INF/lib and also had ‘external libraries’ which were supposed to be deployed as well.

    No errors were showing up the log.

    I recreated the Web/Struts project and everything works now, but kept a copy of the broken project folder if you want to troubleshoot… It could be one of those once in a blue moon situations that might never surface again…

    #214796 Reply

    ericmick
    Member

    Unfortunately this is not a once in a blue moon problem. I have jsut experienced the exact same problem.
    Version: 3.7.200
    Build: 200407091200-3.8-Beta2

    #214802 Reply

    Riyad Kalla
    Member

    ericmick,
    Can you create a new project and see if the problem goes away?

    #214804 Reply

    ericmick
    Member

    Riyad,

    Yes, I was able to get going again by creating a new progject. The exact same problem happen to another team member. I believe that some file was modified and checked into source control and when we updated it caused an issue with MyEclipse. For example: the web.xml or struts-config.xml file. Will have to see if comes back.

    Eric.

    #214811 Reply

    Riyad Kalla
    Member

    Eric,
    Do you guys check your project files (.project, .classpath, .mymetadata, etc) into CVS? I’m curious if the sharing of those files could cause it as the changing of web.xml and other web app files should not (and in my experience have not) caused this to happen before.

    Honestly I’ve never encountered this problem myself and have been using ME for about a year now in a team environment, but a handful of users have. The only difference being that I know I never check in IDE files (. files) so I’m wondering if that could be the root of the issue.

    #214813 Reply

    siderean
    Member

    I have an alergy against checking project files into CVS 🙂

    Seriously, I only just started this particular web project 3 days ago and havn’t done the initial checkin – it’s only me working on my own computer.

    For the record, we’ve been using MyEclipse for web projects (in a team environment) since March and have not had this happen yet.

    I just checked my project files, comparing the working project with the ‘broken’ on.

    In the project that does not deploy propertly, the .classpath has references to jars that used to be in the project but no longer are. I.E. it references jars that both are and are not in the project.

    #214822 Reply

    ericmick
    Member

    Nobody checks the project files into source control. Don’t know what could have caused it. The behavior is that ME appears to ignore the “Always deploy external libraries…” option that is selected. Where is this option stored and who is responsible for reading it?

    Everything is still working in new project (fingers crossed).

    Eric.

    #214825 Reply

    Riyad Kalla
    Member

    siderean,
    I really appreciate the detail about the .classpath file, I will try and reproduce this locally and see if I can break something.

    Eric,
    Please let us know as soon as it breaks and double check your .classpath file when it does to see if its the problem siderean uncovered.

    #215793 Reply

    Chris Anthes
    Member

    I have encountered this problem as well. I have tried setting the project settings and/or the default settings to deploy external JARs. No luck. I have also tried rebuilding the project from scratch. Also no luck. I finally wound up creating an ANT target to copy all of the files into the WEB-INF/lib directory from the third-party directory in CVS. However, when I include an ANT builder in my project, the “refresh” option doesn’t seem to work, meaning that I have to manually refresh the project after executing the ANT target to get the project to see the copied JAR files. Also, I have once had it clear ALL of the JARs from my .classpath file, including those that are in my WEB-INF/lib directory. It happened after I did a project refresh and the only way I could fix it was to delete the project from my workspace and re-import it.

    BTW, yes I do check my .project, .classpath, and .mymetadata files into CVS.

    #216883 Reply

    siderean
    Member

    There are now several developers on my team using Eclipse 3.0.1 with MyEclipse 3.8.2 on Windows XP. I initially did an update to install 3.8.2 but have since freshly installed (removing all old versions and deleting the folder in Program Files). Everyone who has used the deploy tool have encountered this problem and now deploy only through ant targets. It doesn’t happen for all projects, but we’ve recreated “bad” projects from scratch several times and they still exhibit the strange behaviour of not deploying all files. The files they leave out vary, sometimes leaving out a package from src, somethings leaving out jars that are placed in WEB-INF/lib.

    #216888 Reply

    Riyad Kalla
    Member

    siderean,
    Can you zip one of these projects up, and email it to support@genuitec.com with a short description of what is broken And a link to this thread so we know why we are getting the attachment? Then I can play with it and figure out what is going on.

    As of now I have been unable to reproduce this.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: Problems with exploded deployment with 3.8.1 QF3

You must be logged in to post in the forum log in