-
Notifications
You must be signed in to change notification settings - Fork 73
java.lang.ClassNotFoundException: org.springframework.security.core.context.SecurityContextImpl #1
Comments
It's a bug in the DynamoDBSessionStore. It uses the current classloader to load the classes. But the current loader is the shared loader from tomcat and not that from the webapp. |
Yup, spgmx is correct. We're working on the fix and hope to have something out soon. |
Good news... the latest release and source code resolves the issue around using the incorrect class loader during deserialization. I have a hunch that it will resolve this issue as well, but definitely let us know if you're still seeing problems after picking up the latest release. You can grab the jar from GitHub; just make sure to pull the old version out of Tomcat's lib dir. We'll get the Eclipse plugin updated with the latest release soon, too. |
Works now! ;) |
Please update the version in pom.xml, now the fixed version is the same 1.0.0 as before. |
Hi fulghum,
Thanks in advance for any suggestion. Weimin |
Hi:
I have added AmazonDynamoDBSessionManagerForTomcat-1.0.0.jar to the lib directory of my Tomcat installation and tried to store session in DynamoDB. Howerver when DynamoDBSessionManager tries to load sessions from dynamodb, it throws java.lang.ClassNotFoundException:org.springframework.security.core.context.SecurityContextImpl.
Since I use Spring Security for authentication stuff. It seems that the session manager cannot deserialize the session value to the SecurityContextImpl because it cannot find the classes.
I have tried to add the dependencies (Spring Security) to the lib directory of the Tomcat installation, but in the end, I got the same exception with classes of my domain object.
Should I put all classes of my domain object into the lib directory? or Is there any intuitive way to solve this problem? thx.
The text was updated successfully, but these errors were encountered: