aspose file tools*
The moose likes Tomcat and the fly likes Configuring Tomcat with Apache for load balancing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Tomcat with Apache for load balancing" Watch "Configuring Tomcat with Apache for load balancing" New topic
Author

Configuring Tomcat with Apache for load balancing

Parthiban Malayandi
Ranch Hand

Joined: Apr 15, 2008
Posts: 70
Hi all,

First of all I'm not sure I'm posting in a correct forum.If not sorry for that .

I have configured Apache Http Server with two Tomcat instance for load balancing. I did that to learn about HttpSessionActivationListener

The problem is the Tomcat is serving Static HTML pages but it couldn't able to serve Servlet or JSP page.

I have a web application named "Chapter6" .

Following are the configuration entries in Apache Http server
======================================



Following is the worker.properties
======================================



Following is the exception I'm getting when I invoke JSP page
======================================



Please tell me is any other thing that I need to configure to get dynamically generating pages like JSPs

Thanks in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
Does the account that runs Tomcat have access to the file in question?


Ping & DNS - my free Android networking tools app
Parthiban Malayandi
Ranch Hand

Joined: Apr 15, 2008
Posts: 70
Hi Ulf,

Thanks for your reply. Can you tell me how do I check that ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
Check the permission on that file, and compare it to the permissions of whatever account the Tomcat instance runs under.
Parthiban Malayandi
Ranch Hand

Joined: Apr 15, 2008
Posts: 70
Hi Ulf,

I found where is the problem . Actually I download Tomcat in zip format and used it. Later I created it as service in Windows (using 'sevice install' command ) to configure it to Apache Http Server.

When I use this as service with Apache Http server it's not serving the dynamic things(servlets and JSP) but If I start it as standalone Tomcat using batch file(startup.bat) It's works well.

I even tried logged as administrator but it didn't help .

I guess I need to add some permission to the service which I created for Tomcat.

Can you tell me how to add permissions for the Tomcat instance service in Windows ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Configuring Tomcat with Apache for load balancing