Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-914

WARN if beans.xml is missing in standalone mode.

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 1.1.2.Final
    • None
    • None
    • None

    Description

      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

      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)
      

      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.)

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: