简体   繁体   中英

Struts tags-tiles cannot be resolved in either web.xml or the jar files

I am using Struts2 in Eclipse IDE and JBoss5 server and maven for build. I was trying to use tiles in a simple login application. But I am not able to include the taglib. I have imported all the necessary jars dependencies in pom.xml file. Following is the list of jars which I have included in maven pom.xml file:

  • struts2-core 2.3.15.1
  • struts2-tiles-plugin 2.3.15.1
  • commons-beanutils
  • struts-taglib
  • commons-digester
  • commons-beanutils
  • tiles-api

and also I included and tried different possible combinations of

  1. tiles-api-2.0.3.jar
  2. tiles-core-2.0.3.jar
  3. tiles-jsp-2.0.3.jar
  4. struts-tiles.jar

and still it is not working, the Errors are :

-The absolute uri: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application
-ServletException including path '/layout.jsp'. 
-ServletException including path '/layout.jsp'. 

when I am trying to import tiles taglib on a JSP page it says

URI: http://tiles.apache.org/tags-tiles cannot be resolved in either web.xml or the jar files deployed with this application.

I tried Google also. Got some solutions but they didn't work for me.

You should use servlet API at least version 2.4. In the tiles you could use taglib definition

<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

Don't mess up Struts 1 taglib and tiles jars with Tiles artifacts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

Related Question Why getting error “The absolute uri: [http://tiles.apache.org/tags-tiles] cannot be resolved in either web.xml or the jar files deployed” Struts The absolute uri: http://struts.apache.org/tags-bean cannot be resolved in either web.xml or the jar files deployed with this application The absolute uri: http://www.springframework.org/tags cannot be resolved in either web.xml or the jar files deployed with this application The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application The absolute uri cannot be resolved in either web.xml or the jar files deployed with this application http://displaytag.sf.net cannot be resolved in either web.xml or the jar files How to fix 'The absolute uri: http://java.sun.com/portlet cannot be resolved in either web.xml or the jar files deployed with this application' The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this app JSTL error: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application JSTL: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM