tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julio C├ęsar Mejia Vergara <j...@telnor.com>
Subject Problem configurimg mod_jk2 for Cocoon 2.1.2
Date Mon, 27 Oct 2003 20:15:06 GMT
Hello everyone,

I have instaled and configure:

-Apache Web Server 2.0.47
- Tomcat 4.1
- Mod_Jk2
- JDK 1.4.2
- Cocoon 2.1.2
- Solaris 8 SPARC

I allready have working all of the them, just cant get Cocoon to respond 
directly to Apache Web Server on port 80  (http://my.server.com/cocoon). 
Cocoon responds on port 8080 of Tomcat 
(http://my.server.com:8080/cocoon) but no 80, i get an Internal Server 
Error.
I think is mod_jk2 configuration that i dont have just right via the 
worker2.properties, jk2.properties, httpd.conf or server.xml i seached 
the web for info but can find anything, cam any one help?
Here are my configuration Files, i dont now what i'm missing to get this 
to work:

- httpd.conf

LoadModule jk2_module modules/mod_jk2.so

-jk2.properties

# Set the desired handler list
 handler.list=request,container,channelSocket
# Socket Configuration
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10

-server.xml

<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="100" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
     to -1 -->
<!-- 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" redirectPort="8443"
               acceptCount="10" debug="0" connectionTimeout="0"
               useURIValidationHack="false"
               
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

-workers2.properties

[logger]
level=DEBUG

[config:]
file=/usr/local/apache/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

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

#Share memory handling. Needs To be set.
[shm:]
info=Scoreboard. Required for reconfiguration and status with 
multiprocess servers
file=/usr/local/apache/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

#Socket Channel, explicity set port and host
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

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

[status:status]
info=Status worker, displays runtime informations

[vm:]
info=Parameters used to load a JVM in the server process
classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Djava.class.path=${TOMCAT_HOME}/bin/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
disabled=1

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes
group=status:
worker=status:status

[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=0

[uri:/examples/servlet/*]
info=Prefix mapping

[uri:/examples/*.jsp]
info=Extension mapping

[uri:/examples/*]
info=Map the whole webapp

[uri:/cocoon/*]
worker=apj13:localhost:8009
#context=/cocoon

Thanks
Julio
jume@telnor.com





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


Mime
View raw message