File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Apache Server don't recognized JSP code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Apache Server don Watch "Apache Server don New topic

Apache Server don't recognized JSP code

Gerry Mueller

Joined: Dec 30, 2009
Posts: 17
Hello java-ranchers,

I have a problem and It'll be very nice if someone have and idea how to solve this problem.

I programmed a webapplication with tomcat (v. 6.x) on eclipse. Now I want to put the application on a Apache server of our firm.

But whe do it, jsp-code are still shown in the html-page. The most of my pages are jsp-pages and Apache webserver don't recognize them.

How can I make this possible?

Thanks a lot for any answer.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
How did you hook up Tomcat to the Apache server? Apache httpd doesn't know the first thing about JSPs on its own.
parampreet sethi

Joined: Aug 03, 2009
Posts: 27

Hi Gerry,

You will have to use mod_jk connector to connect Apache with your tomcat server. So that it can route the requests to Tomcat, which will be served by the Tomcat server, for instance your jsps will be served by Tomcat server.

For more details on how to connect Apache to tomcat using mod_jk module you can refer,

Hope it helps.


Gerry Mueller

Joined: Dec 30, 2009
Posts: 17
Hi Guys,

thanks a lot for your usefull tips. That's true. I use mod_jk and worker's setting to do it. But there were a little strong!

I agree. Here's the link:
subject: Apache Server don't recognized JSP code
It's not a secret anymore!