• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

class def not found exception during runtime

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic