0 Replies Latest reply on Feb 19, 2009 5:26 PM by clewis

    JBoss ESB Switching Databases configuration

    clewis

      Hi,

      I'm trying to configure my JBoss 4.2.2 AS with JBoss ESB 4.5 to use DB2. I've followed the steps outlined in the JBoss ESB 4.5 Admin guide as well as the steps outlined in the document ConfigJBossMQDB. However, I get the following error when trying to start the server:

      16:28:30,131 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1a701c7(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@131ee9d destination=queue/CallbackQueue isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=1 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: CallbackQueue
      at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:156)
      at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:643)
      at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:177)
      at org.jboss.mq.il.jvm.JVMServerIL.subscribe(JVMServerIL.java:170)
      at org.jboss.mq.Connection.addConsumer(Connection.java:791)
      at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:111)
      at org.jboss.mq.SpyConnection.createConnectionConsumer(SpyConnection.java:128)
      at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupConsumer(JmsServerSessionPool.java:262)
      at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:91)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:585)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:323)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
      at java.lang.Thread.run(Unknown Source)

      I also tried adding jndi-name from jbmp-ds.xml to the login-config.xml so that the dsjndiname contains two names: java:/MyDS,java:/JbpmDS and when I do that I get the following error:

      16:53:28,603 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@f4732a(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@521a5 destination=queue/CallbackQueue isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=1 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      javax.jms.JMSSecurityException: User: null is NOT authenticated
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:230)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:66)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:613)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:172)
      at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:165)
      at org.jboss.mq.Connection.authenticate(Connection.java:1067)
      at org.jboss.mq.Connection.(Connection.java:252)
      at org.jboss.mq.Connection.(Connection.java:323)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:116)
      at org.jboss.mq.SpyConnectionFactory.internalCreateConnection(SpyConnectionFactory.java:137)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:108)
      at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQConnection(AbstractDLQHandler.java:137)
      at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:83)
      at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:369)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:315)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:635)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:756)
      at java.lang.Thread.run(Unknown Source)

      Can someone tell me what I have configured incorrectly?

      thanks,

      Carl