【问题标题】:javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Objectjavax.management.NotCompliantMBeanException:类不公开管理接口:java.lang.Object
【发布时间】:2019-01-08 00:16:49
【问题描述】:

我们正在从 JBoss-4.0.4-GA 迁移到 JBoss-5.1.0-GA。当我启动 JBoss 时,出现以下错误:

org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.messaging:service=Queue,name=MyQueueTest
Caused by: javax.management.NotCompliantMBeanException: Class does not expose a management interface: java.lang.Object

我有一个链接ERROR: Class does not expose a management interface,它说要添加一些库,但它没有指定在哪里添加哪个库。下面是destination-service.xml下的mbean

<mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging:service=Queue,name=MyQueueTest">
    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
    <depends>jboss.messaging:service=PostOffice</depends>
    <attribute name="MessageCounterHistoryDayLimit">-1</attribute>
    <attribute name="SecurityConf">
        <security>
            <role name="guest" read="true" write="true"/>
            <role name="publisher" read="true" write="true" create="false"/>
            <role name="noacc" read="false" write="false" create="false"/>
        </security>
    </attribute>
</mbean>

【问题讨论】:

  • 您在 JBoss 5.x 中使用什么配置文件?

标签: jboss jms jboss5.x ejb-2.x jboss-messaging


【解决方案1】:

此问题已解决。我检查了在 JBoss-5.1.0-GA 中定义队列的虚拟示例。我缺少属性 xmbean-dd="xmdesc/Queue-xmbean.xml"。修改后如下图

<mbean code="org.jboss.jms.server.destination.QueueService"
 name="jboss.messaging:service=Queue,name=MyQueueTest"
 xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="MessageCounterHistoryDayLimit">-1</attribute>
<attribute name="SecurityConf">
  <security>
    <role name="guest" read="true" write="true"/>
    <role name="publisher" read="true" write="true" create="false"/>
    <role name="noacc" read="false" write="false" create="false"/>
  </security>
</attribute>

【讨论】:

    猜你喜欢
    • 2018-04-03
    • 1970-01-01
    • 2014-07-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-17
    • 2019-08-24
    • 1970-01-01
    相关资源
    最近更新 更多