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 Re: mod_jk2 tomcat4.1.29 apache2.0.48
Date Wed, 19 Nov 2003 02:11:41 GMT
Hi,

Here is how i configured ir with Apache 2.0.47 and Tomcat 4.1.27 on a 
Solaris 7 SPARC.

Julio


#cd /opt/temp
#cp apache-ant-1.5.4-bin.tar.gz /opt
#cp tomcat-4.1.27.tar.gz /opt
#cd /opt
#gunzip apache-ant-1.5.4-bin.tar.gz
#tar -xvf apache-ant-1.5.4-bin.tar
#gunzip tomcat-4.1.27.tar.gz
#tar -xvf tomcat-4.1.27.tar
#ln -s jakarta-tomcat-4.1.27 Tomcat

#cd /opt/Tomcat/bin
#vi startup.sh
PATH=/usr/local/bin:/usr/ccs/bin:/usr/local/mysql/bin:/usr/local/ssl/bin:/usr/java/bin:/opt/apache-ant-1.5.4/bin:/opt/Tomcat/bin:$PATH
LD_LIBRARY_PATH=/usr/local/lib:/lib:/usr/lib:/usr/local/mysql/lib:/usr/local/ssl/lib:/opt/apache-ant-1.5.4/lib:$LD_LIBRARY_PATH
MANPATH=/usr/local/man:/usr/local/mysql/man:/usr/local/ssl/man:$MANPATH
JAVA_HOME=/usr/java
AC_MACRODIR=/usr/local/share/autoconf
CLASSPATH=/usr/java/lib/tools.jar:usr/java/lib:/opt/apache-ant-1.5.4/lib:/usr/java/src.zip:/usr/java/lib/dt.jar
CATALINA_HOME=/opt/Tomcat
APACHE2_HOME=/usr/local/apache
ANT_HOME=/opt/apache-ant-1.5.4
CATALINA_OPTS='-Djava.awt.headless=true'
CATALINA_BASE=/opt/Tomcat

export PATH LD_LIBRARY_PATH MANPATH JAVA_HOME AC_MACRODIR CLASSPATH 
CATALINA_HOME APACHE2_HOME ANT_HOME CATALINA_OPTS CATALINA_BASE
#
#cd /opt/temp
#cp mod_jk2.so.apache_2_0_47_tomcat_4_1 /usr/local/apache/modules
#cd /usr/local/apache/modules
#mv mod_jk2.so.apache_2_0_47_tomcat_4_1 mod_jk2.so
#cd /usr/local/apache/conf

#vi httpd.conf
#Dynamic Shared Object (DSO) Support
LoadModule jk2_module modules/mod_jk2.so
#

#cd /opt/Tomcat/conf
#vi jk2.properties
#Set the desired handler list
handler.list=request,container,channelSockets
#Socket Configuration
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
#

#cd /usr/local/apache/conf
#vi 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
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file: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


And that it http://localhost/examples/

Reference:
http://www.cymulacrum.net/tomcat/tomcat_mod_jk2.html

Julio



pablo garaitonandia wrote:

> Hey Folks,
>      I am having a bit of a challenge setting up mod_jk2 .  It seems 
> very different from its predecessor mod_jk.   I try putting diectives 
> in my httpd.conf just like I did with mod_jk and all I get is an error 
> stating that the objective is for a module that does not exist or it 
> is mispelled.   Could someone please guide me to the a definitive 
> guide on mod_jk2 , or even a snip at what my httpd.conf is supposed to 
> look like I would greatly appreciate it
> thank you ,
> Pablo
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message