Re: Re: Using a tomcat 4.0 connector with tomcat 4.1
Sounds helpful, thanks Amy, but introduces some issues. In the last few weeks we developed three connectors and it will be more in future. 1. My main question is, why isn't mbeans-descriptors.xml part of the configuration directory? 2. For me it looks like i have to rebuild tomcat to get my connector known. Do i miss something? Haug 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 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Using a tomcat 4.0 connector with tomcat 4.1
[EMAIL PROTECTED] wrote: Sounds helpful, thanks Amy, but introduces some issues. In the last few weeks we developed three connectors and it will be more in future. 1. My main question is, why isn't mbeans-descriptors.xml part of the configuration directory? 2. For me it looks like i have to rebuild tomcat to get my connector known. Do i miss something? Yes, you can specify using an external descriptors file (although this is undocumented). Add a descriptors attribute to the ServerLifecycleListener element. The value should be the path (for the classloader, so put your file somewhere in server/classes) to your resource. You can specify multiple ones by using a ';' path separator. The file themselves should have the same DTD as mbeans-descriptors.xml. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Using a tomcat 4.0 connector with tomcat 4.1
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]
Re: Using a tomcat 4.0 connector with tomcat 4.1
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]