Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class def not found exception during runtime

 
vidya archana
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've deployed a war file in Jboss. Inside the WEB-INF/lib directory of the application resides the poi zip file. I am able to generate the war using ant and when I try running the application, I am getting "Class Def not found exception".

Is this comming because I'vent placed the zip file inside the server/deploy/lib directory?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, you have to place the .jar file inside WEB-INF/lib folder and not the .zip file. If you look into the POI zip file you will find a .jar file named poi-3.0.1-FINAL-20070705.jar or something similar. Place this jar file in the WEB-INF/lib folder and restart JBoss.

If this does not work, then post the entire exception stacktrace that you see.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic