A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
IDEs, Version Control and other tools
Eclipse - exporting files in WAR file
Joined: Feb 01, 2011
Oct 20, 2011 00:50:04
I have my Eclipse project working nicely in dev. (actually myEclipse)
But after deploying to my ISP via a WAR file it fails as it cant find the mail.java class.
Within Eclipse I copied mail.java into /scr. Within the deployed webapp is ends up in /WEB-INF/classes, which is not in the class path.
When I copy or move mail.java to /lib then the app runs.
I put the mail.jar into /lib within Eclipse but it was not copied at all when deployed via WAR file.
So what could be happening that they are not deployed? How come a file in /scr directory ends up in /class when you deploy by WAR?
Joined: Oct 13, 2005
Oct 20, 2011 02:44:06
Don’t know. Sorry. I shall move this discussion to our IDEs forum, because that appears to be an IDE-related question.
Joined: Oct 20, 2011
Oct 21, 2011 01:38:05
Are you using
to create your WAR file?
Joined: May 14, 2008
Oct 21, 2011 08:05:47
If you created a Dynamic Web Project, then you should place the mail.jar in WebContent/WEB-INF/lib
JBoss In Action
It is sorta covered in the
JavaRanch Style Guide
subject: Eclipse - exporting files in WAR file
NoClassDefFound Error when invoking web service
Eclipse problem regarding M2Eclipse/integrated web server
How to access a java script file in my jsp while rnning through eclipse
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014