1 Reply Latest reply on Apr 21, 2011 9:35 AM by Juergen Zimmermann

    Weld 1.1.1 throws "DefinitionException: WELD-000046" for conversations

    Juergen Zimmermann Master
      I upgraded JBossAS 6.0.0.Final to Weld 1.1.1. However, when using just one conversation I get the following stacktrace. Any hint is appreciated.

      15:18:37,814 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=vfs:///C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1301660442289/deploy/swe2.ear_WeldBootstrapBean state=Create: org.jboss.weld.exceptions.DefinitionException: WELD-000046 At most one scope may be specified on public@Named @SessionScoped @ConversationScoped class de.swe2.bestellverwaltung.ui.Warenkorb
           at org.jboss.weld.bean.AbstractClassBean.initScope(AbstractClassBean.java:435) [:2011-04-17 09:00]
           at org.jboss.weld.bean.AbstractBean.initialize(AbstractBean.java:130) [:2011-04-17 09:00]
           at org.jboss.weld.bean.AbstractClassBean.initialize(AbstractClassBean.java:202) [:2011-04-17 09:00]
           at org.jboss.weld.bean.ManagedBean.initialize(ManagedBean.java:372) [:2011-04-17 09:00]
           at org.jboss.weld.bootstrap.AbstractBeanDeployer.deploy(AbstractBeanDeployer.java:113) [:2011-04-17 09:00]
           at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:216) [:2011-04-17 09:00]
           at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:370) [:2011-04-17 09:00]
           at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:92) [:6.0.0.Final]