Bugs item #912023, was opened at 2004-03-08 16:08 Message generated for change (Comment added) made by fgiust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536613&aid=912023&group_id=73068
Category: main tag library Group: planned for 1.0 Status: Closed >Resolution: None Priority: 5 Submitted By: greg copeland (gcopeland) Assigned to: fabrizio giustina (fgiust) Summary: Invalid element in displaytag-el.tld Initial Comment: The <example> elements in the displaytag-el.tld are invalid per Sun's tag library DTD. Below is a error trace resulting from adding displaytag.jar to a JRun4 web application - [2]jrun.jsp.compiler.JRunTagLibraryInfo$InvalidTLDElementException: The tag example on line 244 is n ot a valid TLD element at jrun.jsp.compiler.JRunTagLibraryInfo$TLDParser.startElement(JRunTagLibraryInfo.java:613) at jrunx.util.SAXReflectionHandler.startElement(SAXReflectionHandler.java:24) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:333) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:362) at jrun.jsp.compiler.JRunTagLibraryInfo.init(JRunTagLibraryInfo.java:190) at jrun.jsp.compiler.JRunTagLibraryInfo.<init>(JRunTagLibraryInfo.java:119) at jrun.jsp.JSPEngine.checkResourceForTaglibs(JSPEngine.java:483) at jrun.jsp.JSPEngine.findImplicitTaglibs(JSPEngine.java:451) at jrun.jsp.JSPEngine.<init>(JSPEngine.java:141) at jrun.jsp.JSPServlet.init(JSPServlet.java:55) at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204) at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762) at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257) at jrun.deployment.DeployerService.initModules(DeployerService.java:711) at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242) at jrun.deployment.DeployerService.deploy(DeployerService.java:430) at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179) at jrun.deployment.DeployerService.run(DeployerService.java:891) at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) ---------------------------------------------------------------------- >Comment By: fabrizio giustina (fgiust) Date: 2004-11-02 22:20 Message: Logged In: YES user_id=798060 I have reopened the bug on the new jira tracker at http://jira.codehaus.org/browse/DISPL-91 and I am investigating the problem with jrun. Please add the issue on jira to your watch list to be notified about progress. ---------------------------------------------------------------------- Comment By: greg copeland (gcopeland) Date: 2004-11-02 16:51 Message: Logged In: YES user_id=712377 from http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd: <!ELEMENT example (#PCDATA) > from displaytag-1.0-rc1.zip: <example> <![CDATA[ <display:table name="someList" export="true" id="row" requestURI="MyAction.do"> <display:column sortable="true" title="ID"> <c:out value="${row.id}"/> </display:column> <display:column property="email" autolink="true"/> <display:column property="description" title="Comments"/> </display:table> ]]> </example> Two things could be causing the fault with JRun: - You can't put CDATA in a location where PCDATA is expected or - You can put CDATA in a location where PCDATA is expected but you can't leave characters such as the "<" and the "&" unescaped (because the XML parser faults on an invalid entity reference) For me it's a moot point because I no longer use displaytag, but I hope this might help other users. ---------------------------------------------------------------------- Comment By: fabrizio giustina (fgiust) Date: 2004-11-02 14:01 Message: Logged In: YES user_id=798060 from http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd: <!ELEMENT tag (name, tag-class, tei-class?, body-content?, display-name?, small-icon?, large-icon?, description?, variable*, attribute*, example?) > which version of displaytag has this problem on jrun? ---------------------------------------------------------------------- Comment By: greg copeland (gcopeland) Date: 2004-10-28 18:39 Message: Logged In: YES user_id=712377 According to the displaytag team, their tld conforms to Sun's DTD; so they refused to make any changes. I unjarred their distro, manually removed all the <example> elements from their displaytag-el.tld, and then rejarred the files. That fixed the problem for me. ---------------------------------------------------------------------- Comment By: Charles Kevin Hill (ckevinhill) Date: 2004-10-26 04:16 Message: Logged In: YES user_id=692395 Still an issue for me for all the tld descriptors (11, 12, el) with jrun4. ---------------------------------------------------------------------- Comment By: fabrizio giustina (fgiust) Date: 2004-03-11 21:28 Message: Logged In: YES user_id=798060 The <example> elements ARE valid according to the sun dtd. All the dtds (1.1, 1.2, 1.2 EL) validates correctly. Maybe there was an error (in the element order) in the past? I'm closing this bug, since EL support has never been released and appears to be working now. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536613&aid=912023&group_id=73068 ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel