简体   繁体   中英

The absolute uri: http://www.springframework.org/tags cannot be resolved in either web.xml or the jar files deployed with this application

I know that this question had been asked before. But none of the previous answers apply to my case. I am using gradle and spring boot. When I use

gradlew bootRun

everything is OK. But when I use

gradlew clean build && java -jar build\\libs\\myjar.jar

I get the following error when I open my jsp files

The absolute uri: http://www.springframework.org/tags cannot be resolved in either web.xml or the jar files deployed with this application

What is the difference between bootRun and clean build && java -jar? If there is a problem in my build.gradle then how come bootRun runs successfully? Thanks for your answers.

In short: the classloader is different. There are some limitations to using JSP with Spring Boot embedded applications. especially taglibs. In particular it never works with Jetty. Tomcat should be OK if you stick to a WAR format. If I were you I'd stay away from JSP, as there are so many better ways to write a view layer now.

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 The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application 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 Why getting error “The absolute uri: [http://tiles.apache.org/tags-tiles] cannot be resolved in either web.xml or the jar files deployed” 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 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 Absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application error in tomcat JBoss 6x 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