Wouldn't this make the corresponding XML document kind of non-standard? I'd like to suggest another solution: prevent the XML parser from loading the DTD.
There would not be any need to add more and more DTDs to JBoss jar, nor to work with non-standard doctype declarations. This can be done with Xerces (just set the corresponding feature), but I don't know whether Crimson can be talked into completely ignoring the DTD. Georg -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dain Sundstrom Sent: Tuesday, March 05, 2002 19:26 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] How do I run JBoss when deployment descriptor dtd's are unavailable? It is much easier than that. Just change the url in the doctype to a local file url. -dain Adrian Brock wrote: > This DTD was missing from the XmlFileLoader before Feb 2nd this > year. Any versions of JBoss3 after that should be ok. > > A temporary solution would be to run a webserver on your laptop > and in your host table add the entry > > 127.0.0.1 java.sun.com > > Make sure the ip stack is configured to look at hosts before > the dns. > > Regards, > Adrian > > >> From: "Edward Gemar" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]>, "'Jboss-User \(E-mail\)'" >> <[EMAIL PROTECTED]> >> Subject: RE: [JBoss-user] How do I run JBoss when deployment >> descriptor dtd's are unavailable? >> Date: Tue, 5 Mar 2002 10:58:03 -0600 >> >> JBoss gives me an "External entity not found" error when attempting to >> load my application.xml file. This is reasonable when offline since the >> dtd "http://java.sun.com/dtd/application_1_3.dtd" is indeed inaccessible >> when not connected to the network. I just checked the jboss jar files >> and the dtd is indeed in jboss.jar, but wouldn't I need to change the >> URL in the doctype to point to that one to not get this problem? What >> URL are you using to specify the dtd location? >> >> This is what my doctype statement looks like: >> >> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE >> Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> >> >> >> Edward >> >> Edward Gemar >> ForwardVue Technologies, Inc. >> Austin, TX >> Vox: 512-482-5126 >> Fax: 512-651-3209 >> >> -----Original Message----- >> From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] >> Sent: Tuesday, March 05, 2002 10:46 AM >> To: 'Edward Gemar'; Jboss-User (E-mail) >> Subject: RE: [JBoss-user] How do I run JBoss when deployment descriptor >> dtd's are unavailable? >> >> Hello. >> >> All DTDs should be on your local machine in jboss' jar files. I've never >> encountered such a problem running locally. How does JBoss complain on >> it? >> >> alex >> -----Original Message----- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]]On Behalf Of Edward Gemar >> Sent: Tuesday, March 05, 2002 5:58 PM >> To: [EMAIL PROTECTED] >> Subject: [JBoss-user] How do I run JBoss when deployment descriptor >> dtd's are unavailable? >> Hi all, >> We are setting up a laptop to take to customer sites and demo our J2EE >> app.= We may or may not have internet connectivity at our customer sites >> so it's important that we can run the server offline (i.e. - not >> connected to the internet)== The problem is that JBoss when running >> offline, JBoss complains that it can't the application deployment >> descriptor dtd at =http://java.sun.com/dtd/application_1_3.dtd.= What is >> the correct way, if any, to turn off deployment descriptor dtd >> validation in JBoss?= Any assistance is greatly appreciated. >> >> Edward >> >> > > > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
