Hi,

I'm desperately trying to get those combo together, googling the net, reading all kind of posts, and trying many configurations, but no use. Here's what I've done exactly:

1. Installed all of them, brought them to work as stand alone, and sat JAVA_HOME environment variable.

2. I got both binary and source versions of the jk2 connector, took the file mod_jk2-1.3.27.dll and placed it in E:\Apache\module, and the suitable mod_jk2.c file from the src folder of the connector and placed it in the same 'modules' folder.

3. I updated my httpd.conf to include the following:

AddModule mod_jk2.c
LoadModule jk2_module modules/mod_jk2-1.3.27.dll

4. Took workers2.properties file from the connector src folder and placed it in the E:\Apache\conf directory. Here is how the related part of that file looks:

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess servers
file=E:\Apache\logs\jk2.shm
size=1048576
debug=0
disabled=0


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

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

[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
classpath=${TOMCAT_HOME}/bin/tomcat-jni.jar
classpath=${TOMCAT_HOME}/server/lib/commons-logging.jar
OPT=-Dtomcat.home=${TOMCAT_HOME}
OPT=-Dcatalina.home=${TOMCAT_HOME}
OPT=-Xmx128M
#OPT=-Djava.compiler=NONE
disabled=1

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

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

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

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

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

5. Then I took the file jk2.properties from the connector src folder and copy-pasted it in E:\Tomcat-4.1.27\conf directory, and it reads:

handler.list=request,container,channelSocket
channelSocket.port=8009
channelSocket.address=127.0.0.1
channelSocket.maxPort=port+10
shm.file=E:\Apache\logs\jk2.shm

6. I left server.xml untouched, saved all files, and started Tomcat, then Apache. Tomcat started OK with no errors in the log files, and when started Apache nothing went wrong except this error in the jk2.log file (sorry for the long dump):

( info) [jk_logger_file.c (184)]: Initializing log file E:\Apache\logs\jk2.log
( info) [jk_logger_file.c (184)]: Initializing log file e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping E:\Apache\logs\jk2.shm
( info) [jk_logger_file.c (184)]: Initializing log file e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping E:\Apache\logs\jk2.shm
(debug) [jk_uriMap.c (377)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /jkstatus/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples context /examples host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples1/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/*.jsp context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/HelloW context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri / context / host *
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples lb:lb
(debug) [jk_uriEnv.c (347)]: uriEnv.init() context mapping /examples=lb:lb
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples/servlet/HelloW lb:lb
(debug) [jk_uriEnv.c (356)]: uriEnv.init() exact mapping /examples/servlet/HelloW=lb:lb
( info) [jk_workerEnv.c (403)]: workerEnv.init() ok E:\Apache\conf\workers2.properties
( info) [jk_logger_file.c (184)]: Initializing log file E:\Apache\logs\jk2.log
( info) [jk_logger_file.c (184)]: Initializing log file e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping E:\Apache\logs\jk2.shm
( info) [jk_logger_file.c (184)]: Initializing log file e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping E:\Apache\logs\jk2.shm
(debug) [jk_uriMap.c (377)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /jkstatus/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples context /examples host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples1/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/*.jsp context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/HelloW context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri / context / host *
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples lb:lb
(debug) [jk_uriEnv.c (347)]: uriEnv.init() context mapping /examples=lb:lb
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples/servlet/HelloW lb:lb
(debug) [jk_uriEnv.c (356)]: uriEnv.init() exact mapping /examples/servlet/HelloW=lb:lb
( info) [jk_workerEnv.c (403)]: workerEnv.init() ok E:\Apache\conf\workers2.properties
( info) [jk_logger_file.c (184)]: Initializing log file E:\Apache\logs\jk2.log
( info) [jk_logger_file.c (184)]: Initializing log file e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping E:\Apache\logs\jk2.shm
( info) [jk_logger_file.c (184)]: Initializing log file e:/apache/logs/jk2.log
(error) [jk_shm.c (358)]: shm.create(): error mmapping E:\Apache\logs\jk2.shm
(debug) [jk_uriMap.c (377)]: uriMap.init() Fixing Host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /jkstatus/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples context /examples host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples1/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/*.jsp context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/* context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri /examples/servlet/HelloW context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri (null) context (null) host *
(debug) [jk_uriMap.c (464)]: uriMap: fix uri / context / host *
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples lb:lb
(debug) [jk_uriEnv.c (347)]: uriEnv.init() context mapping /examples=lb:lb
(debug) [jk_uriEnv.c (284)]: uriEnv.init() map /examples/servlet/HelloW lb:lb
(debug) [jk_uriEnv.c (356)]: uriEnv.init() exact mapping /examples/servlet/HelloW=lb:lb
( info) [jk_workerEnv.c (403)]: workerEnv.init() ok E:\Apache\conf\workers2.properties


And of course requesting the resource http://localhost/examples/servlets/index.html for example
is returning an "Internal Server Error" message.


It came to me that the problem is in creating the jk2.shm file, as after starting both server I couldn't find it (it should be generated afterwards, right?). I also saw somewhere that workers2.properties might not be seen by the JK2 connector and therefore a setting like creation of the shm file is not taking effect, so I placed this line at the end of httpd.conf:

JkSet config.file E:\Apache\conf\workers2.properties

But again, nothing has changed.

I'm really out of options here, have anyone get these successfully working together?!

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to