[opencms-dev] Problem with Jboss 4.2.3 and 7.0.5

Ivan Codarin ivan.codarin at gmail.com
Sat Jan 17 15:12:48 CET 2009


A note for people using JBOSS.


JBoss is using JSTL 1.2.
Opencms 7.0.5 is using JSTL 1.1.2

When you install opencms on jboss you will have a confligting jar.

What I done to solve the problem?

cd  to .... deploy/opencms.war/WEB-INF/lib
mv jstl-* ..
cp ....deploy/jboss-web.deploy/jstl.jar ....deploy/opencms.war/WEB-INF/lib


Now opencms is working well!

ivan

2009/1/17 Ivan Codarin <ivan.codarin at gmail.com>

> Dears,
> I've a Linux operating system running Jboss 4.2.3 (JDK 1.6) and Opencms
> 7.0.5.
>
> When I'm logged in and I click to see/edit "Opencms Demo" on the default
> website I had this kind of error:
>
> javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 28 in the jsp file: /WEB-INF/jsp/offline/system/modules/org.opencms.frontend.templatetwo/elements/boxes/textbox.jsp
>
> The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
> 25: 						<c:set var="uriParams" value="" />
> 26: 						<cms:include file="">
>
> 27: 							<cms:param name="box.uri" value="" />
> 28: 							<c:forTokens items="" delims="&" var="uriParam">
> 29: 								<cms:param name="" value="" />
>
> 30: 							</c:forTokens>
> 31: 						</cms:include>
>
>
> Stacktrace:
> 	at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
> 	at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo_demo.pages.article_jsp._jspService(article_jsp.java:291)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
>
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
>
> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
>
> 	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
>
> 	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1227)
> 	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1171)
> 	at org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java:232)
>
> 	at org.opencms.loader.CmsXmlContentLoader.load(CmsXmlContentLoader.java:52)
> 	at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
> 	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1498)
>
> 	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>
> 	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
> 	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
> 	at org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn.invoke(ClusteredSingleSignOn.java:638)
>
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
> 	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
>
> 	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
> 	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
> 	at java.lang.Thread.run(Thread.java:619)
>
> Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP:
>
> An error occurred at line: 28 in the jsp file: /WEB-INF/jsp/offline/system/modules/org.opencms.frontend.templatetwo/elements/boxes/textbox.jsp
>
> The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
> 25: 						<c:set var="uriParams" value="" />
> 26: 						<cms:include file="">
>
> 27: 							<cms:param name="box.uri" value="" />
> 28: 							<c:forTokens items="" delims="&" var="uriParam">
> 29: 								<cms:param name="" value="" />
>
> 30: 							</c:forTokens>
> 31: 						</cms:include>
>
>
> Stacktrace:
> 	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
> 	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
>
> 	at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
> 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
> 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
>
> 	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
> 	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
>
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
>
> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
>
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
> 	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
>
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
> 	at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364)
> 	at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
>
> 	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.elements.boxes_jsp._jspx_meth_cms_005finclude_005f0(boxes_jsp.java:540)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.elements.boxes_jsp._jspx_meth_c_005fwhen_005f1(boxes_jsp.java:485)
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.elements.boxes_jsp._jspx_meth_c_005fchoose_005f1(boxes_jsp.java:435)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.elements.boxes_jsp._jspx_meth_c_005fif_005f0(boxes_jsp.java:381)
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.elements.boxes_jsp._jspx_meth_c_005fforEach_005f0(boxes_jsp.java:338)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.elements.boxes_jsp._jspService(boxes_jsp.java:102)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
>
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
> 	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193)
>
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
> 	at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364)
>
> 	at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
> 	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.templates.main_jsp._jspx_meth_cms_005finclude_005f4(main_jsp.java:1054)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.templates.main_jsp._jspx_meth_c_005fif_005f3(main_jsp.java:950)
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.templates.main_jsp._jspx_meth_cms_005ftemplate_005f0(main_jsp.java:276)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo.templates.main_jsp._jspService(main_jsp.java:135)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
>
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
> 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:557)
> 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:481)
>
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
> 	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1193)
>
> 	at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
> 	at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
> 	at org.opencms.jsp.CmsJspTagInclude.includeActionWithCache(CmsJspTagInclude.java:364)
>
> 	at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:241)
> 	at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:472)
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo_demo.pages.article_jsp._jspx_meth_cms_005finclude_005f0(article_jsp.java:311)
>
> 	at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.org_opencms_frontend_templatetwo_demo.pages.article_jsp._jspService(article_jsp.java:111)
> 	... 44 more
>
>  Any help is appreciated.
> Many thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20090117/9a902a05/attachment.html>


More information about the opencms-dev mailing list