Configuration of Tomcat 7 Embedded

1,128 views
Skip to first unread message

Jimboy

unread,
Aug 23, 2011, 6:05:14 AM8/23/11
to memcached-session-manager
I am try to use memcache-session-manager with Tomcat 7 Embedded. I am
not sure how to configure correctly. I am doing it as follows:

MemcachedBackupSessionManager oManager = new
MemcachedBackupSessionManager();
oManager.setMemcachedNodes( "n1.localhost:8091" );
oManager.setSticky(false);
oManager.setLockingMode( "auto" );
oManager.setRequestUriIgnorePattern( ".*\\.(ico|png|gif|jpg|css|js)
$" );

oManager.setTranscoderFactoryClass( "de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory" );


m_Logger.debug( "Configuring Tomcat" );

m_Server = new Tomcat();
m_Server.setPort( 8080 );


String sBaseDir = System.getProperty( "entre.server.temp.dir" );
m_Logger.debug( "Tomcat using {} for its temporary files.",
sBaseDir );
m_Server.setBaseDir( sBaseDir );



m_Server.getEngine().setParentClassLoader( Thread.currentThread().getContextClassLoader() );
m_Server.getEngine().setManager( oManager );

m_Server.start();

However I am getting the following exception during startup:

INFO | jvm 1 | 2011/08/23 17:58:40 |
java.lang.reflect.InvocationTargetException
INFO | jvm 1 | 2011/08/23 17:58:40 | at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
eap.appliance.Host.performApplianceExecute(Host.java:94)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
eap.appliance.Host.start(Host.java:223)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.tanukisoftware.wrapper.WrapperManager$12.run(WrapperManager.java:
3987)
INFO | jvm 1 | 2011/08/23 17:58:40 | Caused by:
org.apache.catalina.LifecycleException: Failed to start component
[StandardServer[-1]]
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.startup.Tomcat.start(Tomcat.java:336)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
eap.appliance.tomcat.WebAppliance.execute(WebAppliance.java:62)
INFO | jvm 1 | 2011/08/23 17:58:40 | ... 7 more
INFO | jvm 1 | 2011/08/23 17:58:40 | Caused by:
org.apache.catalina.LifecycleException: Failed to start component
[StandardService[Tomcat]]
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:
727)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
INFO | jvm 1 | 2011/08/23 17:58:40 | ... 9 more
INFO | jvm 1 | 2011/08/23 17:58:40 | Caused by:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Tomcat]]
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:
443)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
INFO | jvm 1 | 2011/08/23 17:58:40 | ... 11 more
INFO | jvm 1 | 2011/08/23 17:58:40 | Caused by:
org.apache.catalina.LifecycleException: Failed to initialize component
[de.javakaffee.web.msm.MemcachedBackupSessionManager[Tomcat]]
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:
1022)
INFO | jvm 1 | 2011/08/23 17:58:40 | at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:
291)
INFO | jvm 1 | 2011/08/23 17:58:41 | at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148)
INFO | jvm 1 | 2011/08/23 17:58:41 | ... 13 more
INFO | jvm 1 | 2011/08/23 17:58:41 | Caused by:
java.lang.ClassCastException: org.apache.catalina.core.StandardEngine
cannot be cast to org.apache.catalina.Context
INFO | jvm 1 | 2011/08/23 17:58:41 | at
org.apache.catalina.session.ManagerBase.initInternal(ManagerBase.java:
549)
INFO | jvm 1 | 2011/08/23 17:58:41 | at
org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
INFO | jvm 1 | 2011/08/23 17:58:41 | ... 17 more

I am using 1.5.1

Any ideas or some explicit instructions for Tomcat 7 Embedded?

Thanks
Jim

Martin Grotzke

unread,
Aug 23, 2011, 10:13:16 AM8/23/11
to memcached-se...@googlegroups.com
Hi,

the integration tests for msm use embedded tomcat. To reuse tests for
both tomcat6 and tomcat7 the (in tomcat7 deprecated) class
org.apache.catalina.startup.Embedded is used. Not sure if you're using
this also or the newly introduced Tomcat class.

You can have a look on how to put together things with Embedded here:
https://github.com/magro/memcached-session-manager/blob/master/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java#L425

AFAICS from your logs you have put the manager in the wrong context:


java.lang.ClassCastException: org.apache.catalina.core.StandardEngine
cannot be cast to org.apache.catalina.Context

So it seems you have added the manager to the engine and not the
context. The correct way is shown in the TestUtils in line 474:
https://github.com/magro/memcached-session-manager/blob/master/core/src/test/java/de/javakaffee/web/msm/integration/TestUtils.java#L474

Cheers,
Martin

signature.asc

James P. Moring

unread,
Aug 23, 2011, 2:04:45 PM8/23/11
to memcached-se...@googlegroups.com
Hi Martin

Thanks for the reply.

Yes I have figured that out now setting manager in the wrong spot. I am no focused in the right area.

Thanks for the suggestion to look at the tests. I have done so but I am a little puzzled. As of Tomcat 7 Embedded  no longer use Embedded but uses Tomcat class instead. I have MemcachedBackupSessionManager set now in the context for each of my webbapps. I am having to manually call start() for each. Is that right? If I don't it is never starts automatically. I think it is being started prematurely as I am getting a NullPointerException when the TransCoder is being instantiated. _manager.getContainer().getLoader().getClassLoader(). The problem is that at this point the WebappLoader is null. So I guess the question is when and how do I start each manager.

