Mantis - Resin
Viewing Issue Advanced Details
3937 minor always 03-10-10 03:00 03-10-10 09:31
tangxj  
ferg  
normal  
closed 4.0.4  
fixed  
none    
none 4.0.5  
0003937: jsp taglib
I am getting the folowing error when I used Resin 4.0.4,It's alright in Resin 3.2.0

com.caucho.jsp.JspLineParseException: /index.jsp:2: null
at com.caucho.jsp.JspParser.error(JspParser.java:2157)
at com.caucho.jsp.JspParser.processTaglib(JspParser.java:1780)
at com.caucho.jsp.JspParser.processTaglibDirective(JspParser.java:1747)
at com.caucho.jsp.JspParser.parseDirective(JspParser.java:1251)
at com.caucho.jsp.JspParser.parseScriptlet(JspParser.java:1123)
at com.caucho.jsp.JspParser.parseNode(JspParser.java:484)
at com.caucho.jsp.JspParser.parseJsp(JspParser.java:384)
at com.caucho.jsp.JspParser.parse(JspParser.java:266)
at com.caucho.jsp.JspCompilerInstance.parse(JspCompilerInstance.java:539)
at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:475)
at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:407)
at com.caucho.jsp.JspManager.compile(JspManager.java:242)
at com.caucho.jsp.JspManager.createPage(JspManager.java:171)
at com.caucho.jsp.JspManager.createPage(JspManager.java:150)
at com.caucho.jsp.PageManager.getPage(PageManager.java:336)
at com.caucho.jsp.PageManager.getPage(PageManager.java:266)
at com.caucho.jsp.QServlet.getPage(QServlet.java:343)
at com.caucho.server.dispatch.ServletConfigImpl.createJspServlet(ServletConfigImpl.java:1319)
at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:1244)
at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:1142)
at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:236)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:81)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:88)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:103)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:286)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:780)
at com.caucho.server.connection.TcpConnection.dispatchRequest(TcpConnection.java:600)
at com.caucho.server.connection.TcpConnection.handleRequestsImpl(TcpConnection.java:566)
at com.caucho.server.connection.TcpConnection.handleRequests(TcpConnection.java:519)
at com.caucho.server.connection.TcpConnection$AcceptTask.doTask(TcpConnection.java:1100)
at com.caucho.server.connection.TcpConnection$ConnectionReadTask.runThread(TcpConnection.java:1037)
at com.caucho.server.connection.TcpConnection$AcceptTask.run(TcpConnection.java:1068)
at com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
Caused by: com.caucho.jsp.JspParseException
at com.caucho.jsp.TldManager.init(TldManager.java:232)
at com.caucho.jsp.TldManager.parseTld(TldManager.java:484)
at com.caucho.jsp.TaglibManager.readTaglib(TaglibManager.java:253)
at com.caucho.jsp.TaglibManager.getTaglib(TaglibManager.java:170)
at com.caucho.jsp.ParseTagManager.addTaglib(ParseTagManager.java:264)
at com.caucho.jsp.JspParser.processTaglib(JspParser.java:1773)
... 34 more
Caused by: java.lang.NullPointerException
at com.caucho.server.dispatch.ServletManager.isFacesServletConfigured(ServletManager.java:93)
at com.caucho.server.webapp.WebApp.isFacesServletConfigured(WebApp.java:2089)
at com.caucho.jsp.cfg.TldListener.register(TldListener.java:89)
at com.caucho.jsp.cfg.TldPreload.initListeners(TldPreload.java:144)
at com.caucho.jsp.TldManager.init(TldManager.java:230)
... 39 more

the contents of index.jsp are just three rows:

<%@ page language="java" contentType="text/html; charset=GB2312"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<s:action name="loginAction!main" namespace="/system" executeResult="true"/>
This error just occurs in the first time Resin complie JSPs after the server started. After that, reload the page or some other operations, that would never happen again, only when the server restarts.

Notes
(0004461)
ferg   
03-10-10 09:31   
thanks for the bug report.

FYI, the problem is triggered by a different non-JSP servlet declaration (one with a missing servlet-class), so the JSP file itself doesn't matter.