• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring Tomcat with Apache for load balancing

 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the account that runs Tomcat have access to the file in question?
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ulf,

Thanks for your reply. Can you tell me how do I check that ?
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the permission on that file, and compare it to the permissions of whatever account the Tomcat instance runs under.
 
Parthiban Malayandi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic