Struts 2.3.28 and Tiles issue

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Struts 2.3.28 and Tiles issue

Paweł Wielgus
Hi all,
i've upgraded struts-core and all the dependencies to 2.3.28,
along with that came new tiles libraries.

And a problem:

SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassCastException:
org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
javax.servlet.jsp.tagext.Tag
at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
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:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
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:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:745)

I have specific tiles configuration,
there is no tiles result, just a simple jsp file
that contains tiles definition,
in such a way that all pages that are results for actions
starts like this:

<%@page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>

<tiles:insertDefinition name="elsevier.admin">
    <tiles:putAttribute name="body">
...
    </tiles:putAttribute>
</tiles:insertDefinition>


in tiles.xml there is only elsevier.admin definition.

Any ideas anyone?

Below is the full stack as seen on page render:

org.apache.jasper.JasperException: javax.servlet.ServletException:
javax.servlet.jsp.JspException:
org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
javax.servlet.jsp.tagext.Tag
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
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:245)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)

root cause

javax.servlet.ServletException: javax.servlet.jsp.JspException:
org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
javax.servlet.jsp.tagext.Tag
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:89)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
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:245)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)

root cause

java.lang.ClassCastException:
org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
javax.servlet.jsp.tagext.Tag
org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
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:245)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
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:245)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)



--
Best greetings,
Paweł Wielgus.
tel: +48 604 603 546

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Lukasz Lenart
Did you change DTD in tiles.xml? It should be 2.1 as far I can recall.


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2016-04-21 0:16 GMT+02:00 Paweł Wielgus <[hidden email]>:

> Hi all,
> i've upgraded struts-core and all the dependencies to 2.3.28,
> along with that came new tiles libraries.
>
> And a problem:
>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.ClassCastException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> 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:646)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
> 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:233)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:745)
>
> I have specific tiles configuration,
> there is no tiles result, just a simple jsp file
> that contains tiles definition,
> in such a way that all pages that are results for actions
> starts like this:
>
> <%@page contentType="text/html;charset=utf-8" language="java"%>
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
>
> <tiles:insertDefinition name="elsevier.admin">
>     <tiles:putAttribute name="body">
> ...
>     </tiles:putAttribute>
> </tiles:insertDefinition>
>
>
> in tiles.xml there is only elsevier.admin definition.
>
> Any ideas anyone?
>
> Below is the full stack as seen on page render:
>
> org.apache.jasper.JasperException: javax.servlet.ServletException:
> javax.servlet.jsp.JspException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>
> root cause
>
> javax.servlet.ServletException: javax.servlet.jsp.JspException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:89)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>
> root cause
>
> java.lang.ClassCastException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>
>
>
> --
> Best greetings,
> Paweł Wielgus.
> tel: +48 604 603 546
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Emi Lu
In reply to this post by Paweł Wielgus

> upgraded struts-core and all the dependencies to 2.3.28,
> along with that came new tiles libraries.
I got the similar exception messages. Upgrade from tiles2.x to tiles3.x
and no error messages anymore.

> And a problem:
>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.ClassCastException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> 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:646)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
> 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:233)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
> at java.lang.Thread.run(Thread.java:745)
>
> I have specific tiles configuration,
> there is no tiles result, just a simple jsp file
> that contains tiles definition,
> in such a way that all pages that are results for actions
> starts like this:
>
> <%@page contentType="text/html;charset=utf-8" language="java"%>
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
>
> <tiles:insertDefinition name="elsevier.admin">
>      <tiles:putAttribute name="body">
> ...
>      </tiles:putAttribute>
> </tiles:insertDefinition>
>
>
> in tiles.xml there is only elsevier.admin definition.
>
> Any ideas anyone?
>
> Below is the full stack as seen on page render:
>
> org.apache.jasper.JasperException: javax.servlet.ServletException:
> javax.servlet.jsp.JspException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>
> root cause
>
> javax.servlet.ServletException: javax.servlet.jsp.JspException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)
> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:89)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>
> root cause
>
> java.lang.ClassCastException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Paweł Wielgus
In reply to this post by Lukasz Lenart
Hi Łukasz,
i've tried setting DTD to 2.0, 2.1, 2.2, and 3.0
all to no awail.

Right now i've downgraded to struts 2.3.24
and all is working fine. (this version has tiles 2.0.5) and i've set DTD to 2.0

Going up to 2.3.24.1 and all is good,
this version has tiles 2.0.6 and i've set DTD to 2.0

Going up to 2.3.28 and rendering of a page throws the exception described below.
This version has tiles 2.2.2 and setting DTD to 2.0, 2.1, 2.2 or 3.0
does not chnage anything.

