I am new to resin websever.I am facing some problems when i try to use resin
as webserver for a webapplication we developed.

I am getting the following error when i tried to load the jsp page.

[22:57:06.312] Caused by: com.caucho.jsp.JspLineParseException:
/jsp/common/taglibs.jsp:1: The taglib prefix 'c' must be defined before any
matching p
refixes are used.
[22:57:06.312]
[22:57:06.312] 1:  <%@ taglib uri="http://java.sun.com/jstl/core_rt";
prefix="c" %>
[22:57:06.312] 2:  <%@ taglib uri="http://java.sun.com/jsp/jstl/functions";
prefix="fn" %>
[22:57:06.312] 3:  <%@ taglib uri="http://java.sun.com/jstl/fmt_rt";
prefix="fmt" %>
[22:57:06.312]
[22:57:06.312]  at com.caucho.jsp.JspParser.error(JspParser.java:1779)
[22:57:06.312]  at
com.caucho.jsp.JspParser.processTaglibDirective(JspParser.java:1345)
[22:57:06.312]  at
com.caucho.jsp.JspParser.parseDirective(JspParser.java:884)
[22:57:06.312]  at
com.caucho.jsp.JspParser.parseScriptlet(JspParser.java:758)
[22:57:06.312]  at com.caucho.jsp.JspParser.parseNode(JspParser.java:462)
[22:57:06.312]  at com.caucho.jsp.JspParser.parseJsp(JspParser.java:362)
[22:57:06.312]  at com.caucho.jsp.JspParser.parse(JspParser.java:255)
[22:57:06.312]  at
com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:489)
[22:57:06.312]  at
com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:386)
[22:57:06.312]  at com.caucho.jsp.JspManager.compile(JspManager.java:236)
[22:57:06.312]  at com.caucho.jsp.JspManager.createPage(JspManager.java:166)
[22:57:06.312]  at com.caucho.jsp.JspManager.createPage(JspManager.java:146)
[22:57:06.312]  at com.caucho.jsp.PageManager.getPage(PageManager.java:241)
[22:57:06.312]  at com.caucho.jsp.PageManager.getPage(PageManager.java:157)
[22:57:06.312]  at com.caucho.jsp.QServlet.getSubPage(QServlet.java:294)
[22:57:06.312]  at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
[22:57:06.312]  at
com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:233)
[22:57:06.312]  at
com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:143)
[22:57:06.312]  at
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
[22:57:06.312]  at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
[22:57:06.312]  at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:279)
[22:57:06.312]  at
com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
[22:57:06.312]  at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
[22:57:06.312]  at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
[22:57:06.312]  at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
[22:57:06.312]  at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
[22:57:06.312]  at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
[22:57:06.312]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:115)
[22:57:06.312]  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
[22:57:06.312]  at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
[22:57:06.312]  at
com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
[22:57:06.312]  at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:226)
[22:57:06.312]  at
com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:488)
[22:57:06.312]  at
com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:353)
[22:57:06.312]  at
org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:296)
[22:57:06.312]  ... 76 more

After looking in to the jsp code what we written, and understand this
problem is causing because of we defined jsp tablib directive multiple
places.




when if we use any tablib references in between the tablib directive
declaration we are getting the above error.


Basically we are including the some jsp pages in the main page.so we are
defining the tablib primitives in the subpages also

for Ex:

MainPage.jsp

-----------------x-----------------x-------------------- Start of the
mainpage.jsp
---------------x----------------------------------x--------------------

<[EMAIL PROTECTED]   contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt"; prefix="fmt" %>


<@include file="/jsp/include/Menu.jsp"@>


-----------------x-----------------x---------------------end of the
mainpage.jsp
--------------x----------------------------------x--------------------

Menu.jsp
-----------------x-----------------x------------------   start of the
menu.jsp
----------------x----------------------------------x--------------------

<[EMAIL PROTECTED]   contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt"; prefix="fmt" %>

<ul>
<li>
menu1
</li>
<li>
menu2
</li>
</ul>

-----------------x-----------------x------------------- end of the menu.jsp
----------------x----------------------------------x--------------------

When i try to load the jsp MainPage.jsp i am getting this error.


Can any one have any idea please update me please.

-- 
View this message in context: 
http://www.nabble.com/resin-problems-with-the-jsp-taglib-tf3153018.html#a8743016
Sent from the Resin mailing list archive at Nabble.com.



_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to