Cannot find tag library descriptor for "http://tiles.apache.org/tags-tiles"

I am building an application using Tiles, Spring and Hibernate.

When starting, the following error is displayed:

Can not find the tag library descriptor for "http://tiles.apache.org/tags-tiles" 

All banks are included, and the display is also clearly visible. Where am I mistaken?

+6
source share
5 answers

The url looks ok.

Your problem sounds a bit like you are missing some banners. Make sure the jar containing tiles-jsp.tld added to the libs project folder.

One jar containing this file, for example: tiles-jsp-2.2.1.jar .

+16
source

In the pom.xml file added below the artifacts and compiled this time.

 <!-- 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> 
+3
source

I copied the entire taglib ad taglib from another location and received the same compilation error. I deleted the file, created a new one and inserted the same content. Sounds weird, but it works! Hope this helps someone. :)

0
source

I had this problem even after I have tile-jsp.2.0.6.jar. So I found a solution by manually removing the jar from the maven dependencies and adding it as an external jar. It worked, you can also try this.

0
source

Adding slab dependencies to pom.xml of a Spring project will help -

 <dependency> <groupId>org.apache.tiles</groupId> <artifactId>tiles-jsp</artifactId> <version>3.0.7</version> </dependency> 
0
source

Source: https://habr.com/ru/post/924966/


All Articles