facebook

[Closed] WebApp deplymnt not including related project jar

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    cspartano
    Member

    Hi,


    MyEclipse 5.5.1 (installed using the all-in-one) and updated using software update.
    Tomcat 5.x

    I have 2 projects. A java project (domain model and spring services) and and web project (struts).
    In the web project buildpath I have included the java project.

    The issue is that when I deploy the web project, the jars that I have included in the java project are not been included in the resulting Web-inf\lib directory.(I’ve checked using exploded and package deployment with the same result)

    I think that my deployment options are correct, smart deployment and all the check boxes tick in the second part of the deployment menu. (classes in the java project are been copy correctly)

    Any help will be great!

    #272150

    Loyal Water
    Member

    Can you add the Java pproject as a dependency to the Web Project. The dependent project will get packaged into a JAR and put under WEB-INF/lib. You can do this by right clicking on the web project and going to Properties > Project References and checking your Java project.

    #272173

    cspartano
    Member

    I have my java_project as a dependency already. The issue is that it will not included the jars files that the java project is including.

    Example is: web_project depends on java_project (all good so far, the web app will include all my classes from java_project) , but then java project depends spring.jar
    Here is when the problem happens, when I deploy my web_project, spring.jar is not deployed in the web-inf/lib.

    #272189

    Loyal Water
    Member

    Go to Windows > Preferences > MyEclipse > Java Enterprise Project > Web Project and verify the deployment policies under the deployment tab. Make sure you use smart deployment for dependent java projects. Also check “jars exported from dependent java projects” .

    #272225

    cspartano
    Member

    “I think that my deployment options are correct, smart deployment and all the check boxes tick in the second part of the deployment menu. (classes in the java project are been copy correctly) ”

    I’ve checked with the “smart deployment”. Didnt work.
    Also tried manually selecting the option manually. Again didn’t work.

    #272260

    Riyad Kalla
    Member

    It sounds like you might need to pop open your Java project, go to the Java Build Path, and go over to the Order/Export menu and mark the JARs and libraries as exported there. Then the option Nipun mentions above from the Web project should honor those libs and deploy them along with the Java project.

    #272507

    cspartano
    Member

    Riyad,

    thanks, marking the libraries as experted did the trick!

    #272540

    Riyad Kalla
    Member

    Very cool, glad it’s working now.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: [Closed] WebApp deplymnt not including related project jar

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