I downloaded dtd, and put it into classpath. In Ant's build.xml, I have:
<property name="main.dir" value="./src/main"/>
<property name="resources.dir" value="${main.dir}/resourc
es"/>
<path id="compile.classpath">
<pathelement location="${resources.dir}
"/>
...
</path>
spring-beans-2.0.dtd is in resources directory:
src
main
resources
spring-beans-2.0.dtd
In applicationContext.xml: I added following line:
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "classpath://spring-beans-
2.0.dtd" >
But it gives following error:
java.net.MalformedURLExcep
tion: unknown protocol: classpath
How to put downloaded dtd in applicationContext.xml?
Start Free Trial