Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Web Project does not include dependent jars of workspace Java projects
Web Project does not include dependent jars of workspace Java projects [message #186177] Sun, 14 January 2007 14:03 Go to next message
Eclipse User
Originally posted by: peterkt2000.yahoo.com

I have a dynamic web app that depends on
Project A (a simple Java project) in my workspace. This project in turn
depends on other JARs in its build path and other workspace Java projects
that in turn depend on other JARs in their build paths.

Within Eclipse, I have the Java projects defined as J2EE Module
Dependencies in for WAR. Eclipse is correctly building and
publishing these projects as JARs in my WAR's lib folder. However, the
JARs the Java projects depend on are not getting published; hence, I get
class not found exceptions.

Do I need to simply add every JAR of every dependent workspace project as
J2EE Module Dependencies in my dynamic web app? Is there a better way? Can
Eclipse work this out for me if I indicate the top-level project
dependency? Exporting the JARs in the build path of my POJO projects does
not work.

I am using the Tomcat 4.x runtime with Eclipse 3.2.

There are many ways to deal with this that work (at least one for each
of the many classloaders that are involved!), but I want to stay as close
as
possible to what my final J2EE deployment structure will be.

To summarize, if a Web Project depends on a Java project in my workspace,
it seems that if I add the Java project as a J2EE Module Dependency,
Eclipse should automatically recognize and publish the JARs the Java
project depends on.
Re: Web Project does not include dependent jars of workspace Java projects [message #186223 is a reply to message #186177] Mon, 15 January 2007 09:42 Go to previous messageGo to next message
Eclipse User
Originally posted by: kosta.bea.com

You found a current limitation of WTP. At the moment there is no way to
indicate that dependencies of the Java project should be added to
WEB-INF/lib as well. You have to explicitly list them all in the J2EE
Module Dependencies page of the web project.

This is being worked on for the 2.0 release of WTP. You can use the
following bug to track the progress of this work:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=128851

- Konstantin
Re: Web Project does not include dependent jars of workspace Java projects [message #186286 is a reply to message #186223] Tue, 16 January 2007 11:21 Go to previous message
Eclipse User
Originally posted by: peterkt2000.yahoo.com

Thanks Konstantin for your reply. I have read through the discussion in
the bug report. Will continue to monitor ...
Previous Topic:creating a new Web Service Project fails on WTP 3.3M4
Next Topic:xerces 2.9 available
Goto Forum:
  


Current Time: Wed Apr 16 09:48:15 EDT 2014

Powered by FUDForum. Page generated in 0.05667 seconds