Thanks for your time
Jim
--
James P. Moring
President

The Kampilan Group Inc.

People ... Process ... Performance!

214-233-7050
james....@kampilangroup.com

I am currently at our Philippines development center EST+12:00

James P. Moring

unread,
Aug 23, 2011, 2:22:16 PM8/23/11
to memcached-se...@googlegroups.com
I just read your e-mail more closely. Yes I am using Tomcat and not Embedded.

The problems seem to boil down to when and how the manager is started.

Thanks


On 8/23/2011 10:13 PM, Martin Grotzke wrote:

James P. Moring

unread,
Aug 23, 2011, 6:39:14 PM8/23/11
to memcached-se...@googlegroups.com
I now have msm loading and responding to requests to the app. However nothing is being saved to the cache, the session  does not appear in the msm format (node id not postpended) and Tomcat is still attempting to write out any active sessions during shutdown. Those three things lead me to believe I am not out of the woods yet. BTW I am using membase as my memcached server.

Also, The MSM for each webapp does not start on it own when Tomcat starts. I have to start them manually after Tomcat completes its startup. Is that the correct procedure?
A  correct configuration example for Tomcat 7 new Embedding model would be appreciated. I feel like I am grasping at straws. Even just a good narrative  of the steps and the required config elements would go a long way

Thanks
Jim

Martin Grotzke

unread,
Aug 23, 2011, 7:23:33 PM8/23/11
to memcached-se...@googlegroups.com
Hi Jim,

do you still see the NPE in loadTranscoderFactoryClass when
_manager.getContainer().getLoader().getClassLoader()
is invoked?
In this case you might try to change this to
Thread.currentThread().getContextClassLoader()
and see if this works.

When checking your config again I noticed that your memcachedNodes
config is wrong: you should use
"n1:localhost:8091"
instead of
"n1.localhost:8091"
If you're using msm 1.5.1 you can also just set "localhost:8091".

Regarding the manual start of msm: msm should be started when tomcat is
started. Hopefully with the above changes it works for you.

If not I see several options:
1) create a simple sample that you can share (e.g. on github) so that I
can have a look at it
2) try to use Embedded instead of Tomcat and see if this works (it
definitely should)
3) clarify with tomcat devs (or tomcat-users) what's going on / what's
wrong.

Unfortunately my time is currently very limited so that I can't set up a
version using o.a.c.startup.Tomcat for you.

Cheers,
Martin

signature.asc

Jimboy

unread,
Aug 23, 2011, 10:53:56 PM8/23/11
to memcached-session-manager
Thanks I had already fixed the node name. I am no longer getting NPE
(I was calling msm start to early before Tomcat started)



It appears to be running except that Session ID does not appear to be
right and nothing is ever written to memcached server even though I am
using non-sticky sessions and Tomcat
still trying to save the session state when it is stopped

I figured one last go at it before I move on and find something else.

Thanks you so much for all your time.
Jim

Here is the logging output:

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
bg_highlight-soft_100_f6f6f6_1x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/images/ui-
bg_flat_75_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - No session found in session map for
FE5A3BDB179AFCC81D9614C7488F9489

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=FE5A3BDB179AFCC81D9614C7488F9489, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
bg_flat_75_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/images/ui-
icons_666666_256x240.png.xhtml?ln=primefaces-flick ==================

DEBUG - No session found in session map for
FE5A3BDB179AFCC81D9614C7488F9489

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=FE5A3BDB179AFCC81D9614C7488F9489, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
icons_666666_256x240.png.xhtml?ln=primefaces-flick ==================

DEBUG - No session found in session map for
FE5A3BDB179AFCC81D9614C7488F9489

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=FE5A3BDB179AFCC81D9614C7488F9489, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
bg_glass_65_ffffff_1x400.png.xhtml?ln=primefaces-flick
==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/images/ui-
bg_flat_55_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - No session found in session map for
FE5A3BDB179AFCC81D9614C7488F9489

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=FE5A3BDB179AFCC81D9614C7488F9489, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
bg_flat_55_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/images/ui-
icons_0073ea_256x240.png.xhtml?ln=primefaces-flick ==================

DEBUG - No session found in session map for
FE5A3BDB179AFCC81D9614C7488F9489

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=FE5A3BDB179AFCC81D9614C7488F9489, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
icons_0073ea_256x240.png.xhtml?ln=primefaces-flick ==================

DEBUG - >>>>>> Request starting: /app/connections.xhtml
==================

DEBUG - INSPECTING: Prev theme = bluesky

DEBUG - INSPECTING: New theme = flick

DEBUG - INSPECTING: Current theme = flick

DEBUG - INSPECTING: Comment = Current Theme

DEBUG - INSPECTING: Name = theme

DEBUG - INSPECTING: Value = flick

DEBUG - Cookie saved

DEBUG - No session found in session map for
FE5A3BDB179AFCC81D9614C7488F9489

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=FE5A3BDB179AFCC81D9614C7488F9489, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/connections.xhtml
==================





