Solved

mod_jk and apache 2.0

Posted on 2004-08-30
5
500 Views
Last Modified: 2010-04-01
What do I have to do to get JSP's to run in the web root folder?

I have my apache set up to run php and perl and I added the Tomcat server and mod_jk

if I go to localhost/jsp-examples the examples are there and they work, but what I need, is to be able to put jsp's in the apache root folder and have it interpreted by tomcat.

any ideas?

Thanks!
0
Comment
Question by:k41d3n
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11935284
Apache htp server itself can't execute JSP pages. mod_jk redirects request to Tomcat server which will execute process request and return back to the Apache HTTPD server.
You should add following lines in your httpd.conf

LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
JkMount *.jsp  ajp13


And workers.properties file:
worker.list= ajp13
# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=Ip address of tomcat server
worker.ajp13.type=ajp13
0
 
LVL 2

Author Comment

by:k41d3n
ID: 11935428
When I make those changes in my http.conf file, then restart the apache server it fails to start.

I am actually using mod_jk2 not mod_jk that was my mistake in not saying so.

any ideas why it errors?
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11935542
have never worked with JK2. Only one thing I know that its configuration is differs from JK
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 11935563
Can only poin to site with config guide http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
0
 
LVL 27

Accepted Solution

by:
rrz earned 500 total points
ID: 11936231
I don't know anything about Apache stuff.
>but what I need, is to be able to put jsp's in the apache root folder and have it interpreted by tomcat.                
 But, I think you have to tell Tomcat where to find your JSP files(since you are not putting them in default location.  Please look at    
http://www.experts-exchange.com/Web/Web_Servers/Apache/Q_20883065.html 
rrz
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
Ever wonder what it's like to get hit by ransomware? "Tom" gives you all the dirty details first-hand – and conveys the hard lessons his company learned in the aftermath.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question