So it is clearly a problem somewhere between tiles 2.0 and 2.2,
Any ideas?
I will try to use tiles with standard definition tommorow
and i will give update on this.



--
Pozdrawiam,
Paweł Wielgus.
tel: +48 604 603 546


2016-04-21 8:33 GMT+02:00 Lukasz Lenart <[hidden email]>:

> Did you change DTD in tiles.xml? It should be 2.1 as far I can recall.
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2016-04-21 0:16 GMT+02:00 Paweł Wielgus <[hidden email]>:
>> Hi all,
>> i've upgraded struts-core and all the dependencies to 2.3.28,
>> along with that came new tiles libraries.
>>
>> And a problem:
>>
>> SEVERE: Servlet.service() for servlet jsp threw exception
>> java.lang.ClassCastException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
>> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> 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:646)
>> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
>> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
>> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
>> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>> at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>> at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
>> at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>> at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>> at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>> 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:233)
>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
>> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>> at java.lang.Thread.run(Thread.java:745)
>>
>> I have specific tiles configuration,
>> there is no tiles result, just a simple jsp file
>> that contains tiles definition,
>> in such a way that all pages that are results for actions
>> starts like this:
>>
>> <%@page contentType="text/html;charset=utf-8" language="java"%>
>> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
>> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
>>
>> <tiles:insertDefinition name="elsevier.admin">
>>     <tiles:putAttribute name="body">
>> ...
>>     </tiles:putAttribute>
>> </tiles:insertDefinition>
>>
>>
>> in tiles.xml there is only elsevier.admin definition.
>>
>> Any ideas anyone?
>>
>> Below is the full stack as seen on page render:
>>
>> org.apache.jasper.JasperException: javax.servlet.ServletException:
>> javax.servlet.jsp.JspException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>
>> root cause
>>
>> javax.servlet.ServletException: javax.servlet.jsp.JspException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)
>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:89)
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>
>> root cause
>>
>> java.lang.ClassCastException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>
>>
>>
>> --
>> Best greetings,
>> Paweł Wielgus.
>> tel: +48 604 603 546
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Lukasz Lenart
Really strange, I've been testing the same on that example and didn't
notice such a problem

https://github.com/apache/struts-examples/tree/master/tiles


Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2016-04-22 1:13 GMT+02:00 Paweł Wielgus <[hidden email]>:

> Hi Łukasz,
> i've tried setting DTD to 2.0, 2.1, 2.2, and 3.0
> all to no awail.
>
> Right now i've downgraded to struts 2.3.24
> and all is working fine. (this version has tiles 2.0.5) and i've set DTD to 2.0
>
> Going up to 2.3.24.1 and all is good,
> this version has tiles 2.0.6 and i've set DTD to 2.0
>
> Going up to 2.3.28 and rendering of a page throws the exception described below.
> This version has tiles 2.2.2 and setting DTD to 2.0, 2.1, 2.2 or 3.0
> does not chnage anything.
>
> So it is clearly a problem somewhere between tiles 2.0 and 2.2,
> Any ideas?
> I will try to use tiles with standard definition tommorow
> and i will give update on this.
>
>
>
> --
> Pozdrawiam,
> Paweł Wielgus.
> tel: +48 604 603 546
>
>
> 2016-04-21 8:33 GMT+02:00 Lukasz Lenart <[hidden email]>:
>> Did you change DTD in tiles.xml? It should be 2.1 as far I can recall.
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> 2016-04-21 0:16 GMT+02:00 Paweł Wielgus <[hidden email]>:
>>> Hi all,
>>> i've upgraded struts-core and all the dependencies to 2.3.28,
>>> along with that came new tiles libraries.
>>>
>>> And a problem:
>>>
>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>> java.lang.ClassCastException:
>>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>>> javax.servlet.jsp.tagext.Tag
>>> at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>>> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
>>> at org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
>>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> 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:646)
>>> at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
>>> at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
>>> at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
>>> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>>> at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>>> at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
>>> at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:76)
>>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
>>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
>>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
>>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:229)
>>> at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>> at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>>> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>>> at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>> 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:233)
>>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
>>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
>>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
>>> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>> I have specific tiles configuration,
>>> there is no tiles result, just a simple jsp file
>>> that contains tiles definition,
>>> in such a way that all pages that are results for actions
>>> starts like this:
>>>
>>> <%@page contentType="text/html;charset=utf-8" language="java"%>
>>> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
>>> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
>>>
>>> <tiles:insertDefinition name="elsevier.admin">
>>>     <tiles:putAttribute name="body">
>>> ...
>>>     </tiles:putAttribute>
>>> </tiles:insertDefinition>
>>>
>>>
>>> in tiles.xml there is only elsevier.admin definition.
>>>
>>> Any ideas anyone?
>>>
>>> Below is the full stack as seen on page render:
>>>
>>> org.apache.jasper.JasperException: javax.servlet.ServletException:
>>> javax.servlet.jsp.JspException:
>>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>>> javax.servlet.jsp.tagext.Tag
>>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412)
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> 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:245)
>>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>>
>>> root cause
>>>
>>> javax.servlet.ServletException: javax.servlet.jsp.JspException:
>>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>>> javax.servlet.jsp.tagext.Tag
>>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:864)
>>> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:797)
>>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:89)
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> 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:245)
>>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>>
>>> root cause
>>>
>>> java.lang.ClassCastException:
>>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>>> javax.servlet.jsp.tagext.Tag
>>> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0(run_002dscript_jsp.java:102)
>>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService(run_002dscript_jsp.java:81)
>>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
>>> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:191)
>>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:372)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:276)
>>> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
>>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> 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:245)
>>> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:253)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> 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:245)
>>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:125)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:140)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:189)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>>> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
>>> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:81)
>>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>>>
>>>
>>>
>>> --
>>> Best greetings,
>>> Paweł Wielgus.
>>> tel: +48 604 603 546
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Christoph Nenning
In reply to this post by Paweł Wielgus
> From: Paweł Wielgus <[hidden email]>
> To: Struts Users Mailing List <[hidden email]>,
> Date: 21.04.2016 00:16
> Subject: Struts 2.3.28 and Tiles issue
>
> Hi all,
> i've upgraded struts-core and all the dependencies to 2.3.28,
> along with that came new tiles libraries.
>
> And a problem:
>
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.lang.ClassCastException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag


Sounds like you have a jsp-api.jar packaged in your app. Can you please
check that?


Regards,
Christoph





> at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> at
>
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0
> (run_002dscript_jsp.java:102)
> at
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
> (run_002dscript_jsp.java:81)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> at org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:388)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> 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:646)
> at org.apache.catalina.core.ApplicationDispatcher.processRequest
> (ApplicationDispatcher.java:436)
> at org.apache.catalina.core.ApplicationDispatcher.doForward
> (ApplicationDispatcher.java:374)
> at org.apache.catalina.core.ApplicationDispatcher.forward
> (ApplicationDispatcher.java:302)
> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> (ServletDispatcherResult.java:164)
> at org.apache.struts2.dispatcher.StrutsResultSupport.execute
> (StrutsResultSupport.java:191)
> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> (DefaultActionInvocation.java:372)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:276)
> at
>
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept

> (DefaultWorkflowInterceptor.java:168)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept
> (ValidationInterceptor.java:265)
> at
>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept

> (AnnotationValidationInterceptor.java:76)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
> (ConversionErrorInterceptor.java:138)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> (ParametersInterceptor.java:229)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> (ParametersInterceptor.java:229)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
>
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> (StaticParametersInterceptor.java:191)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> (FileUploadInterceptor.java:253)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> (ModelDrivenInterceptor.java:100)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> (ChainingInterceptor.java:145)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept
> (PrepareInterceptor.java:171)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> (ServletConfigInterceptor.java:164)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> (ParametersInterceptor.java:229)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> (MultiselectInterceptor.java:73)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> (DateTextFieldInterceptor.java:125)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> (CheckboxInterceptor.java:91)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> (I18nInterceptor.java:140)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> (AliasInterceptor.java:193)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> (ExceptionMappingInterceptor.java:189)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> at org.apache.struts2.impl.StrutsActionProxy.execute
> (StrutsActionProxy.java:54)
> at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> (ExecuteOperations.java:81)
> at
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> (StrutsPrepareAndExecuteFilter.java:99)
> 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:233)
> at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:191)
> at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:103)
> at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
> at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
> at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:606)
> at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

> at java.lang.Thread.run(Thread.java:745)
>
> I have specific tiles configuration,
> there is no tiles result, just a simple jsp file
> that contains tiles definition,
> in such a way that all pages that are results for actions
> starts like this:
>
> <%@page contentType="text/html;charset=utf-8" language="java"%>
> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
>
> <tiles:insertDefinition name="elsevier.admin">
>     <tiles:putAttribute name="body">
> ...
>     </tiles:putAttribute>
> </tiles:insertDefinition>
>
>
> in tiles.xml there is only elsevier.admin definition.
>
> Any ideas anyone?
>
> Below is the full stack as seen on page render:
>
> org.apache.jasper.JasperException: javax.servlet.ServletException:
> javax.servlet.jsp.JspException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.servlet.JspServletWrapper.handleJspException
> (JspServletWrapper.java:502)
> org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:412)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> (ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute
> (StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> (DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:276)
>
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
> (DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
> (ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
>
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> (StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> (FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> (ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> (ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> (ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> (MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> (DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> (CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> (I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> (AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> (ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
>
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> (ExecuteOperations.java:81)
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> (StrutsPrepareAndExecuteFilter.java:99)
>
> root cause
>
> javax.servlet.ServletException: javax.servlet.jsp.JspException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException
> (PageContextImpl.java:864)
> org.apache.jasper.runtime.PageContextImpl.handlePageException
> (PageContextImpl.java:797)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
> (run_002dscript_jsp.java:89)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:388)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> (ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute
> (StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> (DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:276)
>
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
> (DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
> (ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
>
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> (StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> (FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> (ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> (ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> (ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> (MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> (DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> (CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> (I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> (AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> (ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
>
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> (ExecuteOperations.java:81)
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter
> (StrutsPrepareAndExecuteFilter.java:99)
>
> root cause
>
> java.lang.ClassCastException:
> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> javax.servlet.jsp.tagext.Tag
> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0

> (run_002dscript_jsp.java:102)
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
> (run_002dscript_jsp.java:81)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.jasper.servlet.JspServletWrapper.service
> (JspServletWrapper.java:388)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> (ServletDispatcherResult.java:164)
> org.apache.struts2.dispatcher.StrutsResultSupport.execute
> (StrutsResultSupport.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> (DefaultActionInvocation.java:372)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:276)
>
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
> (DefaultWorkflowInterceptor.java:168)
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> (MethodFilterInterceptor.java:98)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
> (ConversionErrorInterceptor.java:138)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> 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:245)
>
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> (StaticParametersInterceptor.java:191)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> (FileUploadInterceptor.java:253)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> (ModelDrivenInterceptor.java:100)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> (ChainingInterceptor.java:145)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> (ServletConfigInterceptor.java:164)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> 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:245)
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> (MultiselectInterceptor.java:73)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> (DateTextFieldInterceptor.java:125)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> (CheckboxInterceptor.java:91)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> (I18nInterceptor.java:140)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> (AliasInterceptor.java:193)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
>
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> (ExceptionMappingInterceptor.java:189)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> (DefaultActionInvocation.java:245)
>
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> (ExecuteOperations.java:81)
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> (StrutsPrepareAndExecuteFilter.java:99)
>
>
>
> --
> Best greetings,
> Paweł Wielgus.
> tel: +48 604 603 546
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

This Email was scanned by Sophos Anti Virus
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Paweł Wielgus
Hi all,
i've upgraded Struts to latest versions (2.3 and 2.5)
and i was forced to solve this issue.

Well, the hardest bug to find is non-existent one :-|

All i needed to do, was to remove work directory from tomcat.

All is working like expected.

Someone gave this solution on stackoverflow:

http://stackoverflow.com/a/40407427/6801998


--
Pozdrawiam,
Paweł Wielgus.
tel: +48 604 603 546


2016-04-22 9:33 GMT+02:00 Christoph Nenning <[hidden email]>:

>> From: Paweł Wielgus <[hidden email]>
>> To: Struts Users Mailing List <[hidden email]>,
>> Date: 21.04.2016 00:16
>> Subject: Struts 2.3.28 and Tiles issue
>>
>> Hi all,
>> i've upgraded struts-core and all the dependencies to 2.3.28,
>> along with that came new tiles libraries.
>>
>> And a problem:
>>
>> SEVERE: Servlet.service() for servlet jsp threw exception
>> java.lang.ClassCastException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>
>
> Sounds like you have a jsp-api.jar packaged in your app. Can you please
> check that?
>
>
> Regards,
> Christoph
>
>
>
>
>
>> at org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>> at
>>
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0
>> (run_002dscript_jsp.java:102)
>> at
>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
>> (run_002dscript_jsp.java:81)
>> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> at org.apache.jasper.servlet.JspServletWrapper.service
>> (JspServletWrapper.java:388)
>> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> 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:646)
>> at org.apache.catalina.core.ApplicationDispatcher.processRequest
>> (ApplicationDispatcher.java:436)
>> at org.apache.catalina.core.ApplicationDispatcher.doForward
>> (ApplicationDispatcher.java:374)
>> at org.apache.catalina.core.ApplicationDispatcher.forward
>> (ApplicationDispatcher.java:302)
>> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
>> (ServletDispatcherResult.java:164)
>> at org.apache.struts2.dispatcher.StrutsResultSupport.execute
>> (StrutsResultSupport.java:191)
>> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult
>> (DefaultActionInvocation.java:372)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:276)
>> at
>>
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:168)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept
>> (ValidationInterceptor.java:265)
>> at
>>
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept
>> (AnnotationValidationInterceptor.java:76)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
>> (ConversionErrorInterceptor.java:138)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
>> (ParametersInterceptor.java:229)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
>> (ParametersInterceptor.java:229)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept
>> (StaticParametersInterceptor.java:191)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept
>> (FileUploadInterceptor.java:253)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
>> (ModelDrivenInterceptor.java:100)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
>> (ChainingInterceptor.java:145)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept
>> (PrepareInterceptor.java:171)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
>> (ServletConfigInterceptor.java:164)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
>> (ParametersInterceptor.java:229)
>> at
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept
>> (MultiselectInterceptor.java:73)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
>> (DateTextFieldInterceptor.java:125)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept
>> (CheckboxInterceptor.java:91)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
>> (I18nInterceptor.java:140)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
>> (AliasInterceptor.java:193)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
>>
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
>> (ExceptionMappingInterceptor.java:189)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at
> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> at org.apache.struts2.impl.StrutsActionProxy.execute
>> (StrutsActionProxy.java:54)
>> at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
>> (ExecuteOperations.java:81)
>> at
>>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter
>> (StrutsPrepareAndExecuteFilter.java:99)
>> 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:233)
>> at org.apache.catalina.core.StandardContextValve.invoke
>> (StandardContextValve.java:191)
>> at org.apache.catalina.core.StandardHostValve.invoke
>> (StandardHostValve.java:127)
>> at org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:103)
>> at org.apache.catalina.core.StandardEngineValve.invoke
>> (StandardEngineValve.java:109)
>> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
>> at org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:606)
>> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
>> at java.lang.Thread.run(Thread.java:745)
>>
>> I have specific tiles configuration,
>> there is no tiles result, just a simple jsp file
>> that contains tiles definition,
>> in such a way that all pages that are results for actions
>> starts like this:
>>
>> <%@page contentType="text/html;charset=utf-8" language="java"%>
>> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
>> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
>>
>> <tiles:insertDefinition name="elsevier.admin">
>>     <tiles:putAttribute name="body">
>> ...
>>     </tiles:putAttribute>
>> </tiles:insertDefinition>
>>
>>
>> in tiles.xml there is only elsevier.admin definition.
>>
>> Any ideas anyone?
>>
>> Below is the full stack as seen on page render:
>>
>> org.apache.jasper.JasperException: javax.servlet.ServletException:
>> javax.servlet.jsp.JspException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException
>> (JspServletWrapper.java:502)
>> org.apache.jasper.servlet.JspServletWrapper.service
>> (JspServletWrapper.java:412)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
>> (ServletDispatcherResult.java:164)
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute
>> (StrutsResultSupport.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
>> (DefaultActionInvocation.java:372)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:276)
>>
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:168)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
>> (ConversionErrorInterceptor.java:138)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> 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:245)
>>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept
>> (StaticParametersInterceptor.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
>> (FileUploadInterceptor.java:253)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
>> (ModelDrivenInterceptor.java:100)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
>> (ChainingInterceptor.java:145)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
>> (ServletConfigInterceptor.java:164)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
>> (MultiselectInterceptor.java:73)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
>> (DateTextFieldInterceptor.java:125)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
>> (CheckboxInterceptor.java:91)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
>> (I18nInterceptor.java:140)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
>> (AliasInterceptor.java:193)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>>
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
>> (ExceptionMappingInterceptor.java:189)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>>
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
>> (ExecuteOperations.java:81)
>>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter
>> (StrutsPrepareAndExecuteFilter.java:99)
>>
>> root cause
>>
>> javax.servlet.ServletException: javax.servlet.jsp.JspException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> org.apache.jasper.runtime.PageContextImpl.doHandlePageException
>> (PageContextImpl.java:864)
>> org.apache.jasper.runtime.PageContextImpl.handlePageException
>> (PageContextImpl.java:797)
>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
>> (run_002dscript_jsp.java:89)
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.jasper.servlet.JspServletWrapper.service
>> (JspServletWrapper.java:388)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
>> (ServletDispatcherResult.java:164)
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute
>> (StrutsResultSupport.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
>> (DefaultActionInvocation.java:372)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:276)
>>
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:168)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
>> (ConversionErrorInterceptor.java:138)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> 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:245)
>>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept
>> (StaticParametersInterceptor.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
>> (FileUploadInterceptor.java:253)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
>> (ModelDrivenInterceptor.java:100)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
>> (ChainingInterceptor.java:145)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
>> (ServletConfigInterceptor.java:164)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
>> (MultiselectInterceptor.java:73)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
>> (DateTextFieldInterceptor.java:125)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
>> (CheckboxInterceptor.java:91)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
>> (I18nInterceptor.java:140)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
>> (AliasInterceptor.java:193)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>>
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
>> (ExceptionMappingInterceptor.java:189)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>>
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
>> (ExecuteOperations.java:81)
>>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter
>> (StrutsPrepareAndExecuteFilter.java:99)
>>
>> root cause
>>
>> java.lang.ClassCastException:
>> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
>> javax.servlet.jsp.tagext.Tag
>> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
>>
> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0
>> (run_002dscript_jsp.java:102)
>> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
>> (run_002dscript_jsp.java:81)
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.jasper.servlet.JspServletWrapper.service
>> (JspServletWrapper.java:388)
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
>> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
>> (ServletDispatcherResult.java:164)
>> org.apache.struts2.dispatcher.StrutsResultSupport.execute
>> (StrutsResultSupport.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
>> (DefaultActionInvocation.java:372)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:276)
>>
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept
>> (DefaultWorkflowInterceptor.java:168)
>> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
>> (MethodFilterInterceptor.java:98)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept
>> (ConversionErrorInterceptor.java:138)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> 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:245)
>>
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept
>> (StaticParametersInterceptor.java:191)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
>> (FileUploadInterceptor.java:253)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
>> (ModelDrivenInterceptor.java:100)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
>> (ChainingInterceptor.java:145)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
>> (ServletConfigInterceptor.java:164)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> 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:245)
>> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
>> (MultiselectInterceptor.java:73)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
>> (DateTextFieldInterceptor.java:125)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
>> (CheckboxInterceptor.java:91)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
>> (I18nInterceptor.java:140)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
>> (AliasInterceptor.java:193)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>>
> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
>> (ExceptionMappingInterceptor.java:189)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>> com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
>> com.opensymphony.xwork2.DefaultActionInvocation.invoke
>> (DefaultActionInvocation.java:245)
>>
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
>>
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
>> (ExecuteOperations.java:81)
>>
> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter
>> (StrutsPrepareAndExecuteFilter.java:99)
>>
>>
>>
>> --
>> Best greetings,
>> Paweł Wielgus.
>> tel: +48 604 603 546
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> This Email was scanned by Sophos Anti Virus

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Struts 2.3.28 and Tiles issue

Christoph Nenning
Thanks for reporting back. I've added a notice about it to migration
guide.


This is the original wiki page, struts web page is generated from it:
https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration

Regards,
Christoph



> From: Paweł Wielgus <[hidden email]>
> To: Struts Users Mailing List <[hidden email]>,
> Date: 11.03.2017 22:16
> Subject: Re: Struts 2.3.28 and Tiles issue
>
> Hi all,
> i've upgraded Struts to latest versions (2.3 and 2.5)
> and i was forced to solve this issue.
>
> Well, the hardest bug to find is non-existent one :-|
>
> All i needed to do, was to remove work directory from tomcat.
>
> All is working like expected.
>
> Someone gave this solution on stackoverflow:
>
> http://stackoverflow.com/a/40407427/6801998
>
>
> --
> Pozdrawiam,
> Paweł Wielgus.
> tel: +48 604 603 546
>
>
> 2016-04-22 9:33 GMT+02:00 Christoph Nenning
<[hidden email]>:

> >> From: Paweł Wielgus <[hidden email]>
> >> To: Struts Users Mailing List <[hidden email]>,
> >> Date: 21.04.2016 00:16
> >> Subject: Struts 2.3.28 and Tiles issue
> >>
> >> Hi all,
> >> i've upgraded struts-core and all the dependencies to 2.3.28,
> >> along with that came new tiles libraries.
> >>
> >> And a problem:
> >>
> >> SEVERE: Servlet.service() for servlet jsp threw exception
> >> java.lang.ClassCastException:
> >> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> >> javax.servlet.jsp.tagext.Tag
> >
> >
> > Sounds like you have a jsp-api.jar packaged in your app. Can you
please

> > check that?
> >
> >
> > Regards,
> > Christoph
> >
> >
> >
> >
> >
> >> at
org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> >> at
> >>
> >
>
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0

> >> (run_002dscript_jsp.java:102)
> >> at
> >> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
> >> (run_002dscript_jsp.java:81)
> >> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> at org.apache.jasper.servlet.JspServletWrapper.service
> >> (JspServletWrapper.java:388)
> >> at
> >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

> >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> 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:646)
> >> at org.apache.catalina.core.ApplicationDispatcher.processRequest
> >> (ApplicationDispatcher.java:436)
> >> at org.apache.catalina.core.ApplicationDispatcher.doForward
> >> (ApplicationDispatcher.java:374)
> >> at org.apache.catalina.core.ApplicationDispatcher.forward
> >> (ApplicationDispatcher.java:302)
> >> at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> >> (ServletDispatcherResult.java:164)
> >> at org.apache.struts2.dispatcher.StrutsResultSupport.execute
> >> (StrutsResultSupport.java:191)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> >> (DefaultActionInvocation.java:372)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:276)
> >> at
> >>
> >
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept

> >> (DefaultWorkflowInterceptor.java:168)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept
> >> (ValidationInterceptor.java:265)
> >> at
> >>
> >
>
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept
> >> (AnnotationValidationInterceptor.java:76)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >>
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept

> >> (ConversionErrorInterceptor.java:138)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> >> (ParametersInterceptor.java:229)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> >> (ParametersInterceptor.java:229)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >>
> >
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> >> (StaticParametersInterceptor.java:191)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> >> (FileUploadInterceptor.java:253)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> >> (ModelDrivenInterceptor.java:100)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> >> (ChainingInterceptor.java:145)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept
> >> (PrepareInterceptor.java:171)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> >> (ServletConfigInterceptor.java:164)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept
> >> (ParametersInterceptor.java:229)
> >> at
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> >> (MultiselectInterceptor.java:73)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> >> (DateTextFieldInterceptor.java:125)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> >> (CheckboxInterceptor.java:91)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> >> (I18nInterceptor.java:140)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> >> (AliasInterceptor.java:193)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >>
> >
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> >> (ExceptionMappingInterceptor.java:189)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at
> >
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> >> at com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> at org.apache.struts2.impl.StrutsActionProxy.execute
> >> (StrutsActionProxy.java:54)
> >> at
> >
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> >> at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> >> (ExecuteOperations.java:81)
> >> at
> >>
> >
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> >> (StrutsPrepareAndExecuteFilter.java:99)
> >> 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:233)
> >> at org.apache.catalina.core.StandardContextValve.invoke
> >> (StandardContextValve.java:191)
> >> at org.apache.catalina.core.StandardHostValve.invoke
> >> (StandardHostValve.java:127)
> >> at org.apache.catalina.valves.ErrorReportValve.invoke
> >> (ErrorReportValve.java:103)
> >> at org.apache.catalina.core.StandardEngineValve.invoke
> >> (StandardEngineValve.java:109)
> >> at
> >
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
> >> at
> >
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
> >> at org.apache.coyote.http11.Http11Protocol
> >> $Http11ConnectionHandler.process(Http11Protocol.java:606)
> >> at
> >
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

> >> at java.lang.Thread.run(Thread.java:745)
> >>
> >> I have specific tiles configuration,
> >> there is no tiles result, just a simple jsp file
> >> that contains tiles definition,
> >> in such a way that all pages that are results for actions
> >> starts like this:
> >>
> >> <%@page contentType="text/html;charset=utf-8" language="java"%>
> >> <%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
> >> <%@ taglib prefix="s" uri="/WEB-INF/struts2conf/struts-tags.tld"%>
> >>
> >> <tiles:insertDefinition name="elsevier.admin">
> >>     <tiles:putAttribute name="body">
> >> ...
> >>     </tiles:putAttribute>
> >> </tiles:insertDefinition>
> >>
> >>
> >> in tiles.xml there is only elsevier.admin definition.
> >>
> >> Any ideas anyone?
> >>
> >> Below is the full stack as seen on page render:
> >>
> >> org.apache.jasper.JasperException: javax.servlet.ServletException:
> >> javax.servlet.jsp.JspException:
> >> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> >> javax.servlet.jsp.tagext.Tag
> >> org.apache.jasper.servlet.JspServletWrapper.handleJspException
> >> (JspServletWrapper.java:502)
> >> org.apache.jasper.servlet.JspServletWrapper.service
> >> (JspServletWrapper.java:412)
> >>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> >> (ServletDispatcherResult.java:164)
> >> org.apache.struts2.dispatcher.StrutsResultSupport.execute
> >> (StrutsResultSupport.java:191)
> >> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> >> (DefaultActionInvocation.java:372)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:276)
> >>
> >
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept

> >> (DefaultWorkflowInterceptor.java:168)
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >>
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept

> >> (ConversionErrorInterceptor.java:138)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> 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:245)
> >>
> >
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> >> (StaticParametersInterceptor.java:191)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> >> (FileUploadInterceptor.java:253)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> >> (ModelDrivenInterceptor.java:100)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> >> (ChainingInterceptor.java:145)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> >> (ServletConfigInterceptor.java:164)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> >> (MultiselectInterceptor.java:73)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> >> (DateTextFieldInterceptor.java:125)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> >> (CheckboxInterceptor.java:91)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> >> (I18nInterceptor.java:140)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> >> (AliasInterceptor.java:193)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
> >
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> >> (ExceptionMappingInterceptor.java:189)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
> >
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> >>
> >
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> >> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> >> (ExecuteOperations.java:81)
> >>
> >
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> >> (StrutsPrepareAndExecuteFilter.java:99)
> >>
> >> root cause
> >>
> >> javax.servlet.ServletException: javax.servlet.jsp.JspException:
> >> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> >> javax.servlet.jsp.tagext.Tag
> >> org.apache.jasper.runtime.PageContextImpl.doHandlePageException
> >> (PageContextImpl.java:864)
> >> org.apache.jasper.runtime.PageContextImpl.handlePageException
> >> (PageContextImpl.java:797)
> >> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
> >> (run_002dscript_jsp.java:89)
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> org.apache.jasper.servlet.JspServletWrapper.service
> >> (JspServletWrapper.java:388)
> >>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> >> (ServletDispatcherResult.java:164)
> >> org.apache.struts2.dispatcher.StrutsResultSupport.execute
> >> (StrutsResultSupport.java:191)
> >> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> >> (DefaultActionInvocation.java:372)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:276)
> >>
> >
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept

> >> (DefaultWorkflowInterceptor.java:168)
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >>
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept

> >> (ConversionErrorInterceptor.java:138)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> 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:245)
> >>
> >
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> >> (StaticParametersInterceptor.java:191)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> >> (FileUploadInterceptor.java:253)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> >> (ModelDrivenInterceptor.java:100)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> >> (ChainingInterceptor.java:145)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> >> (ServletConfigInterceptor.java:164)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> >> (MultiselectInterceptor.java:73)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> >> (DateTextFieldInterceptor.java:125)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> >> (CheckboxInterceptor.java:91)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> >> (I18nInterceptor.java:140)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> >> (AliasInterceptor.java:193)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
> >
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> >> (ExceptionMappingInterceptor.java:189)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
> >
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> >>
> >
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> >> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> >> (ExecuteOperations.java:81)
> >>
> >
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> >> (StrutsPrepareAndExecuteFilter.java:99)
> >>
> >> root cause
> >>
> >> java.lang.ClassCastException:
> >> org.apache.tiles.jsp.taglib.InsertDefinitionTag cannot be cast to
> >> javax.servlet.jsp.tagext.Tag
> >> org.apache.jasper.runtime.TagHandlerPool.get(TagHandlerPool.java:126)
> >>
> >
>
org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspx_meth_tiles_005finsertDefinition_005f0
> >> (run_002dscript_jsp.java:102)
> >> org.apache.jsp.WEB_002dINF.pages.admin.run_002dscript_jsp._jspService
> >> (run_002dscript_jsp.java:81)
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> org.apache.jasper.servlet.JspServletWrapper.service
> >> (JspServletWrapper.java:388)
> >>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
> >> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute
> >> (ServletDispatcherResult.java:164)
> >> org.apache.struts2.dispatcher.StrutsResultSupport.execute
> >> (StrutsResultSupport.java:191)
> >> com.opensymphony.xwork2.DefaultActionInvocation.executeResult
> >> (DefaultActionInvocation.java:372)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:276)
> >>
> >
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept

> >> (DefaultWorkflowInterceptor.java:168)
> >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept
> >> (MethodFilterInterceptor.java:98)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >>
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept

> >> (ConversionErrorInterceptor.java:138)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> 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:245)
> >>
> >
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

> >> (StaticParametersInterceptor.java:191)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.FileUploadInterceptor.intercept
> >> (FileUploadInterceptor.java:253)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept
> >> (ModelDrivenInterceptor.java:100)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept
> >> (ChainingInterceptor.java:145)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept
> >> (ServletConfigInterceptor.java:164)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> 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:245)
> >> org.apache.struts2.interceptor.MultiselectInterceptor.intercept
> >> (MultiselectInterceptor.java:73)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept
> >> (DateTextFieldInterceptor.java:125)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> org.apache.struts2.interceptor.CheckboxInterceptor.intercept
> >> (CheckboxInterceptor.java:91)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept
> >> (I18nInterceptor.java:140)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept
> >> (AliasInterceptor.java:193)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
> >
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept
> >> (ExceptionMappingInterceptor.java:189)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
com.ppp.elsevier.struts.interceptor.Security.intercept(Security.java:33)
> >> com.opensymphony.xwork2.DefaultActionInvocation.invoke
> >> (DefaultActionInvocation.java:245)
> >>
> >
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> >>
> >
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:567)
> >> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction
> >> (ExecuteOperations.java:81)
> >>
> >
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter

> >> (StrutsPrepareAndExecuteFilter.java:99)
> >>
> >>
> >>
> >> --
> >> Best greetings,
> >> Paweł Wielgus.
> >> tel: +48 604 603 546
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]
> >>
> >
> > This Email was scanned by Sophos Anti Virus
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

This Email was scanned by Sophos Anti Virus
Loading...