[opencms-dev] How to add/use custom tld/tags libraries in OpenCMS 6.0
EMargineanu at master.md
EMargineanu at master.md
Thu Jul 21 09:11:03 CEST 2005
I add my tld's to web.xml:
<taglib>
<taglib-uri>domtags.tld</taglib-uri>
<taglib-location>/WEB-INF/domtags.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>domutil.tld</taglib-uri>
<taglib-location>/WEB-INF/domutil.tld</taglib-location>
</taglib>
and all jar's to lib folder.
When I try to create a jsp resource in OpenCMS, i wrote next code
<%@page buffer="none" session="false" import="org.opencms.file.*,
org.opencms.jsp.*, java.util.*, org.opencms.frontend.templateone.*" %>
<%@ taglib uri="WEB-INF/lib/domtags.tld" prefix="domino" %>
<%@ taglib uri="WEB-INF/lib/domutil.tld" prefix="domutil" %>
<%
// initialize action element to access the API
CmsTemplateNavigation cms = new CmsTemplateNavigation(pageContext,
request, response);
%><%= cms.buildNavigationLeft() %><% cms.buildNavLeftIncludeElement(); %>
<domino:view
dbname="domino\site.nsf"
dbserver="Master/MasterLtd"
viewname="WebPrice"
max="1000"
host="192.168.10.10"
onfailure="exception">Test </domino:view>
But it doesn't work. My error is:
org.apache.jasper.JasperException: File
"/WEB-INF/jsp/offline/system/modules/org.opencms.frontend.templateone/elements/WEB-INF/lib/domtags.tld"
not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
at
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
at
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
at
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:193)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:171)
at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:402)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:175)
at
org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:215)
at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:384)
at
org.opencms.jsp.CmsJspActionElement.include(CmsJspActionElement.java:408)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templateone.templates.main_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templateone.templates.main_jsp:292)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:193)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:171)
at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:402)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:175)
at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:434)
at
org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:381)
at
org.opencms.loader.CmsXmlPageLoader.load(CmsXmlPageLoader.java:213)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:711)
at
org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1302)
at
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
--
Egor Margineanu
Software Engineer/DBA
e-mail: emargineanu at master.md
phone: +373-691-73546
opencms-dev-bounces at opencms.org wrote on 19.07.2005 14:42:50:
> Hi Egor
>
> Check the web.xml that is in \opencms\WEB-INF. you can add your own
> there and put the *.jar to \lib
>
> eg:
> <taglib>
> <taglib-uri>http://jakarta.apache.org/taglibs/datetime-1.0</taglib-uri>
> <taglib-location>/WEB-INF/datetime.tld</taglib-location>
> </taglib>
>
> Regards
> Corsin
>
> On 7/19/05, EMargineanu at master.md <EMargineanu at master.md> wrote:
> >
> > Hi all. I want to use Lotus Domino tags libraries with OpenCMS. How I
can
> > add this libraries?
> > --
> > Egor Margineanu
> > Software Engineer/DBA
> > e-mail: emargineanu at master.md
> > phone: +373-691-73546
> > ------------------------------------------
> > ------------------------------------------
> > MASTER, Ltd.
> > 29, Muncesti str., MD-2001, Chisinau,
> > Moldova.
> > Phone: +373 22 545118 (5 lines)
> > Fax: +373 22 544622
> >
> >
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list, please
visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
> >
>
>
> --
> Corsin Camichel
> cocaman at gmail.com
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
------------------------------------------
------------------------------------------
MASTER, Ltd.
29, Muncesti str., MD-2001, Chisinau,
Moldova.
Phone: +373 22 545118 (5 lines)
Fax: +373 22 544622
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050721/c878a19d/attachment.htm>
More information about the opencms-dev
mailing list