This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Apache Server don Watch "Apache Server don New topic
Author

Apache Server don't recognized JSP code

Gerry Mueller
Greenhorn

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
Marshal

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


Ping & DNS - my free Android networking tools app
parampreet sethi
Greenhorn

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, http://param-techie.blogspot.com/2010/03/setting-up-apache-and-tomcat-for-web.html

Hope it helps.

Regards,
Param


Param
Gerry Mueller
Greenhorn

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!

thanks!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache Server don't recognized JSP code
 
Similar Threads
apache2 running jsp ,asp,aspx file ?
Apache and Tomcat questions
JSP file location under Tomcat
Apache Tomcat configration
Apache Web Server and Tomcat container.