On Aug 24, 7:23 am, Martin Grotzke <martin.grot...@googlemail.com>
wrote:
>  signature.asc
> < 1KViewDownload

Martin Grotzke

unread,
Aug 24, 2011, 1:33:38 AM8/24/11
to memcached-se...@googlegroups.com
On 08/24/2011 04:53 AM, Jimboy wrote:
> Thanks I had already fixed the node name. I am no longer getting NPE
> (I was calling msm start to early before Tomcat started)
Please post your current configuration, just that I know how you're
running it.

> It appears to be running except that Session ID does not appear to be
> right and nothing is ever written to memcached server even though I am
> using non-sticky sessions and Tomcat
> still trying to save the session state when it is stopped

Sounds like wrong tomcat/context/manager setup.

>
> I figured one last go at it before I move on and find something else.

Ok.

Does your app work with tomcat7 (not embedded but server) and msm? You
check this to rule out if it's the tomcat7 embedded stuff.

As I already wrote: if you put together a small sample how to put things
together I can check this.

Regarding logs: Do you have more logs and not just the stuff you
extracted? All output from de.javakaffee... is useful.

Cheers,
Martin

--
Dennis Brakhane, Martin Grotzke und Ole Langbehn GbR
Breitenfelder Str. 13c, 20251 Hamburg

signature.asc

Jimboy

unread,
Aug 24, 2011, 2:35:52 AM8/24/11
to memcached-session-manager

Thanks for the reply. Again I appreciate your help. Our servers are
running in amazon and we want to take advantage of the new
ElasticCache
I have a feeling this is going to make you very busy as you appear to
have the only Memcached backed Tomcat Session manager
A least that I can find. BTW our app works just fine from a TC7
embedded standpoint.

Thanks
Jim

protected void buildWebServer() throws Exception
{

m_Logger.debug( "Configuring Tomcat" );

m_Server = new Tomcat();
m_Server.setPort( 8080 );


String sBaseDir = System.getProperty( "entre.server.temp.dir" );
m_Logger.debug( "Tomcat using {} for as it temporary files.",
sBaseDir );
m_Server.setBaseDir( sBaseDir );

m_Server.enableNaming();


m_Server.getEngine().setParentClassLoader( Thread.currentThread().getContextClassLoader() );

File oAppBaseDir = getAppBaseDir();
m_Logger.debug( "Tomcat using {} to load web appliaction.",
oAppBaseDir.getCanonicalPath() );
m_Server.getHost().setAppBase( oAppBaseDir.getCanonicalPath() );


}



@Override
public void execute() throws Exception
{

// Must be called first as it loads the container that
// this appliance depends on
super.execute();

// Build the server
buildWebServer();

// Add all the web application defined in the app base dir
addAllWebApps( m_Server, getAppBaseDir() );


m_Logger.debug( "Starting Tomcat" );

m_Server.start();


}


The following class members are from a class (above) the extends our
generic web appliance
by adding MSM


private List<MemcachedBackupSessionManager> m_Managers = new
ArrayList<MemcachedBackupSessionManager>();

@Override
public void execute() throws Exception
{
super.execute();

// My hack to get MSM started
for( MemcachedBackupSessionManager m : m_Managers )
m.start();

}



