-
1. Re: Classpath question involving multile webapps
mlindhout Jan 23, 2003 2:07 AM (in response to djolly)Hi,
If two webapps need to share the same code, you should place that code in a separate jar file, package it at the ear level and provide a MANIFEST.MF file in the META-INF (*Not* the WEB-INF) of the two webapps. This file should look like this (excluding the dashes and including the last empty line):
--------------------
Manifest-Version: 1.0
Class-Path: shared.jar
--------------------
I'm not sure its in one of the x specifications, but most appservers first use the WEB-INF/lib to search for classes. If not found, the search one of the other class locations. -
2. Re: Classpath question involving multiple webapps
djolly Jan 23, 2003 11:56 AM (in response to djolly)Thanks. What you described is exactly right. But what I'm trying to do is specify a classes directory as opposed to a jar file. I tried to do what you suggested but with only a directory specified, but that didn't work.