• 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

Error parsing TLD?!

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone:
I test my taglib file use JRun.I place the .tld and the .class in correct dir.But when I compile my jsp file testtag.jsp and JRun report the under error:
////////////////////////testtag.jsp/////////////
Error parsing TLD '/WEB-INF/taglib/mytag.tld': com.sun.xml.parser/P-082 http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd.
org.xml.sax.SAXParseException: com.sun.xml.parser/P-082 http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd
at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
at com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506)
at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
at com.sun.xml.parser.Parser.parse(Parser.java:284)
at com.sun.xml.parser.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:95)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:78)
at allaire.jrun.jsp.JRunTagLibraryInfo.<init>(../jsp/JRunTagLibraryInfo.java:198)
at allaire.jrun.jsp.JRunTagLibraryInfo.lookupTLI(../jsp/JRunTagLibraryInfo.java:109)
at allaire.jrun.jsp.JSPParser.taglibDirective(../jsp/JSPParser.java:842)
at allaire.jrun.jsp.JSPParser.directive(../jsp/JSPParser.java:973)
at allaire.jrun.jsp.JSPParser.parse(../jsp/JSPParser.java:921)
.. ...... ........ ... . ....... ........
It seems the .dtd problem. What does it mean?Could anyone explanation for me?
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps if you show us your mytag.tld and .dtd files . . .
Of course this:
maybeDoctypeDecl
makes me think that it might be how you saved the files. Could you have saved them as .DOC files instead of text files?
reply
    Bookmark Topic Watch Topic
  • New Topic