You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Delbecq <de...@oma.be> on 2006/03/10 15:39:34 UTC

error in tomcat

Hello, after a restart of tomcat we got this error. This is strange, we
didn't have it before.
Tomcat is configured with 2 virtual hosts, eahc has his own webapps
directory. They share the root webapp (/), the manager (/manager) and
the admin (/admin)

For some unknown reasons, the root webapp in one of the vhosts has
stopped working... This is the tomcat default root webapp (the one with
nice tomcat logo)

Can somebody gie any clues?? Here is logs:

Mar 10, 2006 2:03:40 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 10, 2006 2:03:41 PM org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:890)
        at
org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
        at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
        at
org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
        at
org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:302)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:959)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4020)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
Caused by: java.lang.IllegalArgumentException: addChild:  Child name
'default' is not unique
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:749)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1884)
        ... 43 more
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
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719)
        at
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2745)
        at
org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1060)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
        at
org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:302)
        at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:959)
        at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4020)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:909)
        at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:872)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1019)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1011)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:440)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:683)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:537)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
        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)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat 5.5.15 in "debug mode"?

Posted by Mark Thomas <me...@virgin.net>.
When starting a new thread (i.e. sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Tomcat 5.5.15 in "debug mode"?

Posted by John Cherouvim <jc...@eworx.gr>.
Hello

I have a serious problem with Tomcat 5.5.15 on windows 2003 with Java 
1.5.0_06-b05.
Tomcat runs as service in mode jvm (and not mode java, not sure what 
that is but anyway).

Every request on the server gives me this block of debug log on stdout.log
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:247)     - JspEngine --> /bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:248)     -          ServletPath: /bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:249)     -             PathInfo: null
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:250)     -             RealPath: 
d:\jakarta\tomcat\webapps\foo\bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:251)     -           RequestURI: /bar.jsp
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:252)     -          QueryString: null
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:253)     -       Request Params:
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:257)     -          f_submit = true
2006-04-03 17:51:36,421 DEBUG [ajp-8009-1] servlet.JspServlet 
(JspServlet.java:257)     -          foo = I±I²I³


This has a side-effect on my programs which need to use UTF-8 parameters 
from the request object. When I do 
request.setCharacterEncoding("UTF-8"); there is no effect because 
someone else (the logger probably) has already accessed the request 
parameters, without of course setting any character encoding.

How can I fix this? I've managed to set Tomcat not to log all these 
stuff by setting the level to ERROR, but I'm sure that the process of 
the parameters is happening inside because the request parameters have 
already been accessed.

thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error in tomcat

Posted by Vinu Varghese <vi...@x-minds.org>.
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" <de...@oma.be>
>>>>>>To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
>>>>>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>>>
>>>>>>>>                 
>>>>>>>>                
>>>>>>>>
>>>>>>>---------------------------------------------------------------------
>>>>>>>
>>>>>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>           
>>>>>>>              
>>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>> 
>>>>>>      
>>>>>>            
>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>    
>>>>>          
>>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>> 
>>>
>>>      
>>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>  
>

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

Vinu Varghese
vinu@x-minds.org
www.x-minds.org


Re: error in tomcat

Posted by David Delbecq <de...@oma.be>.
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" <de...@oma.be>
>>>>> To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
>>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>>
>>>>>>>                  
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>       
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>     
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>  
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error in tomcat

Posted by Vinu Varghese <vi...@x-minds.org>.
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" <de...@oma.be>
>>>>To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
>>>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>>
>>>>>>   
>>>>>>      
>>>>>>            
>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>>    
>>>>>          
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>>  
>>>>        
>>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>> 
>>>
>>>      
>>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>  
>

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

Vinu Varghese
vinu@x-minds.org
www.x-minds.org


Re: error in tomcat

Posted by David Delbecq <de...@oma.be>.
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" <de...@oma.be>
>>> To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>    
>>>>>       
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>>
>>>>  
>>>>     
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>   
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>  
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error in tomcat

Posted by Vinu Varghese <vi...@x-minds.org>.
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" <de...@oma.be>
>>To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
>>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>>
>>>   
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>> 
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
>  
>

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

Vinu Varghese
vinu@x-minds.org
www.x-minds.org


Re: error in tomcat

Posted by David Delbecq <de...@oma.be>.
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" <de...@oma.be>
>To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
>>>For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: users-help@tomcat.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error in tomcat

Posted by foo shyn <fo...@optegra.com.my>.
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" <de...@oma.be>
To: "Tomcat Users List" <us...@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: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error in tomcat

Posted by David Delbecq <de...@oma.be>.
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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: error in tomcat

Posted by Alan Chaney <al...@compulsivecreative.com>.
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org