• Post Reply Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError  RSS feed

 
Artemesia Lakener
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a java servlet web application running on an application server, the error I got was --

java.lang.NoClassDefErrorFound and it shows some Class name as "(unknown source)". I checked and found I have already included that class package .jar in the application server's CLASSPATH. and everything compiles without any problem. What could be the problem ? Any clue or suggestion ?
 
Paul Clapham
Sheriff
Posts: 22844
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the application server's CLASSPATH
The usual way to include a jar file in your web application's classpath is just to put it in the web application's WEB-INF/lib directory. That's probably what you should do too, unless you really need to make the jar file accessible not only to all web applications but to the application server itself.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!