jars not exported to WEB-INF/lib in .war [message #163125] |
Tue, 07 March 2006 12:30  |
Eclipse User |
|
|
|
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 18:09  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03149 seconds