This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Forcing local dtds  RSS feed

 
Lallero Lallero
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I'm using jboss 3.2.3 and I'm trying to deploying an ear in Jboss. All goes well if the machine with jboss is connected to internet, but if not xerces tries to download the needed dtd during the deploy, throwing a "connection timeout" error. I've read that you can eliminate DOCTYPE from xml descriptor in ear, but for us in not an option. Is there a way to force the use of local dtds without changing the DOCTYPE of every xml in ear?
Thanks in advance.
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss uses a dtd cache, but if your DTD isn't one of the recognised DTD which it caches, then it will always go to the net, or try to.
THere's a whole list of which DTDs JBoss caches, hard-coded in JBossEntityResolver.java.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!