-
1. Re: JBossNotCompliantMBeanException, XMBean minimum requirem
dimitris Sep 24, 2004 12:05 PM (in response to alexoscar)You XMBean descriptor must be wrong. Try to simplify to find out the error. The exception is not very informative, I know...
/Dimitris -
2. Re: JBossNotCompliantMBeanException, XMBean minimum requirem
dimitris Sep 24, 2004 12:06 PM (in response to alexoscar)Also
If you edit the descriptor with a tool that understands the DTD it will probably point out the error. -
3. Re: JBossNotCompliantMBeanException, XMBean minimum requirem
alexoscar Sep 24, 2004 1:03 PM (in response to alexoscar)I did validate the file using XMLSPY actually...
See below
Is there a real simple XMbean example somewhere with the descriptors and everything (an Hello World XMBean ;-)<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mbean SYSTEM "C:\jboss-3.2.5\docs\dtd\jboss_xmbean_1_1.dtd"> <mbean> <description>App Bridge Mbean</description> <!-- The managed bean implemention --> <class>AppBridge.BridgeMBean</class> <constructor> <description>BridgeMBean Constructor Description</description> <name>AppBridge.BridgeMBean</name> </constructor> <!-- Attributes --> <!-- service life cycle operations --> <operation impact="ACTION_INFO"> <description>StartRunning</description> <name>StartRunning</name> <return-type>void</return-type> </operation> </mbean>
-
4. Re: JBossNotCompliantMBeanException, XMBean minimum requirem
dimitris Sep 24, 2004 1:14 PM (in response to alexoscar)Your descriptor looks ok
There is an extensive example in JBoss Docs
[URL]
http://docs.jboss.org/admin-devel/Chap2.html#0_pgfId-921556
[/URL] -
5. Re: JBossNotCompliantMBeanException, XMBean minimum requirem
alexoscar Sep 24, 2004 1:36 PM (in response to alexoscar)Thanks. I'll check that out. But it seems like it is deploying the same Mbaean with XMBean descriptors. So, I just want to be sure if any POJO can be deployed as XMbean or do xmbeans too have to extend the org.jboss.system.ServiceMBean ?
-
6. Re: JBossNotCompliantMBeanException, XMBean minimum requirem
dimitris Sep 24, 2004 1:40 PM (in response to alexoscar)No need to extend any JBoss class. A public CTOR is all that is required