[
https://issues.jboss.org/browse/WELD-914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ales Justin reassigned WELD-914:
--------------------------------
Assignee: Ales Justin
> 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
> Assignee: Ales Justin
> 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
_______________________________________________
weld-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/weld-issues