Hi again,

----- Original Message -----
From: "Short, Dave" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Sunday, March 16, 2003 2:30 PM
Subject: RE: JK2 (cont.)


> Paths must match up.  Check the paths in the config files I sent against
> your paths.  If they don't match up, adjust the paths in the config files
I
> sent.  This configuration works on W2K with Apache 2.0.44 and Tomcat
4.1.18.
> Comment out 8080 in the server.xml file because Apache will serve up
> everything except .jsp and servlet files.  See the [uri:/examples/*.jsp]
and
> [uri:/examples/servlet/*] in the workers2.properties file?

Yes, paths now match up (workers2.properties appears at the end of this
post).  Now, when Apache starts, I get a fatal error (log extracts below).
Windows attempts to shut Apache down - 'send report' dialog etc. - but
Apache apparently restarts.  Any ideas?  At least I am making progress.
Well, I hope ;-).


<<<error.log>>>
[Sun Mar 16 22:51:44 2003] [notice] Parent: child process exited with status
3221225622 -- Restarting.
[Sun Mar 16 22:51:44 2003] [notice] Parent: Created child process 1888
[Sun Mar 16 22:51:44 2003] [notice] Child 1888: Child process is running
[Sun Mar 16 22:51:45 2003] [error] mod_jk child init 1 0
[Sun Mar 16 22:51:45 2003] [error] mod_jk child workerEnv in error state 1
[Sun Mar 16 22:51:45 2003] [notice] Child 1888: Acquired the start mutex.
[Sun Mar 16 22:51:45 2003] [notice] Child 1888: Starting 250 worker threads.
[Sun Mar 16 22:51:54 2003] [notice] Parent: child process exited with status
3221225622 -- Restarting.
[Sun Mar 16 22:51:54 2003] [notice] Parent: Created child process 1748
[Sun Mar 16 22:51:54 2003] [notice] Child 1748: Child process is running
[Sun Mar 16 22:51:55 2003] [error] mod_jk child init 1 0
[Sun Mar 16 22:51:55 2003] [error] mod_jk child workerEnv in error state 2
[Sun Mar 16 22:51:55 2003] [notice] Child 1748: Acquired the start mutex.
[Sun Mar 16 22:51:55 2003] [notice] Child 1748: Starting 250 worker threads.
[Sun Mar 16 22:52:09 2003] [notice] Parent: child process exited with status
3221225622 -- Restarting.
[Sun Mar 16 22:52:10 2003] [notice] Parent: Created child process 940
[Sun Mar 16 22:52:10 2003] [notice] Child 940: Child process is running
[Sun Mar 16 22:52:11 2003] [error] mod_jk child init 1 0
[Sun Mar 16 22:52:11 2003] [error] mod_jk child workerEnv in error state 3
[Sun Mar 16 22:52:11 2003] [notice] Child 940: Acquired the start mutex.
[Sun Mar 16 22:52:11 2003] [notice] Child 940: Starting 250 worker threads.


<<<stdout.log>>>
Bootstrap: Create Catalina server
Catalina.start: org.xml.sax.SAXParseException: The string "--" is not
permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within
comments.
 at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:118
9)
 at org.apache.commons.digester.Digester.parse(Digester.java:1479)
 at
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:187)
 at
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
 at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
 at java.lang.Thread.run(Thread.java:536)


<<<stderr.log>>>
TomcatStarter: main()
Try  org.apache.tomcat.startup.Main
Try  org.apache.catalina.startup.BootstrapService
Starting org.apache.catalina.startup.BootstrapService
Created catalinaLoader in: c:/Program Files/Apache Group/Tomcat
4.1\server\lib
Mar 16, 2003 10:55:20 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Mar 16, 2003 10:55:20 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Mar 16, 2003 10:55:21 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Mar 16, 2003 10:55:22 PM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 92 column 9: The string "--" is not
permitted within comments.
org.xml.sax.SAXParseException: The string "--" is not permitted within
comments.
 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHand
lerWrapper.java:232)
 at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.ja
va:213)
 at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:37
5)
 at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:30
5)
 at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1269)
 at org.apache.xerces.impl.XMLScanner.scanComment(XMLScanner.java:699)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(XMLDocumen
tFragmentScannerImpl.java:665)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java:1487)
 at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:329)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
 at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
 at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:117
5)
 at org.apache.commons.digester.Digester.parse(Digester.java:1479)
 at
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:187)
 at
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
 at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
 at java.lang.Thread.run(Thread.java:536)


<<<workers2.properties>>>
[logger]
level=error

[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Program Files/Apache Group/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
file=${serverRoot}/logs/shm.file
size=1048576

[workerEnv:]
info=Global server options
timing=1
debug=0

[lb:lb]
info=Default load balancer.
debug=0

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
port=8009
lb_factor=1
group=lb
host=localhost
disabled=0

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
disabled=0

[status:]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\j2sdk1.4.1_02\bin\client\jvm.dll (Read from registry)
OPT=-Djava.class.path=c:/Program Files/Apache Group/Tomcat
4.1/bin/tomcat-jni.jar
OPT=-Dtomcat.home=c:/Program Files/Apache Group/Tomcat 4.1
OPT=-Dcatalina.home=c:/Program Files/Apache Group/Tomcat 4.1
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=c:/Program Files/Apache Group/Apache2/logs/stdout.log
stderr=c:/Program Files/Apache Group/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:/examples/*.jsp]
info=Examples default context.
group=lb
debug=0

[uri:/examples/servlet/*]
info=examples default context.
group=lb
debug=0

[status:status]

# Uri mapping
[uri:/jkstatus/*]
worker=status:status


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

Reply via email to