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 the Tomcat server, I get the following exception:

ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with CryptJDBCRealm
        at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:614)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:574)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:783)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:751)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:339)
        at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:206)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2182)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

The code is called. It does function. My class basically overrides the
method 

    public synchronized Principal authenticate(Connection dbConnection,
                                               String username,
                                               String credentials);

There are no other methods in the class.

Any thoughts,
G. Wade

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to