开发者

Exception sending context initialized event to listener instance in tiles

i am using tiles (2.0) for the first time. i wrote the following code in web.xml

 <c开发者_开发知识库ontext-param>
    <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINTION_CONFIG</param-name>
    <param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
<listener>
    <listener-class>org.apache.tiles.web.startup.TilesListener</listener-class>
</listener>

I created tiles,xml in WEB-INF folder. when i deploy the project it gives an exception stating

Exception  **sending context initialized event to listener instance of class org.apache.tiles.web.startup.TilesListener
java.lang.NoClassDefFoundError: org/apache/commons/digester/Rule**

I did not understand what is happening and why.


You are obviously missing Commons Digester. Did you put all dependencies in your WEB-INF/lib directory?


For anyone still seeks the answer. apetrelli's solution worked fine for me. Import Commons Digester jar to your lib.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