> From: Caldarale, Charles R
> Subject: RE: Problems with VirtualWebappLoader (Was RE:
> Tomcat 6.0.x Classloader sequence)
>
> I see by looking back at the beginning of this thread that
> you already tried something similar.
Now let's really go back to your original question:
> There are three platform/location specific elements
> here which I need to get rid of:
> 1) catalina.home
You may use any system property inside the ${} expression, so you can
establish whatever you need at Tomcat startup time with a -D
command-line option.
> 2) path separator: '\' vs '/' for windoze and *nix)
That's more properly known as the file separator in JVM terminology.
The forward slash (/) works fine in both *nix and Windows for the
purposes of the virtualClasspath attribute.
> 3) field separate: ';' vs ':' for windoze and *nix)
This was a bit trickier, but the JVM defines a system property with the
necessary value: path.separator.
The following was successful on a WinXP box with Tomcat 6.0.14 and JDK
1.6:
<Context>
<Loader className="org.apache.catalina.loader.VirtualWebappLoader"
virtualClasspath="${catalina.home}/webapps/sample/dir/lib/mypackage1.jar
${path.separator}${catalina.home}/webapps/sample/dir/lib/mypackage2.jar"
/>
</Context>
(There are no line breaks in the virtualClasspath setting, of course.)
Since you can set a system property to any arbitrary string, you could
set the entire virtualClasspath with one system property reference.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]