Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Do "Jave EE Module dependencies" really work?
Do "Jave EE Module dependencies" really work? [message #516256] Tue, 23 February 2010 11:56 Go to next message
lech is currently offline lech
Messages: 1
Registered: February 2010
Junior Member
Hi All,

I have a Dynamic Web Project. I have other java projects and some 3rd party libs on its build path.

I've set "Jave EE Module dependencies" and checked those Java projects and 3rd party jars checkboxes. While running WebApp on Tomcat (from eclipse), my own java projects are compiled and copied to WEB-INF/lib but those 3rd party libs are not (which results in class not found exceptions). Any idea why aren't these jars copied?

Thanks in advance,
L.
Re: Do "Jave EE Module dependencies" really work? [message #516594 is a reply to message #516256] Wed, 24 February 2010 14:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
lech wrote:
> Hi All,
>
> I have a Dynamic Web Project. I have other java projects and some 3rd
> party libs on its build path.
> I've set "Jave EE Module dependencies" and checked those Java projects
> and 3rd party jars checkboxes. While running WebApp on Tomcat (from
> eclipse), my own java projects are compiled and copied to WEB-INF/lib
> but those 3rd party libs are not (which results in class not found
> exceptions). Any idea why aren't these jars copied?
>
> Thanks in advance,
> L.

One thing to try is to right-click on the Tomcat server in the Servers
view and select "Clean...". This will guarantee everything that the
Tomcat support thinks should be published is published. If the missing
jars do not appear, post your Dynamic Web Project's ".classpath" and
".settings/org.eclipse.wst.common.component" files, so we can see if the
information in them is correct to have these jars published.

Cheers,
Larry
Re: Do "Jave EE Module dependencies" really work? [message #516630 is a reply to message #516594] Wed, 24 February 2010 15:51 Go to previous message
Matt Rossner is currently offline Matt Rossner
Messages: 18
Registered: July 2009
Junior Member
This is the exact same problem I'm having:
http://www.eclipse.org/forums/index.php?t=msg&th=162812& amp;start=0&

Which no one replied to.

For info, I've done "Clean" many times on both the project and the server. No difference for me. You can check here to see what's available to the server:

%WORKSPACE%\.metadata\.plugins\org.eclipse.wst.server.core\t mp0\wtpwebapps\%YOUR_PROJECT%\WEB-INF\lib

It may be tmp1 or tmp2, etc... if you have multiple servers configured. Anyway, in my project the libs I've added in Java EE module dependencies don't get copied to lib and I get all kinds of wonderful errors. However if I manually copy them in there the application works fine.

It's not my thread so I won't post my .classpath files here but I'm curious to see if you find a solution since it may help me as well.
Previous Topic:Re: update problem
Next Topic:JBoss 5.1 Integration in Galileo
Goto Forum:
  


Current Time: Thu Sep 18 09:45:55 GMT 2014

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

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