-
1. Re: Multiple wars using session backed by FileCacheStore
pferraro Mar 24, 2012 9:38 AM (in response to safetytrick)Ah. This is definitely a bug. Each web application uses a cache named using the host (i.e. default-host) and context path, which in the case of the ROOT context, contributes nothing - resulting in it attempting to use a parent directory of the location used by other contexts.
https://issues.jboss.org/browse/AS7-4283
Unfortunately, this is going to cause bigger issues that just an annoying log message. If you undeploy the ROOT war, the persisted sessions for all the other contexts will get inadvertently purged.
I can think of at least 1 workaround off the top of my head. It involves adding a new cache configuration (let's call it http-session-local-root) for use by the ROOT context, that uses a unique relative path, specified by <file-store path="..."/>.
You'll then need to specify the cache name in a jboss-web.xml file and deploy it with your application.
e.g.
<jboss-web>
<replication-config>
<cache-name>web.http-session-local-root</cache-name>
</replication-config>
</jboss-web>
-
2. Re: Multiple wars using session backed by FileCacheStore
safetytrick Mar 26, 2012 1:01 PM (in response to pferraro)The workaround was perfect, thanks!
-
3. Re: Multiple wars using session backed by FileCacheStore
pferraro Mar 26, 2012 1:09 PM (in response to safetytrick)FYI - the issue is fixed in master.