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 21:00:49 GMT
Not using maven, and will review all libs again.

Thank you very much for the quick answer. Appreciated!

Emi

--

On 10/18/2013 04:53 PM, Paul Benedict wrote:
> For example:
>
> <dependency>
>      <groupId>org.apache.tiles</groupId>
>      <artifactId>tiles-core</artifactId>
>      <version>3.0.1</version>
> </dependency>
> <dependency>
>      <groupId>org.apache.tiles</groupId>
>      <artifactId>tiles-api</artifactId>
>      <version>3.0.1</version>
> </dependency>
> <dependency>
>      <groupId>org.apache.tiles</groupId>
>      <artifactId>tiles-servlet</artifactId>
>      <version>3.0.1</version>
> </dependency>
>
>
>
> On Fri, Oct 18, 2013 at 3:52 PM, Paul Benedict <pbenedict@apache.org
> <mailto:pbenedict@apache.org>> wrote:
>
>     I can't post an example app right now. But you cannot have any Tiles
>     2 jars in your application if you want to use Tiles 3. That's why
>     you're blowing up. The exception clearly shows the application is
>     looking for a Tiles 2 API signature but is finding an incompatible
>     Tiles 3 API signature or vice-versa. Please remove all Tiles 2 jars
>     and make sure only Tiles 3 jars are present.
>
>
>     On Fri, Oct 18, 2013 at 3:45 PM, Emi Lu <emilu@encs.concordia.ca
>     <mailto:emilu@encs.concordia.ca>> wrote:
>
>
>          > 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>
>             <mailto: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 <mailto:emilu@encs.concordia.ca>
>           +1 514 848-2424 x5884
>
>
>
>
>     --
>     Cheers,
>     Paul
>
>
>
>
> --
> Cheers,
> Paul


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

Mime
View raw message