Meanwhile, I tried setting up and running the 'springapp' example
found in the spring docs exactly as instructed there and when I try to
access localhost:8080/springapp I get the following error:

javax.servlet.ServletException: Servlet.init() for servlet springapp
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
....

root cause:
org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from ServletContext resource
[/WEB-INF/springapp-servlet.xml]; nested exception is
java.io.FileNotFoundException:
http://www.springframework.org/dtd/spring-beans_2_0.dtd


In the springapp-servlet.xml file I removed the '_2_0' (just before
the .dtd) from the !DOCTYPE tag and it works now!

Was:

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

After removal:

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

Will try the same approach to the other app and keep you informed.

regds,
mano

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to