facebook

[Closed] Deployment to Tomcat impossible after a bad build

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #260014 Reply

    smdeter
    Member

    I’m at the end of my tether here – in crisis bug fix mode, and suddenly, the redeploy feature has stopped working.

    It seemed to happen when i had to rebuild the entire app, which failed due to a missing jar file in the build.xml build path vs. Eclipse’s build path. after that, i got the out of synch icon; i tried to synch, and it gave me a blank error message. i looked in the webapps/app directory, and it had deleted all the files that were in there.

    now i cannot get the redeploy exploded archive feature to work with tomcat 5.5 for love nor money. it’ll happily delete all the files from the existing deployment, sometimes delete even the folder under webapps in tomcat, but won’t copy over the new files. or it’ll give me a blank error message.

    if i manually copy over the app directory, or manually deploy the war, i can start the server via Eclipse and debug it. and obviously it knows enough to find the files, but it likes to delete everything, but never writes. i can’t seem to get it to deploy the war file, either.

    it worked fine, even through a couple compile errors, up to now, so i’m at a loss as to what made it stop working.

    i tried cleaning my project, and get the errors:
    Errors during build.
    Errors running builder “Integrated External Tool Builder” on project DMT.
    Ant build C:\DMT\build.xml already in progress. Concurrent Ant builds are possible if you specify to build in a separate JRE.
    Errors running builder “Integrated External Tool Builder” on project DMT.
    Ant build C:\DMT\build.xml already in progress. Concurrent Ant builds are possible if you specify to build in a separate JRE.
    Errors running builder “DeploymentBuilder” on project DMT.
    java.lang.NullPointerException encountered while running DeploymentBuilder.

    as for my configuration:
    REMOVED, please follow the posting guidelines for future posts.

    #260167

    Riyad Kalla
    Member

    It seemed to happen when i had to rebuild the entire app, which failed due to a missing jar file in the build.xml build path vs. Eclipse’s build path. after that, i got the out of synch icon; i tried to synch, and it gave me a blank error message. i looked in the webapps/app directory, and it had deleted all the files that were in there.

    If you are building/deploying/whatevering your project using an out-of-process process like Ant, MyEclipse will not be aware of the changes taking place and will in general get mad at you and pout constantly about out of sync files. I would suggest you turn on auto-refresh under Window > Prefs > General > Workspace, to make your life easier.

    now i cannot get the redeploy exploded archive feature to work with tomcat 5.5 for love nor money. it’ll happily delete all the files from the existing deployment, sometimes delete even the folder under webapps in tomcat, but won’t copy over the new files. or it’ll give me a blank error message.

    Ok we need to check the log file to see what is causing it to die. The “redeploy” operation performs an undeploy, then a deploy, that’s why it’s erasing the contents, it’s just the “deploy” step is crapping out so no new contents are getting deployed. Your log file is located at <workspace dir>\.metadata\.log, look near the bottom for exceptions.

    This can also be caused by corrupt JARs or things like that.

    i tried cleaning my project, and get the errors:
    Errors during build.
    Errors running builder “Integrated External Tool Builder” on project DMT.
    Ant build C:\DMT\build.xml already in progress. Concurrent Ant builds are possible if you specify to build in a separate JRE.
    Errors running builder “Integrated External Tool Builder” on project DMT.
    Ant build C:\DMT\build.xml already in progress. Concurrent Ant builds are possible if you specify to build in a separate JRE.
    Errors running builder “DeploymentBuilder” on project DMT.
    java.lang.NullPointerException encountered while running DeploymentBuilder.

    Sounds like you have a hung process or atleast Eclipse things so. Try restarting using the -clean command line argument as outlined here:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10280.html

    #260201

    smdeter
    Member

    i had a coworker come poke at it with me for awhile, and we finally got it back up. at least part of the issue was definitely the refresh; i’ve added per your response now.

    apparently, i was either lucky in that it worked at all before, or the failed build corrupted some settings, because a couple of settings in the external tools config for our ant build and xdoclet build were no longer correctly set to refresh on changes to the build directory.

    the exceptions in the logs were massive lists of “hey, can’t find this new class file i just happily deleted for you!” which i think must have been caused by the out of synch/refresh problem.

    once i reset the refresh resources, and then refreshed the entire project, it magically began working as desired again.

    it sure would be a help if there were a “how to deploy/troubleshoot deployment if you use ant” chapter in the help documentation. and if there is, it would be a help to make it easier to find.

    thanks for your reply.

    #260204

    Riyad Kalla
    Member

    Thank you for your suggestion, I’m actually collecting a list of educational material that our users want moving forward, I’m adding this to the list.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: [Closed] Deployment to Tomcat impossible after a bad build

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