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

Ondrej Zizka (JIRA) jira-events at lists.jboss.org
Wed May 25 13:07:00 EDT 2011


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


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

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