【发布时间】: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