我正在从事一项将 HornetQ 2.2.14 与 JBoss 4.2.3 集成的任务。
我已经成功地将 HornetQ 嵌入到 JBoss 4.2.3 中,并在 JBoss 4.2.3 服务器目录中创建了 AS 4 配置文件,作为 default-with-hornetq 和 all-with-hornetq。
但是,当我使用以下命令运行 JBoss 4.2.3 时:
sh run.sh -c default-with-hornetq
记录器显示以下错误语句:
15:28:51,301 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
15:28:51,321 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
15:28:51,336 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
15:28:51,350 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
15:28:51,758 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms-ra.rar/
15:28:51,774 WARN [ServiceController] Problem starting service jboss.jca:service=RARDeployment,name='jms-ra.rar'
java.lang.ArrayIndexOutOfBoundsException: 1
at org.hornetq.ra.HornetQResourceAdapter.initialiseTransactionManager(HornetQResourceAdapter.java:1740)
at org.hornetq.ra.HornetQResourceAdapter.start(HornetQResourceAdapter.java:224)
at org.jboss.resource.deployment.RARDeployment.startService(RARDeployment.java:109)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at com.sun.proxy.$Proxy0.start(Unknown Source)
与我在 hornetq-jms.xml 文件中创建的队列相关的错误也显示为:
15:28:44,886 ERROR [STDERR] 31 Aug, 2013 3:28:44 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: Waiting to obtain live lock
15:28:44,933 INFO [JournalStorageManager] Using NIO Journal
15:28:44,951 ERROR [STDERR] 31 Aug, 2013 3:28:44 PM org.hornetq.core.logging.impl.JULLogDelegate warn
WARNING: Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
15:28:45,208 INFO [FileLockNodeManager] Waiting to obtain live lock
15:28:45,208 INFO [FileLockNodeManager] Live Server Obtained live lock
15:28:46,756 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.DLQ
15:28:46,782 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.ExpiryQueue
15:28:46,792 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.ServiceRequest
15:28:46,800 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.MOQueue
15:28:46,811 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.MTQueue
15:28:46,819 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.NotificationQueue
15:28:46,828 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.SMSQueue
15:28:46,838 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.queueA
15:28:46,846 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.eventQueue
15:28:46,857 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.notificationQueue
15:28:46,867 ERROR [STDERR] 31 Aug, 2013 3:28:46 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.VodafoneMTQueue
15:28:47,056 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5445 for CORE protocol
15:28:47,061 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.5.Final-a96d88c 127.0.0.1:5455 for CORE protocol
15:28:47,064 ERROR [STDERR] 31 Aug, 2013 3:28:47 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: Server is now live
15:28:47,065 ERROR [STDERR] 31 Aug, 2013 3:28:47 PM org.hornetq.core.logging.impl.JULLogDelegate info
INFO: HornetQ Server version 2.2.14.Final (HQ_2_2_14_FINAL, 122) [6a2175c5-1145-11e3-aaac-076c98ed9adc]) started
因此不会创建队列。我无法理解问题出在哪里。我是 JBoss 服务器的新手。我该如何解决这个问题?