You can either add a mbean description for your connector similar to 
other Connectors in o.a.c.mbeans.mbeans-descriptors.xml or disable the 
two JMX supporting Listeners (ServerLifecycleListener and 
GlobalResourcesLifecycleListener)in server.xml if you don't want the JMX 
support.  I'd recommend adding something like this in 
mbeans-descriptors.xml so tomcat starts smoothly without complaining 
mbean not found for your connector.

   <mbean         name="MyXyConnector"
             className="org.apache.catalina.mbeans.ConnectorMBean"
           description="MyXyConnector"
                domain="Catalina"
                 group="Connector"
                  type="org.apache.coyote.tomcat4.MyXyConnector">

   </mbean>

Amy

[EMAIL PROTECTED] wrote:
> Hi,
> 
> i have a connector working with tomcat 4.0 and want to use it with
> tomcat 4.1. First problem was that the lifecycle interface had changed.
> I could fix that in a way i can deploy on 4.0 and 4.1.
> 
> But i still crash with an exception:
> java.lang.Exception: ManagedBean is not found with MyXyConnector
>         at
> org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:225)
>         at
> 
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:359)
>         at
> 
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:716)
>         at
> 
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:690)
>         at
> 
>org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:329)
>         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:2184)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
>         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)
> 
> I'm no JMX guru, what must i do to get rid of it?
> 
> Thanks
>      Haug
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 





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

Reply via email to