This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 10069
    
163

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: class def not found exception during runtime