After a fresh install of 4.1.12 and mod_jk2 on W2k, Tomcat will not 
display html pages. 

Tomcat stand-alone works fine on port 8080. 

When viewing the /examples, tomcat delivers the expected directory 
listing.  Clicking on either of the directories results in a page not 
found error.  This is the error I see in the error log when I click on the 
examples directory in the listing;
[Thu Sep 26 15:38:01 2002] [error] [client 10.10.10.2] File does not 
exist: index.html, referrer: http://misuse.nat.tus/examples/

But if I type in http://misuse.nat.tus/examples/jsp/include/include.jsp I 
get the expected result and tomcat does it's thing through mod_jk2, but 
typing in http://misuse.nat.tus/examples/jsp/include/inc.html results in 
another page not found error.  This is the error I see in the error log.
[error] [client 10.10.10.2] File does not exist: inc.html

This worked on TC 4.1.10.  I've upgraded Tomcat by itself, the same 
configuration files where used as there was no change to 
workers2.properties or jk2.properties files in the src's.

Does anyone know what needs to be changed for the default install to work 
again?  I assumed that the change to the conf/web.xml for the security 
problem has something to do with it, but from looking at it I just can't 
see how.  The DefaultServlet is as it should be, the invoker is commented 
out.  Un-commenting the invoker does not all html to be displayed. 

It looks like mod_jk2 might be getting confused about who is the default 
webserver, in the errors above show both my ip address and FQDN once as 
the client and once as the referrer. 

Here are my configs any help is appreciated.

[logger]
level=DEBUG

[config:]
file=c:/Apache2/conf/workers2.properties
debug=9
debugEnv=0

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

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess 
servers
file=c:/Apache2/logs/jk2.shm
size=1000000
debug=9
disabled=0

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

[lb:lb]
info=Default load balancer.
debug=9

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

[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/commons-logging.jar
OPT=-Dtomcat.home=c:/Tomcat
OPT=-Dcatalina.home=c:/Tomcat
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:/examples]
info=Example webapp in the default context. 
context=/examples
debug=9

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

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

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

[uri:/examples/servlet/HelloW]
info=Exampel with debug enabled.
debug=10

--------------------------jk2.properties--------------------------

## 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=8009
# 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

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

Reply via email to