Win a copy of Rust Web Development this week in the Other Languages 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Context Attribute Replication in Tomcat 6

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

The servlet context attributes are not replicating.

As per the tomcat documentation http://tomcat.apache.org/tomcat-6.0-doc/config/cluster.html i have overridden the default Context implementation org.apache.catalina.core.StandardContext with org.apache.catalina.ha.context.ReplicatedContext but still the servlet context attributes are replicated.

The below is the configuration done in the server.xml

<Context path="/admin" docBase="/websites/www.izmoindy.com/ROOT/admin" debug="0" reloadable="true" allowLinking="true" className="org.apache.catalina.ha.context.ReplicatedContext">
<WatchedResource>/websites/www.izmoindy.com/ROOT/admin/WEB-INF/web.xml</WatchedResource>
<WatchedResource>/websites/www.izmoindy.com/ROOT/admin/WEB-INF/struts-config.xml</WatchedResource>
<WatchedResource>/websites/www.izmoindy.com/ROOT/admin/WEB-INF/faces-config.xml</WatchedResource>
<Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" docBase="" />
</Context>

Let me know if any modifications required?
Any suggestions would be highly appreciated.

Thanks
GRK
 
Ramakrishna Gutha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

The context attributes replication in Tomcat 6 is not done. Can anyone help in fixing this issue.


Thanks
GRK
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic