4 Replies Latest reply on Nov 21, 2014 9:24 AM by Abhishek Koneru

    Error: web.xml not found for Struts application

    Rahul Patil Newbie

      Hi All,

      I am trying to deploy a struts application in JBoss AS 7.1.1.Final. Getting following error at the time of deployment:

       

      23:04:41,249 ERROR [org.apache.struts.action.ActionServlet] (MSC service thread 1-2) The /WEB-INF/web.xml was not found.

      servlet.ServletException: The /WEB-INF/web.xml was not found.

              at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1108) [struts.jar:1.2.4]

              at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) [struts.jar:1.2.4]

              at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3655) [jbossweb-7.0.13.Final.jar:]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3873) [jbossweb-7.0.13.Final.jar:]

              at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_02]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_02]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_02]

       

      The web.xml is available in WEB-INF directory. Can anyone suggest what can be the issue and how to resolve it?