MBeanException on init new Realm class

2003-03-27 Thread G. Wade Johnson
I am working on a Tomcat-based server (4.1.18). I've checked the list archive without a match. The particular application required an authentication model that was close-to but not quite the same as JDBCRealm. I wrote a new class that extends JDBCRealm to add the needed behavior. When I restart t

Re: MBeanException on init new Realm class

2003-03-28 Thread Bill Barker
It's sparsely documented (and AFAIK only at all for > 4.1.18), but it comes up on this list like clockwork ;-). You need to do a better search on the archives. You need to create an mbeans-descriptors.xml file (in your case, just copy the JDBCRealm stuff and change the name), usually in the same

Re: MBeanException on init new Realm class

2003-03-28 Thread G. Wade Johnson
Thanks for the response. (Apparently, all of the list archives are _not_ created equal.) I've attempted this change and ended up with another problem. Now I exception with: ServerLifecycleListener: createMBeans: MBeanException java.lang.ClassCastException at org.apache.commons.modeler.Ma

Re: MBeanException on init new Realm class - FIXED

2003-03-28 Thread G. Wade Johnson
I found the solution to my final problem on this. For the CryptJDBCRealm class, the mbean-descriptor is exactly the same as the one for JDBCRealm except for two attributes: name and type. ... Don't change the 'className' attribute like I did. You'll get the ClassCastException I reported b