Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 7th, 2003, 05:54 PM
herkulis herkulis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 herkulis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old May 14th, 2003, 04:28 PM
digitsnake's Avatar
digitsnake digitsnake is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Orlando FL
Posts: 130 digitsnake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to digitsnake
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...

Reply With Quote
  #3  
Old May 14th, 2003, 07:18 PM
herkulis herkulis is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 2 herkulis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #4  
Old May 15th, 2003, 08:08 AM
digitsnake's Avatar
digitsnake digitsnake is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Orlando FL
Posts: 130 digitsnake User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via Yahoo to digitsnake
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Apache and Tomcat integration


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT