facebook

Not all JARs are deployed to Tomcat 5.5.7 [Closed]

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

    erikbrown
    Member

    When I deploy (and re-deploy) my web project to Tomcat, only a subset of the JARs that are referenced in my project are deployed to the lib directory of my webapp in Tomcat.

    I tried selecting all four check boxes under “Library Deployment Policies” in Window->Preferences->MyEclipse->J2EE Project->Web Project->Deployment. This didn’t completely fix the problem. I don’t have any dependent java projects, but I checked “Use Smart Deployment…” anyway.

    When I used eclipse to change the libraries that weren’t being deployed to “user libraries”, then MyEclipse would deploy them properly. This is not acceptable though, since I’m using a code generation tool for these libraries. This means that every time I run the codegen tool, I’ll have to go back into eclipse and change these libraries to be user libraries, otherwise they won’t be deployed by MyEclipse. Of course, I don’t want this extra overhead.

    It’s almost as though the checkbox for “Jars on web project build-path” in the “Library Deployment Policies” tab isn’t being recognized properly by MyEclipse?

    I’m using:
    MyEclipse Plug-in 3.8.4+QF2-BetaFor3.1
    Eclipse 3.1.0M4
    Tomcat 5.5.7
    JDK 1.5.0

    Thanks,

    Erik

    #225896 Reply

    Riyad Kalla
    Member

    Erik,
    I’m willing to bet anything that this is just a refresh issue… try and run your code gen tool, refresh your project (Right click on root, REFRESH) and then deploy… did it work?

    This happens with people using Ant and other scripts that gen JARs as well, they forget to refresh and Eclipse isn’t aware of the files so MyEclipse isn’t aware of them either.

    #225904 Reply

    erikbrown
    Member

    This happened even after I closed/re-opened eclipse. So, it leads me to believe that it is not a refresh issue.

    Erik

    #225905 Reply

    Riyad Kalla
    Member

    Did you try refreshing? Actually executing “Refresh”?

    #225923 Reply

    erikbrown
    Member

    No. I hadn’t refreshed the eclipse project (F5) before. So, I went ahead and tried it by going to File->Refresh, by clicking on the project and refreshing, and by also hitting F5. After I re-deployed, in each case, the libraries in question were not copied over 🙁

    Same goes for when I closed and re-opened eclipse (as I mentioned before).

    Any other ideas?

    #225924 Reply

    Riyad Kalla
    Member

    Well let’s check the log file for exceptions:
    1) Close down MyEclipse
    2) Go to <workspace dir>\.metadata and erase the .log file
    3) Fire up MyEclipse
    4) Deploy your app
    5) Now open the new .log file in the .metadata directory and paste the exception here for me to look at.

    #225933 Reply

    erikbrown
    Member

    I tried steps 1-5. No .log file was generated. I re-did 1-5 after manually creating .log. No exceptions were generated. I still think it has something to do with how MyEclipse on eclipse 3.1M4 is handling the checkbox for “Jars on web project build-path” in the “Library Deployment Policies” tab.

    Suggestions?

    #225935 Reply

    Riyad Kalla
    Member

    Do these JARs actually live in your WEB-INF/lib directory? Are they external JARs? Are they a User Library? etc

    #225946 Reply

    Riyad Kalla
    Member

    Reply from a PM

    They don\’t live in my WEB-INF/lib directory. They are both installed as part of two seperate plug-ins (Jena and Kazuki). The are technically considered to be libraries by eclipse. They are not user libraries. Although, when I do make them user libraries they ARE deployed properly. It\’s just that I figured that MyEclipse would be able to handle these jars even if they are not user libraries.

    In Eclipse a “library-looking-thing” is not always a library, and subsequently the code handling those “libraries” is not all the same. We will need to know what kind of container or library these plugins are using for us to support them. As you found out the workdaround is to change them to user libraries OR link them as External JARs in your build path.

    #225971 Reply

    erikbrown
    Member

    Yeah, the workaround is not as bad as I thought. I originally thought I would have to change these libraries to user libraries constantly, but it doesn’t look like that is the case any more.

    I appreciate your support very much.

    #225972 Reply

    Riyad Kalla
    Member

    You’re welcome. I am going to close this thread but I have filed an issue for us to look into alternative JAR container deployments so that this may be addressed in a future release.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Not all JARs are deployed to Tomcat 5.5.7 [Closed]

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