problem starting CatalinaManager mbean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   jonathan_pachman
Posted On:   Sunday, February 17, 2002 04:17 PM

I am using tomcat 4.0.1 with jmx. I want to start tomcat through the
start method of the CatalinaManager MBean. I recieve an
InvocationTargetException when I execute this method. There is no
source for this MBean and the exception is a wrapper for the real cause of the
problem as I understand it so debugging is diffucult to impossible. Any help much appreciated...

Re: problem starting CatalinaManager mbean

Posted By:   angelos_lenis  
Posted On:   Tuesday, February 19, 2002 03:10 AM

Hi,
I do the same thing but i haven't seen this exception. My code for starting catalina is this:


server=MBeanServerFactory.createMBeanServer();

catalina=new CatalinaManager();

catalina.setPath("path_to_catalina");

catalinaName=new ObjectName("jmx.Adaptor:name=Catalina");

server.registerMBean(catalina,catalinaName);

//And finally

catalina.start();



In my classpath i have put all the jar files that come with the catalina distribution.



Hope this helps.
About | Sitemap | Contact