This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF" Watch "after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF" New topic
Author

after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
in .war/WEB-INF/web.xml, there is a segment


this means TDESStartupServlet should load when the application start.
I add some debugging code in TDESStartupServlet.init() method


then I found when I start the old JBOSS 4.0.3 server, the debugging statement will shown in server.log, then means TDESStartupServlet really loaded.
But when I start the new JBOSS 4.2.0 server, no this debugging statement can be found, so TDESStartupServlet has not loaded, and I think the web.xml is not loaded or seen by the server.

For more information, the web.xml in new server is located in
E:\jboss-eap-4.2.0.GA_CP09\jboss-eap-4.2\jboss-as\server\default\deploy\td-es-internal.war\WEB-INF\web.xml

here is segment of server.log in old JBOSS 4.0.3. server, hope it is useful


and here is the segment of server.log in new JBOSS 4.2.0 server


Any reason will cause this happen?
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
oh, I comment the following line in web.xml and the TDESStartupServlet can load now!!


anyway, why after comment these two line, the web.xml can be loaded?

the origin web.xml is attached.

 
 
subject: after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF
 
Similar Threads
EJB30-JBOSS sample tutorial doesn't works!!
Error Deploying EAR file
Calling deployed EJB
Multiple class loaders error
Newbie to JBoss