aspose file tools*
The moose likes Tomcat and the fly likes Context Attribute Replication in Tomcat 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Context Attribute Replication in Tomcat 6" Watch "Context Attribute Replication in Tomcat 6" New topic
Author

Context Attribute Replication in Tomcat 6

Ramakrishna Gutha
Greenhorn

Joined: Jan 18, 2010
Posts: 16
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

Joined: Jan 18, 2010
Posts: 16
Hello,

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


Thanks
GRK
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Context Attribute Replication in Tomcat 6