我試圖在Apache tomcat
的角色名稱中使用完全可分辨的名稱。角色名稱將包括"=" chars
。apache tomcat中的字符無效7角色名稱
例如:
<tomcat-users>
<role rolename="cn=tomcat,dc=com"/>
<user username="tomcat" password="tomcat" roles="cn=tomcat,dc=com"/>
</tomcat-users>
當我嘗試啓動tomcat我得到:
嚴重:異常創建UserDatabase爲UserDatabase javax.management.MalformedObjectNameException的MBean:無效字符'=' 屬性的值部分 at javax.management.ObjectName.construct(Unknown Source) at javax.management.ObjectName。(Unknown Source) at org.apache.catalina.mbeans.MBeanUtils.createObjectName(MBeanUtils.java:870) at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java: 379) 在org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:194) 在org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:150) 在org.apache.catalina。 mbaans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:112) at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:84) at org.apache.catalina.util.LifecycleSupport.fireLife (org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:725) at org.apache.catalina.util.LifecycleBase。啓動(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:675) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.main(Bootstrap)的.java:451)