Struts2 struts 2 tiles2.2.2配置有问题。有人能帮忙排除故障吗?

Struts2 struts 2 tiles2.2.2配置有问题。有人能帮忙排除故障吗?,struts2,tiles,tiles2,apache-tiles,struts2-tiles-plugin,Struts2,Tiles,Tiles2,Apache Tiles,Struts2 Tiles Plugin,以下是我的资源 web.xml文件 ezviewocean 海景 org.apache.tiles.impl.basictelescontainer.DEFINITIONS\u CONFIG /WEB-INF/tiles.xml org.apache.struts2.tiles.StrutsTilesListener 支柱准备 org.apache.struts2.dispatcher.ng.filter.strutspreadexecutefilter 支柱准备 /* login.jsp b.

以下是我的资源

web.xml文件

ezviewocean 海景 org.apache.tiles.impl.basictelescontainer.DEFINITIONS\u CONFIG /WEB-INF/tiles.xml org.apache.struts2.tiles.StrutsTilesListener 支柱准备 org.apache.struts2.dispatcher.ng.filter.strutspreadexecutefilter 支柱准备 /* login.jsp b.xml

c struts.xml

基地布局 /login.jsp /login.jsp 我有 tiles-api-2.2.2.jar, tiles-core-2.2.2.jar, tiles-jsp-2.2.2.jar, tiles-servlet-2.2.2.jar, tiles-compact-2.2.2.jar, struts2-tiles-plugin-2.2.16.3.jar

以及我的web inf/lib文件夹中的一些其他JAR

此外,下面是baseLayout.jsp

如果需要,我可以发布其他页面或屏幕截图。下面是我尝试运行此应用程序时遇到的错误

Struts检测到未处理的异常: 信息: org.apache.tiles.template.AttributeResolver org/apache/tiles/template/AttributeResolver java.lang.NoClassDefFoundError:org/apache/tiles/template/AttributeResolver 文件:org/apache/catalina/loader/WebappClassLoader.java 电话号码:1680
答:在我的情况下,使用Tilesservlet有效。检查下面的注释。

仍然在web.xml中没有TilesServlet。@AleksandrM我在网上看到的教程中没有提到tiles servlet。你能说得更清楚一点吗。。当您使用struts 2、tiles 2.2和struts tiles插件时,struts 2 prepareandexecute过滤器应该调用servlet。。这是我从在线指南中了解到的。你能给我指一个提到tiles servlet配置的资源吗?我已经告诉过你StrutsPrepareAndExecuteFilter对tiles一无所知。StrutsTilesListener知道,但最好使用tiles servlet而不是S2 listener进行检查。至于链接:问题不在于结果配置,它应该是baseLayout,而是因为tiles找不到您的jsp。那么/baseLayout.jsp在哪里?@AleksandrM谢谢你。非常感谢您的耐心和帮助。我还有一些问题,但我会自己解决的。。你帮我清理了主要的一个。