5 Replies Latest reply on Jul 10, 2002 8:16 PM by Julian Gosnell

    Element web-app does not allow servlet here

    Greg Newbie

      I have my web app in a war file which I have been deploying for some time on JBoss-2.4.4_Tomcat-3.2.3-beta with no problems.

      I downloaded JBoss-2.4.4_Tomcat-4.0.1 today to test it out and placed my .war file in the deploy dir and I get the following error:

      [INFO,Default] PARSE error at line 12 column -1
      [INFO,Default] org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
      [ERROR,EmbeddedCatalinaServiceSX] ContextConfig[/evoucher] Parse error in application web.xml
      org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.

      ...etc...

      [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/evoucher]: Occurred at line 12 column -1
      [INFO,EmbeddedCatalinaServiceSX] ContextConfig[/evoucher]: Marking this application unavailable due to previous error(s)
      [INFO,EmbeddedCatalinaServiceSX] StandardContext[/evoucher]: Context startup failed due to previous errors

      What's wrong? Is my web.xml file bad? Why did it work in the older version?