spring 找不到“http://tiles.apache.org/tags-tiles”的标签库描述符
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12341521/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can not find the tag library descriptor for "http://tiles.apache.org/tags-tiles"
提问by user1653773
I am creating an application using Tiles, Spring and Hibernate.
我正在使用 Tiles、Spring 和 Hibernate 创建一个应用程序。
When when running, it is showing following error:
运行时,显示如下错误:
Can not find the tag library descriptor for "http://tiles.apache.org/tags-tiles"
All the jars are included and mapping is also seeing fine. Where I am going wrong?
所有的罐子都包括在内,映射也很好。我哪里出错了?
回答by Ralph
The url looks ok.
网址看起来没问题。
Your problem sounds a bit like you are missing some tiles jars. Make sure that a jar containing tiles-jsp.tldis added to your projects web libsfolder.
您的问题听起来有点像您缺少一些瓷砖罐。确保将包含的 jartiles-jsp.tld添加到您的项目 weblibs文件夹中。
One jar that contains this file is for example: tiles-jsp-2.2.1.jar.
例如,包含此文件的 jar 是:tiles-jsp-2.2.1.jar.
回答by Raja
In pom.xml file appended below artifacts and compiled well this time.
在 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>
回答by Anvita Shukla
I had this problem even after having tiles-jsp.2.0.6.jar. So i found the solution by removing the jar manually from the maven dependencies and adding it as an external jar.. It worked, you may also try so..
即使在拥有tiles-jsp.2.0.6.jar之后我也遇到了这个问题。因此,我通过从 Maven 依赖项中手动删除 jar 并将其添加为外部 jar 找到了解决方案。
回答by Anand Kumar
Adding the tiles dependency in pom.xml of Spring project will help-
在 Spring 项目的 pom.xml 中添加tiles 依赖会有所帮助-
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>3.0.7</version>
</dependency>
回答by Surekha
I copied the whole file with the taglibdeclaration from somewhere else and got the same compilation error. I deleted the file, created a new one and pasted the same contents. Sounds weird but worked! Hope it helps someone. :)
我taglib从其他地方复制了带有声明的整个文件,并得到了相同的编译错误。我删除了该文件,创建了一个新文件并粘贴了相同的内容。听起来很奇怪但有效!希望它可以帮助某人。:)

