Please help me :

I have tried over a month on the problem I face with mod_jk and has even
posted into
 Jguru but no reply. I feel like dropping out as my church people is
telling
 me to drop the project but I feel that I can complete this project.

 I very much hope/pray that you can help me. The problem I'm facing is
when I
 try to query from the server for JSP and servlet, I manage to get the
 result. But when I query from the LAN it gives me this error
 I'm trying to use mod_jk with ajp13 protocol.

 Ctx(www.cs.com): 404R( http:/www.cs.com/JSPWorld.jsp + null ) + null

 I'm sure my setup for Bind is correct because on apache alone , the
virtual
 hosting and html files are retrive correctly and also the nslookup
results
 were correct.

 When I include this in the server.xml it tells me the module cannot be
 found.

 <!--
 <RequestInterceptor
 className="org.apache.tomcat.modules.server.Ajp13Interceptor"
 port="8009" />
 -->


 Attach here is the 3 files
 1. httpd.conf

 ServerType standalone
 ServerRoot "/application/apache"
 ServerName www.cs.com
 .....
 DocumentRoot "/church_Webhosting"

 <Directory />
    Options FollowSymLinks
    AllowOverride None
 </Directory>

 <Directory "/church_Webhosting">
    Options -Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
 </Directory>
 HostnameLookups Off
 LoadModule jk_module "/application/apache/libexec/mod_jk.so"
 JkWorkersFile /application/jakarta-tomcat-3.2.3/conf/workers.properties

 JkLogFile /application/jakarta-tomcat-3.2.3/logs/mod_jk.log
 JkLogLevel    warn
 AliasMatch /(.*)\.html$  "/church_Webhosting/html/$1.html"
 JkMount  /*.jsp         ajp13
 JkMount /servlet/*   ajp13

 2. Server.xml
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <Server>
 <Logger name="tc_log"    verbosityLevel = "DEBUG"   />
 <Logger name="servlet_log"   path="logs/servlet.log"   />
 <Logger name="JASPER_LOG"  path="logs/jasper.log"   verbosityLevel =
"DEBUG"
 />

 <ContextManager debug="0" workDir="work" showDebugInfo="true" >
<!--
 ContextInterceptor className="org.apache.tomcat.context.LogEvents"
-->
 <ContextInterceptor className="org.apache.tomcat.context.AutoSetup" />
 <ContextInterceptor className="org.apache.tomcat.context.WebXmlReader"
/>

 <!-- Uncomment out if you have JDK1.2 and want to use policy
 <ContextInterceptor
 className="org.apache.tomcat.context.PolicyInterceptor" /> -->

 <ContextInterceptor
 className="org.apache.tomcat.context.LoaderInterceptor" />

 <ContextInterceptor
 className="org.apache.tomcat.context.DefaultCMSetter" />

 <ContextInterceptor
 className="org.apache.tomcat.context.WorkDirInterceptor" />

 <RequestInterceptor
 className="org.apache.tomcat.request.SessionInterceptor"
noCookies="false"
 />

 <RequestInterceptor
className="org.apache.tomcat.request.SimpleMapper1"
 debug="0" />

 <RequestInterceptor
 className="org.apache.tomcat.request.InvokerInterceptor"  debug="0"
 prefix="/servlet/" />

 <RequestInterceptor
 className="org.apache.tomcat.request.StaticInterceptor"  debug="0"
 suppress="false" />

 <RequestInterceptor
 className="org.apache.tomcat.session.StandardSessionInterceptor" />

 <RequestInterceptor
 className="org.apache.tomcat.request.AccessInterceptor"   debug="0" />

 <RequestInterceptor   className="org.apache.tomcat.request.SimpleRealm"

 debug="0" />

 <ContextInterceptor
 className="org.apache.tomcat.context.LoadOnStartupInterceptor" />

 <!--
 <RequestInterceptor
 className="org.apache.tomcat.modules.server.Ajp13Interceptor"
 port="8009" />
 -->

 <Connector className="org.apache.tomcat.service.PoolTcpConnector">
 <Parameter name="handler"
 value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
 <Parameter name="port"          value="8080"/>
 </Connector>

 <Connector className="org.apache.tomcat.service.PoolTcpConnector">
 <Parameter name="handler"
 value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
 <Parameter name="port"         value="8007"/>
 </Connector>

 <Connector className="org.apache.tomcat.service.PoolTcpConnector">
 <Parameter name="handler"
 value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
 <Parameter name="port"  value="8009"/>
 </Connector>

 <Context path="/"   docBase="/church_Webhosting/ROOT"   debug = "9" >
 </Context>

 <!--
 <Host name="www.cs.com">
 <Context path="/"   docBase="/church_Webhosting/ROOT"   debug = "9" />
 </Host>

 <VirtualHost  www.cs.com="192.168.1.10" >
 ServerName www.cs.com DocumentRoot "/church_Webhosting/ROOT"
 </VirtualHost>
 -->
 </ContextManager>
 </Server>

 3. worker.properties

 workers.tomcat_home=/application/jakarta-tomcat-3.2.3
 workers.java_home=/usr/java/jdk1.3.1
 ps=/
 worker.list=ajp12, ajp13
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12
 worker.ajp12.lbfactor=1
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 worker.ajp13.lbfactor=1
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp12,ajp13
 worker.inprocess.type=jni
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)classes
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jaxp.jar

 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)parser.jar

 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)jasper.jar

 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)servlet.jar

 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)webserver.jar

 worker.inprocess.class_path=$(workers.java_home)$(ps)lib$(ps)tools.jar
 worker.inprocess.cmd_line=-config
 worker.inprocess.cmd_line=$(workers.tomcat_home)/conf/jni_server.xml
 worker.inprocess.cmd_line=-home
 worker.inprocess.cmd_line=$(workers.tomcat_home)
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)classic$(ps)jvm.dll

 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)inprocess.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)inprocess.stderr
 worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
 #
 # Java system properties
 #
 # worker.inprocess.sysprops=java.compiler=NONE
 # worker.inprocess.sysprops=myprop=mypropvalue
 #
 # Additional path components.
 #
 # worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
 #

Reply via email to