tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gero Vermaas <Gero.Verm...@holland.sun.com>
Subject Can't get apache and Tomcat to work together
Date Sat, 01 Sep 2001 16:35:44 GMT
Hi,

I posted questions to the "users" mailing list several times, but 
unfortunately the answers to solve my problem was not there. Therefore 
i'll try the real guru's in the dev mailing list now.

The problem is that I can't get JSP pages to be accessed via Apache. 
When I request a JSP page I only get the JSP source back (instead of the 
generated HTML).

I'm using:
Linux Kernel 2.4.6
Apache version: 1.3.14
Tomcat version: 3.2.3
Mod_jk version:  tomcat-mod-3.2.2-1.i386.rpm

The mod_jk.log reports
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker, 
Found a match ajp13

So Apache seems to be configure correct. However, requests never seems 
to reach Tomcat:

When I do a telnet to port 8009 or 8007 I do get a response so tomcat 
seems to be listening on these ports. Requesting a page on port 8080 
(Tomcat direct without using apache) works fine.

I did increase the debug levels in mod_jk.conf and server.xml, but that 
did not give me more information. Both files are attached to this mail.
The console in which Tomcat is running only reports information when a 
request to port 8080 is done. For me this indicates that requests via 
Apache never reach Tomcat.

jasper.log reports:
2001-09-01 18:05:24 - Parent class loader is: AdaptiveClassLoader(  )
2001-09-01 18:05:24 - Scratch dir for the JSP engine is: 
/opt/jakarta-tomcat-3.2.3/work/localhost_8080%2Fexamples
2001-09-01 18:05:24 - IMPORTANT: Do not modify the generated servlets
2001-09-01 18:05:24 - Parent class loader is: AdaptiveClassLoader(  )
2001-09-01 18:05:24 - Parent class loader is: AdaptiveClassLoader(  )
2001-09-01 18:05:24 - Parent class loader is: AdaptiveClassLoader(  )

Only when a request to port 8080 is done more information is logged into 
jasper.log.

servlet.log reports:
2001-09-01 18:05:24 - path="/examples" :jsp: init
2001-09-01 18:05:24 - path="/admin" :jsp: init
2001-09-01 18:05:24 - path="" :jsp: init
2001-09-01 18:05:24 - path="/test" :jsp: init
2001-09-01 18:07:31 - path="/examples" :jsp: init

What else can I check to find the problem? Any help is appreciated!

Regards,

Gero Vermaas

Mime
View raw message