[opencms-dev] Attribute file does not accept any expressions

Cielma, Ricky Ricky.Cielma at FamilyHeritageLife.com
Wed Jan 12 16:36:44 CET 2005


While attempting to test my site with the new version of OpenCms and
Tomcat I am receiving the error message posted below.
 
The production site was developed to Tomcat 4.1 the test dev site is
Tomcat 5.5.  This is a Windows 2000 server running TomCat 5.5.4
standalone with OpenCms 5.0.1.  



javax.servlet.ServletException: Resource loader error in file
'/system/modules/.../jsptemplates/secondary.jsp'

Root cause:
org.apache.jasper.JasperException:
/WEB-INF/jsp/online/system/modules/.../jsptemplates/secondary.jsp.jsp(68
,8) According to TLD or attribute directive in tag file, attribute file
does not accept any expressions
	at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:39)
	at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:405)
	at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:146)
	at
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(
Validator.java:955)
	at
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav
a:710)
	at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
	at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
	at
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.jav
a:730)
	at
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
	at
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
	at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
	at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
	at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
	at
org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
	at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
	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.ja
va:556)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:296)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:674)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:576)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:501)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:158)
	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:972)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:256)
	at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
	at
com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at
com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.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:1
48)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
5)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:731)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:526)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
	at java.lang.Thread.run(Unknown Source)

--------------- End of root cause.

	at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:979)
	at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDi
spatcher.java:256)
	at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:577)
	at
com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:239)
	at com.opencms.core.OpenCms.showResource(OpenCms.java:961)
	at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
	at
com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:331)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.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:1
48)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82
5)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:731)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:526)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
	at java.lang.Thread.run(Unknown Source)


I've seen some reference to changing the directive from:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
to 
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %> 

But I cant seem to find that in any of our code.  


The file/line mentioned above in jsptemplates/secondary.jsp.jsp(68,8)
looks like this:

        <cms:include file="<%=sidebar%>"/>



Thanks in advance for any help.





More information about the opencms-dev mailing list