#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    2
    Rep Power
    0

    Apache and Tomcat integration


    Hello,

    I am new to Apache. I followed the directions in the following link

    http://www.johnturner.com/howto/winxp-howto.html (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 http://localhost:8080/examples/jsp/index.html (my Tomcat port=8080) and http://localhost/examples/jsp/index.html (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. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Orlando FL
    Posts
    130
    Rep Power
    13
    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...
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    2
    Rep Power
    0
    If you follow http://www.johnturner.com/howto/winxp-howto.html, 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.
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2002
    Location
    Orlando FL
    Posts
    130
    Rep Power
    13
    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/tom...config/jk.html
    Help me, help you, help others...

IMN logo majestic logo threadwatch logo seochat tools logo