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

Strange File Not Found Exception at 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
Hello all,
Could you please help me out with this? I have an application deployed in Weblogic 9.2.

Initially if i deploy the application as an ear with a single jar and single war within the ear, everything works fine. But if i split the same jar file into multiple jars, and place them all within the ear file, at run time, webloic fails to find any of the files and throws a java.lang.NoClassDefFoundError exception.(The beans are however being deployed correctly.)
I added the entries in the manifest file of the application ear that did not help.
I also added the files in the WEB-INF/lib folder and tried, but that too failed.
Now if i specifically add the same jars in the class path they work fine but this is not an acceptable solution.

The reason i want multiple jars is because i want to differentiate between the framework related files and business related files. Both the Framework related codes as well as the business related code have beans within them, so they need to be deployed in the container.

Can anyone throw some light on this issue? You help is appreciated.

Shekar
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could you please provide the complete stacktrace?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic