Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JBoss/WildFly
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
JBoss/WildFly
DTD problem
Kousik Majumder
Ranch Hand
Posts: 244
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
Can somebody tell me how
Jboss
treat the DTD in .xml files ?
Actually we have a custom .xml file which has a application specific dtd.
While reading the .xml it is getting MalformedURLException.
What is the way out?
Thanks in Advance,
Kousik
Peter Johnson
author
Posts: 5856
7
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The DTD will be looked up, based on the URL given, and used to validate the XML file. Possibly there is something wrong in the XML file.
Please post the full exception stack trace, and the XML file (or at least enough of it to include the possible URL).
JBoss In Action
Kousik Majumder
Ranch Hand
Posts: 244
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Below is the error given.
[color=red]16:21:57,218 INFO [STDOUT] java.net.MalformedURLException 16:21:57,218 INFO [STDOUT] at java.net.URL.<init>(URL.java:601) 16:21:57,218 INFO [STDOUT] at java.net.URL.<init>(URL.java:464) 16:21:57,218 INFO [STDOUT] at java.net.URL.<init>(URL.java:413) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.impl.XMLEntityManager.setup CurrentEntity(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.impl.XMLEntityManager.start Entity(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.impl.XMLEntityManager.start DTDEntity(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.impl.XMLDTDScannerImpl.setI nputSource(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.impl.XMLDocumentScannerImpl $DTDDispatcher.dispatch(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.impl.XMLDocumentFragmentSca nnerImpl.scanDocument(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.parsers.XML11Configuration. parse(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.parsers.XML11Configuration. parse(Unknown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.parsers.XMLParser.parse(Unk nown Source) 16:21:57,218 INFO [STDOUT] at org.apache.xerces.parsers.AbstractSAXParser.p arse(Unknown Source) 16:21:57,218 INFO [STDOUT] at com.test.util.xml.XMLLoader.load(XMLLoade r.java:75) [/color]
The .xml file code snippet is given below:
<?xml version="1.0"?> <!DOCTYPE CONTROLS SYSTEM "controls.dtd"> <CONTROLS> <CONTROL name="driverId" type="integer" mandatory="no"> <PROPERTY name="min" value="0"/> <PROPERTY name="readonly" value="true"/> <PROPERTY name="size" value="8"/> </CONTROL> </CONTROLS>
Thanks in Advance,
Kousik
Peter Johnson
author
Posts: 5856
7
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
JBoss AS is not reading this XML file, your code is. Or at least I believe that com.test.util.xml.XMLLoader is your class, which is using Xerces to read the XML.
JBoss In Action
Hot dog! An advertiser loves us THIS much:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is no
xml
java.util.Properties loadXMLFile()
xml
while loadding i am getting error
More...