This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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
g?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.0.
My web.xml file has below content:
Please let me know what i can do further to resolve and have error free deployment
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.