@Override
protected void addWebApp( Tomcat oServer, File oAppDir ) throws
Exception
{


String sContextName = getWebAppContextName( oAppDir );
String sPath = getWebAppBaseDir( oAppDir );

m_Logger.debug( "Adding web application {} from {}", sContextName,
oAppDir.getCanonicalPath() );

Context oCtx = oServer.addWebapp( sContextName, sPath );

oCtx.setParentClassLoader( Thread.currentThread().getContextClassLoader() );

MemcachedBackupSessionManager oManager = new
MemcachedBackupSessionManager();
oCtx.setManager( oManager );


oManager.setMemcachedNodes( "n1:localhost:8091" );
oManager.setSticky(false);
oManager.setLockingMode( "auto" );
oManager.setRequestUriIgnorePattern( ".*\\.(ico|png|gif|jpg|css|js)
$" );
//
oManager.setTranscoderFactoryClass( "de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory" );

m_Managers.add(oManager);

setHasWebApps( true );

}



Finally full log including MSM startup


DEBUG - Starting Container Appliance

DEBUG - Validating environment

WARN - Required System Property: entre.server.appliance.environment is
null or blank. Using default Development

WARN - Required System Property: entre.server.appliance.role is null
or blank. Using default: Primary

DEBUG - Loading configuration properties

DEBUG - Loading Container from C:\entre-as-8.0.0\appliance\core\context
\development-primary.context.xml

DEBUG - Container loaded

DEBUG - Configuring Tomcat

DEBUG - Start Appliance running

DEBUG - Tomcat using C:\entre-as-8.0.0\tmp for as it temporary files.

DEBUG - Tomcat using C:\entre-as-8.0.0\appliance\web to load web
appliaction.

DEBUG - Loading web applications from C:\entre-as-8.0.0\appliance\web

DEBUG - Found 2 web applications to load

DEBUG - Web appliaction app will be added.

DEBUG - Adding web application /app from C:\entre-as-8.0.0\appliance
\web\app

DEBUG - Web appliaction signin will be added.

DEBUG - Adding web application /signin from C:\entre-as-8.0.0\appliance
\web\signin

DEBUG - Starting Tomcat

ERROR - IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy

ERROR - Exception loading sessions from persistent storage

INFO - MemcachedSessionService starts initialization... (configured
nodes definition n1:localhost:8091, failover nodes null)

INFO - Setting ignorePattern to .*\.(ico|png|gif|jpg|css|js)$

INFO - Setting lockingMode to AUTO

INFO - Creating transcoder factory
de.javakaffee.web.msm.JavaSerializationTranscoderFactory

DEBUG - Loading transcoder factory class
de.javakaffee.web.msm.JavaSerializationTranscoderFactory using
classloader WebappClassLoader
context: /app
delegate: false
repositories:
----------> Parent Classloader:
java.net.URLClassLoader@6295eb


INFO - MemcachedSessionService finished initialization, sticky false,
with node ids [n1] and failover node ids []

INFO - MemcachedSessionService starts initialization... (configured
nodes definition n1:localhost:8091, failover nodes null)

INFO - Setting ignorePattern to .*\.(ico|png|gif|jpg|css|js)$

INFO - Setting lockingMode to AUTO

INFO - Creating transcoder factory
de.javakaffee.web.msm.JavaSerializationTranscoderFactory

DEBUG - Loading transcoder factory class
de.javakaffee.web.msm.JavaSerializationTranscoderFactory using
classloader WebappClassLoader
context: /signin
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.URLClassLoader@6295eb


INFO - MemcachedSessionService finished initialization, sticky false,
with node ids [n1] and failover node ids []

DEBUG - >>>>>> Request starting: /app/index.xhtml ==================

DEBUG - Entering initialize()

DEBUG - INSPECTING: Prev theme = redmond

DEBUG - INSPECTING: New theme = redmond

DEBUG - INSPECTING: Prev theme = redmond

DEBUG - INSPECTING: New theme = flick

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Request finished, with Set-Cookie header:
JSESSIONID=192877B6B9149F557F0A22750B4AC65F; Path=/app/; HttpOnly

DEBUG - <<<<<< Request finished: /app/index.xhtml ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/
theme.css.xhtml?ln=primefaces-flick ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/
theme.css.xhtml?ln=primefaces-flick ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/jquery/
jquery.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/jquery/ui/
jquery-ui.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/wijmo/
wijmo.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/wijmo/
wijmo.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/jquery/ui/
jquery-ui.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/wijmo/
wijmo.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/wijmo/
wijmo.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/panel/
panel.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/jquery/ui/
jquery-ui.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/jquery/
jquery.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/jquery/ui/
jquery-ui.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/panel/
panel.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/panel/
panel.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/core/
core.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/core/
core.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/panel/
panel.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================

DEBUG - >>>>>> Request starting: /app/javax.faces.resource/images/ui-
bg_flat_75_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
bg_flat_75_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================

DEBUG - >>>>>> Request starting: /app/
index.xhtml;jsessionid=192877B6B9149F557F0A22750B4AC65F
==================

DEBUG - INSPECTING: LocalTimezoneOffset = -480

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/
index.xhtml;jsessionid=192877B6B9149F557F0A22750B4AC65F
==================

DEBUG - >>>>>> Request starting: /signin/authorize ==================

DEBUG - <<<<<< Request finished: /signin/authorize ==================

DEBUG - >>>>>> Request starting: /signin/verified/
d88cd16d-0d8a-4d1c-94ba-0d0a1d475034?oauth_token=1459cb38-bf01-42ca-
b934-d590311fd070&oauth_verifier=19752 ==================

DEBUG - <<<<<< Request finished: /signin/verified/
d88cd16d-0d8a-4d1c-94ba-0d0a1d475034?oauth_token=1459cb38-bf01-42ca-
b934-d590311fd070&oauth_verifier=19752 ==================

DEBUG - >>>>>> Request starting: /app/connections.xhtml?
token=d88cd16d-0d8a-4d1c-94ba-0d0a1d475034 ==================

DEBUG - Entering initialize()

DEBUG - INSPECTING: token = d88cd16d-0d8a-4d1c-94ba-0d0a1d475034

DEBUG - Entering initialize( sToken )

DEBUG - INSPECTING: Session ID = d88cd16d-0d8a-4d1c-94ba-0d0a1d475034

DEBUG - INSPECTING: Session = eap.service.linkedin.Session@11c2812

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00

DEBUG - INSPECTING: Selected timezone = flick

DEBUG - INSPECTING: Selected offset = -300

DEBUG - INSPECTING: Local offset = 480

DEBUG - INSPECTING: Net offset = 780

DEBUG - Getting Invite name

DEBUG - InviteConnection IS null!

DEBUG - No session found in session map for
192877B6B9149F557F0A22750B4AC65F

DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=192877B6B9149F557F0A22750B4AC65F, version=0,
secure=false, httpOnly=false

DEBUG - <<<<<< Request finished: /app/connections.xhtml?
token=d88cd16d-0d8a-4d1c-94ba-0d0a1d475034 ==================



On Aug 24, 1:33 pm, Martin Grotzke <martin.grot...@googlemail.com>
wrote:
>  signature.asc
> < 1KViewDownload

Martin Grotzke

unread,
Aug 24, 2011, 3:57:33 AM8/24/11
to memcached-se...@googlegroups.com
Hi Jim,

in the provided code the managers are still started manually - which is
wrong. They have to be started by the tomcat container hierarchy, when
tomcat.start() is invoked. So you should remove this.

Besides that I cannot compile and run this code - I would have to add
stuff to get it running. Then my setup could be different from yours and
it would still not be clear what's the issue. So a _running_ example
that shows your issue is what I'd need to help you.

What really interesting is what you already mentioned: sessions are
tried to be deserialized during startup. This indicates that there's a
StandardManager somewhere around. So having class names (and methods) in
the logs would be helpful.The logs show only parts of what would be
logged by msm - especially the session lookup and session creation stuff
if missing. That there's still s.th. logged by msm ("No session found in
session map...") is another indication that s.th. regarding the
Manager/Context setup with regards to session handling is weird.

What is the eap.service.linkedin.Session btw? Is this a servlet session
or s.th. from your domain / webapp not related to servlet sessions?

Cheers,
Martin

signature.asc

Jimboy

unread,
Aug 24, 2011, 4:42:07 AM8/24/11
to memcached-session-manager
Hi Martin

Yes I realize that manually starting is wrong. Without it nothing
happens with MSM at all. So just doing so temporarily in hopes of
getting more info.
I am including a more standard log dump. I really appreciate your help
and I do realize that this is not the primary use case and I know your
time is valuable.
I don't expect you to devote much time to this. If you could just
verify that in general the steps are correct I can take it from there.
I suspect that Tomcat 7 Embedded is
not very standard. I can not get Weld to work with it either. Same
sort of thing, loads and appears to run but never actually does
anything.

eap.service.linkedin.session is our LinkedIn API access service

Thanks
Jim


Ignore the NoSerializable error. I know one of my objects is not
serializable at the moment. I am just waiting to find a solution that
works and then I will tackle that issue using whatever approach
is appropriate.


24 Aug 2011 16:24:25,373 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Starting Container Appliance
24 Aug 2011 16:24:25,374 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Validating environment
24 Aug 2011 16:24:25,375 - eap.appliance.tomcat.MemcacheWebAppliance -
WARN - Required System Property: entre.server.appliance.environment is
null or blank. Using default Development
24 Aug 2011 16:24:25,375 - eap.appliance.tomcat.MemcacheWebAppliance -
WARN - Required System Property: entre.server.appliance.role is null
or blank. Using default: Primary
24 Aug 2011 16:24:25,375 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Loading configuration properties
24 Aug 2011 16:24:25,376 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Loading Container from C:\entre-as-8.0.0\appliance\core\context
\development-primary.context.xml
24 Aug 2011 16:24:31,309 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Container loaded
24 Aug 2011 16:24:31,310 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Configuring Tomcat
24 Aug 2011 16:24:31,310 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Start Appliance running
24 Aug 2011 16:24:31,319 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Tomcat using C:\entre-as-8.0.0\tmp for as it temporary files.
24 Aug 2011 16:24:31,376 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Tomcat using C:\entre-as-8.0.0\appliance\web to load web
appliaction.
24 Aug 2011 16:24:31,382 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Loading web applications from C:\entre-as-8.0.0\appliance\web
24 Aug 2011 16:24:31,382 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Found 2 web applications to load
24 Aug 2011 16:24:31,382 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Web appliaction app will be added.
24 Aug 2011 16:24:31,382 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Adding web application /app from C:\entre-as-8.0.0\appliance
\web\app
24 Aug 2011 16:24:31,499 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Web appliaction signin will be added.
24 Aug 2011 16:24:31,500 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Adding web application /signin from C:\entre-as-8.0.0\appliance
\web\signin
24 Aug 2011 16:24:31,500 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Starting Tomcat
24 Aug 2011 16:24:34,466 - org.apache.catalina.session.StandardManager
- ERROR - IOException while loading persisted sessions:
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
1600)
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:
1073)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:
284)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:
204)
at
org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:
470)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5241)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:
1033)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:
774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:
1033)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:
291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:
443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:
727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:336)
at eap.appliance.tomcat.WebAppliance.execute(WebAppliance.java:63)
at
eap.appliance.tomcat.MemcacheWebAppliance.execute(MemcacheWebAppliance.java:
21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at eap.appliance.Host.performApplianceExecute(Host.java:94)
at eap.appliance.Host.start(Host.java:223)
at org.tanukisoftware.wrapper.WrapperManager
$12.run(WrapperManager.java:3987)
Caused by: java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
1676)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:
1090)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:
411)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:
353)
at
org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:
497)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:
230)
at org.apache.catalina.core.StandardContext
$4.run(StandardContext.java:5465)
at java.lang.Thread.run(Unknown Source)
24 Aug 2011 16:24:34,471 - org.apache.catalina.session.StandardManager
- ERROR - Exception loading sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at
org.apache.catalina.session.StandardSession.readObject(StandardSession.java:
1600)
at
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:
1073)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:
284)
at
org.apache.catalina.session.StandardManager.load(StandardManager.java:
204)
at
org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:
470)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:
5241)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:
1033)
at
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:
774)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:
1033)
at
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:
291)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.StandardService.startInternal(StandardService.java:
443)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:
727)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:
148)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:336)
at eap.appliance.tomcat.WebAppliance.execute(WebAppliance.java:63)
at
eap.appliance.tomcat.MemcacheWebAppliance.execute(MemcacheWebAppliance.java:
21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at eap.appliance.Host.performApplianceExecute(Host.java:94)
at eap.appliance.Host.start(Host.java:223)
at org.tanukisoftware.wrapper.WrapperManager
$12.run(WrapperManager.java:3987)
Caused by: java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
1676)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:
1090)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:
411)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:
353)
at
org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:
497)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:
230)
at org.apache.catalina.core.StandardContext
$4.run(StandardContext.java:5465)
at java.lang.Thread.run(Unknown Source)
24 Aug 2011 16:24:35,031 -
de.javakaffee.web.msm.MemcachedSessionService - INFO -
MemcachedSessionService starts initialization... (configured nodes
definition n1:localhost:8091, failover nodes null)
24 Aug 2011 16:24:35,112 - de.javakaffee.web.msm.SessionTrackerValve -
INFO - Setting ignorePattern to .*\.(ico|png|gif|jpg|css|js)$
24 Aug 2011 16:24:35,122 -
de.javakaffee.web.msm.MemcachedSessionService - INFO - Setting
lockingMode to AUTO
24 Aug 2011 16:24:35,127 -
de.javakaffee.web.msm.MemcachedSessionService - INFO - Creating
transcoder factory
de.javakaffee.web.msm.JavaSerializationTranscoderFactory
24 Aug 2011 16:24:35,127 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - Loading
transcoder factory class
de.javakaffee.web.msm.JavaSerializationTranscoderFactory using
classloader WebappClassLoader
context: /app
delegate: false
repositories:
----------> Parent Classloader:
java.net.URLClassLoader@3bc473

