[EJB 3.0] - JBoss MQ + EJB3 MDB Throws Already Registered Exception
by samdoyle
As suggested I created a new thread.
MDB
@MessageDriven( activationConfig = {
| @ActivationConfigProperty( propertyName = "destinationType",
| propertyValue = "javax.jms.Queue" ),
| @ActivationConfigProperty( propertyName = "destination",
| propertyValue = "queue/hibernatesearch" )
| //@ActivationConfigProperty( propertyName = "maxSession", propertyValue = "1")
| } )
| public class SearchControllerMDB
| extends AbstractJMSHibernateSearchController
| {
| private static Log log = LogFactory.getLog( SearchControllerMDB.class );
|
| @PersistenceContext( unitName = "event-management-tool" )
| private EntityManager em;
|
| @Override
| protected void cleanSessionIfNeeded( Session session )
| {
| //nothing to do container managed
| }
|
| @Override
| protected Session getSession()
| {
| if ( log.isDebugEnabled() )
| {
| log.debug( "SearchControllerMDB.getSession: entered" );
| }
| return ( Session ) em.getDelegate();
| }
|
|
| }
*-service.xml
<mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=hibernatesearc
| h">
| <attribute name="JNDIName">queue/hibernatesearch</attribute>
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
| <attribute name="SecurityConf">
| <security>
| <role name="guest" read="true" write="true" create="true"/>
| <role name="publisher" read="true" write="true" create="true"/>
| <role name="durpublisher" read="true" write="true" create="true"/>
| </security>
| </attribute>
| </mbean>
Result at startup:
ar=event-management-tool.jar,name=SearchControllerMDB,service=EJB3
| javax.management.InstanceAlreadyExistsException: jboss.mq.destination:service=Queue,name=hibernatesearch a
| lready registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:761)
| at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:225)
| at sun.reflect.GeneratedMethodAccessor1.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.j
| ava: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.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1422)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1417)
| at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:295)
| at org.jboss.mq.server.jmx.DestinationManager.createDestination(DestinationManager.java:305)
| at org.jboss.mq.server.jmx.DestinationManager.createQueue(DestinationManager.java:271)
| 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: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.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
| at org.jboss.ejb3.jms.DestinationManagerJMSDestinationFactory.createDestination(DestinationManager
| JMSDestinationFactory.java:75)
| at org.jboss.ejb3.mdb.MessagingContainer.createTemporaryDestination(MessagingContainer.java:573)
| at org.jboss.ejb3.mdb.MessagingContainer.createDestination(MessagingContainer.java:512)
| at org.jboss.ejb3.mdb.MessagingContainer.innerCreateQueue(MessagingContainer.java:438)
| at org.jboss.ejb3.mdb.MessagingContainer.jmsCreate(MessagingContainer.java:400)
| at org.jboss.ejb3.mdb.MessagingContainer.innerStart(MessagingContainer.java:166)
| at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:152)
| at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
| 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:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor4.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor10.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 $Proxy59.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor4.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor10.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 $Proxy34.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| 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: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.j
| ava:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:
| 238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerIntercept
| orSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor28.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.j
| ava: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 $Proxy10.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(AbstractDeploymentS
| canner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.j
| ava:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor4.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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor10.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.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| 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: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.j
| ava: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)
|
| 09:38:45,076 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=Invoker
| jboss.web:service=WebServer
|
| ObjectName: jboss.mq.destination:service=Topic,name=testTopic
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.mq.destination:service=Queue,name=testQueue
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.mq.destination:service=Queue,name=A
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.mq.destination:service=Queue,name=B
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.mq.destination:service=Queue,name=C
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.mq.destination:service=Queue,name=D
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.mq.destination:service=Queue,name=ex
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.mq:service=Invoker
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=TracingInterceptor
| jboss:service=Naming
| Depends On Me:
| jboss.mq:service=InvocationLayer,type=HTTP
| jboss.mq:service=InvocationLayer,type=JVM
| jboss.mq:service=InvocationLayer,type=UIL2
|
| ObjectName: jboss.mq:service=TracingInterceptor
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=SecurityManager
| Depends On Me:
| jboss.mq:service=Invoker
|
| ObjectName: jboss.mq:service=SecurityManager
| State: CONFIGURED
| I Depend On:
| jboss.security:service=JaasSecurityManager
| jboss.mq:service=DestinationManager
| Depends On Me:
| jboss.mq.destination:service=Topic,name=testTopic
| jboss.mq.destination:service=Topic,name=securedTopic
| jboss.mq.destination:service=Topic,name=testDurableTopic
| jboss.mq.destination:service=Queue,name=testQueue
| jboss.mq:service=TracingInterceptor
| jboss.mq.destination:service=Queue,name=DLQ
| jboss.mq.destination:service=Queue,name=hibernatesearch
|
| ObjectName: jboss.mq.destination:service=Queue,name=DLQ
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.mq:service=InvocationLayer,type=JVM
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=Invoker
|
| ObjectName: jboss.mq:service=DestinationManager
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=MessageCache
| jboss.mq:service=PersistenceManager
| jboss.mq:service=StateManager
| Depends On Me:
| jboss.mq.destination:service=Topic,name=testTopic
| jboss.mq.destination:service=Topic,name=securedTopic
| jboss.mq.destination:service=Topic,name=testDurableTopic
| jboss.mq.destination:service=Queue,name=testQueue
| jboss.mq.destination:service=Queue,name=A
| jboss.mq.destination:service=Queue,name=B
| jboss.mq.destination:service=Queue,name=C
| jboss.mq.destination:service=Queue,name=D
| jboss.mq.destination:service=Queue,name=ex
| jboss.mq:service=SecurityManager
| jboss.mq.destination:service=Queue,name=DLQ
| jboss.mq.destination:service=Queue,name=hibernatesearch
|
| ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=Invoker
|
| ObjectName: jboss.mq.destination:service=Queue,name=hibernatesearch
| State: CONFIGURED
| I Depend On:
| jboss.mq:service=DestinationManager
| jboss.mq:service=SecurityManager
|
| ObjectName: jboss.j2ee:ear=event-management-tool.ear,jar=event-management-tool.jar,name=SearchControllerMD
| B,service=EJB3
| State: FAILED
| Reason: javax.management.InstanceAlreadyExistsException: jboss.mq.destination:service=Queue,name=hiberna
| tesearch already registered.
| I Depend On:
| persistence.units:ear=event-management-tool.ear,jar=event-management-tool.jar,unitName=event-managemen
| t-tool
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.mq:service=StateManager
| State: NOTYETINSTALLED
| Depends On Me:
| jboss.mq:service=DestinationManager
|
| ObjectName: jboss.j2ee:ear=event-management-tool.ear,jar=event-management-tool.jar,name=SearchControllerMD
| B,service=EJB3
| State: FAILED
| Reason: javax.management.InstanceAlreadyExistsException: jboss.mq.destination:service=Queue,name=hiberna
| tesearch already registered.
| I Depend On:
| persistence.units:ear=event-management-tool.ear,jar=event-management-tool.jar,unitName=event-managemen
| t-tool
|
|
Looking at the JMX console the bean is there but the state is as shown in the log failed and any attempts to lookup fail.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174378#4174378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174378
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - occasional NoClassDefFoundError
by trey.howard
One of our deployment occasionally gets a NoClassDefFoundError.
We have deployed with the PermGen garbage collection turned on, and I'm curious to know if that is perhaps resulting in an error like this:
java.lang.NoClassDefFoundError: com/opensymphony/module/sitemesh/util/FastByteArrayOutputStream
com.opensymphony.module.sitemesh.filter.Buffer.getOutputStream(Buffer.java:68)
com.opensymphony.module.sitemesh.filter.PageResponseWrapper$4.create(PageResponseWrapper.java:84)
...
Note: It's not always a SiteMesh library. It seems to be a different library each time, sometimes even lower-level JBoss libs.
I'm totally lost here, as identical installations elsewhere have NEVER seen an error like this, so I'm not sure where to begin.
Is it possible that the class unloading i've enabled:
-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled
is interfering?
Could this be due to a network admin stopping and/or starting JBoss improperly (GUI 'X' followed by 'End Now').
Any help would be greatly appreciated!
-Trey
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174374#4174374
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174374
17 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Re: jboss-4.2.3.GA with MySQL Server 5.0 configuration probl
by dan jboss
"PeterJ" wrote : What version of JBoss Messaging did you install? How did you install it?
|
| The mysql-jdbc2-service.xml file belongs to JBossMQ and not JBoss Messaging. You should not be using that file.
|
| Did you follow the steps under "JBossMQ" at http://wiki.jboss.org/wiki/SetUpAMysqlDatasource to set up MySQL? If so, those instructions do not apply to JBoss Messaging.
|
Sorry to keep bugging. I am not spamming. As I was working last night I got different errors that I believed belonged to different forums.
I have reinstalled and configured JBoss Messaging. I discovered that I was indeed missing a couple of steps in the configuration. I still have the "Trying to install an already registered mbean" problem, as you can see in the log below. I there anything in JBoss itself (outside Messaging) that I might have done wrong?
I really appreciate the help.
Thanks.
Dan
08:55:38,429 INFO [TransactionManagerService] Starting recovery manager
08:55:38,506 INFO [TransactionManagerService] Recovery manager started
08:55:38,506 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
Anything wrong here below?
08:55:41,587 INFO [EJB3Deployer] Starting java:comp multiplexer
08:55:44,666 WARN [UDP] failed to join /224.0.0.75:7500 on net2: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:44,666 WARN [UDP] failed to join /224.0.0.75:7500 on net3: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:44,673 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 127.0.0.1:50501
-------------------------------------------------------
08:55:46,693 INFO [TreeCache] viewAccepted(): [127.0.0.1:50501|0] [127.0.0.1:50501]
08:55:46,711 INFO [TreeCache] TreeCache local address is 127.0.0.1:50501
08:55:46,711 INFO [TreeCache] State could not be retrieved (we are the first member in group)
08:55:46,711 INFO [TreeCache] parseConfig(): PojoCacheConfig is empty
08:55:49,169 INFO [NativeServerConfig] JBoss Web Services - Native
08:55:49,169 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
08:55:50,098 INFO [SnmpAgentService] SNMP agent going active
08:55:50,595 INFO [DefaultPartition] Initializing
08:55:50,753 WARN [UDP] failed to join /224.0.0.75:7500 on net2: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:50,754 WARN [UDP] failed to join /224.0.0.75:7500 on net3: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:50,755 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 127.0.0.1:50505
-------------------------------------------------------
08:55:52,781 INFO [DefaultPartition] Number of cluster members: 1
08:55:52,781 INFO [DefaultPartition] Other members: 0
08:55:52,781 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
08:55:52,782 INFO [DefaultPartition] State could not be retrieved (we are the first member in group)
08:55:52,831 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/127.0.0.1
08:55:52,932 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /127.0.0.1:1102, group=230.0.0.4, HA-JNDI address=127.0
.0.1:1100
08:55:53,176 INFO [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
08:55:53,468 WARN [UDP] failed to join /224.0.0.75:7500 on net2: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:53,470 WARN [UDP] failed to join /224.0.0.75:7500 on net3: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:53,473 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 127.0.0.1:50508
-------------------------------------------------------
08:55:55,499 INFO [TreeCache] viewAccepted(): [127.0.0.1:50508|0] [127.0.0.1:50508]
08:55:55,502 INFO [TreeCache] TreeCache local address is 127.0.0.1:50508
08:55:55,767 WARN [UDP] failed to join /224.0.0.75:7500 on net2: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:55,770 WARN [UDP] failed to join /224.0.0.75:7500 on net3: java.net.SocketException: Unrecognized Windows Sockets error: 0: n
o Inet4Address associated with interface
08:55:55,774 INFO [STDOUT]
-------------------------------------------------------
GMS: address is 127.0.0.1:50511
-------------------------------------------------------
08:55:57,800 INFO [TreeCache] viewAccepted(): [127.0.0.1:50511|0] [127.0.0.1:50511]
08:55:57,803 INFO [TreeCache] TreeCache local address is 127.0.0.1:50511
08:55:59,230 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E7
46578744578743A312E3000000000000200000000000000F4000102000000000A3132372E302E302E31000DC8000000114A426F73732F4E616D696E672F726F6F740
00000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000007
000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E312E313031000DC9004000000000000806066781020
10101000000170401000806066781020101010000000764656661756C7400000000000000000000000000000000000000002000000004000000000000001F0000000
400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
08:55:59,380 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F54
72616E73616374696F6E466163746F72794578743A312E30000000000200000000000000F4000102000000000A3132372E302E302E31000DC8000000144A426F7373
2F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000
0105010001000000210000007000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E312E313031000DC900
400000000000080606678102010101000000170401000806066781020101010000000764656661756C74000000000000000000000000000000000000000020000000
04000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
08:55:59,867 INFO [Embedded] Catalina naming disabled
08:56:00,020 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environmen
ts was not found on the java.library.path: C:\Sun\SDK\jdk\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\sy
stem32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio
Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program
Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_06\bin;C:\apache-ant-1.7.1\bin;C:\Sun\SDK\bin;C:\Sun\SDK\bin;C:\Sun\SDK\bin
;;C:\Program Files\SSH Communications Security\SSH Secure Shell
08:56:00,090 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
08:56:00,107 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
08:56:00,110 INFO [Catalina] Initialization processed in 242 ms
08:56:00,113 INFO [StandardService] Starting service jboss.web
08:56:00,118 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
08:56:00,184 INFO [Catalina] Server startup in 70 ms
08:56:00,318 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
08:56:00,963 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/httpha-invoker.sar/invoker.war/
08:56:01,214 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
08:56:01,468 INFO [TomcatDeployer] deploy, ctxPath=/juddi, warUrl=.../deploy/juddi-service.sar/juddi.war/
08:56:01,780 INFO [RegistryServlet] Loading jUDDI configuration.
08:56:01,783 INFO [RegistryServlet] Resources loaded from: /WEB-INF/juddi.properties
08:56:01,785 INFO [RegistryServlet] Initializing jUDDI components.
08:56:02,254 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
08:56:03,034 INFO [MailService] Mail Service bound to java:/Mail
08:56:03,319 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
08:56:03,359 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
08:56:03,396 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
08:56:03,437 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
08:56:03,523 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms-ra.rar
08:56:03,559 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
08:56:03,616 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
08:56:03,635 INFO [QuartzResourceAdapter] start quartz!!!
08:56:03,688 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
08:56:03,716 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
08:56:03,720 INFO [RAMJobStore] RAMJobStore initialized.
08:56:03,722 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz
package: 'quartz.properties'
08:56:03,725 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
08:56:03,728 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
08:56:04,020 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA'
to JNDI name 'java:JmsXA'
08:56:04,244 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.2.3.GA/server/jms/deploy/jms-ds.xml
org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.messaging:service=ServerSessionPoolMB
ean,name=StdJMSPool
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.GeneratedMethodAccessor18.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.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
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 $Proxy51.create(Unknown Source)
at org.jboss.deployment.XSLSubDeployer.create(XSLSubDeployer.java:192)
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.GeneratedMethodAccessor30.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)
08:56:04,774 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS' to J
NDI name 'java:MySqlDS'
08:56:04,801 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
08:56:05,099 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@b2d4b9d2 { url=file:/C:/jboss-4.2.3.GA/server/jms/deploy/jms-ds.xml }
deployer: org.jboss.deployment.XSLSubDeployer@1c6cc9c
status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.messaging:service=ServerSessionPoolMBean,na
me=StdJMSPool
state: FAILED
watch: file:/C:/jboss-4.2.3.GA/server/jms/deploy/jms-ds.xml
altDD: null
lastDeployed: 1220543764233
lastModified: 1220543764214
mbeans:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
State: CONFIGURED
I Depend On:
jboss.jca:service=DataSourceBinding,name=DefaultDS
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174367#4174367
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174367
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Configuring ejb3-timer-service.xml (JBoss 5.0.0.CR1)
by PeterJ
You need to do several things, so pardon my quoting from JBoss In Action (http://www.manning.com/jamae), chapter 15:
anonymous wrote : The first thing you'll need to do is download the Quartz source file that corresponds to the version provided by JBoss AS. You can determine the Quartz version by examining the META-INF/Manifest.mf file located in the server/xxx/lib/quartz.jar file.
|
| With the Quartz source code at hand, you need to change two things in the server/xxx/deploy/ejb3-timer-server.xml file.
|
| First, the ejb3-timer-server.xml file contains a list of Quartz properties. You're interested in this property:
|
| org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.HSQLDBDelegate
|
| You need to change the delegate class to match the one for your database. The valid delegates can be found in the src/java/org/quartz/impl/jdbcjobstore directory of the Quartz source. For example, use the PostgreSQLDelegate class for a PostgreSQL database. If thereâÂÂs no delegate specific to your database, as is the case for MySQL, use the StdJDBCDelegate class. For example, for MySQL this delegate property would be
|
| org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
| The second change is more complicated. The SqlProperties attribute in the ejb3-timer-server.xml file contains a list of SQL statements used to create and initialize the tables in the database. You need to replace these SQL statements with the ones for your database. You can find the correct statements in the Quartz sources in the docs/dbTables directory. For example, use the tables_postgres.sql file for a PostgreSQL database.
| When replacing the SQL statements, leave the CREATE_* property name on the line. For example, the property to create the job details table would look like
|
| CREATE_TABLE_JOB_DETAILS = CREATE TABLE qrtz_job_details(...);
|
| where the CREATE TABLE qrtz_job_details(...); text comes from the tables_*.sql file for your database.
|
| For MySQL users, note that the tables_mysql.sql file uses uppercase letters for the table names. If youâÂÂre running MySQL on Unix/Linux, make sure you make that change because MySQL table names are case-sensitive on those platforms.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174365#4174365
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174365
17 years, 10 months