Hi
Just check this : http://www.dm.fh-muenchen.de/tomcat-docs/architecture/startup/serverStartup.txt, it says , first it will process the default web.xml (conf/web.xml) then the applications web.xml (WEB-INF/web.xml)

- Regards
Vinu

David Delbecq wrote:

Content in webapp should take precedence on content of
$CATALINA_HOME/conf/web.xml as stated in servlet specs about implicit
mappings. At least that's how i understand the specs. The container is
allowed to add it's own servlet and mapping but, except for implicit
mappings defined in specs, they should not interfere with the webapp.


Vinu Varghese a écrit :

default is a valid servlet name, but it is already defined in
$CATALINA_HOME/conf/web.xml. So we can't use that name in our web.xmls
Just check the introduction section inside that file.
:-)

- Regards
Vinu

David Delbecq wrote:

Yes, renaming  this does solve the problem, but i can't see in servlet
specs where it's stated 'default' is not a valid logical name for a
servlet.

Vinu Varghese a écrit :



Just change the 'default' to something else like default.test , and
check whether the error repeats

David Delbecq wrote:

Nope, downgrading to 2.3 servlet specs does not solve problem.

foo shyn a écrit :



Maybe u could try the this DOCTYPE tag instead

<!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd";>



hope this helps

F.S.

----- Original Message -----
From: "David Delbecq" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, March 13, 2006 4:48 PM
Subject: Re: error in tomcat






line 43 contains
</servlet>
It corresponds to the following section:

*<servlet>*
*<servlet-name>*default*</servlet-name>*
*<servlet-class>*
    org.apache.catalina.servlets.DefaultServlet
*</servlet-class>*
*<init-param>*
    *<param-name>*debug*</param-name>*
    *<param-value>*0*</param-value>*
*</init-param>*
*<init-param>*
    *<param-name>*listings*</param-name>*
    *<param-value>*true*</param-value>*
*</init-param>*
*<load-on-startup>*1*</load-on-startup>*
*</servlet>*

There is no other default section in the web.xml. The whole
web.xml is
as follow:

*<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"*>*

*<display-name>*Welcome to Tomcat*</display-name>*
*<description>*
 Welcome to Tomcat
*</description>*

/<!-- JSPC servlet mappings start -->/
*<servlet>*
*<servlet-name>*default*</servlet-name>*
*<servlet-class>*
    org.apache.catalina.servlets.DefaultServlet
*</servlet-class>*
*<init-param>*
    *<param-name>*debug*</param-name>*
    *<param-value>*0*</param-value>*
*</init-param>*
*<init-param>*
    *<param-name>*listings*</param-name>*
    *<param-value>*true*</param-value>*
*</init-param>*
*<load-on-startup>*1*</load-on-startup>*
*</servlet>*
*<servlet>*
    *<servlet-name>*org.apache.jsp.index_jsp*</servlet-name>*
    *<servlet-class>*org.apache.jsp.index_jsp*</servlet-class>*
*</servlet>*
*<servlet-mapping>*
    *<servlet-name>*default*</servlet-name>*
    *<url-pattern>*/*</url-pattern>*
*</servlet-mapping>*
*<servlet-mapping>*
    *<servlet-name>*org.apache.jsp.index_jsp*</servlet-name>*
    *<url-pattern>*/index.jsp*</url-pattern>*
*</servlet-mapping>*

/<!-- JSPC servlet mappings end -->/

*</web-app>*


Any idea why this webapp fail?
Regards?


Alan Chaney a écrit :


One place to start might be in your web.xml file. About half way
down
you have a message saying

Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig
applicationWebConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: addChild:  Child name
'default' is
not unique
   at
o

And at the end you have

   at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)




Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig
applicationWebConfig
SEVERE: Occurred at line 43 column 15
Mar 10, 2006 2:03:42 PM org.apache.catalina.startup.ContextConfig
start
SEVERE: Marking this application unavailable due to previous
error(s)



Does 'line 43 column 15' refer to something relevant in web.xml?

Regards

Alan

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
........................................

Vinu Varghese
[EMAIL PROTECTED]
www.x-minds.org

Reply via email to