tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain Gaeremynck <ga...@interstructure.ca>
Subject Re: Apache-Tomcat: File Not Found instead of Tomcat
Date Fri, 29 Oct 2004 18:54:06 GMT
as far as i understand JKMount actually is essentially pretty much the 
same as an alias in apache...  I have to check thought if mod_jk and 
mod_jk2 behave the same on this because i am still using mod_jk on my server

Hope this helps!

Allen Williams wrote:

>Alain,
>
>Thanks for the tip.  I will try it within a day or so.  What does JkMount
>do, and is there any documentation anywhere on what elements are needed
>where?
>
>anw
>
>  
>
>>-----Original Message-----
>>From: Alain Gaeremynck [mailto:garem@interstructure.ca]
>>Sent: Tuesday, October 26, 2004 6:49 PM
>>To: Tomcat Users List
>>Subject: Re: Apache-Tomcat: File Not Found instead of Tomcat
>>
>>
>>First time i try to help someone on this list...  Hope i'm right :)
>>
>>You seem to be missing some config in httpd.conf
>><IfModule mod_jk.c>
>>        JkMount /examples/* worker1
>></IfModule>
>>
>>
>>Allen Williams wrote:
>>
>>    
>>
>>>I am setting (what should be) a straigthforward and very common
>>>      
>>>
>>integration
>>    
>>
>>>of
>>>Apache and Tomcat on Debian Linux, with Apache2 serving static
>>>      
>>>
>>content and
>>    
>>
>>>Tomcat4 serving jsp's and servlet's.  The base directory of the apache
>>>service
>>>is /var/www.  The CATALINA_BASE is /var/lib/tomcat4, which contains
>>>webapps/examples, webapps/admin, webapps/manager, and webdav(?-don't know
>>>what
>>>this is).  All this is set up to just run on "localhost".
>>>
>>>When I point my browser to "http://localhost", I get the right
>>>      
>>>
>>Apache index
>>    
>>
>>>page, but when I try to go to "http://localhost/examples", or any of the
>>>others,
>>>I get a "File Not Found" error.  How do I set this up?  Here are the
>>>relevant
>>>parts of the config files:
>>>
>>>---------------------------------------------------
>>>httpd.conf (actually, under Debian distribution, snippets included in
>>>"apache2.conf"):
>>>
>>>LoadModule jk2_module /usr/lib/apache2/modules/mod_jk2.so
>>># To enable mod_jk2, customize workers2.properties* from
>>># /usr/share/doc/libapache2-mod-jk2/examples and copy it to
>>># /etc/apache2/workers2.properties. Then uncomment the following
>>>      
>>>
>>line: JkSet
>>    
>>
>>>config.file /etc/apache2/workers2.properties
>>>
>>>----------------------------------------------------
>>>workers.properties:
>>>#
>>># This is the minimal JK2 connector configuration file.
>>>#
>>>
>>>[logger.file:0]
>>>level=DEBUG
>>>file=/var/log/apache2/apache-jk2.log
>>>
>>>[shm:]
>>>info=Scoreboard. Required for reconfiguration and status with
>>>      
>>>
>>multiprocess
>>    
>>
>>>servers # file=anonymous # debug=0 file=/etc/apache2/scoreboard.shm
>>>size=1000000
>>>
>>>[channel.socket:localhost:8009]
>>>info=Ajp13 forwarding over socket
>>>debug=0
>>>tomcatId=localhost:8009
>>>
>>>[ajp13:localhost:8009]
>>>info=ajp13 worker; connects to tomcat using AJP 1.3 protocol
>>>channel=channel.socket:localhost:8009
>>>
>>>[uri:/admin/*]
>>>info=Tomcat HTML based administration web application.
>>>debug=5
>>>context="admin"
>>>worker=ajp13:localhost:8009
>>>
>>>[uri:/manager/*]
>>>info=A scriptable management web application for the Tomcat Web Server.
>>>debug=5
>>>context="manager" worker=ajp13:localhost:8009
>>>
>>>[uri:/examples/*]
>>>info=tomcat Examples.
>>>debug=5
>>>context="examples"
>>>worker=ajp13:localhost:8009
>>>------------------------------------------------
>>>And, on the Tomcat side, server.xml:
>>>
>>><Server port="8005" shutdown="SHUTDOWN" debug="5">
>>>
>>> <!-- Uncomment these entries to enable JMX MBeans support -->
>>> <Listener
>>>      
>>>
>>className="org.apache.catalina.mbeans.ServerLifecycleListener"
>>    
>>
>>>           debug="0"/>
>>> <Listener
>>>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>>>           debug="0"/>
>>>
>>> <!-- Global JNDI resources -->
>>> <GlobalNamingResources>
>>>
>>>   <!-- Test entry for demonstration purposes -->
>>>   <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
>>>
>>>   <!-- Editable user database that can also be used by
>>>        UserDatabaseRealm to authenticate users -->
>>>   <Resource name="UserDatabase" auth="Container"
>>>             type="org.apache.catalina.UserDatabase"
>>>      description="User database that can be updated and saved">
>>>   </Resource>
>>>   <ResourceParams name="UserDatabase">
>>>     <parameter>
>>>       <name>factory</name>
>>>
>>>      
>>>
>><value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
>>    
>>
>>>     </parameter>
>>>     <parameter>
>>>       <name>pathname</name>
>>>       <value>conf/tomcat-users.xml</value>
>>>     </parameter>
>>>   </ResourceParams>
>>>
>>> </GlobalNamingResources>
>>>
>>> <Service name="Tomcat-Standalone">
>>>
>>>   <!--   *** COMMENTED OUT ***
>>>   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>>              port="8180" minProcessors="5" maxProcessors="75"
>>>              enableLookups="true" acceptCount="10" debug="0"
>>>              connectionTimeout="20000" useURIValidationHack="false" />
>>>	-->
>>>
>>>   <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
>>>   <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>>              port="8009" minProcessors="5" maxProcessors="75"
>>>              enableLookups="true" acceptCount="10" debug="5"
>>>              connectionTimeout="20000" useURIValidationHack="false"
>>>
>>>protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>>
>>>   <!-- Define the top level container in our container hierarchy -->
>>>   <Engine name="Standalone" defaultHost="localhost" debug="5">
>>>
>>>     <!-- Global logger unless overridden at lower levels -->
>>>     <Logger className="org.apache.catalina.logger.FileLogger"
>>>             prefix="catalina_" suffix=".log" timestamp="true"/>
>>>
>>>     <!-- Because this Realm is here, an instance will be shared
>>>globally -->
>>>     <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>>>            debug="0" resourceName="UserDatabase"/>
>>>
>>>     <!-- Define the default virtual host -->
>>>     <Host name="localhost" debug="5" appBase="webapps"
>>>           unpackWARs="true" autoDeploy="true">
>>>
>>>       <!-- Logger shared by all Contexts related to this
>>>      
>>>
>>virtual host. -->
>>    
>>
>>>       <Logger className="org.apache.catalina.logger.FileLogger"
>>>               directory="logs" prefix="localhost_" suffix=".log"
>>>               timestamp="true"/>
>>>
>>>       <!-- Allow symlinks for the tomcat-docs webapp. This is
>>>      
>>>
>>required in
>>    
>>
>>>	     the Debian packages to make the Servlet/JSP API docs work. -->
>>>        <Context path="/tomcat-docs" docBase="tomcat-docs" debug="5">
>>>           <Resources
>>>className="org.apache.naming.resources.FileDirContext"
>>>                      allowLinking="true" />
>>>        </Context>
>>>
>>>     </Host>
>>>
>>>   </Engine>
>>>
>>> </Service>
>>>
>>> <!-- Define an Apache-Connector Service -->
>>><!-- **** NOT USING WARP; COMMENTED OUT ****
>>> <Service name="Tomcat-Apache">
>>>
>>>   <Connector
>>>      
>>>
>>className="org.apache.catalina.connector.warp.WarpConnector"
>>    
>>
>>>              port="8008" minProcessors="5" maxProcessors="75"
>>>              enableLookups="true" appBase="webapps"
>>>              acceptCount="10" debug="0"/>
>>>
>>>   <Engine className="org.apache.catalina.connector.warp.WarpEngine"
>>>           name="Apache" debug="0">
>>>
>>>     <Logger className="org.apache.catalina.logger.FileLogger"
>>>             prefix="mod_webapp_" suffix=".log" timestamp="true"/>
>>>
>>>     <Realm className="org.apache.catalina.realm.MemoryRealm" />
>>>
>>>   </Engine>
>>>
>>> </Service>
>>>-->
>>>
>>></Server>
>>>--------------------------------------------------
>>>I also have a jk2.properties on the tomcat side:
>>>
>>>--------------------------------
>>>Thanks,
>>>anw
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>>
>>>      
>>>
>>--
>>Alain Gaeremynck
>>CTO Le Groupe Interstructure
>>(514) 374-1110
>>(514) 825-7810 cell
>>weblog: http://www.sanssucre.ca
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>  
>

-- 
Alain Gaeremynck
CTO Le Groupe Interstructure
(514) 374-1110
(514) 825-7810 cell
weblog: http://www.sanssucre.ca


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message