war duplicated load issue
mjhero Apr 9, 2012 7:01 AMHi all,
My EAR file is deployed JBoss AS 7 Standalone type server.
This is a structure of my EAR.
some.ear
- APP-INF/lib/*.jar
- some.war
- *.jsp / *.xml / *.class
application.xml
<display-name>sample-ear</display-name>
<module>
<web>
<web-uri>sample-web.war</web-uri>
<context-root>sample</context-root>
</web>
</module>
<library-directory>APP-INF/lib</library-directory>
</application>
My EAR is loading sample-web.war twice.
Below is my log.
05:18:51,096 INFO [org.jboss.as.deployment] (DeploymentScanner-threads - 2) Found sample.ear in deployment directory. To trigger deployment create a file called sample.ear.dodeploy
05:19:26,108 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "sample.ear"
05:19:28,015 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "sample-web.war"
05:19:28,047 INFO [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api dependency to sample.ear
05:19:28,048 INFO [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api dependency to sample-web.war
05:19:28,269 INFO [stdout] (MSC service thread 1-3) log4j: reset attribute= "false".
05:19:28,269 INFO [stdout] (MSC service thread 1-3) log4j: Threshold ="null".
....(log4j load messages)
05:19:28,768 INFO [stdout] (MSC service thread 1-3) [2012-04-05 05:19:28.766][DEBUG][multiaction.MultiActionController.registerHandlerMethod()] Found action method [public org.springframework.web.servlet.ModelAndView OOO.OOO.OOO.sample.member.controller.MemberController.test(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)]
05:19:28,769 INFO [stdout] (MSC service thread 1-3) [2012-04-05 05:19:28.769][DEBUG][multiaction.MultiActionController.registerHandlerMethod()] Found action method [public org.springframework.web.servlet.ModelAndView OOO.OOO.OOO.sample.member.controller.MemberController.getMember(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)]
...(spring context load messages)
05:19:30,293 INFO [org.apache.catalina.core.ContainerBase.[jboss.web].[www.sample.com].[/sample]] (MSC service thread 1-3) Initializing log4j from [file:${XXX}/${XXX}/${XXX}/log4j${XXX}.xml]
05:19:30,294 INFO [stdout] (MSC service thread 1-3) log4j: System property is :__redirected.__DocumentBuilderFactory
05:19:30,294 INFO [stdout] (MSC service thread 1-3) log4j: Standard DocumentBuilderFactory search succeded.
05:19:30,294 INFO [stdout] (MSC service thread 1-3) log4j: DocumentBuilderFactory is: __redirected.__DocumentBuilderFactory
05:19:30,303 INFO [stdout] (MSC service thread 1-3) log4j: debug attribute= "true".
05:19:30,304 INFO [stdout] (MSC service thread 1-3) log4j: reset attribute= "false".
....(log4j load messages)
05:19:28,768 INFO [stdout] (MSC service thread 1-3) [2012-04-05 05:19:28.766][DEBUG][multiaction.MultiActionController.registerHandlerMethod()] Found action method [public org.springframework.web.servlet.ModelAndView OOO.OOO.OOO.sample.member.controller.MemberController.test(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)]
05:19:28,769 INFO [stdout] (MSC service thread 1-3) [2012-04-05 05:19:28.769][DEBUG][multiaction.MultiActionController.registerHandlerMethod()] Found action method [public org.springframework.web.servlet.ModelAndView OOO.OOO.OOO.sample.member.controller.MemberController.getMember(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)]
...(spring context load messages)
I have only one war file. So the war load message must be loaded only 1 time.
Why duplicated loading was happend?