3

I am getting this error, although I've already put necessary jar files for Tiles:

SEVERE: Exception while loading the app 
SEVERE: Undeployment failed for context /FinalTilesStruts2 
SEVERE: Exception while loading the app : 
 java.lang.IllegalStateException: ContainerBase.addChild: start: 
 org.apache.catalina.LifecycleException:
 java.lang.IllegalArgumentException: 
 java.lang.NoClassDefFoundError: org/apache/tiles/listener/TilesListener
Roman C
  • 49,761
  • 33
  • 66
  • 176
Kavish
  • 31
  • 1
  • 2
  • What is the issue? – Roman C Mar 20 '16 at 17:22
  • i am getting this error as i mentioned above in title,TilesListener class not found ? – Kavish Mar 20 '16 at 18:23
  • Post the stacktrace. – Roman C Mar 20 '16 at 18:24
  • SEVERE: Exception while loading the app SEVERE: Undeployment failed for context /FinalTilesStruts2 SEVERE: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.NoClassDefFoundError: org/apache/tiles/listener/TilesListener – Kavish Mar 21 '16 at 01:14
  • I've edited your question, because you didn't. See the answer below and accept it as soon as you read it. – Roman C Mar 22 '16 at 10:36

1 Answers1

1

The class org.apache.tiles.listener.TilesListener only available in the Tiles 2.0.3 that you can download here.

In higher versions of Tiles the listener class is org.apache.tiles.web.startup.TilesListener.

You can read this answer if it help you resolve problem with the right listener class.

If you are using Tiles 2 with Struts 2 then you should use

<listener>
    <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
Community
  • 1
  • 1
Roman C
  • 49,761
  • 33
  • 66
  • 176