Java 瓷砖2不使用支柱2

Java 瓷砖2不使用支柱2,java,apache,struts2,tiles2,Java,Apache,Struts2,Tiles2,我正在研究struts2,并在我的应用程序中使用tiles,我们使用Netbeans7.1。但是我们得到一个错误“模块尚未部署。有关详细信息,请参阅服务器日志。” “加载应用程序时出现异常:java.lang.IllegalStateException: ContainerBase.addChild:start:org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError:org/apache/commons/dig

我正在研究struts2,并在我的应用程序中使用tiles,我们使用Netbeans7.1。但是我们得到一个错误“模块尚未部署。有关详细信息,请参阅服务器日志。”

“加载应用程序时出现异常:java.lang.IllegalStateException: ContainerBase.addChild:start:org.apache.catalina.LifecycleException: java.lang.NoClassDefFoundError:org/apache/commons/digester/Rule“

我们在
web.xml

web.xml文件

 <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_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>

org.apache.tiles.impl.basictelescontainer.DEFINITIONS\u CONFIG
/WEB-INF/tiles.xml
org.apache.tiles.web.startup.TilesListener
struts.xml文件

查看文档

您的web.xml应该与您的web.xml有点不同

<listener>
  <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>

org.apache.struts2.tiles.StrutsTilesListener
不要忘记将apache common digester jar添加到您的lib文件夹。

查看文档

您的web.xml应该与您的web.xml有点不同

<listener>
  <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>

org.apache.struts2.tiles.StrutsTilesListener

不要忘记将apache common digester jar添加到您的lib文件夹。

您使用哪个Tiles版本和哪个Struts2版本?你的类路径中有struts2 tiles插件吗?来自服务器日志的Stacktrace?struts2-tiles-plugin-2.1.6.jar、xwork-core-2.2.1.1.jar、struts2-core-2.2.1.1.jar、commons-collections-3.1.jar、commons-fileupload-1.2.1.jar、commons-io-1.3.2.jar、commons-logging-1.1.1.1.1.jar、freemaker-2.3.16.jar、javassist-3.7.ga.jar、ognl-2.6.11.jar、struts2-dojo-plugin-2.2.2.2.2.2.2.2.2.jar、api-1.0.jar、,tiles-jsp-2.0.6.jar我们在我的应用程序中使用这个jar,您使用哪个tiles版本和哪个Struts2版本?你的类路径中有struts2 tiles插件吗?来自服务器日志的Stacktrace?struts2-tiles-plugin-2.1.6.jar、xwork-core-2.2.1.1.jar、struts2-core-2.2.1.1.jar、commons-collections-3.1.jar、commons-fileupload-1.2.1.jar、commons-io-1.3.2.jar、commons-logging-1.1.1.1.1.jar、freemaker-2.3.16.jar、javassist-3.7.ga.jar、ognl-2.6.11.jar、struts2-dojo-plugin-2.2.2.2.2.2.2.2.2.jar、api-1.0.jar、,tiles-jsp-2.0.6.jar我们在我的应用程序中使用这个jar