Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Java EE Module Dependencies not exporting(jars do not end up in WEB-INF/lib)
Java EE Module Dependencies not exporting [message #498781] Wed, 18 November 2009 15:43 Go to next message
david is currently offline davidFriend
Messages: 3
Registered: July 2009
Junior Member
I have some JARs that i quick and dirtly import into my dynamic web project by clicking "Add External JARs". That all works fine.
Then I wanted these JARs to be available at tomcat runtime in WEB-INF/lib. Aftter going through the project properties I found this which I thought was exactly what I needed:

Java EE Module Dependencies
Quote:
This property page lets you add a Web Library dependency to utility projects, JAR files or classpath entries. Archive dependencies will be resolved into the WEB-INF/lib folder of the web module at deployment time. Class folder dependencies will be resolved into the WEB-INF/classes folder.

And sure enough all my JARs were available for selection, so I selected them!

The problem now is Eclipse does not actually seem to be exporting them. I get ClassNotFounds at runtime and when I looked in the actual WEB-INF/lib and they were not there.

I've searched a lot on this issue but have found many similar issues but most of them deal with the J2EE Module Dependencies and don't seem to help me much.

I'm using WTP Version: 3.1.1.

many thanks

David

[Updated on: Wed, 18 November 2009 15:43]

Report message to a moderator

Re: Java EE Module Dependencies not exporting [message #498931 is a reply to message #498781] Thu, 19 November 2009 09:17 Go to previous messageGo to next message
Wolfgang Knauf is currently offline Wolfgang KnaufFriend
Messages: 63
Registered: July 2009
Member
Hi David,

the easiest way would be to copy those JARs directly to WEB-INF/lib in your
project. Then you don't need to care for dependencies.

Important: if you copy the files outside of eclipse, hit "Refresh" after this so
that eclipse sees the files.

Hope this helps

Wolfgang
Re: Java EE Module Dependencies not exporting [message #498960 is a reply to message #498931] Thu, 19 November 2009 10:42 Go to previous messageGo to next message
david is currently offline davidFriend
Messages: 3
Registered: July 2009
Junior Member
Wolfgang Knauf wrote on Thu, 19 November 2009 04:17
the easiest way would be to copy those JARs directly to WEB-INF/lib in your
project.

Hey Wolf, yes this is basically what I ended up doing, just wondered if I should submit a bug report about this?
Re: Java EE Module Dependencies not exporting [message #499004 is a reply to message #498960] Thu, 19 November 2009 14:09 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
david wrote:
> Wolfgang Knauf wrote on Thu, 19 November 2009 04:17
>> the easiest way would be to copy those JARs directly to WEB-INF/lib in
>> your project.
>
> Hey Wolf, yes this is basically what I ended up doing, just wondered if
> I should submit a bug report about this?

David,

I gave what you described a quick try and it worked as expected. It's
unclear what is/was different about your project that caused the
dependency not to be published. It would be desirable to know that
before reporting a bug, since reproducing the behavior could prove
difficult otherwise. If you can re-create the problem, I will try to
help diagnose why it behaves incorrectly.

Cheers,
Larry
Re: Java EE Module Dependencies not exporting [message #499033 is a reply to message #499004] Thu, 19 November 2009 15:38 Go to previous messageGo to next message
david is currently offline davidFriend
Messages: 3
Registered: July 2009
Junior Member
Just spent about the past half hour documented my steps to reprduce (making+uploading screenshots) and everything! And when I got to the end the damned thing worked!

Guess we'll just put this one down to experience.

thanks again!
Re: Java EE Module Dependencies not exporting [message #531765 is a reply to message #498781] Thu, 06 May 2010 06:00 Go to previous message
eddie is currently offline eddieFriend
Messages: 1
Registered: May 2010
Junior Member
We are experiencing the same problem here.

And also - if you delete the configured tomcat, (un)deploy your app and play around with the configuration it will work again after a lot of tries.
Some times we even have to check out the project completely new.
This can even happen between two serverstarts where not anythiung has been changed.
This is very frustrating, and we cannot reproduce what helped to get it running again.
On some PCs this happens often, on others only rtom time to time.
All use the same version of eclipse, java and the plugins.

Regards,
eddie
Previous Topic:Can't install Web Developer Tools into Helios
Next Topic:Eclipse + Tomcat Apache + Console Output
Goto Forum:
  


Current Time: Thu Apr 25 10:48:24 GMT 2024

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

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

Back to the top