24 Aug 2011 16:24:35,133 -
de.javakaffee.web.msm.MemcachedSessionService - INFO -
MemcachedSessionService finished initialization, sticky false, with
node ids [n1] and failover node ids []
24 Aug 2011 16:24:35,134 -
de.javakaffee.web.msm.MemcachedSessionService - INFO -
MemcachedSessionService starts initialization... (configured nodes
definition n1:localhost:8091, failover nodes null)
24 Aug 2011 16:24:35,136 - de.javakaffee.web.msm.SessionTrackerValve -
INFO - Setting ignorePattern to .*\.(ico|png|gif|jpg|css|js)$
24 Aug 2011 16:24:35,136 -
de.javakaffee.web.msm.MemcachedSessionService - INFO - Setting
lockingMode to AUTO
24 Aug 2011 16:24:35,137 -
de.javakaffee.web.msm.MemcachedSessionService - INFO - Creating
transcoder factory
de.javakaffee.web.msm.JavaSerializationTranscoderFactory
24 Aug 2011 16:24:35,137 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - Loading
transcoder factory class
de.javakaffee.web.msm.JavaSerializationTranscoderFactory using
classloader WebappClassLoader
context: /signin
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
java.net.URLClassLoader@3bc473

24 Aug 2011 16:24:35,137 -
de.javakaffee.web.msm.MemcachedSessionService - INFO -
MemcachedSessionService finished initialization, sticky false, with
node ids [n1] and failover node ids []
24 Aug 2011 16:25:00,172 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/index.xhtml ==================
24 Aug 2011 16:25:00,539 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - Entering initialize()
24 Aug 2011 16:25:00,539 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: Prev theme = redmond
24 Aug 2011 16:25:00,539 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: New theme = redmond
24 Aug 2011 16:25:00,539 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: Prev theme = redmond
24 Aug 2011 16:25:00,539 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: New theme = flick
24 Aug 2011 16:25:00,589 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,592 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Request finished, with Set-Cookie header:
JSESSIONID=64E91DB0BB2253A0508CA638F5375250; Path=/app/; HttpOnly
24 Aug 2011 16:25:00,592 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/index.xhtml ==================
24 Aug 2011 16:25:00,611 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/
theme.css.xhtml?ln=primefaces-flick ==================
24 Aug 2011 16:25:00,625 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,625 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,625 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/
theme.css.xhtml?ln=primefaces-flick ==================
24 Aug 2011 16:25:00,644 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/jquery/
jquery.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,659 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,659 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,659 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/jquery/
jquery.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,670 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/jquery/ui/
jquery-ui.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,672 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,673 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,673 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/jquery/ui/
jquery-ui.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,675 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/panel/
panel.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,680 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,680 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,680 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/panel/
panel.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,683 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/wijmo/
wijmo.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,687 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/panel/
panel.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,690 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,690 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,690 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/wijmo/
wijmo.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,692 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/wijmo/
wijmo.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,694 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,694 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,694 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/wijmo/
wijmo.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,700 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,702 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,702 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/panel/
panel.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,706 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/core/
core.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,718 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/jquery/ui/
jquery-ui.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,720 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,722 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,722 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/jquery/ui/
jquery-ui.css.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,728 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,728 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,728 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/core/
core.js.xhtml?ln=primefaces&v=3.0.M3-SNAPSHOT ==================
24 Aug 2011 16:25:00,868 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/javax.faces.resource/images/ui-
bg_flat_75_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================
24 Aug 2011 16:25:00,869 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:00,869 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:00,870 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/javax.faces.resource/images/ui-
bg_flat_75_ffffff_40x100.png.xhtml?ln=primefaces-flick
==================
24 Aug 2011 16:25:00,902 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/
index.xhtml;jsessionid=64E91DB0BB2253A0508CA638F5375250
==================
24 Aug 2011 16:25:01,013 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: LocalTimezoneOffset = -480
24 Aug 2011 16:25:01,036 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:01,036 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:01,036 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/
index.xhtml;jsessionid=64E91DB0BB2253A0508CA638F5375250
==================
24 Aug 2011 16:25:02,240 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /signin/authorize ==================
24 Aug 2011 16:25:03,312 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /signin/authorize ==================
24 Aug 2011 16:25:04,920 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /signin/verified/06ad71d3-bda0-4ef6-
a73f-7a495eb63779?oauth_token=eefcaa8f-b8b5-4f56-adde-
dc265e08a3df&oauth_verifier=29842 ==================
24 Aug 2011 16:25:05,562 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /signin/verified/06ad71d3-bda0-4ef6-
a73f-7a495eb63779?oauth_token=eefcaa8f-b8b5-4f56-adde-
dc265e08a3df&oauth_verifier=29842 ==================
24 Aug 2011 16:25:05,565 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - >>>>>> Request starting: /app/connections.xhtml?token=06ad71d3-
bda0-4ef6-a73f-7a495eb63779 ==================
24 Aug 2011 16:25:06,032 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - Entering initialize()
24 Aug 2011 16:25:06,032 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: token = 06ad71d3-bda0-4ef6-a73f-7a495eb63779
24 Aug 2011 16:25:06,032 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - Entering initialize( sToken )
24 Aug 2011 16:25:06,032 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: Session ID = 06ad71d3-bda0-4ef6-a73f-7a495eb63779
24 Aug 2011 16:25:06,032 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: Session = eap.service.linkedin.Session@137bc9
24 Aug 2011 16:25:09,689 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,693 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,696 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,699 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,704 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,707 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,710 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,714 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,716 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,719 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - INSPECTING: CurrentEvent is set to CurrentDate =
2011-08-26T04:30:00.000+08:00
24 Aug 2011 16:25:09,720 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: Selected timezone = flick
24 Aug 2011 16:25:09,726 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: Selected offset = -300
24 Aug 2011 16:25:09,726 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: Local offset = 480
24 Aug 2011 16:25:09,726 - Eap.Server.View.Bean.UserPreferencesBean -
DEBUG - INSPECTING: Net offset = 780
24 Aug 2011 16:25:09,782 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - Getting Invite name
24 Aug 2011 16:25:09,782 - Eap.Server.View.Bean.ConnectionsViewBean -
DEBUG - InviteConnection IS null!
24 Aug 2011 16:25:09,795 -
de.javakaffee.web.msm.MemcachedSessionService - DEBUG - No session
found in session map for 64E91DB0BB2253A0508CA638F5375250
24 Aug 2011 16:25:09,795 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - Have request session cookie: domain=null, maxAge=-1,
path=null, value=64E91DB0BB2253A0508CA638F5375250, version=0,
secure=false, httpOnly=false
24 Aug 2011 16:25:09,795 - de.javakaffee.web.msm.SessionTrackerValve -
DEBUG - <<<<<< Request finished: /app/connections.xhtml?token=06ad71d3-
bda0-4ef6-a73f-7a495eb63779 ==================
24 Aug 2011 16:25:14,224 - org.apache.catalina.core.ContainerBase.
[Tomcat].[localhost].[/app] - WARN - Cannot serialize session
attribute linked for session 64E91DB0BB2253A0508CA638F5375250
java.io.NotSerializableException:
eap.fx.entity.tuple.proxy.CompositeTupleProxy
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.HashMap.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
1676)
at
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:
1090)
at
org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:
411)
at
org.apache.catalina.session.StandardManager.unload(StandardManager.java:
353)
at
org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:
497)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:
230)
at org.apache.catalina.core.StandardContext
$4.run(StandardContext.java:5465)
at java.lang.Thread.run(Unknown Source)
24 Aug 2011 16:25:14,375 - eap.appliance.tomcat.MemcacheWebAppliance -
DEBUG - Appliance terminated








