> Dear all,
> 
>       I am using Apache2.0-50 and tomcat 5.0-27 with mod_jk2, Apache is
> compiled by source and the tomcat and mod_jk are using binary
>       The OS I using is Solaris9. After configuration, the web site for
> static page is normal, but when try to run servlets, it return 404 not
> found
>       The HelloWorld.class is located under
> /$DocumentRoot/WEB-INF/classes.
> 
>       The catalina.out show the following:
>       Jul 22, 2004 11:32:40 AM org.apache.coyote.http11.Http11Protocol
> init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Jul 22, 2004 11:32:40 AM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1800 ms
> Jul 22, 2004 11:32:41 AM org.apache.catalina.core.StandardService start
> INFO: Starting service Tomcat-Apache
> Jul 22, 2004 11:32:41 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
> Jul 22, 2004 11:32:41 AM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Jul 22, 2004 11:32:42 AM org.apache.catalina.core.StandardHost getDeployer
> INFO: Create Host deployer for direct deployment ( non-jmx )
> Jul 22, 2004 11:32:42 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Jul 22, 2004 11:32:42 AM org.apache.jk.common.ChannelSocket init
> INFO: JK2: ajp13 listening on /0.0.0.0:8009
> Jul 22, 2004 11:32:42 AM org.apache.jk.server.JkMain start
> INFO: APR not loaded, disabling jni components: java.io.IOException: java.
> lang.UnsatisfiedLinkError: no jkjni in java.library.path
> Jul 22, 2004 11:32:42 AM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=1/180
> config=/usr/local/jakarta/jakarta-tomcat-5.0.27/conf/jk2.properties
> Jul 22, 2004 11:32:42 AM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2231 ms
> 
>       Attached plese find the tomcat config, and would you please give me
> some advice.
> 
> Thank you very much.
> 
>  <<tomcat_problem.txt>> 
> Best Regard,
> 
> Terry Chow
> IT Department
> Tel: 29458018
> Mobile: 92046004
> 
workers2.properties
# Define the communication channel
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009
port=8009
host=127.0.0.1

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

[uri:/*.jsp]
worker=ajp13:localhost:8009

[uri:/servlets/*]
worker=ajp13:localhost:8009

# only at beginnin. In production uncomment it out
[logger.apache2]
level=DEBUG

[shm]
#file=/usr/local/apache/logs/shm.file
file=/usr/local/apache/logs/jk2.shm
size=1048576

Virtual host

  <Location "/*.jsp">
        JkUriSet worker ajp13:localhost:8009
    </Location>
    <Location "/servlets/*">
        JkUriSet worker ajp13:localhost:8009
    </Location>

Tomcat server.xml

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
        <Connector port="8009" minProcessors="50" maxProcessors="400"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="0"
               useURIValidationHack="false"
               protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
<Engine name="Apache" defaultHost="stream-test.peoples.com.hk" debug="0">
 <!-- Virtual host for stream-test -->
      <Host name="stream-test.peoples.com.hk" debug="1" 
appBase="/u02/stream-test/htdocs/html" unpackWARs="tr
ue" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="stream-test_access." suffix=".log"
                 pattern="common" resolveHosts="false"/>

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="stream-test." suffix=".log"
                timestamp="true"/>

        <Context path="" docBase="/u02/stream-test/htdocs/html" debug="1" 
reloadable="true" />
      </Host>


jk2.properties

 shm.file=/usr/local/apache/logs/jk2.shm



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

Reply via email to