I am getting this warning when I start my JBOSS server 7.0.0.. after deploying the my EAR file. I am using Spring 4.1, Hibernate 4
16:44:09,254 WARN [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016012: Deployment deployment "ExampleService.ear" contains CDI annotations but beans.xml was not found.
Kindly let me know how can i resolve this?
If you want Spring manage your beans, as opposed to the JBoss' support for Java EE 6 CDI , you can safely ignore this warning. Spring will happily scan the classpath for javax.inject.*
annotations and configure your application accordingly.
The bean archive descriptor beans.xml
should be located at META-INF/beans.xml or WEB-INF/beans.xml . more information about CDI
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.