On Aug 24, 3:57 pm, Martin Grotzke <martin.grot...@googlemail.com>
wrote:
>  signature.asc
> < 1KViewDownload

Martin Grotzke

unread,
Aug 24, 2011, 7:32:27 AM8/24/11
to memcached-se...@googlegroups.com
Hi Jim,

can you delete the serialized sessions and start again?
Also I'd like to make sure that there's not StandardManager installed
but that only MemcachedBackupSessionManager is used (it seems this is
not the case). To do this you should debug the tomcat start and set a
breakpoint to ContainerBase.setManager(Manager). When this is invoked
you'll see who's doing this and which Manager is passed in.

Cheers,
Martin

signature.asc

Martin Grotzke

unread,
Aug 24, 2011, 6:49:00 PM8/24/11
to memcached-se...@googlegroups.com
Hi Jim,

I had a look at this again and I think I found the issue:
when addWeb is invoked tomcat adds the DefaultWebXmlListener. When
tomcat is started this invokes initWebappDefaults which installs a
StandardManager.

Instead of using addWebapp you should try this:
final Context context = tomcat.addContext("", "webapp");
ContextConfig ctxCfg = new ContextConfig();
context.addLifecycleListener(ctxCfg);

That tomcat installs the StandardManager when using addWebapp had
already been reported btw:
https://issues.apache.org/bugzilla/show_bug.cgi?id=51558

