1 Reply Latest reply on Apr 4, 2011 5:58 AM by Alessio Soldano

    version attribute in jboss-web.xml?

    Joseph Hwang Novice

      I'm using JBoss 5.1.0 GA.

      I insert jboss-web.xml file in WAR#WEB-INF folder.

      File is like belows

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd" version="5.1">
      <context-root>/ws</context-root>
      </jboss-web>

       

      But deploy is failed.

       

      The reason is -> org.xml.sax.SAXException: cvc-complex-type.3.2.2: Attribute 'version' is not allowed to appear in element 'jboss-web'.

       

      In http://www.jboss.org/j2ee/schema/jboss-web_5_1.xsd file, jboss-web attribute 'version' is described!

      Pls inform me of your advice. Thanks in advance

       

      Best Regards.