Deploying a WAR file to iPlanet with Class-Path specified

438 Views Asked by At

I develop a Java web application and deploy it on Oracle iPlanet 7. Currently, I deploy the library dependencies with the application, i.e. in WEB-INF/lib. What I would like to do is deploy the application in a WAR file, without the JAR files, and specify the library dependencies in the MANIFEST.MF file.

I think I understand what I'm supposed to do. I want my JAR files in a separate directory. The MANIFEST.MF file needs a line like this:

Class-Path: lib/jar1.jar lib/jar2.jar

Then, the directory containing the WAR file needs to look like this:

webapp.war
lib/
    jar1.jar
    jar2.jar

The problem that I'm running into with iPlanet 7 is that when I deploy the WAR file, iPlanet unpacks it and places the app in another directory. I end up with a directory like this:

webapp.war
server-name/
    webapp/
        ...
lib/
    jar1.jar
    jar2.jar

Is there a way to tell iPlanet not to unpack my WAR file?

0

There are 0 best solutions below