• 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

WEB-INF/lib noclassdeffounderror

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm currently deploying a web application module. I'm using WEBLOGIC 8.1 SP2. The application is structured in a war file. In the WEB-INF/lib directory of the war file, there are some external jar's.
When I deploy the war everything works fine until I enter the page that uses the external jar's.
Then I receive a noclassdeffounderror. The class that cannot be found is a class that's part of the jar located in the WEB-INF/lib directory of the war.
I tried to use a MANIFEST.MF file (located in META-INF in the war) and adding the Class-Path parameter here to load the external jar's.

This is my MANIFEST.MF file:
Manifest-Version: 1.0
Created-By: 1.3.1_03 (Sun Microsystems Inc.)
Class-Path: client.jar entbase.jar entssl.jar

Maybe the jar's location is not correct (it should be lib/clinet.jar for example)...

The same ware works fine when I use tomcat.
When I put the external jar's in the weblogic server/lib dir and add these jar's to the classpath in the startWebLogic.cmd script, everything works fine too. But that's not a good solution, I want weblogic to detect the jar's that are present within the WEB-INF/lib directory of my war file.

Somebody who knows a solution?
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you try and build and deploy your app as an EAR file? If there is a classloader problem, then this may solve it.
 
No holds barred. And no bars holed. Except 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