Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Helios bug? - project dependencies(Classpath not working right for dependent projects)
Helios bug? - project dependencies [message #718933] Thu, 25 August 2011 16:00 Go to next message
Bruno Melloni is currently offline Bruno MelloniFriend
Messages: 13
Registered: July 2009
Junior Member
Project A is a Dynamic Web Project.

Project B is a Java Project (or Utility Project) used to contain libraries and their configuration.l

In Ganymede you could set A to depend on B, and A would see B's classes and config files in the classpath. This worked well when writing/compiling, and it worked when running apps on Tomcat.

In Helios this process is broken. If you take the same steps compilation works fine, but when you start Tomcat from within Eclipse to run the webapp A, you get ClassNotFoundException on classes that are in project B.

Yes, we could manually copy the config files into project A's WEB-INF/classes, and copy the exported JAR of project B into WEB-INF/lib, but that is NOT how Eclipse is supposed to work.

It could be a bug, but my guess is that the project dependency model changed from Ganymede to Helios and that we now need to setup project dependencies in a different way. Can someone enlighten me on the new procedure?
(no subject) [message #718942 is a reply to message #718933] Thu, 25 August 2011 16:05 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 25-Aug-11 10:00, Bruno Melloni wrote:
> Project A is a Dynamic Web Project.
>
> Project B is a Java Project (or Utility Project) used to contain
> libraries and their configuration.l
>
> In Ganymede you could set A to depend on B, and A would see B's classes
> and config files in the classpath. This worked well when
> writing/compiling, and it worked when running apps on Tomcat.
>
> In Helios this process is broken. If you take the same steps compilation
> works fine, but when you start Tomcat from within Eclipse to run the
> webapp A, you get ClassNotFoundException on classes that are in project B.
>
> Yes, we could manually copy the config files into project A's
> WEB-INF/classes, and copy the exported JAR of project B into
> WEB-INF/lib, but that is NOT how Eclipse is supposed to work.
>
> It could be a bug, but my guess is that the project dependency model
> changed from Ganymede to Helios and that we now need to setup project
> dependencies in a different way. Can someone enlighten me on the new
> procedure?

The Eclipse Deployment Assembly in Helios replaced the old JEE Module
Dependency mechanism (still used in Galileo). Perhaps there's an answer
there? Anyway, I'm betting the Eclipse web tools forum would be a better
place to ask this since Project A is a Dyanamic Web Project.
Previous Topic:xsl import validation
Next Topic:How do I remove obsolete or unwanted perspectives in the "next-perspective" dialog?
Goto Forum:
  


Current Time: Thu Apr 18 13:03:53 GMT 2024

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

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

Back to the top