I am having some problems while deploying a EAR file in Weblogic 6.1 sp1 server.
My EAR file contains two jar file and one war file say,
A.jar
B.jar
C.war
Since some EJB's in A.jar file are referencing classes in B.jar, I added class-path entry for B.jar in manifest file of A.jar.
Still I am getting ClassNotFoundError while deploying. The strange problem is if I drop the same EAR file again in Weblogic applications directory(using hot deployment), the application is deployed.
Any clues??
Thanks,
Nishchit
-
Class-Path entry in Manifest file (4 messages)
- Posted by: Nishchit Goel
- Posted on: November 13 2001 14:39 EST
Threaded Messages (4)
- Class-Path entry in Manifest file by Thomas Christensen on November 21 2001 17:41 EST
- Class-Path entry in Manifest file by Thomas Christensen on November 21 2001 17:43 EST
-
Class-Path entry in Manifest file by Frank Weberskirch on November 26 2001 04:58 EST
- Class-Path entry in Manifest file by Nishchit Goel on January 29 2002 06:17 EST
-
Class-Path entry in Manifest file by Frank Weberskirch on November 26 2001 04:58 EST
- Class-Path entry in Manifest file by Thomas Christensen on November 21 2001 17:43 EST
-
Class-Path entry in Manifest file[ Go to top ]
- Posted by: Thomas Christensen
- Posted on: November 21 2001 17:41 EST
- in response to Nishchit Goel
Hi
I have experienced the same behaviour. I think the problem lies in that each ejb-jar file is viewed as a unit that can be deployed separately, which causes a class not found exception when classes are kept in one jar and exposed through another.
Why it works if you do it twice in a row could be that they have circular reference problems.
- Thomas -
Class-Path entry in Manifest file[ Go to top ]
- Posted by: Thomas Christensen
- Posted on: November 21 2001 17:43 EST
- in response to Thomas Christensen
BTW - can you actually use the "manifest Class-Path" to add utility jar files to ejb-jars?
Thomas -
Class-Path entry in Manifest file[ Go to top ]
- Posted by: Frank Weberskirch
- Posted on: November 26 2001 16:58 EST
- in response to Thomas Christensen
Sure, you can. There is no problem to add
Class-Path: ../../morelibs/utilities.jar
to the manifest of a deployment unit in WLS 6.1. Then
the server will search for xerces.jar in
$WLS_HOME/config/<domain>/morelibs/xerces.jar.
The same works for JBoss without problems, but $JBOSS_HOME/morelibs/utilities.jar must be declared
with
Class-Path: ../morelibs/utilities.jar
-
Class-Path entry in Manifest file[ Go to top ]
- Posted by: Nishchit Goel
- Posted on: January 29 2002 18:17 EST
- in response to Frank Weberskirch
There should be a new line character after each entry in the manifest file.
-Nishchit