Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Configuring Tomcat with Apache for load balancing

 
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
 
Rancher
Posts: 43016
76
  • 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: 43016
76
  • 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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic