Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JSP on Apache displays source-code instead of running!

Status
Not open for further replies.

andersj

IS-IT--Management
Sep 29, 2003
1
SE
Hello...

I have a problem with my Linux RH9/Apache/Tomcat setup!

Versions:
RedHat 9 with Apache RPM 2.0.40
J2SE SDK version 1.4.2_01 (also tried 1.4.1_05)
Tomcat version 4.1.27
mod_jk.so compiled for RH9 with Apache 2.0.40

What works:
- When I connect to I see the default test page.
- When I connect to (just a simple test... <? echo &quot;Hello World!&quot;; ?> ) it works fine.
- When I connect to I see the default Tomcat page and the jsp and servlet examples work like a dream.

The problem is:
- When I connect to I see the directory listing and when I click on the jsp or servlets directory the corresponding html page is displayed. However when I click Execute on any .jsp file I get the jsp source-code displayed instead of the actual jsp file being run. When I click Execute on any servlet I get Error 404, File not found.

I have followed the following How-To's without success!
- - - -
Still no luck... What am I missing???
Please HELP me!!!!

/Anders
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top