4 Replies Latest reply on Mar 7, 2006 2:43 PM by valentino

    2.4 web application deployment descriptor validation problem

    dkar

      I am having the same problem. My application runs perfectly fine, I only get these errors when using Jboss IDE web.xml editor.

      These are some sample errors:

      cvc-id.3: A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type.
      
      src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component.
      


      These are the declarations at the top of web.xml.
      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      


      Can anyone help? It's a bit annoying seeing all those errors.

      Cheers!

        • 1. Re: 2.4 web application deployment descriptor validation pro
          neelixx

          No responses? I, too, have this problem. Application deploys okay, but Eclipse is telling me I have errors in my project. It's hard for me to tell when the errors are my mistakes...............

          I have two of the same errors in my web.xml file, when I declare my <servlet-name> and when I declare my <filter-name>.

          • 2. Re: 2.4 web application deployment descriptor validation pro
            jbosschecker

             

            "Terok" wrote:
            I get these kind of errors with a web app 2.4 deployment descriptor with JBOSS IDE 1.5 preview (jre 1.5):

            "src-resolve: Cannot resolve the name 'j2ee:descriptionType' to a(n) 'type definition' component."

            "cvc-id.3: A field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple type."

            I get these same errors even when I just create a new descriptor using the JBOSS-IDE web desciptor wizard, open it and re-save it.



            Hi!
            I got the same error message working with that web.xml.
            Is there anybody, who has solved the problem?
            Additionaly I cant compiling my java files:
            I'm trying the jboss ide example articles and nothong happens, at the "packaging" step!!

            I'm going mad!!

            Why dose Eclipse not compile the sources? Could it depend on the web.xml problem?



            • 3. Re: 2.4 web application deployment descriptor validation pro
              valentino

              I'm seeing the same thing. Anyone get a resolution on this one?
              Thx

              • 4. Re: 2.4 web application deployment descriptor validation pro
                valentino

                I wouldn't say I'm satisfied with my understanding of this yet, but after removing - refreshing - and readding the xsd reference in my xml this error has gone away.
                Thx