开发者

How do I add classes to the classpath for MBean Explorer in eclipse

开发者 https://www.devze.com 2023-02-24 21:40 出处:网络
I have a web app being deployed in JBoss AS 6.0.0. I\'m using the JBoss Tools plugin in eclipse 3.6. I 开发者_如何学JAVAhave the server configured with the project and it runs OK. My app exposes some

I have a web app being deployed in JBoss AS 6.0.0. I'm using the JBoss Tools plugin in eclipse 3.6. I 开发者_如何学JAVAhave the server configured with the project and it runs OK. My app exposes some MBeans via JMX.

I'm using the MBean Explorer view to access the JMX beans. Some of my beans return instances of classes defined in my project. When I invoke these methods via the explorer view I get a ClassNotFound exception for these classes.

How can I add my classes to the classpath for the MBean Explorer view?

(If it easier to do this with eclipse-jmx plugin, I'm happy to use that instead.)


An alternative solution would be to implement your jmx beans using open types. then you won't have problems like this. this problem will repeat itself if you try to use any other tools to interact with your mbeans. best practice with mbeans is to stick to open types so you don't have to worry about client-side issues.

0

精彩评论

暂无评论...
验证码 换一张
取 消