You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "Anatole Tresch (JIRA)" <ji...@apache.org> on 2016/08/26 07:14:20 UTC

[jira] [Commented] (TAMAYA-163) JBoss startup issue with CDI Extension

    [ https://issues.apache.org/jira/browse/TAMAYA-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15438584#comment-15438584 ] 

Anatole Tresch commented on TAMAYA-163:
---------------------------------------

Pushed a commit today (26th Aug), testing integration with se based injection and CDI based injection modules with JBoss EAP 7.0.0.GA (WildFly Core 2.1.2.Final-redhat-1).
Can you build the snapshot modules from source to check the issues is still there (in modules/integration/cdi and modules/integration/cdi-.se.

Documentation still has to be added so the correct extensions are loaded in your app/or by default. Basically copy the resources part from META-INF/services of the related modules into your ejb or war module.

Client code will be added as J2EE examples later (I am looking for a better example content wise, which is more presentable than the current simple ones).

> JBoss startup issue with CDI Extension
> --------------------------------------
>
>                 Key: TAMAYA-163
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-163
>             Project: Tamaya
>          Issue Type: Bug
>          Components: Modules
>    Affects Versions: 0.2-incubating
>            Reporter: Anatole Tresch
>            Assignee: Anatole Tresch
>            Priority: Critical
>
> Taken from http://stackoverflow.com/questions/37565612/apache-tamaya-cdi-extension-causes-startup-issue-in-wildfly
> I defined an application scoped bean that extends the BasePropertySource.
> {noformat}
> @ApplicationScoped
> public class DatabasePropertySource extends BasePropertySource {
>   ...
> }
> {noformat}
> I am using WildFly 10. When starting the application, I get the following exception: {{BeanAttributes.getTypes() may not return an empty set org.apache.tamaya.integration.cdi.ConfigurationExtension$ConverterBean}}.
> Full stack trace
> {noformat}
> Exception 0 :
> org.jboss.weld.exceptions.DefinitionException: WELD-001112: BeanAttributes.getTypes() may not return an empty set org.apache.tamaya.integration.cdi.ConfigurationExtension$ConverterBean@16d7a9db
>     at org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory.validateTypes(ExternalBeanAttributesFactory.java:95)
>     at org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory.validateBeanAttributes(ExternalBeanAttributesFactory.java:70)
>     at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.addBean(AfterBeanDiscoveryImpl.java:80)
>     at org.apache.tamaya.integration.cdi.ConfigurationExtension.addConverter(ConfigurationExtension.java:133)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
>     at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
>     at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309)
>     at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)
>     at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287)
>     at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265)
>     at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)
>     at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)
>     at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
>     at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
>     at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
>     at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:42)
>     at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:61)
>     at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:423)
>     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
>     at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
>     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
>     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
>     at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:44)
>     at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:61)
>     at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:423)
>     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
>     at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
>     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
>     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
>     ... 3 more
> 2016-06-01 12:03:59,119 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "tickeos-core-web.war")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"tickeos-core-web.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"tickeos-core-web.war\".WeldStartService: Failed to start service
>     Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
> Exception 0 :
> org.jboss.weld.exceptions.DefinitionException: WELD-001112: BeanAttributes.getTypes() may not return an empty set org.apache.tamaya.integration.cdi.ConfigurationExtension$ConverterBean@16d7a9db
>     at org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory.validateTypes(ExternalBeanAttributesFactory.java:95)
>     at org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory.validateBeanAttributes(ExternalBeanAttributesFactory.java:70)
>     at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.addBean(AfterBeanDiscoveryImpl.java:80)
>     at org.apache.tamaya.integration.cdi.ConfigurationExtension.addConverter(ConfigurationExtension.java:133)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:498)
>     at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
>     at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
>     at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:309)
>     at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:124)
>     at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:287)
>     at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:265)
>     at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:271)
>     at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:260)
>     at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
>     at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:148)
>     at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
>     at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:42)
>     at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:61)
>     at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:423)
>     at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
>     at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:95)
>     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
>     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at java.lang.Thread.run(Thread.java:745)
> "}}
> {noformat}
> Even without the custom DatabasePropertySource, the server won't start up.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)