tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emi Lu <em...@encs.concordia.ca>
Subject Re: tiles3.0.1 + struts2 => java.lang.NoClassDefFoundError: org/apache/tiles/web/startup/TilesListener"
Date Fri, 18 Oct 2013 20:45:50 GMT

 > I looked at my Struts 2 + Tiles 3 application. Like the instructions
 > say, you need either to register the tile result OR extend from
 > tiles-default. I only did the former. See what happens if you extend
 > from struts-default instead.

I searched the whole project with keyword "struts-default", and only 
struts2.3.15.3.jar has this keyword.

All other *struts*.xml,
  <package name="..." namespace="/..." extends="tiles-default">
is used.


Would it be possible that you could post a blank/test project(struts2 + 
tile3 + jars needed) on the website? Which will help a lot!


> Do you, by chance, have both Tiles 2 and Tiles 3 libraries in your app?

In struts2.3.15.3, there are tiles-api-2.0.6.jar  tiles-core-2.0.6.jar 
tiles-jsp-2.0.6.jar.

(1) When load the 3 jars, webapp cannot be started and will get a 
different exception



(2) When did not load the 3 jars:
     webapp can be started successfully.
     When login and got the "java.lang.NoSuchMethodError: 
org.apache.tiles.access.TilesAccess.getContainer(Ljava/lang/Object;)" 
Exception.

So, the exception shows below for (2).

Thanks again.
Emi


-- 
>
>             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
>
>
>
>
>
>
>     --
>     Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
>     emilu@encs.concordia.ca <mailto:emilu@encs.concordia.ca>        +1
>     514 848-2424 x5884
>
>
>
>
> --
> Cheers,
> Paul


-- 
Emi Lu, ENCS, Concordia University, Montreal H3G 1M8
emilu@encs.concordia.ca        +1 514 848-2424 x5884

Mime
View raw message