2 Replies Latest reply on Dec 6, 2011 2:58 AM by Amos Feng

    Cannot obain servlet version

    Amos Feng Apprentice

      Hi all,

       

      I use arquillian to run tests of web app. They work fine before, but I get the following exception when I updated to the newest jboss-as from git.

      Caused by: java.lang.IllegalStateException: Cannot obtain servlet version

          at org.jboss.metadata.parser.servlet.WebMetaDataParser.parse(WebMetaDataParser.java:103)

          at org.jboss.metadata.parser.servlet.WebMetaDataParser.parse(WebMetaDataParser.java:54)

          at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:87)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.CR1-SNAPSHOT.jar:]

       

      our web.xml looks like:

       

      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
      
      <web-app>
          <display-name>XTS Service Tests Service</display-name>
      
          <description>XTS Service Tests Service</description>
          ...
      </web-app>
      

       

      any idea about this issue ?

      Thanks,

       

      Amos