tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abraham Farris <abraham.far...@gmail.com>
Subject Using fully distinguished names in role names for Apache Tomcat 7.0.29
Date Mon, 06 Aug 2012 19:06:43 GMT
Hello,

 I am trying to use fully distinguished names in role names for Apache
tomcat. The role name will include "=" chars.

For example:

    <tomcat-users>
            <role rolename="cn=tomcat,dc=com"/>
            <user username="tomcat" password="tomcat" roles="cn=tomcat,dc=com"/>
    </tomcat-users>

When I try to start tomcat I get:

SEVERE: Exception creating UserDatabase MBeans for UserDatabase
javax.management.MalformedObjectNameException: Invalid character '=' in
value part of property 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)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:194)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:150)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:112)
at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:84)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
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.start(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
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:451)

I posted this in stack overflow as well.  Any help would be appreciated.

http://stackoverflow.com/questions/11831038/invalid-character-in-apache-tomcat-7-rolename

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message