File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Class-Path reference is not working on EAR file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Class-Path reference is not working on EAR file." Watch "Class-Path reference is not working on EAR file." New topic
Author

Class-Path reference is not working on EAR file.

prem parchuri
Greenhorn

Joined: Nov 12, 2002
Posts: 3
Hi,
Does any one has the idea of Why Class-Path is not working on EAR file.
Here is what I am doing:
I am using WebLogic 6.1. I am creating an EAR file which contains EJBs,WebApp and Dependent jars.
As per the j2ee1.3, if you deploy the EAR contains ejbs and webapps it will
create child thread(Webapps) from parent thread(EJB) so that we don't need
to load the same dependent jas in both the places.
So,i'm trying to access the dependent jars from by specifying the following line
in the MANIFEST.MF file
Class-Path=xalan.jar xereces.jar
But its not working when deploying in weblogic6.1.
Thanks and Regards,
Prem
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by prem parchuri:

So,i'm trying to access the dependent jars from by specifying the following line
in the MANIFEST.MF file
Class-Path=xalan.jar xereces.jar

Are your dependent jars defined in the application.xml? What manifest are you setting? It needs to be the manifests for each ejb jar that uses the dependent jars, not the manifest for the ear. Also double-check the case in your manifest files because it is case-sensitive.
Let me know if this helps.
[ November 22, 2002: Message edited by: Chris Mathews ]
Dave Landers
Ranch Hand

Joined: Jul 24, 2002
Posts: 401
The manifest format is very picky. Use

That's a colon ( not an equals (=).
Also, I think the space after the colon is important.
Make sure, if this is the only thing in your MANIFEST.MF, that it also ends in a newline.
And this goes in the manifest of the EJB jar, not anywhere else.
[ November 22, 2002: Message edited by: Dave Landers ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Class-Path reference is not working on EAR file.