Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't get Class-path to work in war file.

843833Mar 10 2003 — edited Oct 7 2003
I'm trying to package an ear file with a common jar file and a war file.

The base of the ear file looks like this:
/mycaller.jar
/mycaller.war
/meta-inf/manifest/mf
/meta-inf/application.xml

the manifest for the ear file looks like:
Manifest-Version: 1.0
Created-By: me

The war file looks like:
/xxx.jsp
...
/yyy.jsp
/aaa.html
...
/bbb.html
/web-inf/web.xml
/common/gif/ddd*.gif
...
/common/gif/eee*.gif
/meta-inf/Manifest.mf

And the Manifest.mf for the .war looks like:
Manifest-Version: 1.0
Created-By: Me
Class-Path: mycaller.jar


(there are new lines after the last header in both manifests)

But whenever I deploy this, it still can't find the classes in the jar file unless I force the jar file into the classpath I start Jboss with.

What am I doing wrong? I really want a self-contained ear file that doesn't require changing the application server parameters, but the above fails on JBoss and Orion despite the fact that I think I followed the instructions correctly.

I've tried several permutations with the Class-Path header in the ear manifest and in both manifests, but nothing has worked. It is driving me crazy.

Thanks,
Mike
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2003
Added on Mar 10 2003
3 comments
330 views