I am not able to build mod_jk from source, because the configure script
breaks on ltconfg, as noted in a previous e-mail.
So I took a compiled binary from a link on John Turner's how-to page and
installed that. His link says its for tomcat 4.0, and I'm using 4.1.12,
but John said previously that version numbers shouldn't matter.
Without mod_jk in the mix, I have Apache 1.3.27 running, and Tomcat
4.1.12 running, and both work. Apache answers to localhost, Tomcat
answers to localhost:8080, and servlets and JSPs work fine. I have also
had tyhe two connected with mod_webapp.so and everything works fine.
But when I put mod_jk into place and edit my server.xml file as
instructed on John's howto page, Tomcat won't start. The Tomcat
examples index pages do get displayed by Apache when I go to
http://localhost/examples/servlets and ../jsp; I can even get my own
HelloWorld html page in the Tomcat webapss directory to display. But
the servlets themselves don't work, because Tomcat is not running. When
I try to start Tomcat, I get the following error in catalina.out:
SEVERE: Parse Fatal Error at line 52 column -1: Next character must be
">" terminating comment .
org.xml.sax.SAXParseException: Next character must be ">" terminating
comment .
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176)
at org.apache.crimson.parser.Parser2.nextChar(Parser2.java:3098)
at org.apache.crimson.parser.Parser2.maybeComment(Parser2.java:910)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1788)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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)
I'm pretty sure there is no syntax error in my server.xml file; and I
have not touched the global web.xml.
But here's my server.xml file, in case anyone cares to look.
<Server port="8005" shutdown="SHUTDOWN" debug="0">
<!-- the following line added per www.johnturner.com/howto for mod_jk; jf/21dec2002 -->
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"/>
<!-- Define the Tomcat Stand-Alone Service -->
<Service name="Tomcat-Standalone">
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!-- Define the default virtual host -->
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="common"/>
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="localhost_log." suffix=".txt"
timestamp="true"/>
<!-- following line added per www.johnturner.com/howto for mod_jk; jf/21dec2002 -->
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" append="true" forwardAll="false"/>
<!-- Tomcat Root Context -->
<Context path="" docBase="ROOT" debug="0"/>
</Host>
</Engine>
</Service>
<!--
<!-- Define an Apache-Connector Service -->
<Service name="Tomcat-Apache">
<Connector className="org.apache.catalina.connector.warp.WarpConnector"
port="8008" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0"/>
<!-- Replace "localhost" with what your Apache "ServerName" is set to -->
<Engine className="org.apache.catalina.connector.warp.WarpEngine"
name="Apache" debug="0" appBase="webapps">
<!-- Global logger unless overridden at lower levels -->
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="apache_log." suffix=".txt"
timestamp="true"/>
<!-- Because this Realm is here, an instance will be shared globally -->
<Realm className="org.apache.catalina.realm.MemoryRealm" />
</Engine>
</Service>
-->
</Server>
As an aside, I am also confused by the comment in the default server.xml
that says to replace "localhost" with my Apache server name. Replace
what? There is no instance of "localhost" in the example server.xml.
What is the comment referring to?
Jerry
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
- Re: Configuring mod_jk - Again! Bill Barker
- RE: Configuring mod_jk - Again! Denise Mangano
- RE: Configuring mod_jk - Again! Michele Emmi
- RE: Configuring mod_jk - Again! Denise Mangano
- RE: Configuring mod_jk - Again! Milt Epstein
- RE: Configuring mod_jk - Again! Noel J. Bergman
- RE: Configuring mod_jk - Again! Justin L. Spies
- RE: Configuring mod_jk - Again! Denise Mangano
- Re: Configuring mod_jk - Again! Jerry Ford
- another mod_jk attempt failing Jerry Ford
- Re: Still trying to make mod_jk work, need he... Jerry Ford
- Re: Still trying to make mod_jk work, nee... Peter Davison
- Re: Configuring mod_jk - Again! Bill Barker
- RE: Configuring mod_jk - Again! Denise Mangano
- RE: Configuring mod_jk - Again! Milt Epstein
- RE: Configuring mod_jk - Again! Justin L. Spies
- RE: Configuring mod_jk - Again! Milt Epstein
- RE: Configuring mod_jk - Again! Justin L. Spies
- RE: Configuring mod_jk - Again! Justin L. Spies
- RE: Configuring mod_jk - Again! Turner, John
