This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes SAXException while parsing web.xml file in jboss 5.0 during deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "SAXException while parsing web.xml file in jboss 5.0 during deployment" Watch "SAXException while parsing web.xml file in jboss 5.0 during deployment" New topic
Author

SAXException while parsing web.xml file in jboss 5.0 during deployment

Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 191

while i deployed myapp.war in deploy folder of jboss 5.0 i get the following error in console.

vfsfile:/D:/jboss-5.0.0/server/default/deploy/myapp.war/ -> org.xml.sax.S
AXException: The content of element type "web-app" must match "(icon?,display-na
me?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*
,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,erro
r-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-confi
g?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.0.
0/server/default/deploy/myapp.war/WEB-INF/web.xml[28,11]

My web.xml file has below content:



Please let me know what i can do further to resolve and have error free deployment

Thanks
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8146
    
  52

The error message tells you the exact order which is required in the xml. The xml that you posted that the servlet-mapping is being used before the servlet element. Change the xml to bring down all the servlet-mapping elements after the servlet declarations.

[My Blog] [JavaRanch Journal]
Eshwar Prasad
Ranch Hand

Joined: Mar 21, 2008
Posts: 191
Thanks problem resolved
Ciro Arreola
Greenhorn

Joined: Aug 19, 2009
Posts: 2
Jaikiran Pai wrote: the exact order which is required in the xml


That helped me too! thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SAXException while parsing web.xml file in jboss 5.0 during deployment
 
Similar Threads
web.xml issue
Configure tomcat resource factory
parse error with web-app when starting tomact
problem in web.xml
Reg : Web.xml