• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

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?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic