httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Allen" <awill...@harris.com>
Subject RE: [users@httpd] RE : Apache-Tomcat: File Not Found instead of T omcat
Date Wed, 27 Oct 2004 14:15:39 GMT
No, I haven't!  Thanks for the tip.  I will try that this PM.  Is there a
reference on the workers.properties file (and all the others, for that matter)?
I mean, is there a difference if I put:

[uri:/examples/*]			<----------
info=tomcat Examples.
debug=5
context="examples"
worker=ajp13:localhost:8009

vs.

[uri:/examples]			<-----------
info=tomcat Examples.
debug=5
context="examples"
worker=ajp13:localhost:8009

vs.

[uri:/examples/*]
info=tomcat Examples.
debug=5
context="/examples/"		<-----------
worker=ajp13:localhost:8009

Thanks,
--------------------------------
anw


-----Original Message-----
From: Axel-Stéphane SMORGRAV [mailto:Axel-Stephane.SMORGRAV@europe.adp.com] 
Sent: Wednesday, October 27, 2004 9:15 AM
To: users@httpd.apache.org
Subject: [users@httpd] RE : Apache-Tomcat: File Not Found instead of Tomcat


Have you tried

http://localhost/examples/

rather than 

http://localhost/examples


-ascs
Just my 0.02€

-----Message d'origine-----
De : Allen Williams [mailto:anw@csunv.com] 
Envoyé : mercredi 27 octobre 2004 14:41
À : users@httpd.apache.org
Objet : RE: [users@httpd] RE : Apache-Tomcat: File Not Found instead of Tomcat


Thanks, but I have the JkSet command in there.

> -----Original Message-----
> From: Axel-Stéphane SMORGRAV
> [mailto:Axel-Stephane.SMORGRAV@europe.adp.com]
> Sent: Wednesday, October 27, 2004 7:50 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] RE : Apache-Tomcat: File Not Found instead of 
> Tomcat
>
>
> Could you possibly have forgotten to follow the instructions below the
> LoadModule line in your httpd.conf??
>
> JkSet config.file /etc/apache2/workers2.properties
> or whereever your properties file is located...
>
> I have never used mod_jk2 myself, so I really do not know, but this
> seems like an obvious thing.
>
> -ascs
>
> -----Message d'origine-----
> De : Williams, Allen [mailto:awilli08@harris.com]
> Envoyé : mardi 26 octobre 2004 16:59
> À : 'users@httpd.apache.org'
> Objet : [users@httpd] Apache-Tomcat: File Not Found instead of Tomcat
>
>
> 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">
>
>
>   <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
>             debug="0"/>
>   <Listener
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>             debug="0"/>
>
>
>   <GlobalNamingResources>
>
>
>     <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" />
> 	-->
>
>
>     <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"/>
>
>
>     <Engine name="Standalone" defaultHost="localhost" debug="5">
>
>
>       <Logger className="org.apache.catalina.logger.FileLogger"
>               prefix="catalina_" suffix=".log" timestamp="true"/>
>
>
>       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>              debug="0" resourceName="UserDatabase"/>
>
>
>       <Host name="localhost" debug="5" appBase="webapps"
>             unpackWARs="true" autoDeploy="true">
>
>
>         <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>
>
>
> <!-- **** 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
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project. See <URL:http://httpd.apache.org/userslist.html> for more 
> info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project. See <URL:http://httpd.apache.org/userslist.html> for more 
> info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project. See
<URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe,
e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message