Cheers,
Martin

--

signature.asc

James P. Moring

unread,
Aug 24, 2011, 10:20:13 PM8/24/11
to memcached-se...@googlegroups.com
Thank you so much Martin

This was exactly what I needed. I will take it from here. I will report back when I have a fully working system and I will make an example app that show the proper config.

Again I appreciate your time and effort.
Jim
--

Martin Grotzke

unread,
Aug 25, 2011, 2:55:57 AM8/25/11
to memcached-se...@googlegroups.com
Hi Jim,

another thing that I saw in your logs are requests from jsf like
jquery-ui.js.xhtml?foo - which should actually be excluded via
uriExcludePattern so that msm does not have to deal with these requests.

Cheers,
Martin

signature.asc

James P. Moring

unread,
Aug 25, 2011, 3:56:46 AM8/25/11
to memcached-se...@googlegroups.com
Hi Martin

This was 100% correct and now I believe everything (from MSM perspective anyways) is working. Session being saved to membase (I see this via membase console).
I extended to the Tomcat class and added the MSM config funtionality by overriding addWebApp.

I now have an issue where my JSF app always receives a ViewExpiredException on subsequent calls. Is this related to my Non-Serializable object? I guess is that you just skip over the non-serializable object and my app is failing because this object is not be restored. Is that correct. I am making this object serializable now. I just thought I would ask.

