You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/12/16 08:04:48 UTC
[Bug 57354] New: java.lang.IllegalArgumentException: addChild:
Child name '/admin' is not unique
https://issues.apache.org/bugzilla/show_bug.cgi?id=57354
Bug ID: 57354
Summary: java.lang.IllegalArgumentException: addChild: Child
name '/admin' is not unique
Product: Tomcat 7
Version: 7.0.53
Hardware: PC
OS: Linux
Status: NEW
Severity: blocker
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: anilsingh7@gmail.com
We are redeploying few war files in tomcat webapps on some event.
Tomcat version- 7.0.53
during redeploy we continuously observed below error in tomcat catalina--
Error:- Child name '/admin' is not unique
Dec 15, 2014 4:50:39 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive
/common/log/taos-log-a/tomcat/webapps/admin.war
Dec 15, 2014 4:50:39 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
/common/log/taos-log-a/tomcat/webapps/admin.war
java.lang.IllegalArgumentException: addChild: Child name '/admin' is not
unique
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:887)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
admin.war context.xml settings--
<?xml version="1.0" encoding="UTF-8"?><Context debug="0" docBase="admin"
path="/admin" privileged="true" useHttpOnly="false">
<ResourceLink global="TomcatHelper" name="tomcatHelper"
type="com.hello.tomcat.TomcatHelper"/>
</Context>
But it was working fine in 7.0.40.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57354] java.lang.IllegalArgumentException: addChild: Child
name '/admin' is not unique
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57354
Violeta Georgieva <vi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Violeta Georgieva <vi...@apache.org> ---
Hi,
Check this [1].
"path
... this attribute must not be set unless either the docBase is not located
under the Host's appBase or both deployOnStartup and autoDeploy are false. If
this rule is not followed, double deployment is likely to result."
Please ask for help on the users list.
You might also want to check the changelog [2].
Regards,
Violeta
[1]
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Common_Attributes
[2] http://tomcat.apache.org/tomcat-7.0-doc/changelog.html
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org