[
http://jira.codehaus.org/browse/DISPL-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_97421
]
Anand Pillai commented on DISPL-91:
-----------------------------------
i removed the example tags in displaytag.tld and displaytag-el.tld and tried
running it, It did not work. I got the followung errrors.
java.lang.NullPointerException
at jrun.jsp.compiler.Utils.isPrimitive(Utils.java:62)
at
jrun.jsp.compiler.JSPCompiler$CustomTagExpander.insertAttributes(JSPCompiler.java:592)
at
jrun.jsp.compiler.JSPCompiler$CustomTagExpander.start_tag(JSPCompiler.java:404)
at jrun.jsp.parser.JSPVisitor.start_tag(JSPVisitor.java:119)
at jrun.jsp.parser.SimpleNode.visit(SimpleNode.java:217)
at jrun.jsp.parser.SimpleNode.visitChildren(SimpleNode.java:189)
at jrun.jsp.parser.JSTVisitor.jsp(JSTVisitor.java:13)
at jrun.jsp.compiler.JSPCompiler.compile(JSPCompiler.java:115)
at jrun.jsp.compiler.JSPCompiler.compile(JSPCompiler.java:95)
at jrun.jsp.Translator.parsePage(Translator.java:143)
at jrun.jsp.Translator.translate(Translator.java:252)
at jrun.jsp.Translator.translate(Translator.java:101)
at jrun.jsp.JSPEngine.translateJSP(JSPEngine.java:693)
at jrun.jsp.JSPServlet.translate(JSPServlet.java:125)
at jrun.jsp.JSPServlet.service(JSPServlet.java:113)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:534)
at
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:503)
at
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:177)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.java:534)
at
jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatcher.java:503)
at
jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:177)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:259)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> tld doesn't work in JRun4 (invalid example tag)
> -----------------------------------------------
>
> Key: DISPL-91
> URL: http://jira.codehaus.org/browse/DISPL-91
> Project: DisplayTag
> Issue Type: Bug
> Components: Container Compability
> Affects Versions: 1.0 RC1
> Reporter: fabrizio giustina
> Assignee: fabrizio giustina
> Fix For: 1.0 RC2
>
>
> ====
> imported from sf tracker
> id 912023
> submitted by greg copeland - gcopeland
> http://sourceforge.net/support/tracker.php?aid=912023
> ====
> 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)
> ===
> Date: 2004-03-11 21:28
> Sender: fgiust
> 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.
> ===
> Date: 2004-10-26 04:16
> Sender: ckevinhill
> Still an issue for me for all the tld descriptors (11, 12, el)
> with jrun4.
> ===
> Date: 2004-10-28 18:39
> Sender: gcopeland
> 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.
> ===
> Date: 2004-11-02 14:01
> Sender: fgiust
> 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?
> ===
> Date: 2004-11-02 16:51
> Sender: gcopeland
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel