I am facing below exception while generating java file from DTD. I have validated the dtd file in eclipse and there were no errors.I am using JAXB.
Command used is "xjc -dtd -d generated -p jx tql.toc.dtd"
Exception is
parsing a schema...
Internal DTD parser error: java.util.MissingResourceException: Can't find bundle
for base name com.sun.xml.dtdparser.resources.Messages, locale en
at java.util.ResourceBundle.throwMissingResourceExcep tion(ResourceBundle
.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBun dle.java:726)
at java.util.ResourceBundle.getBundle(ResourceBundle. java:576)
at com.sun.xml.dtdparser.MessageCatalog.getMessage(Me ssageCatalog.java:2
36)
at com.sun.xml.dtdparser.DTDParser.warning(DTDParser. java:2205)
at com.sun.xml.dtdparser.DTDParser.maybeEntityDecl(DT DParser.java:1778)
at com.sun.xml.dtdparser.DTDParser.maybeMarkupDecl(DT DParser.java:853)
at com.sun.xml.dtdparser.DTDParser.externalParameterE ntity(DTDParser.jav
a:1942)
at com.sun.xml.dtdparser.DTDParser.parseInternal(DTDP arser.java:294)
at com.sun.xml.dtdparser.DTDParser.parse(DTDParser.ja va:192)
at com.sun.tools.xjc.reader.dtd.TDTDReader.parse(TDTD Reader.java:112)
at com.sun.tools.xjc.ModelLoader.loadDTD(ModelLoader. java:270)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.jav a:127)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.jav a:91)
at com.sun.tools.xjc.Driver.run(Driver.java:263)
at com.sun.tools.xjc.Driver.run(Driver.java:170)
at com.sun.tools.xjc.Driver._main(Driver.java:95)
at com.sun.tools.xjc.Driver.access$000(Driver.java:53 )
at com.sun.tools.xjc.Driver$1.run(Driver.java:75)
Exception in thread "main" java.lang.NullPointerException
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.jav a:155)
at com.sun.tools.xjc.ModelLoader.load(ModelLoader.jav a:91)
at com.sun.tools.xjc.Driver.run(Driver.java:263)
at com.sun.tools.xjc.Driver.run(Driver.java:170)
at com.sun.tools.xjc.Driver._main(Driver.java:95)
at com.sun.tools.xjc.Driver.access$000(Driver.java:53 )
at com.sun.tools.xjc.Driver$1.run(Driver.java:75)