Re: com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread Daniel Mikusa
On Oct 31, 2013, at 8:19 AM, spr...@gmx.eu wrote:

 Hi,
 
 when I use the
 com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager I get
 class loader issues

Can you be more specific here?  What stack trace do you see?

 when a session gets deserialized and my session contains
 classes which are not available to the shared loader.
 
 My question:
 
 Is this a bug in
 com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager? 

Couple things hereā€¦

1.) Seeing as it's their code, have you asked Amazon?  Not sure if this is you, 
but seems like a similar issue.

  https://github.com/aws/aws-dynamodb-session-tomcat/issues/1

2.) Have you tried one of Tomcat's included persistent session managers?  Do 
you see the same behavior?  My guess is that you won't, but it never hurts to 
try and it would certainly point the finger at Amazon's code.

  http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html

Dan

 I do not want to put these classes into the shared loader because they
 belong only to a special webapp.
 
 Thank you.
 
 P.S.
 
 Code can be found here:
 
 https://github.com/aws/aws-dynamodb-session-tomcat/tree/master/src/main/java
 /com/amazonaws/services/dynamodb/sessionmanager
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread Konstantin Kolinko
2013/10/31  spr...@gmx.eu:
 Hi,

 when I use the
 com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager I get
 classloader issues when a session gets deserialized and my session contains
 classes which are not available to the shared loader.

 My question:

 Is this a bug in
 com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager?
 I do not want to put these classes into the shared loader because they
 belong only to a special webapp.

 Thank you.

 P.S.

 Code can be found here:

 https://github.com/aws/aws-dynamodb-session-tomcat/tree/master/src/main/java
 /com/amazonaws/services/dynamodb/sessionmanager


Their code (DynamoDBSessionStore.load(...)) uses ObjectInputStream

Tomcat code (e.g. o.a.catalina.session.FileStore.load(..)) uses
CustomObjectInputStream which knows how to deal with class loaders.

It is their bug (or feature).

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread spring
 1.) Seeing as it's their code, have you asked Amazon?  Not 
 sure if this is you, but seems like a similar issue.
 
   https://github.com/aws/aws-dynamodb-session-tomcat/issues/1

Oh yes, same issue.

 2.) Have you tried one of Tomcat's included persistent 
 session managers?  Do you see the same behavior?  My guess is 
 that you won't, but it never hurts to try and it would 
 certainly point the finger at Amazon's code.
 
   http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html


Yes, they use the correct classloader, then it works.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: com.amazonaws.services.dynamodb.sessionmanager.DynamoDBSessionManager

2013-10-31 Thread spring

 Their code (DynamoDBSessionStore.load(...)) uses ObjectInputStream
 
 Tomcat code (e.g. o.a.catalina.session.FileStore.load(..)) uses
 CustomObjectInputStream which knows how to deal with class loaders.

Yes. 

 It is their bug (or feature).

:)

Thank you!


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org