Here is my take on the issue I had posted earlier. Tomcat 4.0.3 overides the use of [Java_Home]jre\lib\ext folder as a shared resource file folder with the [Tomcat]common\lib folder.
My requirement was to place those classes that access native libraries outside of the web application (to ensure that it is executed only once within a JVM). And I believe the only way you could do that in Tomcat 3.x was to place those classes in the [JAVA_HOME]jre\lib\ext folder. However, Tomcat 4.0.3 does not support this and as an alternative provides the [CATALINA_HOME]common\lib folder for this purpose. I say so since I get the NoClassDefFoundError for those classes that I place in the [JAVA_HOME]\jre\lib\ext. Am I right? If so, is it also safe to assume that all the classes that I put into the [CATALINA_HOME]common\lib folder is only instantiated once within a particular JVM. I have run a couple of tests with multiple instances of different applications using the same class file from within the same TOMCAT service and everything seems to be fine. But just want to confirm with some of the experts out there. What I do find strange is that, when run as a standalone process, Tomcat 4.0.3 picks up the classes from the [JAVA_HOME]\jre\lib\ext folder. I would appreciate any thoughts from out there. Thanks, Ranjith > -----Original Message----- > From: Purush, Ranjith > Sent: Monday, September 23, 2002 3:30 PM > To: '[EMAIL PROTECTED]' > Subject: Tomcat 4.0.3 as Windows service - jre/ext issue > > Hi, > > I'm running Tomcat 4.0.3 as a Windows 2000 service. I have a shared class > that I place in the jre/lib/ext folder. Tomcat can get to this class when > it is run as a standalone process. But when Tomcat is switched to run in > service mode, Tomcat triggers a java.lang.NoClassDefFoundError.... > > Any thoughts? > > Thanks, Ranjith -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
