Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 19:03 Go to next message
Eclipse UserFriend
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 14:42 Go to previous messageGo to next message
Eclipse UserFriend
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 16:21 Go to previous message
Eclipse UserFriend
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: Thu Apr 25 15:18:51 GMT 2024

Powered by FUDForum. Page generated in 0.03051 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top