tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Tomcat 5.5.0 - Child name is not unique error
Date Tue, 07 Sep 2004 15:54:03 GMT
you shouldn't put Context elements in server.xml. You should define a separate file like lololo.xml
and put it in conf/Catalina/localhost/

> -----Original Message-----
> From: helena rato [mailto:helenarato@yahoo.com]
> Sent: 07 September 2004 16:51
> To: Tomcat Users List
> Subject: RE: Tomcat 5.5.0 - Child name is not unique error
> 
> 
> Hi,
>  
> Thanks for looking into this matter.
>  
> I have repeated the exact same process, creating a 'lololo' 
> web app the same way I did create 'blabli' , and I get the 
> same error (Child name 'lololo' is not unique).
>  
> I am 100% sure that I don't have 2 web apps with the same 
> path. The error comes when I add a 'context' tag in 
> server.xml (in my case I'm just trying to add a logger), as 
> explained in my previous mail.
>  
> Also, I did try doing the exact same with tomcat 5.0.12: it 
> works fine (no error and the logger is created).
>  
> Bye
>  
> Helena
>  
> "Shapira, Yoav" <Yoav.Shapira@mpi.com> wrote:
> 
> Hi,
> There's nothing strange about this error: you can't have two webapps
> wieh the same path. You couldn't in Tomcat 4.x or 5.0.x, and you can't
> in 5.5.x. ;)
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-----Original Message-----
> >From: helena rato [mailto:helenarato@yahoo.com]
> >Sent: Tuesday, September 07, 2004 11:01 AM
> >To: tomcat-user@jakarta.apache.org
> >Subject: Tomcat 5.5.0 - Child name is not unique error
> >
> >Hi all,
> >
> >Here is the problem description:
> >
> >I have Linux RedHat 9 (kernel 2.4.20-8).
> >I have Java jdk 1.5.0
> >I have installed tomcat 5.5.0
> >
> >I create a brand new web app, I call it 'blabli' :
> >
> >mkdir $CATALINA_HOME/webapps/blabli
> >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF
> >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/classes
> >mkdir $CATALINA_HOME/webapps/blabli/WEB-INF/lib
> >
> >In $CATALINA_HOME/webapps/blabli/WEB-INF, I added a web.xml file, as
> >follows:
> >
> >[root@gx400 root]# cat $CATALINA_HOME/webapps/blabli/WEB-INF/web.xml
> >
> >> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd">
> >
> > Servlet 2.4 Examples
> > 
> > Servlet 2.4 Examples.
> > 
> >
> >
> >I re-start tomcat.
> >
> >At this point, tomcat runs fine.
> >
> >Now, I add a logger using a context tag in
> $CATALINA_HOME/conf/server.xml.
> >
> >The code added to $CATALINA_HOME/conf/server.xml is:
> >
> > > debug="5" reloadable="true" crossContext="true">
> > > prefix="localhost_blabli_log." suffix=".txt"
> > timestamp="true"/>
> > 
> >
> >I re-start tomcat.
> >
> >And I get a strange error!
> >
> >The error in catalina.out is:
> >
> >[GC 3771K->3357K(5044K), 0.0031900 secs]
> >Sep 7, 2004 10:51:21 AM org.apache.catalina.startup.HostConfig
> >deployDirectory
> >SEVERE: Error deploying web application directory blabli
> >java.lang.IllegalArgumentException: addChild: Child name '/blabli' is
> not
> >unique
> > at
> >org.apache.catalina.core.ContainerBase.addChildInternal(Conta
> inerBase.j
> ava:
> >749)
> > at
> >org.apache.catalina.core.ContainerBase.addChild(ContainerBase
> .java:739)
> >
> >
> >
> >
> >Thank-you in advance for any clue!
> >
> >Helena
> >
> >
> >---------------------------------
> >Do you Yahoo!?
> >Yahoo! Mail is new and improved - Check it out!
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged. This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else. If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender. Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


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


Mime
View raw message