Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Context Attribute Replication in Tomcat 6

 
Ramakrishna Gutha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic