facebook

Deploying dependent Hibernate Java Project to Tomcat 5

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

    corwin42
    Member

    Hi!

    I’m quite new to MyEclipse and Java Web Development and I have a question.

    I created a Java project and added the Hibernate support for this project. In this Project are some classes for persistence management of some java objects.

    Second I created a Web Project and made it dependent on the first Project. In this Web Project I use the classes of the first Project.

    For deployment I use “Jar dependent projects and place in the lib directory”.
    Under Library deployment Policies i checked all choices.

    After deployment to a Tomcat 5 Application Server a Jar of my first project was created only with my classes.

    I expected, that the jar includes all other jars my first project has in its classpath but it does not. Why?

    Do I have to add the Hibernate jars to my Web-Application by hand?

    #226390 Reply

    Riyad Kalla
    Member

    I expected, that the jar includes all other jars my first project has in its classpath but it does not. Why?

    We will address this in a future release, but right now this is an issue of full closure of dependencies that we simply don’t do. A workaround for the time being is to add those JARs you need to your Web Project using “Add External JAR”, then it will be deployed with your Web Project. Sorry for the inconvenience.

    #226580 Reply

    corwin42
    Member

    I found my mistake.

    I just have to export the jars in the Project properties. Then they will be deployed with my Application.

    #226583 Reply

    Riyad Kalla
    Member

    OR that 😉

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Deploying dependent Hibernate Java Project to Tomcat 5

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