Hi,
Oleg Nitz wrote:
>> Should the validating parser connect to www.jboss.org during deployment?
>> I remember that I had problems with some validating parser being behind
>> firewall and parsing such as valid document.
>> What about users without Internet connection?
Aaron Mulder wrote:
AM> What I have done before is write a custom EntityResolver that
AM> loads the DTDs from the ClassPath, and then handles calls to the network
AM> by substituting the appropriate byte array from RAM instead. Much
AM> faster that way, too. :)
Jay Walters wrote:
JW> Can you come up with any relative path and put the DTD in the
JW> local filesystem?
I'd vote for the solution by Aaron Mulder rather than
for the solution by Jay Walters, because the validating parser will
work also with ejb-jar.xml files, which must contain
<!DOCTYPE ejb-jar ..."http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
So, let's put all needed DTDs to "dtds" dir in jBoss distribution
and add ../dtds to the classpath.
Best regards,
Oleg