Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » jars not exported to WEB-INF/lib in .war
jars not exported to WEB-INF/lib in .war [message #163125] Tue, 07 March 2006 17:30 Go to next message
Eclipse UserFriend
Originally posted by: eb.born-digital.co.uk

My project depends on 3 jar files.

In the underlying file-system, these are located in
.../workspace/myproject/WebContent/WEB-INF/lib

In the ProjectExplorer view, they do not appear there but in the Web App
Libraries virtual folder, which is fine.

The project builds fine.

However, when I select "Export to WAR", the resultant WAR file has the
WEB-INF/classes directory but not WEB-INF/lib or its contents, so when
it is run on the deployment server it fails immediately with a
java.lang.NoClassDefFound error.

How do I make it include these files in the .war?

(I have seen similar problems on the list but none of the solutions seem
to work or to apply).
Re: jars not exported to WEB-INF/lib in .war [message #163186 is a reply to message #163125] Tue, 07 March 2006 23:09 Go to previous message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

Don't know if this applies to WTP or not, but in standard Java projects, you have to select which entries you want to export in build.properties. Might be worth having a look and seeing if that contains in the bin.includes line your lib/ directory.

Alex.
Previous Topic:"Plug in" non-Axis Webservices Runtime
Next Topic:starter help!
Goto Forum:
  


Current Time: Sun Jul 21 17:24:52 GMT 2024

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

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

Back to the top