问题
java.lang.IllegalArgumentException: addChild: Child name '/' is not unique
facing this problem when replacing existing .war files by enable and disable smal single sign on with in tomcat webapps folder i am using apache-tomcat-7.0.53
回答1:
Based on the symptoms, I suspect that you have somehow managed to deploy x.war
twice.
I suspect that either you explicitly did this (i.e. you did deploy / deploy instead of deploy / redeploy) or your "automatic process" did it.
If this is not the problem, you are going to need to provide more detailed information on what you are doing, and how you are doing it.
回答2:
I think you are setting in apache-tomcat-7.0.70\conf\server.xml
with content
<Context docBase="xxx" path="/" />
It is duplicate with the other Context
回答3:
I think you maybe set apache-tomcat-7.0.70\conf\server.xml with Host
< HOST name='/' .../>
, and it has other one which is duplicated
来源:https://stackoverflow.com/questions/27376826/java-lang-illegalargumentexception-addchild-child-name-is-not-unique