myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias We├čendorf (JIRA) <...@myfaces.apache.org>
Subject [jira] Commented: (EXTCDI-4) transactional annotation
Date Thu, 18 Mar 2010 15:12:28 GMT

    [ https://issues.apache.org/jira/browse/EXTCDI-4?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846949#action_12846949
] 

Matthias We├čendorf commented on EXTCDI-4:
-----------------------------------------

On deployment of these classes I get the following error (2times):


SEVERE:
org.apache.webbeans.exception.WebBeansConfigurationException: Bean
Name:null,WebBeans Type:MANAGED,API
Types:[java.lang.Object,org.apache.myfaces.codi.EntityManagerProducer],Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]scope
can not define other scope except @Dependent to inject InjectionPoint
       at org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1001)
       at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:346)
       at org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:301)
       at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:154)
       at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:120)
       at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:75)
       at org.apache.webbeans.servlet.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:66)
       at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
       at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1239)
       at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
       at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
       at org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:124)
       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:224)
       at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
       at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:441)
       at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:383)
       at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
       at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)


yes, the message is not easy to read, but it is basically complaining, that the
EntityManagerProducer is not having @Dependent scope (since it has
@ApplicationScoped).

> transactional annotation
> ------------------------
>
>                 Key: EXTCDI-4
>                 URL: https://issues.apache.org/jira/browse/EXTCDI-4
>             Project: MyFaces CODI
>          Issue Type: New Feature
>            Reporter: Gerhard Petracek
>         Attachments: EntityManagerProducer.java, PersistenceContext.java, Transactional.java,
TransactionHandler.java
>
>
> @Transactional should act like the equivalent spring annotation and it should be compatible
with every custom cdi-scope.
>  @TransactionAttribute should be supported as well.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message