aspose file tools*
The moose likes JBoss/WildFly and the fly likes class def not found exception during runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "class def not found exception during runtime" Watch "class def not found exception during runtime" New topic
Author

class def not found exception during runtime

vidya archana
Ranch Hand

Joined: Oct 29, 2002
Posts: 36
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

Joined: Jul 20, 2005
Posts: 10210
    
166

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.


[My Blog] [JavaRanch Journal]
 
Consider Paul's rocket mass heater.
 
subject: class def not found exception during runtime