简体   繁体   中英

missing something obvious in JMX console insertion

I'm following the directions for launching my hello world JMX bean and jboss complains with the following:

nested throwable: (java.lang.NoSuchMethodException: com.testPackage.jmx.TestJmxMBean.<init>())

I know I'm missing something REALLY obvious, but can't spot what it is.

Why would it be looking for an init method? the class extends one that has no init method, and when I change the name of the class, it fires a classNotFound, so, I know it's looking at the right class...

If anyone has a good step by step tutorial on creating your first MBean for Jboss JMX console, I'll take that too.

Much obliged.

尝试添加一个无参数的构造函数(按NoSuchMethodException的要求)

I was accidentally pointing to the Mbean service, rather than my MBean class in the jboss-service.xml. I knew it was going to be something really stupid and lo and behold... it was.

In case someone finds this useful, there is no constructor, so this exception is sort of a red herring.

Thanks for the help though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM