tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Configuration help with tomcat connectors
Date Fri, 08 May 2009 20:27:13 GMT
Hi.
Just for a start, add a line after this one :
 > # Send JSPs for context /jsp-examples to worker named default
 > JkMount /jsp/*.jsp worker1
JkMount /jsp worker1

and just try again (after restarting Apache)

Note : I also think you've got way too many workers there, including a 
load balancer that you don't really need, for one Tomcat ;-)


Dave Filchak wrote:
> Hello all.
> 
> My name is Dave and I am new to this list and new to tomcat. I have been 
> trying to set up tomcat with apache 2.2 for the last few days and have 
> been unsuccessful in getting the connectors working with the supplied 
> example files. It should be noted that accessing the tomcat server on 
> 8080 works fine. I have read the documentation and search the archives 
> and while I have found some help, still have no happiness with the 
> connectors.
> 
> When I go to http://my.servername.com:8080, the tomcat homepage comes up 
> find.
> 
> When I go to http://my.servername.com/jsp/, I get a Page Not Found error.
> 
> So, I am hoping I can explain what I have done so far and someone could 
> be kind enough to set me straight.
> 
> Installed:
> 
> jdk1.6.0_13 in /opt (I have also added the following symlink: ln -s 
> /opt/ jdk1.6.0_13 /opt/java )
> apache-tomcat-6.0.18 in /opt also with a symlink: ln -s 
> /opt/apache-tomcat-6.0.18 /opt/tomcat
>    Tomcat is set up as a service and runs with no errors
> tomcat-connectors-1.2.28 and the mod_jk.so in installed in 
> /usr/local/apache2/modules/mod_jk.so
> 
> I have created workers.properties in /etc/httpd/conf and I have used the 
> workers.properties.minimal file as a template. It is as follows:
> 
> worker.list=worker1,worker2,wlb,jkstatus
> 
> #
> # Defining a worker named ajp13w and of type ajp13
> # Note that the name and the type do not have to match.
> #
> worker.worker1.type=ajp13
> worker.worker1.host=localhost
> worker.worker1.port=8009
> 
> #
> # Defining a load balancer (not sure I need this but left it in)
> #
> 
> worker.wlb.type=lb
> worker.wlb.balance_workers=ajp13w
> 
> worker.jkstatus.type=status
> 
> I have added the following to my httpd.conf file (I am using Virtualhosts)
> 
> #
> # Mod_jk settings
> #
> # Load mod_jk module
> LoadModule jk_module modules/mod_jk.so
> # Where to find workers.properties
> JkWorkersFile /etc/httpd/conf/workers.properties
> # Where to put jk shared memory
> JkShmFile     /var/log/httpd/mod_jk.shm
> # Where to put jk logs
> JkLogFile logs/mod_jk.log
> # Set the jk log level [debug/error/info]
> JkLogLevel error
> # Select the log format
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> # JkOptions indicate to send SSL KEY SIZE,
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> # JkRequestLogFormat set the request format
> JkRequestLogFormat "%w %V %T"
> # Send JSPs for context /jsp-examples to worker named default
> JkMount /jsp/*.jsp worker1
> # Send servlets-examples to worker named default
> JkMount /servlets/* worker1
> 
> Finally, my server.xml file is left pretty much as it came (which I 
> suspect may be part of my problem):
> 
> <?xml version='1.0' encoding='utf-8'?>
> 
> 
> <Server port="8005" shutdown="SHUTDOWN">
> 
>  <!--APR library loader. Documentation at /docs/apr.html -->
>  <Listener className="org.apache.catalina.core.AprLifecycleListener
> " SSLEngine="on" />
>  <!--Initialize Jasper prior to webapps are loaded. Documentation a
> t /docs/jasper-howto.html -->
>  <Listener className="org.apache.catalina.core.JasperListener" />
>  <!-- JMX Support for the Tomcat server. Documentation at /docs/non
> -existent.html -->
>  <Listener className="org.apache.catalina.mbeans.ServerLifecycleLis
> tener" />
>  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLif
> ecycleListener" />
> 
>  <!-- Global JNDI resources
>       Documentation at /docs/jndi-resources-howto.html
>  -->
>  <GlobalNamingResources>
>    <!-- 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 sav
> ed"
>              factory="org.apache.catalina.users.MemoryUserDatabaseF
> actory"
>              pathname="conf/tomcat-users.xml" />
>  </GlobalNamingResources>
> 
> 
>  <Service name="Catalina">
> 
>            unpackWARs="true" autoDeploy="true"
>            xmlValidation="false" xmlNamespaceAware="false">
> 
>        <!-- SingleSignOn valve, share authentication between web 
> applications
>             Documentation at: /docs/config/valve.html -->
>        <!--
>        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
>        -->
> 
>        <!-- Access log processes all example.
>             Documentation at: /docs/config/valve.html -->
>        <!--
>        <Valve className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs"               prefix="localhost_access_log." 
> suffix=".txt" pattern="common" resolveHosts="false"/>
>        -->
> 
>      </Host>
>    </Engine>
>  </Service>
> </Server>
> 
> Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message