Solved

mod_jk and apache 2.0

Posted on 2004-08-30
5
496 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
change size of out.write buffer 1 87
servlet cookie finding by name 1 70
java cigar challenge 58 206
own marker interface 1 50
Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now