5 Replies Latest reply on Aug 26, 2009 7:01 AM by wolfgangknauf

    Uploading dtd files in JBoss

    ramboid

      Where shoudl I upload dtd files for xml files that my web pplications serve? I can add the url for the dtd in the prologue of the xml file so the dtd can be used seamleassly

        • 1. Re: Uploading dtd files in JBoss
          wolfgangknauf

          Hi,

          you might take a look at "server\...\conf\jax-ws-catalog.xml", this seems to be a catalog which provides local locations of DTDs/XSDs.
          Maybe this is only for web services, but hopefully it is used for general catalog resolving.

          Hope this helps

          Wolfgang

          • 2. Re: Uploading dtd files in JBoss
            ramboid

            Thank you Wolfgang. Did you find any information about this in the Wiki? I have looked but I aeem to be missing further information about catalogs in wiki pages for the Jax-WS. Also, do you know if the Entity Resolvers can help with this. There is an example in the Wiki but it is difficult to follow due to its brevity.

            • 3. Re: Uploading dtd files in JBoss
              wolfgangknauf

              Hi,

              sorry, I cannot help you further. I once found this config file and assumed that it might be used for mapping to local DTDs. But I am not sure about this. So, if you find something, please post a solution here ;-).

              Wolfgang

              • 4. Re: Uploading dtd files in JBoss
                ramboid

                The only solution that occurs to me is to upload the dtd files in the ROOT folder and add a namespace pointing to the folder.
                The impression that I have is that the resolver is a new development in JBoss so we may have to wait for a more detailed documentation. Nevertheless, it seems that it wil be quite useful.

                • 5. Re: Uploading dtd files in JBoss
                  wolfgangknauf

                  Hi,

                  could you document your findings here? I am interested myself in how you resolved it ;-)

                  Thanks

                  Wolfgang