Kryo has troubles loading trying to find de.javakaffe.kryoserializers.KryoRefectionFactorySupport

I saw you other post about the JSF items. I using the requestUriIgnorePatten from the config examples on your site. That should be adequate right?

I will post everything once I have it completely working.

Thanks

Jim
 

On 8/25/2011 6:49 AM, Martin Grotzke wrote:
--

Martin Grotzke

unread,
Aug 25, 2011, 4:40:05 AM8/25/11
to memcached-se...@googlegroups.com
Hi Jim,

On 08/25/2011 09:56 AM, James P. Moring wrote:
> I now have an issue where my JSF app always receives a
> ViewExpiredException on subsequent calls. Is this related to my
> Non-Serializable object? I guess is that you just skip over the
> non-serializable object and my app is failing because this object is not
> be restored. Is that correct. I am making this object serializable now.
> I just thought I would ask.

When you're using kryo-serializer you don't need to make objects
serializable - from msm perspective.

From jsf perspective it depends on the settings (IIRC
SERIALIZE_STATE_IN_SESSION).

That was once discussed on this list:
http://groups.google.com/group/memcached-session-manager/browse_thread/thread/c824ec39186eff77/4c2dd9c8fd26b96d?lnk=gst&q=ViewExpiredException#4c2dd9c8fd26b96d

This msm sample app should work with jsf (msm-sample-webapp branch
"openwebbeans"), you can check the web.xml settings and see if they make
it work for you:
https://github.com/magro/msm-sample-webapp/blob/openwebbeans/src/main/webapp/WEB-INF/web.xml

There's also a mojarra sample(jsf2-mojarra branch) but I'm not sure
what's the status with it:
https://github.com/magro/msm-sample-webapp/blob/jsf2-mojarra/src/main/webapp/WEB-INF/web.xml


> Kryo has troubles loading trying to find
> de.javakaffe.kryoserializers.KryoRefectionFactorySupport

This is provided by the artifact de.javakaffee:kryo-serializers should
be pulled in as transitive dependency by
de.javakaffee.msm:msm-kryo-serializer - if you're using s.th. like
maven/sbt/gradle etc.
If you're managing jars manually you need to add the kryo-serializers
jar from
http://repo1.maven.org/maven2/de/javakaffee/kryo-serializers/0.9/ (and
then probably also the other transitive deps from
msm-kryo-serializer/kryo-serializers).


> I saw you other post about the JSF items. I using the
> requestUriIgnorePatten from the config examples on your site. That
> should be adequate right?

Nope, as they don't match s.th. like "jquery-ui.js.xhtml" - due to the
required line ending "$". If you change the pattern to


".*\.(ico|png|gif|jpg|css|js)"

it would match also "jquery-ui.js.xhtml" but it would also match
"somepath.jsf"... So you probably want to create a more specific pattern
for these jsf urls... s.th. in the lines of
".*\.((ico|png|gif|jpg|css|js)$|\.xhtml.*)"
-- just out of my head, not sure if it actually compiles/works :-)

Cheers,
Martin

> *James P. Moring*
> *President*


>
> The Kampilan Group Inc.
>
> People ... Process ... Performance!
>
> 214-233-7050
> james....@kampilangroup.com
>

> I am currently at our *Philippines* development center *EST+12:00*

signature.asc
Reply all
Reply to author
Forward
0 new messages