tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale Ogilvie" <Dale_Ogil...@trimble.com>
Subject RE: ClassCastException org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
Date Mon, 13 Aug 2012 03:34:04 GMT
-----Original Message-----
From: Daniel Mikusa [mailto:dmikusa@vmware.com] 

>Maybe try adding the JVM option "-verbose:class" to "bin/setenv.sh".  This option will
cause the JVM to log when a class is loaded and from where it was loaded.
>Dan

The following class load output excerpt results when I request a jsp from app1 (wtpwebapps/PromotionCodes/)
after both app2 (wtpwebapps/OsirisTest) and app1 have been loaded in Tomcat startup. 

After the load of javax.el.ExpressionFactory, various loads from app2 (wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar)
occur.

<snip preceding context>

[Loaded javax.el.ExpressionFactory from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded org.apache.jasper.runtime.JspApplicationContextImpl from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.el.ELContext from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded org.apache.jasper.runtime.ELContextImpl from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.el.ELException from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.ExpressionFactory$CacheValue from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.ExpressionFactory$CacheKey from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded org.apache.el.ExpressionFactoryImpl from file:/C:/apache-tomcat-7.0.27/lib/jasper-el.jar]
[Loaded javax.el.ValueExpression from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded org.apache.el.ValueExpressionLiteral from file:/C:/apache-tomcat-7.0.27/lib/jasper-el.jar]
[Loaded org.apache.jasper.runtime.ProtectedFunctionMapper from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.el.ELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.servlet.jsp.el.ImplicitObjectELResolver from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded javax.el.MapELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.ResourceBundleELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.ListELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.ArrayELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.BeanELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.servlet.jsp.el.ScopedAttributeELResolver from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded javax.el.CompositeELResolver from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.servlet.jsp.JspWriter from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded org.apache.jasper.runtime.JspWriterImpl from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.servlet.jsp.tagext.BodyContent from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded org.apache.jasper.runtime.BodyContentImpl from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.servlet.jsp.el.VariableResolver from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded javax.el.VariableMapper from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded org.apache.jasper.runtime.VariableMapperImpl from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.servlet.jsp.el.ExpressionEvaluator from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded org.apache.jasper.runtime.ExpressionEvaluatorImpl from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded org.apache.jasper.security.SecurityUtil from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/OsirisTest/WEB-INF/lib/jsp-2.1-6.1.14.jar]
[Loaded javax.servlet.jsp.tagext.TryCatchFinally from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded javax.servlet.jsp.tagext.IterationTag from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded javax.servlet.jsp.tagext.TagSupport from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded org.springframework.web.servlet.tags.RequestContextAwareTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.HtmlEscapingAwareTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.MessageTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.support.JspAwareRequestContext from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.util.ExpressionEvaluationUtils from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar]
[Loaded javax.servlet.jsp.el.ELException from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded javax.servlet.jsp.tagext.DynamicAttributes from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
[Loaded org.springframework.web.servlet.tags.EditorAwareTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.AbstractFormTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.AbstractHtmlElementTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.FormTag from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.TagWriter from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.support.BindStatus from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.TagWriter$SafeWriter from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.TagWriter$TagStateEntry from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.servlet.tags.form.ValueFormatter from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web.servlet-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.util.HtmlUtils from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar]
[Loaded org.springframework.web.util.HtmlCharacterEntityReferences from file:/C:/sandpit-28/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/PromotionCodes/WEB-INF/lib/org.springframework.web-3.0.5.RELEASE.jar]
[Loaded org.apache.jasper.runtime.JspWriterImpl from file:/C:/apache-tomcat-7.0.27/lib/jasper.jar]
[Loaded org.apache.jasper.runtime.BodyContentImpl from file:/C:/apache-tomcat-7.0.27/lib/jasper.jar]
[Loaded org.apache.jasper.el.ExpressionEvaluatorImpl from file:/C:/apache-tomcat-7.0.27/lib/jasper.jar]
[Loaded org.apache.jasper.el.ELContextImpl from file:/C:/apache-tomcat-7.0.27/lib/jasper.jar]
[Loaded org.apache.jasper.el.FunctionMapperImpl from file:/C:/apache-tomcat-7.0.27/lib/jasper.jar]
[Loaded javax.el.PropertyNotWritableException from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.PropertyNotFoundException from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.MethodNotFoundException from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.el.BeanELResolver$ConcurrentCache from file:/C:/apache-tomcat-7.0.27/lib/el-api.jar]
[Loaded javax.servlet.jsp.SkipPageException from file:/C:/apache-tomcat-7.0.27/lib/jsp-api.jar]
13/08/2012 3:16:01 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to org.apache.jasper.el.ELContextImpl
	at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:982)
	at org.apache.jsp.WEB_002dINF.views.promoCodeWelcome_jsp._jspService(promoCodeWelcome_jsp.java:171)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

<snip following code>
Mime
View raw message