Friday, November 03, 2006

java.io.FileNotFoundException spring-beans_2_0.dtd

Keywords:
java.io.FileNotFoundException spring-beans_2_0.dtd spring java 2.0 MVC

Problem:
Following the guide (such as the "Spring Framework MVC application step-by-step") and you get this error about the DTD reference in the -servlet.xml file.

Solution:
This is an easy one, the file seems to have been renamed ... the DTD is actually accessed from the web. Change the _2_0 to -2.0

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans_2_0.dtd">


<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

No comments: