Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Server don't recognized JSP code

 
Gerry Mueller
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 27
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gerry Mueller
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic