I have written a modified version of a UserDatabase realm and have been able to get it to work without JMX support under TC 4.1.12. Anything that doesn't use JMX can still authenticate like it would under pre 4.1.x codebase.
Next, I would like to get customizations to work with the 4.1.x codebase. I have created various MBean classes, and modified the mbeans-descriptors.xml and added by own references there. I have basically followed Craig's implementation of a MemoryRealm as a guide for what I am doing. The three key parts of my server.xml are: 1) For my Realm, I am using a UserDatabaseRealm. 2) For my global naming resource, I am using org.apache.catalina.UserDatabase, declaring my own factory class and parameters. 3) My resourceName in both the instances above are MyUserDatabase instead of the default "UserDatabase" Everything I have done so far is in my own .jar file sitting in server/lib. The problem (Symptoms): When I load the admin application with JMX enabled, I can actually log into the admin application, and play with anything but the users node in the tree. When I play with the users, I get an illegal state exception in the mainFrame, and in my localhost_admin.log - I get the following truncated exception: javax.management.InstanceNotFoundException: MBeanServer cannot find MBean with ObjectName Users:type=UserDatabase,database=UserDatabase at mx4j.server.MBeanServerImpl.findMBeanMetaData(MBeanServerImpl.java:282) at mx4j.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:710) at org.apache.webapp.admin.users.UserUtils.getUsersForm(UserUtils.java:157) at org.apache.webapp.admin.users.ListUsersAction.perform(ListUsersAction.java:1 58) Since this originates in mx4j - the implementation of JMX that Tomcat uses, I can't even begin to think what would cause this error. I've fended off all the missing MBean exceptions - and am now stuck with this. I hope I've provided enough information... Randy -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
