• 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
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • 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?
 
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic