|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Apache and Tomcat integration
Hello,
I am new to Apache. I followed the directions in the following link URL (and many many other links as well) and passed all the verification steps ("Checking Your Installation") at the end, especially I was able to get the same static page by pointing to URL (my Tomcat port=8080) and URL (my Apache port=80). However, when I clicked on "execute", it only work for Tomcat, not for Apache. It seems to me the request didn't forward correctly to the Tomcat servlet/jsp engine, hence only worked for static, not dynamic, pages. Could someone please help? I am using WindowXP Pro, Tomcat 4.1.18, Apache 2.0.44, and mod_jk-2.0.43.dll |
|
#2
|
||||
|
||||
|
If http://localhost:8080/examples/jsp/index.html is working then what is your problem? Your Tomcat is running!
Apache and Tomcat are two seperated server application. You can configure Tomcat to run on port 80 if you want, but by default Tomcat install itself on port 8080. That's mean by default this path http://localhost/examples/jsp/index.html shouldn't return any valid content at all cause you are not accessing Tomcat! So where you calling Execute that did run?
__________________
Help me, help you, help others...
|
|
#3
|
|||
|
|||
|
If you follow URL you will see at the end there are some verification steps that make sure that the installation was successful. I had no problem with those steps. However, on the 'examples' page bundled with Tomcat, there are links of 'execute' that would run the jsp. I clicked on that link both on Tomcat and Apache (differnetialed only by port number), only the jsp from Tomcat ran but not the one from Apache.
Is that supposed to be so? I thought once you integrated Apache and Tomcat correctly, you could point the browser to Apache, and it would transfer/redirect to Tomcat's servlet engine if the page was a servlet/jsp. |
|
#4
|
||||
|
||||
|
Ok I see what your problem is now. I don't know why Jsp is not serving out of the Apache. I am guessing the JK won't wokr with new version of Apche2 and Tomcat4.1, because according to Tomcat site, JK connector is now deprecated. Try using Cayote JK2 instead. Here is the doc:
http://jakarta.apache.org/tomcat/to.../config/jk.html |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Apache and Tomcat integration |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|