4 Replies Latest reply on Jan 8, 2002 5:23 PM by Phil Shrimpton

    Can't find DTD

    Alan Choy Newbie

      I'm running JBoss-2.2.2_Tomcat-3.2.2 on Linux (I think this is the latest version on Linux), and when I deployed my ear file, I got the following error messsage:
      [Auto deploy] XmlMapper: Can't find resource for entity: -//Sun Microsystems, Inc.//DTD Web Application 2.3/EN --> http://java.sun.com/dtd/web-app_2_3.dtd "null"
      Does it mean this jboss version doesn't support the DTD, or something else? If so, how I can solve it?

        • 1. Re: Can't find DTD
          Moise Bunel Marian Newbie

          I had the same problem when I was not connected to Internet.
          I found the DTD's in the j2ee distribution from SUN. After you install it it will create a subdirectory /lib/dtds . All the DTD files will be there. I made a directory /dtd on my Apache docroot and I copied those files in that directory. After that I modified my "hosts" file so that java.sun.com points to . Then I started my apache server. After that I could make the deployment because JBoss was able to find the DTD on my own machine thinking that it is java.sun.com .
          I think you can also download only the necessary dtd files on your machine from java.sun.com .

          • 2. Re: Can't find DTD
            marc fleury Master

            can I ask you to "FAQ" this, put an entry in the FAQ forum with a summary of the post.

            Also I seem to remember that the validation is now optional in 3.0 but I would have to check that.

            • 3. Re: Can't find DTD
              Alan Choy Newbie

              But I'm connected to the internet, and has access to the DTD that I specified in my original mail, so it may not be the same reason as what bunel1 suggested.

              My thought is, what web-app DTD version that JBoss 2.2.2 supports? Is it possible that the DTD and JBoss version incompatible?

              • 4. Re: Can't find DTD
                Phil Shrimpton Newbie


                Try changing the "DTD Web Application 2.3" bit to "DTD Web Application 2.2". This normally works for me when I have this problem