0 Replies Latest reply on Aug 3, 2016 5:31 AM by nanacano

    Eclipse error. The content of element type "jboss-web" must match ... jboss-web.xml

    nanacano

      I use eclipse mars.2

      I'm trying to import existing ecplipse project and i'm getting an error. I know that project doesn't have any problems

      Error:

      The content of element type "jboss-web" must match "(class-loading?,security-domain?,context-root?,virtual-host*,use-session-cookies?,replication-config?,resource-env-ref*,resource-ref*,security-role*,ejb-ref*,ejb-local-ref*,message-destination-ref*,message-destination*,webservice-description*,service-ref*,depends*,servlet*,authenticators*)".   

       

      jboss-web.xml    file

      <!DOCTYPE jboss-web PUBLIC

        "-//JBoss//DTD Web Application 2.4//EN"

        "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">

       

      <jboss-web>

          <security-domain>java:/jaas/SPNEGO</security-domain>

      <valve>

              <class-name>org.jboss.security.negotiation.NegotiationAuthenticator</class-name>

          </valve>

      </jboss-web>

       

      I don't understand why jboss-web_4_0.dtd doesn't contain valve.

      When i delete valve the error disapears, but i need it.

      Please help me.