[JBoss JIRA] (WELD-1115) UnserializableDependencyException with dependency on SLSB
by Marek Schmidt (JIRA)
Marek Schmidt created WELD-1115:
-----------------------------------
Summary: UnserializableDependencyException with dependency on SLSB
Key: WELD-1115
URL: https://issues.jboss.org/browse/WELD-1115
Project: Weld
Issue Type: Bug
Components: Bootstrap and Metamodel API
Affects Versions: 2.0.0.Alpha2
Environment: AS 7.1.1.Final with Weld 2.0.0.Alpha2
Reporter: Marek Schmidt
Assignee: Jozef Hartinger
Fix For: 2.0.0.Alpha3
An application containing the following beans (among others) fails to deploy with org.jboss.weld.exceptions.UnserializableDependencyException.
{code}
@SessionScoped
@Stateful
public EjbGameBean implements Serializable {
...
@Inject
RandomStatelessEjb randomStatelessEjb;
...
}
{code}
{code}
@Stateless
public class RandomStatelessEjb
{
@Inject
@Random
Instance<Integer> randomNumber;
public int getRandom() {
return randomNumber.get();
}
}
{code}
It probably shouldn't require a @Stateless session bean to be Serializable.
{noformat}
JBAS014777: Services which failed to start: service jboss.deployment.unit."weld-clustering-tests.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."weld-clustering-tests.war".WeldService: org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413 The bean Session bean [class org.jboss.weld.tests.clustering.numberguess.decorator.EjbGameBean with qualifiers [@Default @Named @Any]; local interfaces are [GameLocal] declares passivating scope but has non-serializable dependency Session bean [class org.jboss.weld.tests.clustering.numberguess.decorator.RandomStatelessEjb with qualifiers [@Any @Default]; local interfaces are [RandomStatelessEjb]
{noformat}
--
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
12 years, 2 months
[JBoss JIRA] (WELD-1121) Passivating-scoped SFSB fails to deploy if not implementing java.io.Serializable
by Marek Schmidt (JIRA)
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
12 years, 2 months