-
1. Re: Error deploying applicotion: web-app not declared
p_d_austin Oct 4, 2001 10:35 AM (in response to pazu)Do you have a web-app.xml file in the WEB-INF directory of you war file and does it have XML in it that has the web-app tag around any other tags?
-
2. Re: Error deploying applicotion: web-app not declared
pazu Oct 4, 2001 10:44 AM (in response to pazu)No, I got only the 'web.xml' file. Here it's contents:
<?xml version="1.0"?>
<web-app>
<display-name>Teste de Cliente</display-name>
<servlet-name>TestServlet</servlet-name>
Teste de Unidade de Cliente
<servlet-class>com.tld.erp.TestServlet</servlet-class>
<servlet-mapping>
<servlet-name>TestServlet</servlet-name>
<url-pattern>/test</url-pattern>
</servlet-mapping>
</web-app> -
3. Re: Error deploying applicotion: web-app not declared
p_d_austin Oct 4, 2001 11:24 AM (in response to pazu)Sorry I meant web.xml not web-app.xml.
The other consideration is that tomcat 4 may require a doctype below the ?xml tag. The doctype is below.
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
I'll try my stuff out on Tomcat 4 tonight and see what happens.
Sorry for the confusion
Paul -
4. Re: Error deploying applicotion: web-app not declared
pazu Oct 4, 2001 2:44 PM (in response to pazu)It's OK now. Thank you.