Problem with jboss 4.2.3 (HornetQ doesn't start correctly)
swienty1 Jul 13, 2011 5:16 PMHi,
I follow instruction in quick start guide and install hornetq on jboss 4.2.3. I use hornetq-2.2.5.Final. When I start jboss I get exception from hornetQ:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
H:\BCC\jboss-4.2.3.GA\bin>run.bat -c default-with-hornetq
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: H:\BCC\jboss-4.2.3.GA
JAVA: C:\Program Files (x86)\Java\jdk1.6.0_17\bin\java
JAVA_OPTS: -Djava.library.path="H:\BCC\jboss-4.2.3.GA\bin\native;C:\Program Files (x86)\ImageMagick-6.6.1-Q16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\
WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Intel\W
iFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;"H:\EasuBudget\Zend\ZendServer\bin";"H:\EasuBudget\Zend\ZendServer\share\ZendFramework\bin";C:\Program Files (x86)\Java\jdk1.6.0_17\bin;C:\Program Files (x86)\DjVuZone\D
jVuLibre;H:\Programowanie\apache-ant-1.8.1\bin;C:\Program Files (x86)\apache-maven-2.2.1\bin" -Dprogram.name=run.bat -server -Xms256m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Program Files (x86)\Java\jdk1.6.0_17\lib\tools.jar;H:\BCC\jboss-4.2.3.GA\bin\run.jar
===============================================================================
22:02:31,267 INFO [Server] Starting JBoss (MX MicroKernel)...
22:02:31,268 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
22:02:31,278 INFO [Server] Home Dir: H:\BCC\jboss-4.2.3.GA
22:02:31,278 INFO [Server] Home URL: file:/H:/BCC/jboss-4.2.3.GA/
22:02:31,279 INFO [Server] Patch URL: null
22:02:31,279 INFO [Server] Server Name: default-with-hornetq
22:02:31,279 INFO [Server] Server Home Dir: H:\BCC\jboss-4.2.3.GA\server\default-with-hornetq
22:02:31,279 INFO [Server] Server Home URL: file:/H:/BCC/jboss-4.2.3.GA/server/default-with-hornetq/
22:02:31,280 INFO [Server] Server Log Dir: H:\BCC\jboss-4.2.3.GA\server\default-with-hornetq\log
22:02:31,280 INFO [Server] Server Temp Dir: H:\BCC\jboss-4.2.3.GA\server\default-with-hornetq\tmp
22:02:31,280 INFO [Server] Root Deployment Filename: jboss-service.xml
22:02:31,523 INFO [ServerInfo] Java version: 1.6.0_17,Sun Microsystems Inc.
22:02:31,524 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.3-b01,Sun Microsystems Inc.
22:02:31,524 INFO [ServerInfo] OS-System: Windows 7 6.1,x86
22:02:31,901 INFO [Server] Core system initialized
22:02:34,094 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
22:02:34,096 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
22:02:34,544 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
22:02:34,544 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
22:02:34,761 INFO [TransactionManagerService] Starting recovery manager
22:02:34,835 INFO [TransactionManagerService] Recovery manager started
22:02:34,835 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
22:02:37,104 INFO [EJB3Deployer] Starting java:comp multiplexer
22:02:37,485 ERROR [STDERR] 2011-07-13 22:02:37 org.hornetq.core.logging.impl.JULLogDelegate warn
WARNING: AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
22:02:37,504 ERROR [STDERR] 2011-07-13 22:02:37 org.hornetq.core.logging.impl.JULLogDelegate info
INFO: live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=H:\BCC\jboss-4.2.3.GA\server\default-with-hornetq\data/hornetq/journal,bindingsDirectory=H:\BCC
\jboss-4.2.3.GA\server\default-with-hornetq\data/hornetq/bindings,largeMessagesDirectory=H:\BCC\jboss-4.2.3.GA\server\default-with-hornetq\data/hornetq/largemessages,pagingDirectory=H:\BCC\jboss-4.2.3.GA\server\default-with-hornet
q\data/hornetq/paging)
22:02:37,507 ERROR [STDERR] 2011-07-13 22:02:37 org.hornetq.core.logging.impl.JULLogDelegate info
INFO: Waiting to obtain live lock
22:02:37,567 INFO [JournalStorageManager] Using NIO Journal
22:02:37,588 ERROR [STDERR] 2011-07-13 22:02:37 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.
22:02:37,922 INFO [FileLockNodeManager] Waiting to obtain live lock
22:02:37,922 INFO [FileLockNodeManager] Live Server Obtained live lock
22:02:39,515 ERROR [STDERR] 2011-07-13 22:02:39 org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.DLQ
22:02:39,552 ERROR [STDERR] 2011-07-13 22:02:39 org.hornetq.core.logging.impl.JULLogDelegate info
INFO: trying to deploy queue jms.queue.ExpiryQueue
22:02:39,739 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.3.Final-r${buildNumber} 127.0.0.1:5445 for CORE protocol
22:02:39,747 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.3.Final-r${buildNumber} 127.0.0.1:5455 for CORE protocol
22:02:39,750 ERROR [STDERR] 2011-07-13 22:02:39 org.hornetq.core.logging.impl.JULLogDelegate info
INFO: Server is now live
22:02:39,751 ERROR [STDERR] 2011-07-13 22:02:39 org.hornetq.core.logging.impl.JULLogDelegate info
INFO: HornetQ Server version 2.2.5.Final (HQ_2_2_5_FINAL_AS7, 121) [a6285235-ad89-11e0-9f4f-0024d633d5ae] started
22:02:41,693 INFO [NativeServerConfig] JBoss Web Services - Native
22:02:41,693 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
22:02:42,430 INFO [Embedded] Catalina naming disabled
22:02:42,553 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: H:\BCC\jboss-4.2.3.GA\bin\native;C:\Program Files (x86)
\ImageMagick-6.6.1-Q16;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Progra
m Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;H:\EasuBudget\Zend\ZendServer
\bin;H:\EasuBudget\Zend\ZendServer\share\ZendFramework\bin;C:\Program Files (x86)\Java\jdk1.6.0_17\bin;C:\Program Files (x86)\DjVuZone\DjVuLibre;H:\Programowanie\apache-ant-1.8.1\bin;C:\Program Files (x86)\apache-maven-2.2.1\bin
22:02:42,605 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
22:02:42,607 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
22:02:42,608 INFO [Catalina] Initialization processed in 178 ms
22:02:42,608 INFO [StandardService] Starting service jboss.web
22:02:42,611 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
22:02:42,652 INFO [Catalina] Server startup in 43 ms
22:02:42,737 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
22:02:43,255 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
22:02:43,421 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
22:02:43,736 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
22:02:44,166 INFO [MailService] Mail Service bound to java:/Mail
22:02:44,380 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
22:02:44,417 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
22:02:44,485 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
22:02:44,533 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
22:02:45,130 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms-ra.rar/
22:02:45,211 WARN [ServiceController] Problem starting service jboss.jca:service=RARDeployment,name='jms-ra.rar'
java.lang.ArrayIndexOutOfBoundsException: 1
at org.hornetq.ra.HornetQResourceAdapter.locateTM(HornetQResourceAdapter.java:1555)
at org.hornetq.ra.HornetQResourceAdapter.start(HornetQResourceAdapter.java:210)
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 $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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 $Proxy49.start(Unknown Source)
at org.jboss.deployment.SimpleSubDeployerSupport.startService(SimpleSubDeployerSupport.java:356)
at org.jboss.deployment.SimpleSubDeployerSupport.start(SimpleSubDeployerSupport.java:127)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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 $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
22:02:45,367 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
22:02:45,395 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
22:02:45,403 INFO [QuartzResourceAdapter] start quartz!!!
22:02:45,457 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
22:02:45,477 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
22:02:45,480 INFO [RAMJobStore] RAMJobStore initialized.
22:02:45,480 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
22:02:45,481 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
22:02:45,481 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
22:02:45,900 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
22:02:46,091 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
22:02:46,173 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.jca:service=RARDeployment,name='jms-ra.rar'
State: FAILED
Reason: java.lang.ArrayIndexOutOfBoundsException: 1
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=JmsXA
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=RARDeployment,name='jms-ra.rar'
State: FAILED
Reason: java.lang.ArrayIndexOutOfBoundsException: 1
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=JmsXA
22:02:46,226 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
22:02:46,244 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
22:02:46,255 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 14s:973ms
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Previos version of hornetQ also has problems with jboss 4.2.3. So is this version of jboss still support by hornetQ? We use this (old) version of jboss because it is very stable and we don't want to change it. So we would like to use hornetQ with this version. Please help.