This seems to be a common question on this mailing list.  I have been through as many e-mails as possible before sending this e-mail, but to now avail.  I would appreciate any help with this that could be rendered:
 
Problem:
 
http://www.server.com:8080/examples/servlet/HelloWorldExample, pops up just fine.  However, when attempted through port 80, through Apache, there is no response.  The access.log file shows a 404 error.
 
Host:
 
RedHat 6.1(2.2.12-20), IBMHTTPServer (Apache 1.13.12.2), Tomcat 3.2.1., Java1.3 from BlackDown.
 
Symptoms:
 
When started there is nothing placed in the mod_jk_log file, NOTHING.  When grepping error.log of apache for mod_jk, I find the following 
 
[Mon Mar 12 15:59:19 2001] [notice] IBM_HTTP_Server/1.3.12.2 Apache/1.3.12 (Unix) mod_jk configured -- resuming normal operations
Which should mean that mod_jk has been loaded.
 
Configuration:
Taking the mod_jk.howto as a starting point:
 
I have compiled mod_jk.so from the downloaded source files for Tomcat.  I placed the resulting mod_jk.so and mod_jk.c in the $APACHE_HOME/libexec directory.
 
I added the ajp13 information to the server.xml file.  It was:
 
<Connector className="org.apache.tomcat.service.PoolTcpConnector">
          <Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
          <Parameter name="port" value="8009"/>
        </Connector>
I then copied the mod_jk.conf-auto file to my $APACHE_HOME/conf directory and renamed to mod_jk.conf and added an include line into my httpd.conf at the end of the file.  The contents of the mod_jk.conf is as follows:
 
LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c
 
JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log
 
JkLogLevel error
 
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
 
Alias /examples "/usr/local/tomcat/webapps/examples"
<Directory "/usr/local/tomcat/webapps/examples">
    Options Indexes FollowSymLinks
</Directory>
 
#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13
 
#
# The following line prohibits users from directly accessing WEB-INF
#
<Location "/examples/WEB-INF/">
    AllowOverride None
    deny from all
</Location>
 
#
# The following line prohibits users from directly accessing META-INF
#
<Location "/examples/META-INF/">
    AllowOverride None
    deny from all
</Location>
I then stopped apache, started tomcat and got the following:
 
[15:58:46][root@roo:/opt/IBMHTTPServer/logs]$$TOMCAT_HOME/bin/startup.sh
Using classpath: /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/ant_1_1.jar:/usr/local/tomcat/lib/bsf.jar:/usr/local/tomcat/lib/bsfengines.jar:/usr/local/tomcat/lib/cocoon.jar:/usr/local/tomcat/lib/fesi.jar:/usr/local/tomcat/lib/fop_0_15_0.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomcat/lib/sax-bugfix.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/servlet_2_2.jar:/usr/local/tomcat/lib/stylebook-1.0-b2.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/turbine-pool.jar:/usr/local/tomcat/lib/w3c.jar:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xalan_1_2_D02.jar:/usr/local/tomcat/lib/xerces_1_2.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/tomcat/lib/xt.jar:/usr/local/java/lib/tools.jar:/usr/local/java/lib/tools.jar
$2001-03-12 03:58:53 - ContextManager: Adding context Ctx( /examples )
2001-03-12 03:58:53 - ContextManager: Adding context Ctx( /cocoon )
Starting tomcat. Check logs/tomcat.log for error messages
2001-03-12 03:58:53 - ContextManager: Adding context Ctx(  )
2001-03-12 03:58:53 - ContextManager: Adding context Ctx( /test )
2001-03-12 03:58:53 - ContextManager: Adding context Ctx( /admin )
2001-03-12 03:58:54 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2001-03-12 03:58:54 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2001-03-12 03:58:55 - PoolTcpConnector: Starting Ajp13ConnectionHandler on 8009
I have done a netstat and I do not see apache making a connection to the Tomcat server over ports 8007 or 8009.  However, if I telnet into them from the outside world then I can cause some pretty cool errors.  I am not using virtualhosts with this web site, and I have none setup.  Any help would be appreciated.  This whole process is to take a look at cocoon as a publishing system, that why there is a cocoon context and all the extra jar files in the classpath.
 
Thanks,
/gill
 
 

Reply via email to