Lets say I have an .ear wherein I want to package 3 webapps

All 3 webapp rely on the same jar file

I know this works

app/
        webapp1/
                META-INF/lib/needed.jar
                index.jsp
        webapp2/
                META-INF/lib/needed.jar
                index.jsp
        webapp3/
                META-INF/lib/needed.jar
                index.jsp

My 'diagram' might be a bit confusing, since the WARs in the EAR are
archives, but I have shown them 'expanded', I hope it is clear enough.

I was hoping that I could do this :

app/
        needed.jar
        webapp1/
                META-INF/MANIFEST.MF
                index.jsp
        webapp2/
                META-INF/MANIFEST.MF
                index.jsp
        webapp3/
                META-INF/MANIFEST.MF
                index.jsp

Where MANIFEST.MF would look like

Manifest-Version: 1.0
Created-By: Ant 1.4
Class-Path: needed.jar

It is not clear to me from reading the J2EE 1.3 spec that manifest
Class-Path entries in WARs are supported

Perhaps I have to include a minimal jar in each meta-inf/lib that would that
have its own manifest that would reference needed.jar, something like

Manifest-Version: 1.0
Created-By: Ant 1.4
Class-Path: ..\..\..\needed.jar


Anyone care to comment/clarify ?

Thanks,
Matthew

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to