• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Apache Server don't recognized JSP code

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 27
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic