tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: tiles3.0.1 + struts2 => java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener"
Date Fri, 18 Oct 2013 19:42:31 GMT
I think you're using the wrong result class. See step #3 of the document.


On Fri, Oct 18, 2013 at 2:37 PM, Emi Lu <emilu@encs.concordia.ca> wrote:

> On 10/18/2013 11:57 AM, Emi Lu wrote:
>
>> On 10/18/2013 11:36 AM, Paul Benedict wrote:
>>
>>> https://cwiki.apache.org/**confluence/display/WW/Tiles+3+**Plugin<https://cwiki.apache.org/confluence/display/WW/Tiles+3+Plugin>
>>>
>>
>>
> Web.xml
> ===============
> ...
> <context-param>
>       <param-name>
>          org.apache.tiles.impl.**BasicTilesContainer.**DEFINITIONS_CONFIG
>       </param-name>
>       <param-value>
>
> /WEB-INF/tiles/login/tiles-**login.xml,/WEB-INF/tiles/main/**
> tiles-main.xml,/WEB-INF/tiles/**help/tiles-help.xml
>       </param-value>
>    </context-param>
> ...
>    <listener>
>
> <listener-class>org.apache.**tiles.extras.complete.**
> CompleteAutoloadTilesListener<**/listener-class>
>    </listener>
> ...
>
>
>
>
>
> But got the following exception:
> ==============================**======
> java.lang.NoSuchMethodError: org.apache.tiles.access.**
> TilesAccess.getContainer(**Ljava/lang/Object;)Lorg/**
> apache/tiles/TilesContainer;
>         at org.apache.struts2.views.**tiles.TilesResult.doExecute(**
> TilesResult.java:100)
>         at org.apache.struts2.dispatcher.**StrutsResultSupport.execute(**
> StrutsResultSupport.java:186)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**
> executeResult(**DefaultActionInvocation.java:**371)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**275)
>         at org.apache.struts2.**interceptor.debugging.**
> DebuggingInterceptor.**intercept(**DebuggingInterceptor.java:256)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**
> DefaultWorkflowInterceptor.**doIntercept(**DefaultWorkflowInterceptor.**
> java:167)
>         at com.opensymphony.xwork2.**interceptor.**
> MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**validator.**ValidationInterceptor.**
> doIntercept(**ValidationInterceptor.java:**265)
>         at org.apache.struts2.**interceptor.validation.**
> AnnotationValidationIntercepto**r.doIntercept(**
> AnnotationValidationIntercepto**r.java:68)
>         at com.opensymphony.xwork2.**interceptor.**
> MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**
> ConversionErrorInterceptor.**intercept(**ConversionErrorInterceptor.**
> java:138)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**ParametersInterceptor.*
> *doIntercept(**ParametersInterceptor.java:**239)
>         at com.opensymphony.xwork2.**interceptor.**
> MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**ParametersInterceptor.*
> *doIntercept(**ParametersInterceptor.java:**239)
>         at com.opensymphony.xwork2.**interceptor.**
> MethodFilterInterceptor.**intercept(**MethodFilterInterceptor.java:**98)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**
> StaticParametersInterceptor.**intercept(**StaticParametersInterceptor.**
> java:191)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at org.apache.struts2.**interceptor.**MultiselectInterceptor.**
> intercept(**MultiselectInterceptor.java:**73)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at org.apache.struts2.**interceptor.**
> CheckboxInterceptor.intercept(**CheckboxInterceptor.java:91)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at org.apache.struts2.**interceptor.**FileUploadInterceptor.**
> intercept(**FileUploadInterceptor.java:**252)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**ModelDrivenInterceptor.
> **intercept(**ModelDrivenInterceptor.java:**100)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**
> ScopedModelDrivenInterceptor.**intercept(**ScopedModelDrivenInterceptor.**
> java:141)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**
> ChainingInterceptor.intercept(**ChainingInterceptor.java:145)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         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:**246)
>         at com.opensymphony.xwork2.**interceptor.I18nInterceptor.**
> intercept(I18nInterceptor.**java:161)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at org.apache.struts2.**interceptor.**ServletConfigInterceptor.**
> intercept(**ServletConfigInterceptor.java:**164)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.AliasInterceptor.**
> intercept(AliasInterceptor.**java:193)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at com.opensymphony.xwork2.**interceptor.**
> ExceptionMappingInterceptor.**intercept(**ExceptionMappingInterceptor.**
> java:189)
>         at com.opensymphony.xwork2.**DefaultActionInvocation.**invoke(**
> DefaultActionInvocation.java:**246)
>         at org.apache.struts2.impl.**StrutsActionProxy.execute(**
> StrutsActionProxy.java:54)
>         at org.apache.struts2.dispatcher.**Dispatcher.serviceAction(**
> Dispatcher.java:563)
>         at org.apache.struts2.dispatcher.**ng.ExecuteOperations.**
> executeAction(**ExecuteOperations.java:77)
>         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.displaytag.filter.**ResponseOverrideFilter.**doFilter(**
> ResponseOverrideFilter.java:**125)
>         at org.apache.catalina.core.**ApplicationFilterChain.**
> internalDoFilter(**ApplicationFilterChain.java:**235)
>         at org.apache.catalina.core.**ApplicationFilterChain.**doFilter(**
> ApplicationFilterChain.java:**206)
>         at org.displaytag.filter.**ResponseOverrideFilter.**doFilter(**
> ResponseOverrideFilter.java:**125)
>         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:662)
>
> Could someone tell which jar missing please?
>
> Struts2.3.15.3  + tiles3.01.
>
> Thanks a lot!
> Emi
>
>


-- 
Cheers,
Paul

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message