Ok, you must replace you web.xml with a 2.4 compliant web.xml, i think
in 2.3 specs tomcat does not load the tlds from jars by default.

To do this, replace this section at begin of web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>

<web-app>

with this section
<?xml version="1.0" encoding="UTF-8"?>
<web-app
    xmlns="http://java.sun.com/xml/ns/j2ee";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
    version="2.4">

For your dtd problem using the example spring app, it's probably some
spring configuration issue (it's not the job of tomcat to locate dtds
for web applications)

Mano a écrit :
> On 11/14/06, David Delbecq <[EMAIL PROTECTED]> wrote:
>> Show us your web.xml please.
>>
>
> web.xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
>
> <web-app>
>  <servlet>
>    <servlet-name>mostgain</servlet-name>
>   
> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
>
>    <load-on-startup>1</load-on-startup>
>  </servlet>
>
>  <servlet-mapping>
>    <servlet-name>mostgain</servlet-name>
>    <url-pattern>*.htm</url-pattern>
>  </servlet-mapping>
>
>  <welcome-file-list>
>    <welcome-file>
>      index.jsp
>    </welcome-file>
>  </welcome-file-list>
>
> </web-app>
>
> 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
>
> Thanks,
> 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