java - Struts application giving JasperException on shared tomcat -
struts problem report
struts has detected unhandled exception:
messages:
1. org.apache.jasper.el.elcontextimpl cannot cast org.apache.jasper.el.elcontextimpl
- java.lang.classcastexception: org.apache.jasper.el.elcontextimpl cannot cast org.apache.jasper.el.elcontextimpl
file: org/apache/jasper/runtime/pagecontextimpl.java
line number: 1,023
org.apache.jasper.jasperexception: java.lang.classcastexception: org.apache.jasper.el.elcontextimpl cannot cast org.apache.jasper.el.elcontextimpl org.apache.jasper.servlet.jspservletwrapper.handlejspexception(jspservletwrapper.java:549) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:470) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:390) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:334) javax.servlet.http.httpservlet.service(httpservlet.java:728) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.dofilter(strutsprepareandexecutefilter.java:96) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:749) org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispatcher.java:487) org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher.java:412) org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.java:339) org.apache.struts2.dispatcher.servletdispatcherresult.doexecute(servletdispatcherresult.java:164) org.apache.struts2.dispatcher.strutsresultsupport.execute(strutsresultsupport.java:188) com.opensymphony.xwork2.defaultactioninvocation.executeresult(defaultactioninvocation.java:369) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:273) org.apache.struts2.interceptor.deprecationinterceptor.intercept(deprecationinterceptor.java:41) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.debugging.debugginginterceptor.intercept(debugginginterceptor.java:256) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.defaultworkflowinterceptor.dointercept(defaultworkflowinterceptor.java:167) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.validator.validationinterceptor.dointercept(validationinterceptor.java:265) org.apache.struts2.interceptor.validation.annotationvalidationinterceptor.dointercept(annotationvalidationinterceptor.java:76) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.conversionerrorinterceptor.intercept(conversionerrorinterceptor.java:138) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:229) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:229) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.staticparametersinterceptor.intercept(staticparametersinterceptor.java:191) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.multiselectinterceptor.intercept(multiselectinterceptor.java:73) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.datetextfieldinterceptor.intercept(datetextfieldinterceptor.java:125) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.checkboxinterceptor.intercept(checkboxinterceptor.java:91) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.fileuploadinterceptor.intercept(fileuploadinterceptor.java:253) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.modeldriveninterceptor.intercept(modeldriveninterceptor.java:100) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.scopedmodeldriveninterceptor.intercept(scopedmodeldriveninterceptor.java:141) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.chaininginterceptor.intercept(chaininginterceptor.java:145) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.prepareinterceptor.dointercept(prepareinterceptor.java:171) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.i18ninterceptor.intercept(i18ninterceptor.java:139) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.servletconfiginterceptor.intercept(servletconfiginterceptor.java:164) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.aliasinterceptor.intercept(aliasinterceptor.java:193) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.exceptionmappinginterceptor.intercept(exceptionmappinginterceptor.java:189) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.impl.strutsactionproxy.execute(strutsactionproxy.java:54) org.apache.struts2.dispatcher.dispatcher.serviceaction(dispatcher.java:564) org.apache.struts2.dispatcher.ng.executeoperations.executeaction(executeoperations.java:81) org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.dofilter(strutsprepareandexecutefilter.java:99) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.shiro.web.servlet.abstractshirofilter.executechain(abstractshirofilter.java:449) org.apache.shiro.web.servlet.abstractshirofilter$1.call(abstractshirofilter.java:365) org.apache.shiro.subject.support.subjectcallable.docall(subjectcallable.java:90) org.apache.shiro.subject.support.subjectcallable.call(subjectcallable.java:83) org.apache.shiro.subject.support.delegatingsubject.execute(delegatingsubject.java:383) org.apache.shiro.web.servlet.abstractshirofilter.dofilterinternal(abstractshirofilter.java:362) org.apache.shiro.web.servlet.onceperrequestfilter.dofilter(onceperrequestfilter.java:125) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:222) org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502) org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:99) org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) org.apache.coyote.ajp.ajpprocessor.process(ajpprocessor.java:200) org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:589) org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:310) java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) java.lang.thread.run(thread.java:745) java.lang.classcastexception: org.apache.jasper.el.elcontextimpl cannot cast org.apache.jasper.el.elcontextimpl org.apache.jasper.runtime.pagecontextimpl.proprietaryevaluate(pagecontextimpl.java:1023) org.apache.jsp.front.article_jsp._jspx_meth_c_005fwhen_005f0(article_jsp.java:258) org.apache.jsp.front.article_jsp._jspx_meth_c_005fchoose_005f0(article_jsp.java:227) org.apache.jsp.front.article_jsp._jspservice(article_jsp.java:118) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:728) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:432) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:390) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:334) javax.servlet.http.httpservlet.service(httpservlet.java:728) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.dofilter(strutsprepareandexecutefilter.java:96) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.java:749) org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispatcher.java:487) org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher.java:412) org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.java:339) org.apache.struts2.dispatcher.servletdispatcherresult.doexecute(servletdispatcherresult.java:164) org.apache.struts2.dispatcher.strutsresultsupport.execute(strutsresultsupport.java:188) com.opensymphony.xwork2.defaultactioninvocation.executeresult(defaultactioninvocation.java:369) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:273) org.apache.struts2.interceptor.deprecationinterceptor.intercept(deprecationinterceptor.java:41) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.debugging.debugginginterceptor.intercept(debugginginterceptor.java:256) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.defaultworkflowinterceptor.dointercept(defaultworkflowinterceptor.java:167) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.validator.validationinterceptor.dointercept(validationinterceptor.java:265) org.apache.struts2.interceptor.validation.annotationvalidationinterceptor.dointercept(annotationvalidationinterceptor.java:76) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.conversionerrorinterceptor.intercept(conversionerrorinterceptor.java:138) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:229) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.parametersinterceptor.dointercept(parametersinterceptor.java:229) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.staticparametersinterceptor.intercept(staticparametersinterceptor.java:191) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.multiselectinterceptor.intercept(multiselectinterceptor.java:73) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.datetextfieldinterceptor.intercept(datetextfieldinterceptor.java:125) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.checkboxinterceptor.intercept(checkboxinterceptor.java:91) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.fileuploadinterceptor.intercept(fileuploadinterceptor.java:253) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.modeldriveninterceptor.intercept(modeldriveninterceptor.java:100) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.scopedmodeldriveninterceptor.intercept(scopedmodeldriveninterceptor.java:141) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.chaininginterceptor.intercept(chaininginterceptor.java:145) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.prepareinterceptor.dointercept(prepareinterceptor.java:171) com.opensymphony.xwork2.interceptor.methodfilterinterceptor.intercept(methodfilterinterceptor.java:98) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.i18ninterceptor.intercept(i18ninterceptor.java:139) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.interceptor.servletconfiginterceptor.intercept(servletconfiginterceptor.java:164) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.aliasinterceptor.intercept(aliasinterceptor.java:193) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) com.opensymphony.xwork2.interceptor.exceptionmappinginterceptor.intercept(exceptionmappinginterceptor.java:189) com.opensymphony.xwork2.defaultactioninvocation.invoke(defaultactioninvocation.java:244) org.apache.struts2.impl.strutsactionproxy.execute(strutsactionproxy.java:54) org.apache.struts2.dispatcher.dispatcher.serviceaction(dispatcher.java:564) org.apache.struts2.dispatcher.ng.executeoperations.executeaction(executeoperations.java:81) org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.dofilter(strutsprepareandexecutefilter.java:99) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.shiro.web.servlet.abstractshirofilter.executechain(abstractshirofilter.java:449) org.apache.shiro.web.servlet.abstractshirofilter$1.call(abstractshirofilter.java:365) org.apache.shiro.subject.support.subjectcallable.docall(subjectcallable.java:90) org.apache.shiro.subject.support.subjectcallable.call(subjectcallable.java:83) org.apache.shiro.subject.support.delegatingsubject.execute(delegatingsubject.java:383) org.apache.shiro.web.servlet.abstractshirofilter.dofilterinternal(abstractshirofilter.java:362) org.apache.shiro.web.servlet.onceperrequestfilter.dofilter(onceperrequestfilter.java:125) org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:243) org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:222) org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:123) org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:502) org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:171) org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:99) org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) org.apache.coyote.ajp.ajpprocessor.process(ajpprocessor.java:200) org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:589) org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:310) java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) java.lang.thread.run(thread.java:745)
i have lot's of things fix it. replacing jars , other things not able fix.
actually have shared java hosting on facing issue. can't see tomcat logs, struts debug mode. hosting have shared tomcat7 runs multiple sites including mine.
article.jsp
<%@include file="header-includes.jsp"%> <%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> <%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <jsp:include page="head.jsp"></jsp:include> <jsp:include page="google_analytics.jsp"></jsp:include> <c:choose> <c:when test="${article!=null}"> <title>orajpoint.com: <c:out value="${article.title}"></c:out></title> </c:when> <c:otherwise> <title>orajpoint.com, learn in easy way!</title> </c:otherwise> </c:choose> </head> <body> <%-- fb apis --%> <div id="fb-root"></div> <script> (function(d, s, id) { var js, fjs = d.getelementsbytagname(s)[0]; if (d.getelementbyid(id)) return; js = d.createelement(s); js.id = id; js.src = "https://connect.facebook.net/en_us/sdk.js#xfbml=1&version=v2.3&appid=1415162805470476"; fjs.parentnode.insertbefore(js, fjs); }(document, 'script', 'facebook-jssdk')); </script> <%--main menu --%> <jsp:include page="main-menu.jsp"></jsp:include> <div class="container" style="min-height: 90%"> <%-- site header --%> <jsp:include page="site-header.jsp"></jsp:include> <div class="row"> <div class="col-lg-12"> <s:actionerror /> <s:actionmessage /> </div> </div> <div class="row"> <c:choose> <c:when test="${fn:length(categories) gt 0}"> <div class="col-lg-8"> <jsp:include page="article-content.jsp"></jsp:include> </div> <div class="col-lg-4" style="margin: 10px auto;"> <jsp:include page="sub-menu.jsp"></jsp:include> </div> </c:when> <c:otherwise> <div class="col-lg-12"> <jsp:include page="article-content.jsp"></jsp:include> </div> </c:otherwise> </c:choose> </div> </div> <%--footer --%> <jsp:include page="footer.jsp"></jsp:include> </body> </html>
this working fine after stopped. tried redeploy app again , again on server.
i have shared hosting not possible access catalina logs.
Comments
Post a Comment