File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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

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

Joined: Jul 20, 2005
Posts: 9315

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]
I agree. Here's the link:
subject: class def not found exception during runtime
Similar Threads
classpath to a war
JavaBeans and class
Problem in deploying ear file in weblogic 6.1
Hot to deploy struts application in weblogic8.1 with SP4
Spring Tomcat Application - Startup Problems