Try losing the double quotes around the path names and also use forward 
slashes instead of backslashes, that is how my working OPT's are set.

That isn't your whole workers2.properties is it? Are you setting it up to run 
in process via JNI (that's the recommended way)? If so you should have a 
worker.jni:onStartup section along with a worker.jni:onShutdown, if you don't 
have these let us know and I will post what needs to go there.

Regards,
-- 
Jason Bainbridge
KDE Web Team - http://kde.org 
[EMAIL PROTECTED] 

On Sat, 31 May 2003 03:45, Allen Williams wrote:
> Pascal,
>
> Thanks for the tip, but it didn't work.  It is STILL telling me it can't
> find TomcatStarter.  How can it find the bootstrap program and not find
> TomcatStarter?
>
> Here's what I currently have:
>
> Environment:
> CATALINA_HOME="E:\Program Files\Apache Group\Tomcat 4.1"
> CLASSPATH="E:\Program Files\Apache Group\Tomcat
> 4.1\bin\Tomcat-jni.jar;E:\Program Files\Apache Group\Tomcat
> 4.1\bin\bootstrap.jar"
>
> workers2.properties:
>
> [vm:]
> info=Parameters used to load a JVM in the server process
> #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
> JVM="E:\Program Files\Java\jdk1.3.1_07\jre\bin\hotspot\jvm.dll"
> OPT=-Djava.class.path="E:\Program Files\Apache Group\Tomcat
> 4.1\bin\tomcat-jni.jar;E\Program Files\Apache Group\Tomcat
> 4.1\bin\bootstrap.jar;E:\Program Files\Apache Group\Tomcat
> 4.1\server\lib\commons-logging.jar;$(CLASSPATH);"
> OPT=-Dtomcat.home=${CATALINA_HOME}
> OPT=-Dcatalina.home=${CATALINA_HOME}
> OPT=-Xmx128M
> #OPT=-Djava.compiler=NONE
> disabled=0
>
> (Note $(CLASSPATH) added as per your suggestion).
>
> Error message:
>
> [Fri May 30 15:38:13 2003] [notice] jni.validate() class=
> org/apache/jk/apr/TomcatStarter
> [Fri May 30 15:38:13 2003] [error] Can't find class
> org/apache/jk/apr/TomcatStarter
> [Fri May 30 15:38:13 2003] [notice] vm.detach() ok
>
> Allen N. Williams
> President
> Voice: +1.321.728.1995
> Fax:     +1.321.722.0580
>
> > -----Original Message-----
> > From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, May 29, 2003 7:55 PM
> > To: Tomcat Users List
> > Subject: Re: Can't find TomcatStarter
> >
> >
> > Hello Allen :
> >
> > For some reason, the OPT directives in workers2.properties are not read
> > properly. TomcatStarter is in tomcat-jni.jar, and though it is defined
> > in your workers2.properties file, it will not be "seen" by mod_jk2. To
> > get it to work, you need to add tomcat-jni.jar to your CLASSPATH
> > externally, then append "${CLASSPATH}" to the OPT directive. In other
> > words :
> >
> > OPT=-Djava.class.path="E:\Program Files\Apache Group\Tomcat
> > 4.1\bin\tomcat-jni.jar;E\Program Files\Apache Group\Tomcat
> > 4.1\bin\bootstrap.jar;E:\Program Files\Apache Group\Tomcat
> > 4.1\server\lib\commons-logging.jar;${CLASSPATH};"
> >
> >
> > Although I was able to get my setup going (on Linux), channelJNI spewed
> > out a lot of messages very quickly, and mod_jk2 attempted to start 3
> > instances of Tomcat. Please do tell what your experience is, after
> > making the change.
> >
> > Regards,
> > pascal chong
> >
> > Williams, Allen wrote:
> > >To all:
> > >
> > >Attempt to integrate Tomcat- Apache with jk2 on WinNT 4.0.
> > >
> > >Getting the following error:
> > >[Mon May 26 20:13:47 2003] [notice] jni.validate() class=
> > >org/apache/jk/apr/TomcatStarter
> > >[Mon May 26 20:13:47 2003] [error] Can't find class
> > >org/apache/jk/apr/TomcatStarter
> > >[Mon May 26 20:13:47 2003] [notice] vm.detach() ok
> > >[Mon May 26 20:13:47 2003] [error] workerEnv.initWorkers() init
> > >failed for worker.jni:onStartup
> > >
> > >With the following germane area from the workers2.properties:
> > >
> > >[vm:]
> > >info=Parameters used to load a JVM in the server process
> > >#JVM=C:\jdk\jre\bin\hotspot\jvm.dll JVM="E:\Program
> > >Files\Java\jdk1.3.1_07\jre\bin\hotspot\jvm.dll"
> > >OPT=-Djava.class.path="E:\Program Files\Apache Group\Tomcat
> > >4.1\bin\tomcat-jni.jar;E\Program Files\Apache Group\Tomcat
> > >4.1\bin\bootstrap.jar;E:\Program Files\Apache Group\Tomcat
> > >4.1\server\lib\commons-logging.jar"
> > >OPT=-Dtomcat.home=${CATALINA_HOME}
> > >OPT=-Dcatalina.home=${CATALINA_HOME}
> > >OPT=-Xmx128M
> > >#OPT=-Djava.compiler=NONE
> > >disabled=0
> > >
> > >How do I tell it where to find TomcatStarter?
> > >
> > >And, does anyone know of a decent book on using Tomcat with a
> >
> > good section on
> >
> > >Apache/ Tomcat integration?
> > >
> > >Allen N. Williams
> > >Senior Consultant
> > >[EMAIL PROTECTED]
> > >Voice:  +1.321.728.1995
> > >Fax:     +1.321.722.0580
> > >
> > >
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to