首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 其他服务器 >

启动消息服务异常!

2013-01-05 
启动消息服务错误!~~~~~~~~~~~~~~~~~~~~~~我的gaulhor-service.xml?xml version1.0 encodingUTF-8?

启动消息服务错误!~~~~~~~~~~~~~~~~~~~~~~
我的gaulhor-service.xml

<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.mq.server.jmx.Queue"
  name="jboss.mq.destination:service=Queue,name=gaulhorQueue">
<attribute name="JNDIName">queue/gaulhorQueue</attribute>
<depends optional-attribute-name="DestinationManager">jboss.mq:service-DestinationManager</depends>
</mbean>
</server>

在jboss启动的时候出错了。
---------------------------------------------------
14:39:30,618 INFO  [ServiceConfigurator] Problem configuring service jboss.mq.destination:service=Queue,name=gaulhorQueue
java.lang.Error: Invalid ObjectName: jboss.mq:service-DestinationManager; javax.management.MalformedObjectNameException: Unterminated key property part
at org.jboss.mx.util.ObjectNameFactory.create(ObjectNameFactory.java:52)
at org.jboss.system.ServiceConfigurator.processDependency(ServiceConfigurator.java:680)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:357)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:462)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)


at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
14:39:30,618 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.mq.destination:service=Queue,name=gaulhorQueue
  State: FAILED
  Reason: java.lang.Error: Invalid ObjectName: jboss.mq:service-DestinationManager; javax.management.MalformedObjectNameException: Unterminated key property part

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.mq.destination:service=Queue,name=gaulhorQueue
  State: FAILED
  Reason: java.lang.Error: Invalid ObjectName: jboss.mq:service-DestinationManager; javax.management.MalformedObjectNameException: Unterminated key property part

[解决办法]
<?xml version="1.0" encoding="UTF-8"?> 
<server> 
<mbean code="org.jboss.mq.server.jmx.Queue" 
  name="jboss.mq.destination:service=Queue,name=gaulhorQueue"> 
<attribute name="JNDIName">queue/gaulhorQueue </attribute> 
<depends optional-attribute-name="DestinationManager">jboss.mq:service-DestinationManager </depends> 
</mbean> 
</server>

你的配置文件错了,应该是

<attribute name="JNDIName">queue/gaulhorQueue </attribute> 
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager </depends>等于号

热点排行