You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark Baumann <ba...@gmx.net> on 2003/02/07 13:20:38 UTC
Problems with mod_jk
Hello!
I have a problem getting Tomcat+Apache connected with mod_jk
I installed Apache 2.0.43 and Tomcat 4.1.18 each works fine, alone.
When I try to use the specific mod_jk-2.0.43 or mod_jk2, or mod_webapp
for windows NT4, each time I get the same error.
-snip-
Cannot load c:\Programme\Apache_Group\Apache\modules\mod_jk-2.0.42.dll into
server
/*translated from German:)*/
the requested procedure could not be found
-snap-
I have searched the web and queried google but I found nothing apropriate.
Perhaps someone had the same Problem or can give my a hint what to do.
--
Mit freundlichen Gruessen/best regards
Mark Baumann
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Problems with mod_jk
Posted by fred <ma...@wanadoo.fr>.
Hello,
you must download the "mod_jk2.0.43.dll".
Install your Apache 2.0.43 not in program Files !!
For me, i have an "ApacheGroup" with "Apache2" and "Tomcat4". Without
spaces !!
Install Tomcat4 not in service NT !!
Load this module in your "httpd.conf"...
You must create in your "Apache/logs" 3 files: "stdout.log", "stderr.log"
and "jk2.shm".
Create in your Apache/conf a file: "workers2.properties" with this text:
[logger]
level=DEBUG
[config:]
#file=${serverRoot}/conf/workers2.properties
file=c:/Apache2/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=${serverRoot}/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=${serverRoot}/logs/jk2.shm
size=1000000
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
[lb:lb]
info=Default load balancer.
debug=0
#[lb:lb_1]
#info=A second load balancer.
#debug=0
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009
#[channel.socket:localhost:8019]
#info=A second tomcat instance.
#debug=0
#tomcatId=localhost:8019
#lb_factor=1
#group=lb
#group=lb_1
#disabled=0
#[channel.un:/opt/33/work/jk2.socket]
#info=A second channel connecting to localhost:8019 via unix socket
#tomcatId=localhost:8019
#lb_factor=1
#debug=0
[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess
[status:]
info=Status worker, displays runtime informations
[vm:]
info=Parameters used to load a JVM in the server process
#JVM=C:\jdk\jre\bin\hotspot\jvm.dll
OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar;c:/Tomcat/server/lib/comm
ons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=0
[worker.jni:onStartup]
info=Command to be executed by the VM on startup. This one will start
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=start
disabled=0
stdout=c:/Apache2/logs/stdout.log
stderr=c:/Apache2/logs/stderr.log
[worker.jni:onShutdown]
info=Command to be executed by the VM on shutdown. This one will stop
tomcat.
class=org/apache/jk/apr/TomcatStarter
ARG=stop
disabled=0
[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
#[uri:127.0.0.1:8003]
#info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test
it
#alias=myVirtualHost:8003
#[uri:127.0.0.1:8003/ex]
#info=Example webapp in the virtual host. It'll go to lb_1 ( i.e.
localhost:8019 )
#context=/ex
#group=lb_1
[uri:/examples]
info=Example webapp in the default context.
context=/examples
debug=0
#[uri:/examples1/*]
#info=A second webapp, this time going to the second tomcat only.
#group=lb_1
#debug=0
[uri:/examples/servlets/*]
info=Prefix mapping
[uri:/examples/*.jsp]
info=Extension mapping
[uri:/examples/*]
info=Map the whole webapp
[uri:/examples/servlets/HelloW]
info=Exampel with debug enabled.
debug=10
After create in your "Tomcat/conf" a file: "jk2.properties" with this text:
## THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.
## COMMENTS WILL BE _LOST_
## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.
# Override the default port for the socketChannel
# channelSocket.port=8019
# Default:
# channelUnix.file=${jkHome}/work/jk2.socket
# Just to check if the the config is working
shm.file=c:/Apache2/logs/jk2.shm
# In order to enable jni use any channelJni directive
channelJni.disabled = 0
# And one of the following directives:
# apr.jniModeSo=/opt/apache2/modules/mod_jk2.so
# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
apr.jniModeSo=inprocess
Finally, add to your PATH variable the path for "JAVA_HOME" and
"JAVA_HOME/bin".
Set 2 news environnement variables like this: "TOMCAT_HOME=C:\the directory
of Tomcat" and "CATALINA_HOME=C:\the directory of Tomcat".
Reestart and go to http://localhost/examples.
Normally it's OK for all the examples servlets and "jsp".
Fred
----- Original Message -----
From: "Mark Baumann" <ba...@gmx.net>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, February 07, 2003 1:20 PM
Subject: Problems with mod_jk
> Hello!
>
> I have a problem getting Tomcat+Apache connected with mod_jk
> I installed Apache 2.0.43 and Tomcat 4.1.18 each works fine, alone.
> When I try to use the specific mod_jk-2.0.43 or mod_jk2, or mod_webapp
> for windows NT4, each time I get the same error.
>
> -snip-
> Cannot load c:\Programme\Apache_Group\Apache\modules\mod_jk-2.0.42.dll
into
> server
> /*translated from German:)*/
> the requested procedure could not be found
> -snap-
>
> I have searched the web and queried google but I found nothing apropriate.
> Perhaps someone had the same Problem or can give my a hint what to do.
>
> --
> Mit freundlichen Gruessen/best regards
>
> Mark Baumann
>
> ---------------------------------------------------------------------
> 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