• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

NoClassDefFoundError with spring web app

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting NoClassDefFoundError in my spring web application. I have created a war file and I am referencing a .jar file which is in WEB-INF/lib and deployed to jboss 4.0.5 as a war.

I have confirmed that the .jar file is correctly included in the war and the code compiles fine, but at run time I get the NoClassDefFoundError inside a class that was instantiated by spring. Is there some other magic I need in spring to declare the files included in my jar file?

Sorry for such a vague description, I am having a tough time describing the problem since I hardly understand it myself. I can try to provide more details if requested.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The stack trace and some configuration might be useful, otherwise we're just guessing.
 
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should re-check your WAR, this should never happen if the WAR has the JAR in WEB-INF/lib folder.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic