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!

Class-Path in MANIFEST.MF

843841Apr 10 2006 — edited Apr 11 2006
I'm using Tomcat 5.5 and I wanted to add additional classpath entry to my webapp. Under the servlet spec 2.4, it states ...

"The application developer depending on such an extension or extensions must provide a META-INF/MANIFEST.MF entry in the WAR file listing all extensions needed by the WAR. The format of the manifest entry should follow standard JAR manifest format. During deployment of the Web application, the Web container must make the correct versions of the extensions available to the application following the rules defined by the Optional Package Versioning mechanism (http://java.sun.com/j2se/1.4/docs/guide/extensions/)".

I've used the Class-Path field w/in the MANIFEST.MF file for jars before, so I thought it would be similar for webapps (WAR) as well. But it does not seem to add the entry into my webapp's classpath as I'm unable to load properties file.

I have the following in my [app-dir]/META-INF/MANIFEST.MF file ...

Class-Path: WEB-INF/config

But it doesn't work. Are there other configurations that I can use to add a classpath entry to my webapp context? I don't see any for web.xml.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2006
Added on Apr 10 2006
2 comments
279 views