Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat 5, Apache2 and mod_jk2 integration problem

Tomcat 5, Apache2 and mod_jk2 integration problem

2004-01-09       - By Yiannis Mavroukakis

 Back
Reply:     1     2  



Try adding the following to your workers2.properties

Try adding the followign to your workers2.properties

[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

and add this to [uri:/jsp-examples]

worker=ajp13:localhost:8009

Hope this helps,

Yiannis


================================================
workers2.properties :

[shm]
file=/usr/local/jakarta-tomcat-5 (See http://cat-5.ora-code.com)/work/jk2.shm
size=1048576

[channel.socket:localhost:8009]
tomcatId=localhost:8009
info=Ajp13 forwarding over socket

[uri:/jsp-examples/*]

[logger.file:0]
level=DEBUG
file=/usr/local/apache/logs/jk2.log

-- ---- ---- ---- ----

server.xml

<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Listener
className="org.apache.catalina.mbeans.ServerLifecycleListener Source code of org.apache.catalina.mbeans.ServerLifecycleListener"
           debug="0"/>

 <Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener Source code of org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
           forwardAll="false"
           noRoot="false"/>

 <Listener className="org.apache.jk.config.ApacheConfig Source code of org.apache.jk.config.ApacheConfig"
           modJk="/usr/local/apache/modules/mod_jk2.so"
           workersConfig="/usr/local/apache/conf/workers2.properties"/>

 <GlobalNamingResources>
   <Environment name="simpleValue" type="java.lang.Integer Source code of java.lang.Integer" value="30"/>
   <Resource name="UserDatabase" auth="Container"
             type="org.apache.catalina.UserDatabase Source code of 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 Source code of org.apache.catalina.users.MemoryUserDatabaseFactory</value>
     </parameter>
     <parameter>
       <name>pathname</name>
       <value>conf/tomcat-users.xml</value>
     </parameter>
   </ResourceParams>
 </GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080"
              maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
              enableLookups="false" redirectPort="8443" acceptCount="100"
              debug="0" connectionTimeout="20000"
              disableUploadTimeout="true" />
   <Connector className="org.apache.coyote.tomcat5.CoyoteConnector"
              port="8009"
              enableLookups="false"
              redirectPort="8443"
              debug="0"
              protocol="AJP/1.3" />
   <Engine name="Catalina" defaultHost="localhost" debug="0">
     <Logger className="org.apache.catalina.logger.FileLogger"
             verbosity="4"
             prefix="catalina_log." suffix=".log"
             timestamp="true"/>
     <Realm className="org.apache.catalina.realm.UserDatabaseRealm Source code of org.apache.catalina.realm.UserDatabaseRealm"
                debug="0" resourceName="UserDatabase"/>
     <Host name="localhost" debug="0" appBase="webapps"
      unpackWARs="true" autoDeploy="true"
      xmlValidation="false" xmlNamespaceAware="false">

       <Listener className="org.apache.jk.config.ApacheConfig Source code of org.apache.jk.config.ApacheConfig"
                 append="true"
                 forwardAll="false"
                 modJk="/usr/local/apache/modules/mod_jk2.so" />
       <Logger className="org.apache.catalina.logger.FileLogger"
                verbosity="4"
                directory="logs"  prefix="localhost." suffix=".log"
           timestamp="true"/>
     </Host>
   </Engine>
 </Service>
</Server>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
---
If  you are not the intended recipient please notify the author by
replying to
this  email.   Internet communications are not secure and therefore Red
Squared
plc  does not accept legal responsibility for the contents of this
message.
Although  we  operate  anti-virus programs, Red Squared does not accept
responsibility  for  any damage that may be caused by viruses being
passed.
Any views or opinions presented are solely those of the author and do not
necessarily represent those of Red Squared.

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____


Note:__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ___
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____

©2008 junlu.com - Jax Systems, LLC, U.S.A.