tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: Multiple Instances Support Broken in Tomcat 4.1.18
Date Thu, 06 Feb 2003 21:01:47 GMT

tomcat-dev is the place for this, not tomcat-user

Also, check Bugzilla before you do anything else, it's possible that this
has already been submitted and/or a patch is already available.


-----Original Message-----
From: Rahul Bhargava []
Sent: Thursday, February 06, 2003 3:53 PM
Subject: Multiple Instances Support Broken in Tomcat 4.1.18

Platform : Win2K
Tomcat ver: 4.1.18

Problem: When trying to start a webapp that has been installed/deployed with
jar files in WEB-INF/lib
              on a TC instance that was started by setting CATALINA_BASE (to
get multi instance support),
              an exception is thrown by the method -
ContextConfig.tldScanJar(). If the jar is unpacked into
              WEB-INF/classes the problem goes away. The problem also
doesn't occur when CATALINA_BASE is
              equal to CATALINA_HOME i.e when webapp is deployed to the
single instance running out of

To reproduce just deploy the examples war file (created out of the /examples
shipped with TC4.1.18 with the addition of any jar into WEB-INF/lib) to any
server, in any dir by first setting CATALINA_BASE  to a different value than
CATALINA_HOME. Looked at the src thru the debugger and it seems like
ContextConfig.tldScanJar is trying to open a JarUrlConnection  by passing a
weird looking url
(jar:jndi:/localhost/examples/WEB-INF/lib/commons-discovery.jar!*/) that it
is unable to resolve when CATALINA_BASE is set!!

Is there a way to turn of TLD scanner other than modify code ? Seems like it
will  reduce startup cost significantly
if TLD scan can be disabled when no TLDs are present in the war.

Any workaround other than unjar'ing the jar files in WEB-INF/classes ? I am
looking at fixing
but would be good to check with this list if there are other solutions.

Basically this rules out using TC in a multi-instance setting unless you are
willing to unjar every WEB-INF/lib jar!

Rahul Bhargava

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message