-
Enhancement
-
Resolution: Done
-
Major
-
None
-
None
-
None
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.)