[weld-issues] [JBoss JIRA] (WELD-1121) Passivating-scoped SFSB fails to deploy if not implementing java.io.Serializable

Marek Schmidt (JIRA) jira-events at lists.jboss.org
Fri Apr 27 04:42:18 EDT 2012


Marek Schmidt created WELD-1121:
-----------------------------------

             Summary: Passivating-scoped SFSB fails to deploy if not implementing java.io.Serializable
                 Key: WELD-1121
                 URL: https://issues.jboss.org/browse/WELD-1121
             Project: Weld
          Issue Type: Bug
          Components: Bootstrap and Metamodel API
    Affects Versions: 2.0.0.Alpha2
         Environment: AS7.1.1.Final + Weld 2.0.0.Alpha2
            Reporter: Marek Schmidt
            Assignee: Jozef Hartinger
             Fix For: 2.0.0.Alpha3


Deployment of the pastecode example fails with

{noformat}
10:32:47,568 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."weld-pastecode.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."weld-pastecode.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-000072 Bean declaring a passivating scope must be passivation capable.  Bean:  Session bean [class org.jboss.weld.examples.pastecode.session.PostTracker with qualifiers [@Any @Default]; local interfaces are [PostTracker]
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-000072 Bean declaring a passivating scope must be passivation capable.  Bean:  Session bean [class org.jboss.weld.examples.pastecode.session.PostTracker with qualifiers [@Any @Default]; local interfaces are [PostTracker]
        at org.jboss.weld.bean.SessionBean.checkType(SessionBean.java:327)
        at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:145)
        at org.jboss.weld.bean.AbstractClassBean.initializeAfterBeanDiscovery(AbstractClassBean.java:230)
        at org.jboss.weld.bean.SessionBean.initializeAfterBeanDiscovery(SessionBean.java:191)
        at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$5.doWork(ConcurrentBeanDeployer.java:126)
        at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$5.doWork(ConcurrentBeanDeployer.java:123)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_30]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_30]
        ... 3 more

10:32:47,786 INFO  [org.jboss.as.server] (management-handler-thread - 4) JBAS015870: Deploy of deployment "weld-pastecode.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"weld-pastecode.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"weld-pastecode.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-000072 Bean declaring a passivating scope must be passivation capable.  Bean:  Session bean [class org.jboss.weld.examples.pastecode.session.PostTracker with qualifiers [@Any @Default]; local interfaces are [PostTracker]"}}
10:32:47,816 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011403: Stopping Persistence Unit Service 'weld-pastecode.war#pastecodeDatabase'
10:32:47,817 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000227: Running hbm2ddl schema export
10:32:47,849 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (MSC service thread 1-3) HHH000230: Schema export complete
10:32:47,876 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment weld-pastecode.war in 89ms
10:32:47,882 INFO  [org.jboss.as.controller] (management-handler-thread - 4) JBAS014774: Service status report
JBAS014777:   Services which failed to start:      service jboss.deployment.unit."weld-pastecode.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."weld-pastecode.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-000072 Bean declaring a passivating scope must be passivation capable.  Bean:  Session bean [class org.jboss.weld.examples.pastecode.session.PostTracker with qualifiers [@Any @Default]; local interfaces are [PostTracker]

{noformat}

The PostTracker bean is

{code}
@SessionScoped
@Stateful // Adds passivation capabilities....
public class PostTracker {

   ...

}

{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list