Hi,

  I'm quite new to server-related-topics and for about one week trying to succesfully 
connect my Apache 2 and Tomcat 5-Server. I want the static content being delivered by 
Apache and the *.jsp-files passed to Tomcat. I downloaded the JK-Connector mod_jk 
1.2.5.dll for windows (XP pro) and copied it to the "apache_root/modules"-directory. 
Then I tried to configure all necessary files but obviously failed, since it still 
doesn't work.

---------------------
my httpd.conf:
---------------------

LoadModule jk_module modules/mod_jk1.dll

# JkWorkers-Datei
JkWorkersFile _TomcatRoot_/conf/workers.properties
JkLogFile _TomcatRoot_/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkRequestLogFormat "%H %m %p %U %v %w"
JkMount /*.jsp worker1
JkMount /servlet/* worker1

Alias /examples "_TomcatRoot_/webapps/jsp-examples"
<Directory "_TomcatRoot_/webapps/jsp-examples">
  Options Indexes FollowSymLinks
</Directory>
JkMount /examples/servlet/* worker1
JkMount /examples/*.jsp worker1

--------------------------------
my workers.properties
--------------------------------

workers.tomcat_home=_TomcatHome_
workers.java_home=c:\Sun\AppServer\jdk
ps=\
worker.list=worker1

worker.worker1.type=ajp13
worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.cachesize=10 
worker.worker1.cache_timeout=600 
worker.worker1.socket_keepalive=1 
worker.worker1.socket_timeout=300 


I can access Tomcat's  /jsp-examples/ through http://localhost/examples/ - but when I 
try to run an example I get Tomcat's 404 error-site. (Java_Home- is set correctly and 
I don't use pathnames with spaces) Now I'm stuck. I guess the *.jsp-file is 
successfully handed to Tomcat, since if it wasn't there wouldn't be Tomcat's "http 
status 404"-error-site.(or am I wrong?) But then it cannot execute the *.JSPs. Now I 
assume that it might have something to do with the server.xml, since in most of the 
HOWTOs I read the user is told to change something there. But they all refer to 
elements in the server.xml that don't exist in mine- neither commented nor 
uncommented. Since most of the HOWTOs where about Tomcat 4.x (and unix) I guess that 
the server.xml might have changed with the new release of Tomcat. Can anynone tell me 
what I have to do to get Apache 2 with Tomcat 5 up and running?

Many thanks in advance,
Stephan Herzog


Reply via email to