• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dtd path

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks!

I have a question..the thing is im trying to distribute my DTD file with my ear application but I don�t know how to reference my dtd when its inside the ear.

Whenever i try to reference the dtd , my application server (Jboss) always looks for the "%JBOSS_HOM%\bin" PATH.

can anyone help me out?

I would be glad

thanks in advance!

PS: Sorry for the bad english
[ April 10, 2006: Message edited by: alberto ngai ]
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Surely you are accessing an XML file that contains a reference to the DTD? And I suppose it must be a relative reference. In that case you are most likely passing the XML to the parser in such a way that it can't tell what the XML's base URL is. (I.e. what directory it is in.) If you post the code where you parse the XML, perhaps we could suggest how to modify it.
 
alberto ngai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
my dtd(users.dtd).



my xml


If anyone can give me a example on how to identify the correnct relative path to call my dtd from the ear file I would be really glad
 
Paul Clapham
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I said before,

If you post the code where you parse the XML, perhaps we could suggest how to modify it.

So far you have confirmed that your XML is using a relative reference to the DTD, and they should be in the same directory. The example you want is the example that is based on the code you are using now. So please post the code where you parse the XML.
 
alberto ngai
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Clapham:
As I said before, So far you have confirmed that your XML is using a relative reference to the DTD, and they should be in the same directory. The example you want is the example that is based on the code you are using now. So please post the code where you parse the XML.



ops, sorry I missread

Anywyay , I already resolved my problem. If you guys want I can show you guys

Thanks anyway
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alberto, would it be possible for you to post your solution?

I have a similar problem. I would like to be able to refer to a dtd which is deployed in my war file. It's a third party dtd (tiles-config_1_3.dtd), but I'd like to deploy it in the war as the server I'm deploying it to can't access external urls.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic