Hi,
I'm using Struts 2.1.5 with convention plugin. I'm in the learning process
and trying several things (action, rule annotations, hibernate etc).
Everything was working ok until today. i started using Tiles.
I copied
struts2-tiles-plugin-2.1.5.jar
tiles-api-2.0.6.jar
tiles-core-2.0.6.jar
tiles-jsp-2.0.6.jar files into my lib folder. These files come with struts
2.1.5.
I added
<listener>
<listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>
to web.xml file.
This is my struts.xml:
<struts>
<package name="default" extends="struts-default"> (There was also
namespace="/", but later i removed it. but nothing changed)
<result-types>
<result-type name="tiles"
class="org.apache.struts2.views.tiles.TilesResult" />
</result-types>
</package>
</struts>
I couldn't quite understand this package thing. Maybe the problem is with my
struts file. I can also paste tiles.xml if it is necessary to diagnose the
problem.
I get
HTTP Status 404 - /adv_ment/admin/login/index problem. And these are the
lines from eclipse console:
SEVERE: Exception sending context initialized event to listener instance of
class org.apache.struts2.tiles.StrutsTilesListener
java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule
at org.apache.tiles.definition.UrlDefinitionsFactory.init
at
org.apache.tiles.impl.BasicTilesContainer.initializeDefinitionsFactory
at org.apache.tiles.impl.BasicTilesContainer.init
..............
Thanks in advance. Sorry for keeping it long.