facebook

[Closed] Tomcat 5.5 deployment not deploying /lib jars

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

    yunkipaik
    Member

    I am deploying to Tomcat 5.5.12 in exploded format.
    Strangely, it now only deploys a few files under WebRoot/WEB-INF, largely ignoring WEB-INF/lib directory as well as
    most tld files.
    The deploy operation doesn’t complain, and report that it was successful.
    Yet, the deployment did not work.

    Manual deployment out of the project directory to Tomcat works, however.

    Any idea what’s going on?

    Actually, this project used to work on another PC. I imported this project using eclipse import, and since then
    it quit working…

    #250719 Reply

    yunkipaik
    Member

    Once manually deployed, the syncing works – any changes in the project get automatically sync’ed in the deployment
    directory.
    However, if I ever perform another deploy, it wipes out pretty much everything under WEB-INF as well as
    most files above WEB-INF.
    The deployment reports success, however.
    I have removed the deployment action several times and added them back in MyEclipse to no avail.

    #250734 Reply

    stainbk2
    Member

    I just hit this today as well. My situation is slightly different.

    I have a web project and a java project which the web project depends on. The java project has several jars on its classpath, of which all are set to export to dependent projects (as the MyEclipse documentation specifies is required for a successful deployment).

    When I deploy to Tomcat 5.5.16 from MyEclipse, the exploded war does not contain the jars from the java project in WEB-INF/lib. This was working this morning. I honestly don’t know what changed.

    I’ve tried removing the deployment and recreating, but nothing has worked so far.

    – KMS

    #250735 Reply

    stainbk2
    Member

    I should also add that the deployment to Tomcat from MyEclipse is no longer including any class files from the java project in WEB-INF/classes either.

    #251172 Reply

    I think i’m also having this problem. It appears that none of my classes are being deployed. This same project has worked perfectly for quite some time. there are no error messages. I’ve done a bunch of random things like removing web project capabilities and readding them, cleaning the project (which is built correctly; verified by looking in /bin), but no luck. Any ideas what I should do to track this down?

    #251234 Reply

    stainbk2
    Member

    Same symtoms as yunkipaik: a co-worker of mine imported the web project and some java projects that it depends on into eclipse and used the deployment manager to deploy to Tomcat, but none of the classes from the java projects were deployed. On my PC, everything works fine.

    Anyhow, the only workaround to my knowledge is what was mentioned previously…
    1. stop Tomcat
    2. remove your application’s directory from Tomcat’s “webapps” directory
    3. manually deploy a war created from an Ant script (or other means) to the “webapps” directory
    4. restart Tomcat from Eclipse… it should be sync’d at this point.

    #251240 Reply

    I’ll add a “me too” to this thread. Eclipse 3.1, MyEclipse 4.0.3, Tomcat 5.0.27. Can no longer do exploded deployment; no errors raised but nothing appears in WEB-INF/classes. Removing and redeploying does not help.

    #251596 Reply

    Are any of the support staff following this forum?

    #251620 Reply

    Riyad Kalla
    Member

    Guys sorry you are running into this. The behavior you are describing is indicative of the project being out of sync with the actual files on the file system. Try removing the deployment (make sure the app server is shut down), right click on the root, perform a Refresh, then recreate the deployment. If you are running an Ant script to generate portions of the project that is exactly what’s going on. You can turn on automatic refreshing by going to Window > Prefs > General > Workspace > “Refresh automatically”.

    Also we have an issue filed to make the deployment tool more informative about this situation instead of just mauling your deployment, sorry about the confusion and trouble this is casuing.

    #251865 Reply

    That was the first thing I tried. It doesn’t work.

    I am now (apropos of nothing in particular) also getting this error when I try to start Tomcat: “A configuration error occurred during startup. Please verify the preference field with the prompt: Tomcat JDK name.”

    I have verified it; the name is the same as my default installed JRE, which every other tool under Eclipse except the Tomcat 5 plugin has no issue with.

    #251866 Reply

    Riyad Kalla
    Member

    jonross,
    You need to setup Tomcat to run with a JDK, not a JRE. This is most likely the issue.

    #251965 Reply

    Hmm, I wonder how that happened; I have a J2EESDK as my JAVA_HOME. In any case it works now; thanks!!

    #252001 Reply

    Riyad Kalla
    Member

    Glad to hear it.

Viewing 13 posts - 1 through 13 (of 13 total)
Reply To: [Closed] Tomcat 5.5 deployment not deploying /lib jars

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