[weld-issues] [JBoss JIRA] Commented: (WELD-914) WARN if beans.xml is missing in standalone mode.

Pete Muir (JIRA) jira-events at lists.jboss.org
Thu May 26 09:57:01 EDT 2011


    [ https://issues.jboss.org/browse/WELD-914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604642#comment-12604642 ] 

Pete Muir commented on WELD-914:
--------------------------------

Note that we know in SE that the user does want CDI enabled, so a missing beans.xml is obviously wrong!

> WARN if beans.xml is missing in standalone mode.
> ------------------------------------------------
>
>                 Key: WELD-914
>                 URL: https://issues.jboss.org/browse/WELD-914
>             Project: Weld
>          Issue Type: Enhancement
>            Reporter: Ondrej Zizka
>         Attachments: CdiTry.zip
>
>
> STR:
> 1) Get the attached project, or,
>    svn co http://ondrazizka.googlecode.com/svn/trunk/CdiTry -r 219
> 2) Remove beans.xml (if present)
> 3) Run org.jboss.qa.test.cditry.AppWeld
> You'll get an exception
> {code}
> 33 [main] INFO org.jboss.weld.Version - WELD-000900 1.1.1 (Final)
> 54 [main] INFO org.jboss.weld.Bootstrap - WELD-000101 Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers will be invoked synchronously.
> 273 [main] WARN org.jboss.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PostActivate' not found, interception based on it is not enabled
> 273 [main] WARN org.jboss.interceptor.util.InterceptionTypeRegistry - Class 'javax.ejb.PrePassivate' not found, interception based on it is not enabled
> Exception in thread "main" org.jboss.weld.exceptions.UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types: [class org.jboss.myapp.MyApp]; Bindings: [@javax.enterprise.inject.Default()]
>     at org.jboss.weld.manager.BeanManagerImpl.getBean(BeanManagerImpl.java:809)
>     at org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:108)
>     at org.jboss.jawabot.JawaBotAppWeld.main(JawaBotAppWeld.java:17)
> {code}
> There should be a WARN if beans.xml is not found in standalone mode to make it easier to figure it out.
> (I was tending to believe that there's something much more complex going on.)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list