我創建使用瓷磚,Spring和Hibernate的應用程序。找不到標籤庫描述爲「http://tiles.apache.org/tags-tiles」
運行時的情況下,它顯示以下錯誤:
Can not find the tag library descriptor for "http://tiles.apache.org/tags-tiles"
所有罐都包括與映射也看到細。我哪裏出錯了?
我創建使用瓷磚,Spring和Hibernate的應用程序。找不到標籤庫描述爲「http://tiles.apache.org/tags-tiles」
運行時的情況下,它顯示以下錯誤:
Can not find the tag library descriptor for "http://tiles.apache.org/tags-tiles"
所有罐都包括與映射也看到細。我哪裏出錯了?
網址看起來不錯。像你缺少一些瓦片罐
你的問題聽起來有點。確保將包含tiles-jsp.tld
的罐子添加到您的項目web libs
文件夾中。包含此文件
一個罐子例如:tiles-jsp-2.2.1.jar
。
我從別的地方複製與taglib
聲明整個文件,並得到了相同的編譯錯誤。我刪除了該文件,創建了一個新文件並粘貼了相同的內容。聽起來很奇怪,但工作!希望它能幫助別人。 :)
在pom.xml文件附加下面的工件和編譯好這次。
<!-- Tiles -->
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-api</artifactId>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-core</artifactId>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>2.1.2</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-servlet</artifactId>
<version>2.1.2</version>
</dependency>
即使在使用tiles-jsp.2.0.6.jar之後,我也遇到了這個問題。所以我找到了解決辦法從Maven依賴手動刪除罐子,將其添加爲外部JAR ..它的工作,你也可以嘗試這樣..
添加瓷磚依賴於Spring項目的pom.xml的幫助 -
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>3.0.7</version>
</dependency>
它顯示編譯錯誤 – user1653773