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 Tomcat and the fly likes Problem to run Servelet with mod_jk 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 » Products » Tomcat
Bookmark "Problem to run Servelet with mod_jk" Watch "Problem to run Servelet with mod_jk" New topic
Author

Problem to run Servelet with mod_jk

adam paul
Greenhorn

Joined: Jun 11, 2012
Posts: 2
Hi,

I am using tomact on centos.

I have installed apache and apache tomcat both on my server.

I want to run my tomcat and apache both on port 80
that's why i implemented mod_jk connector.
I want to run all my jsp and servlet file from the examples folder only.
for that i have use Jkmount point as /examples/* my_workers_property_name

when i run .war file it does not work.
what more settings i have to do.


Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Welcome to the Ranch!

Can you tell us what goes wrong? ItDoesntWorkIsUseless. Does your Tomcat run on port 8080*? If so, does the WAR file work on that without going through Apache HTTPD? If not, what do the Tomcat logs say?


* Tomcat can't run on port 80 if Apache HTTPD does. That's what the mod_jk is for, to get Tomcat to work through Apache HTTPD.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
adam paul
Greenhorn

Joined: Jun 11, 2012
Posts: 2
>>Does your Tomcat run on port 8080*?

Yes , It works well on port 8080.


>>does the WAR file work on that without going through Apache HTTPD?

Yes i am able to deploy .war file in webapps directory on port 8080 it works fine but not in the examples directory on port 8080

I have configured the jkmount point to /examples/ * my_property_name but i am enable deploy a .war file in examples folder.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem to run Servelet with mod_jk
 
Similar Threads
Apache and Tomcat Integration using mod_jk for windows?
Help setting jforum and Apache->Tomcat connector
Apache - tomcat configuration
error on making tomcat and apache work together
Apache Tomcat5 redirection. Status 404