由于某些原因,我无法使用maven或gradle依赖管理。我试图使用Tiles与Spring MVC,我得到下面的异常上的tcServer启动:Eclipse(STS)MVC 3.0.5 + Tiles 2.2.2项目依赖管理问题
java.lang.NoClassDefFoundError: org/apache/tiles/startup/BasicTilesInitializer
这里是我的依赖文件夹:
而且Eclipse中指出这个错误在我layout.jsp
The tag handler class for "tiles:insertAttribute" (org.apache.tiles.jsp.taglib.InsertAttributeTag) was not found on the Java Build Path
任何人都可以指出我错过了什么?
谢谢,据我所知,但它至少应该在eclipse中工作。我还没有部署。 – 2013-03-05 14:32:29
不,这不适用于Eclipse,因为Eclipse不会从jar文件编译源代码。在eclipse中,如果没有maven,您需要将常规jar添加到lib文件夹中,然后您可以通过“properties”/“build path”附加每个jar的源jar。 – Ralph 2013-03-05 18:34:11
好的,谢谢指出,明天会检查。 – 2013-03-05 19:08:48