[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4388) Components at ScopeType.CONVERSATION cause JBoss (4 & 5) to fail loading session state

David Thompson (JIRA) jira-events at lists.jboss.org
Fri Sep 11 12:10:23 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-4388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12485392#action_12485392 ] 

David Thompson commented on JBSEAM-4388:
----------------------------------------

Christian,

Sorry for the delay on this. 

I went through all the steps you suggest to create a brand new project, then removed the drools stuff, and added the class as you mentioned. I then downloaded a brand new fresh copy of /home/dthompson/jboss-5.1.0.GA-jdk6.zip and installed it. Then went into server/default/deploy/jbossweb.sar and changed the Manager pathname to be SESSIONS.ser. Got everything all setup. Started up jboss and then deployed the project to the server.

Application is up and running. I login as Admin (make sure the app works). Fine. Then I run test.seam and click the button and the conversation starts (can see it in the debug page.

ant redeploy

And I still get the error, the top of the stack trace looks like:
10:06:43,344 ERROR [ManagerBase] ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException: org.safmt.TestProject.action.Test
java.lang.ClassNotFoundException: org.safmt.TestProject.action.Test
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

Same thing as before.
I'm running on Ubuntu using Java 6. I can send you the TestProject zipped up if you think that would help.


> Components at ScopeType.CONVERSATION cause JBoss (4 & 5) to fail loading session state
> --------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4388
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4388
>             Project: Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.2.0.GA
>         Environment: JBoss 4.2.3 or JBoss 5.1, jboss-seam-2.2.0, JBoss set up to hot deploy.
>            Reporter: David Thompson
>            Assignee: Christian Bauer
>            Priority: Minor
>
> We currently write struts apps. One of the things we do is hot deploy these apps by setting up JBoss/Tomcat (jboss-web.deployer) to enable session persistence. This way when an app is deployed with "ant deploy", the session data can be stored out--app is torn down-- then when new app deploys the session data restores.
> If a component that is in ScopeType.CONVERSATION is instantiated and is currently in the Conversation Context when the app is deployed, then JBoss throws an error trying to reload the component and no SESSION data is restored. For example, all logged in users (data stored in Identity or Credentials) do not restore so all users get the boot. This doesn't happen if the scope on a component is EVENT or SESSION. For the way we deploy to our production system, this causes problems for us.
> The ideal solution, would be to have the conversations to come back to life, but we could also live with the conversations not being reestablished--but we really need the other session data (such as login credentials) to live through the deploy.
> AFAIK, I have looked all over the web and read the seam reference as well as Seam In Action and can't find any information about how Conversations can persist over a session (such as a redeploy this way) or over a cluster.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list