liu4lin / memcached-session-manager

Automatically exported from code.google.com/p/memcached-session-manager
0 stars 0 forks source link

msm + jsf + failover node = This XML file does not appear to have any style information associated with it #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.- Install two tomcat instances in separate servers 
2.- Configure LoadBalancing with mod_jk in other server (sticky sessions=true)
3.- Configure two memcached nodes with sticky=true
4.- start tomcat servers
5.- Launch web aplications 
6.- Testing loadbalancing and session replication stopping one memcached node 
(the one is serving the aplication)
7.- trying to navigate to another page the Error is shown:
"This XML file does not appear to have any style information associated with 
it. The document tree is shown below."
8.-After a few seconds, I navigate to another page, and the page is rendered.

Is there a way to prevent this error? 

extra configurations:

context.xml
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
    sticky="true"
    memcachedNodes="n1:192.168.1.6:11211,n2:192.168.1.3:11211"
    failoverNodes="n2"
    requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
    transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"
    />

I also got mapped in each application web.xml the following:
<servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.xhtml</url-pattern>
        <url-pattern>*.jsf</url-pattern>
        <url-pattern>*.faces</url-pattern>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>

Original issue reported on code.google.com by maxtorz...@gmail.com on 9 Jul 2013 at 8:34

GoogleCodeExporter commented 9 years ago
Discussed here:
https://groups.google.com/d/msg/memcached-session-manager/r8A_V5I-e-E/Yhwj050WZi
IJ

Original comment by martin.grotzke on 19 Jul 2013 at 10:03