java - spring project deployment with wild fly -


i have java application developed in spring 4, hibernate 4 , java 8. deploying in wildfly 8.4 using eclipse luna.

but not deploying. when trying access application saying "forbidden" on screen.

then, checked console, found few warnings

22:44:26,550 warn  [org.jboss.as.ee] (msc service thread 1-8) jbas011006: not installing optional component org.springframework.http.server.servletserverhttpasyncrequestcontrol due exception (enable debug log level see cause) 22:44:26,552 warn  [org.jboss.as.ee] (msc service thread 1-8) jbas011006: not installing optional component org.springframework.web.context.request.async.standardservletasyncwebrequest due exception (enable debug log level see cause)  22:44:26,885 warn  [org.jboss.weld.deployer] (msc service thread 1-8) jbas016012: deployment deployment "application.war" contains cdi annotations no bean archive found (no beans.xml or class bean defining annotations). 

do need solve warnings? reason not reading application's annotations? how can solve issue?

to stop wildfly using weld on war, 1 can (according @yuri) disable 'bean-discovery' adjusting mode in bean.xml. can read @yuri's answer here https://stackoverflow.com/a/21757053/1023341. short is:

add bean.xml war/jar (web-inf/beans.xml war files, or meta-inf/beans.xml jar files) put in bean.xml:

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"    xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"    xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee                         http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"    version="1.1" bean-discovery-mode="none"> </beans> 

the option nicely explained reza_rahman (on oct 03, 2013) in default cdi enablement in java ee 7


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -