Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Currently, I use a 'Maven' project where I put in my pom.xml the current dependencies to use Spring Framework where org.springframework.version = 3.1.0.RELEASE :

<dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-core</artifactId>
   <version>${org.springframework.version}</version>
</dependency>

<dependency>
   <groupId>org.springframework</groupId>
   <artifactId>spring-context</artifactId>
   <version>${org.springframework.version}</version>
</dependency>

<!-- Spring MVC framework -->
<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>${org.springframework.version}</version>
</dependency>

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-taglibs</artifactId>
    <version>${org.springframework.version}</version>
</dependency>

All the jar dependencies are sitting in target/myGoogleAppEngine-0.0.1-SNAPSHOT/WEB-INF/lib. This directory contains :

spring-aop-3.1.0.RELEASE.jar
spring-beans-3.1.0.RELEASE.jar
spring-webmvc-3.1.0.RELEASE.jar
spring-web-3.1.0.RELEASE.jar
spring-security-taglibs-3.1.0.RELEASE.jar
spring-security-web-3.1.0.RELEASE.jar
...

At the beginning of my address.jsp, I've the following line :

<%@ taglib prefix="form" uri="http://www.springsource.org/tags/form" %>

But I've the following error when I execute the address.jsp :

Error 500
org.apache.jasper.JasperException: The absolute uri: http://www.springsource.org/tags/form cannot be resolved in either web.xml or the jar files deployed with this application
like image 831
user2274060 Avatar asked Dec 11 '13 14:12

user2274060


2 Answers

If you open up spring-webmvc-3.1.0-RELEASE.jar/META-INF/spring-form.tld the <uri> to use is

<uri>http://www.springframework.org/tags/form</uri>

So you should have

<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
like image 100
Sotirios Delimanolis Avatar answered Oct 25 '22 17:10

Sotirios Delimanolis


Add this dependency in pom.xml

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-taglibs</artifactId>
    <version>Your Security Version</version>
</dependency>
like image 20
Smith Avatar answered Oct 25 '22 16:10

Smith