[webbeans-issues] [JBoss JIRA] Assigned: (WBRI-121) Make JBossEjbResolver an MC Bean
Pete Muir (JIRA)
jira-events at lists.jboss.org
Wed Jan 28 19:56:44 EST 2009
[ https://jira.jboss.org/jira/browse/WBRI-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir reassigned WBRI-121:
------------------------------
Assignee: Ales Justin (was: Pete Muir)
I fixed the build scripts, but I still get
23:22:49,614 INFO [JBossASKernel] Created KernelDeployment for: webbeans-translator.jar
23:22:49,622 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=SentenceTranslator,service=EJB3
23:22:49,622 INFO [JBossASKernel] with dependencies:
23:22:49,622 INFO [JBossASKernel] and demands:
23:22:49,623 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
23:22:49,623 INFO [JBossASKernel] and supplies:
23:22:49,623 INFO [JBossASKernel] jndi:webbeans-translator/SentenceTranslator/local
23:22:49,623 INFO [JBossASKernel] jndi:webbeans-translator/SentenceTranslator/local-org.jboss.webbeans.examples.translator.Translator
23:22:49,623 INFO [JBossASKernel] jndi:webbeans-translator/SentenceTranslator/remote
23:22:49,623 INFO [JBossASKernel] Class:org.jboss.webbeans.examples.translator.Translator
23:22:49,623 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=SentenceTranslator,service=EJB3) to KernelDeployment of: webbeans-translator.jar
23:22:49,624 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=TranslatorControllerBean,service=EJB3
23:22:49,624 INFO [JBossASKernel] with dependencies:
23:22:49,624 INFO [JBossASKernel] and demands:
23:22:49,624 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
23:22:49,624 INFO [JBossASKernel] and supplies:
23:22:49,624 INFO [JBossASKernel] jndi:webbeans-translator/TranslatorControllerBean/remote
23:22:49,624 INFO [JBossASKernel] jndi:webbeans-translator/TranslatorControllerBean/local-org.jboss.webbeans.examples.translator.TranslatorController
23:22:49,625 INFO [JBossASKernel] jndi:webbeans-translator/TranslatorControllerBean/local
23:22:49,625 INFO [JBossASKernel] Class:org.jboss.webbeans.examples.translator.TranslatorController
23:22:49,625 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=TranslatorControllerBean,service=EJB3) to KernelDeployment of: webbeans-translator.jar
23:22:49,805 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=SentenceTranslator,service=EJB3
23:22:49,823 INFO [EJBContainer] STARTED EJB: org.jboss.webbeans.examples.translator.SentenceTranslator ejbName: SentenceTranslator
23:22:49,987 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
webbeans-translator/SentenceTranslator/local - EJB3.x Default Local Business Interface
webbeans-translator/SentenceTranslator/local-org.jboss.webbeans.examples.translator.Translator - EJB3.x Local Business Interface
23:22:50,131 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=webbeans-translator.ear,jar=webbeans-translator.jar,name=TranslatorControllerBean,service=EJB3
23:22:50,132 INFO [EJBContainer] STARTED EJB: org.jboss.webbeans.examples.translator.TranslatorControllerBean ejbName: TranslatorControllerBean
23:22:50,163 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
webbeans-translator/TranslatorControllerBean/local - EJB3.x Default Local Business Interface
webbeans-translator/TranslatorControllerBean/local-org.jboss.webbeans.examples.translator.TranslatorController - EJB3.x Local Business Interface
23:22:50,324 INFO [TomcatDeployment] deploy, ctxPath=/webbeans-translator, vfsUrl=webbeans-translator.ear/webbeans-translator.war
23:22:50,840 ERROR [[/webbeans-translator]] Exception sending context initialized event to listener instance of class org.jboss.webbeans.servlet.WebBeansListener
javax.inject.ExecutionException: Error instantiating public org.jboss.webbeans.integration.jbossas.bootstrap.ServletJBossEjbDiscovery(javax.servlet.ServletContext)
at org.jboss.webbeans.bootstrap.PropertiesBasedBootstrap.newInstance(PropertiesBasedBootstrap.java:98)
at org.jboss.webbeans.servlet.ServletBootstrap.createEjbDiscovery(ServletBootstrap.java:115)
at org.jboss.webbeans.servlet.ServletBootstrap.<init>(ServletBootstrap.java:69)
at org.jboss.webbeans.servlet.ServletLifecycle.beginApplication(ServletLifecycle.java:50)
at org.jboss.webbeans.servlet.WebBeansListener.contextInitialized(WebBeansListener.java:48)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:367)
at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146)
at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:460)
at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
at $Proxy36.start(Unknown Source)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.start(ServiceController.java:460)
at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:547)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.jboss.webbeans.bootstrap.PropertiesBasedBootstrap.newInstance(PropertiesBasedBootstrap.java:82)
... 63 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanFactoryVDFConnector.unwrap(AbstractBeanFactoryVDFConnector.java:62)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanFactoryVDFConnector.unwrap(AbstractBeanFactoryVDFConnector.java:1)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanVDFConnector.getUtilityFromAttribute(AbstractBeanVDFConnector.java:114)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanVDFConnector.getUtilityFromAttribute(AbstractBeanVDFConnector.java:1)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractVDFConnector.getUtility(AbstractVDFConnector.java:86)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractVDFConnector.isValid(AbstractVDFConnector.java:71)
at org.jboss.webbeans.integration.jbossas.bootstrap.ServletJBossEjbDiscovery.<init>(ServletJBossEjbDiscovery.java:22)
... 68 more
Caused by: java.lang.NullPointerException
at org.jboss.webbeans.integration.ejb.JBossBussinessInterfaceDescriptorAdaptor.<init>(JBossBussinessInterfaceDescriptorAdaptor.java:28)
at org.jboss.webbeans.integration.ejb.JBossSessionBeanDescriptorAdaptor.<init>(JBossSessionBeanDescriptorAdaptor.java:32)
at org.jboss.webbeans.integration.ejb.JBossEjbDiscovery.discoverEjbs(JBossEjbDiscovery.java:64)
at org.jboss.webbeans.integration.ejb.JBossEjbDiscovery.discoverEjbs(JBossEjbDiscovery.java:81)
at org.jboss.webbeans.integration.ejb.JBossEjbDiscovery.setDeploymentUnit(JBossEjbDiscovery.java:46)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanFactoryInitializerVDFConnector.initialize(AbstractBeanFactoryInitializerVDFConnector.java:48)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanFactoryInitializerVDFConnector.initialize(AbstractBeanFactoryInitializerVDFConnector.java:1)
at org.jboss.webbeans.integration.jbossas.vdf.AbstractBeanFactoryVDFConnector.unwrap(AbstractBeanFactoryVDFConnector.java:57)
... 74 more
23:22:50,842 ERROR [StandardContext] Error listenerStart
23:22:50,842 ERROR [StandardContext] Context [/webbeans-translator] startup failed due to previous errors
> Make JBossEjbResolver an MC Bean
> --------------------------------
>
> Key: WBRI-121
> URL: https://jira.jboss.org/jira/browse/WBRI-121
> Project: Web Beans RI
> Issue Type: Feature Request
> Components: JBoss AS integration
> Reporter: Pete Muir
> Assignee: Ales Justin
> Fix For: 1.0.0.ALPHA2
>
>
> For instance, I'd been expecting JBossEjbResolver to itself be an MC bean, where the EjbReferenceResolver would be an injected instance member.
> Like I do in ejb3-mc-int:
> ...declares the EjbReferenceResolver impl:
> <bean name="org.jboss.ejb3.EjbReferenceResolver" class="org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolver">
> <constructor factoryClass="org.jboss.ejb3.common.resolvers.spi.EjbReferenceResolverFactory"
> factoryMethod="newInstance">
> <parameter>org.jboss.ejb3.common.resolvers.plugins.FirstMatchEjbReferenceResolver</parameter>
> </constructor>
> </bean>
> ...injects the EjbReferenceResolver into something that uses it.
> <bean name="org.jboss.ejb3.EjbReferenceAnnotationPlugin"
> class="org.jboss.ejb3.mcint.metadata.plugins.EjbReferenceAnnotationPlugin">
> <constructor>
> <parameter><inject bean="org.jboss.ejb3.EjbReferenceResolver" /></parameter>
> </constructor>
> </bean>
--
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 weld-issues
mailing list