Right. I have two installation (trying desparately to get this working),
one in a directory tree that has no spaces (E:\ApacheGroup\Tomcat4.1...
etc.) and another in my standard "Program Files" directory, because someone
in another forum told me that it wouldn't work with spaces in the file name.
Here is my complete workers2.properties, where you can see I've lost the "
and made backlashes forward. I will test and repost.
Thanks!!
[logger]
level=DEBUG
[config:]
#file=${serverRoot}/conf/workers2.properties
file="E:/ApacheGroup/Apache2/conf/workers2.properties"
debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
#[logger.file:0]
#level=DEBUG
#file=${serverRoot}/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=1000000
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0
[lb:lb]
info=Default load balancer.
debug=0
#[lb:lb_1]
#info=A second load balancer.
#debug=0
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
#[channel.socket:localhost:8019]
#info=A second tomcat instance.
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[status:]
info=Status worker, displays runtime informations
[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:/ApacheGroup/Tomcat4.1/bin/tomcat-jni.jar;E/ApacheGr
oup/Tomcat4.1/bin/bootstrap.jar;E:/ApacheGroup/Tomcat4.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
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout="E:/ApacheGroup/Apache2/logs/stdout.log"
stderr="E:/ApacheGroup/Apache2/logs/stderr.log"
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test
it
#alias=myVirtualHost:8003
#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
#context=/ex
#group=lb_1
[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=0
#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0
[uri:/examples/servlets/*]
info=Prefix mapping
[uri:/examples/*.jsp]
info=Extension mapping
[uri:/examples/*]
info=Map the whole webapp
[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10
Allen N. Williams
President
Voice: +1.321.728.1995
Fax: +1.321.722.0580
> -----Original Message-----
> From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 30, 2003 3:57 PM
> To: Tomcat Users List
> Subject: Re: Can't find TomcatStarter
>
>
> 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]