0 Replies Latest reply on Dec 12, 2003 8:16 AM by nusa

    Failed to lookup securityDomain=jbossmq

    nusa Novice

      Hi,

      Just download JBoss3.2.3, and modify the following config :
      1. remove hsqldb-ds.xml in ...\default\deploy, install oracle-ds.xml, oracle-xa-ds.xml
      2. replace hsql-jdbc2-service.xml in ...\default\deploy\jms with oracle-jdbc2-service.xml
      3. all XML files under ...\default\deploy\jms remain untouch
      4. modify the login-config.xml to comment out HsqlDbRealm and FirebirdDBRealm :

      ...
      <!-- Security domains for testing new jca framework
      <application-policy name = "HsqlDbRealm">

      <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
      flag = "required">
      <module-option name = "principal">sa</module-option>
      <module-option name = "userName">sa</module-option>
      <module-option name = "password"></module-option>
      <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
      </login-module>

      </application-policy>

      <application-policy name = "FirebirdDBRealm">

      <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
      flag = "required">
      <module-option name = "principal">sysdba</module-option>
      <module-option name = "userName">sysdba</module-option>
      <module-option name = "password">masterkey</module-option>
      <module-option name = "managedConnectionFactoryName">jboss.jca:service=XaTxCM,name=FirebirdDS</module-option>
      </login-module>

      </application-policy>
      -->
      ...

      and the output I got :
      ...
      13:43:36,925 INFO [org.jboss.mq.server.jmx.Queue.D] Bound to JNDI name: queue/D

      13:43:36,925 INFO [org.jboss.mq.server.jmx.Queue.D] Started jboss.mq.destination:service=Queue,name=D

      13:43:36,925 DEBUG [org.jboss.mq.server.jmx.Queue.ex] Starting

      13:43:36,936 TRACE [org.jboss.tm.TransactionImpl] Created new instance for tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=]

      13:43:36,936 TRACE [org.jboss.tm.TxManager] began tx: TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=]

      13:43:36,936 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] supplying ManagedConnection from pool: org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@15fd251

      13:43:36,936 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Getting connection from pool [InUse/Available/Max]: [1/1/20]

      13:43:36,936 TRACE [org.jboss.tm.TransactionImpl] enlistResource(): Entered, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=] status=STATUS_ACTIVE

      13:43:36,936 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=1]) entered: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@129df8a flags=0

      13:43:36,936 TRACE [org.jboss.tm.TransactionImpl] startResource(XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=1]) leaving: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@129df8a flags=0

      13:43:36,936 TRACE [org.jboss.tm.TransactionImpl] registerSynchronization(): Entered, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=] status=STATUS_ACTIVE

      13:43:36,946 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Restored 0 message(s) to: QUEUE.ex

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] Committing, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=], status=STATUS_ACTIVE

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] calling sync 0, org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TxRemover@1e0e954

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] Before completion done, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=], status=STATUS_ACTIVE

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] endresources(0): state=1

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=1]) entered: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@129df8a flag=67108864

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] endResource(XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=1]) leaving: org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@129df8a flag=67108864

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] One phase commit: One resource.

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] Committing resources, resourceStates[0]=3

      13:43:36,946 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] putting ManagedConnection back into pool

      13:43:36,946 TRACE [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Returning connection to pool [InUse/Available/Max]: [0/1/20]

      13:43:36,946 TRACE [org.jboss.tm.TransactionImpl] Committed OK, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=]

      13:43:36,946 TRACE [org.jboss.tm.TxManager] commited tx: TransactionImpl:XidImpl [FormatId=257, GlobalId=UKPC3817//13, BranchQual=]
      13:43:36,946 INFO [org.jboss.mq.server.jmx.Queue.ex] Bound to JNDI name: queue/ex

      13:43:36,946 INFO [org.jboss.mq.server.jmx.Queue.ex] Started jboss.mq.destination:service=Queue,name=ex

      13:43:36,946 DEBUG [org.jboss.mq.security.SecurityManager] Starting

      13:43:36,966 DEBUG [org.jboss.mq.security.SecurityManager] Failed to lookup securityDomain=jbossmq

      javax.naming.NameNotFoundException: jbossmq not bound

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)

      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)

      at org.jnp.server.NamingServer.lookup(NamingServer.java:282)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)

      at javax.naming.InitialContext.lookup(InitialContext.java:347)

      at org.jboss.mq.security.SecurityManager.startService(SecurityManager.java:168)

      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)

      at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)

      at $Proxy14.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:394)

      at org.jboss.system.ServiceController.start(ServiceController.java:411)

      at org.jboss.system.ServiceController.start(ServiceController.java:411)

      at org.jboss.system.ServiceController.start(ServiceController.java:411)

      at org.jboss.system.ServiceController.start(ServiceController.java:411)

      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy4.start(Unknown Source)

      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy6.deploy(Unknown Source)

      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)

      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)

      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)

      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)

      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)

      at $Proxy0.start(Unknown Source)

      at org.jboss.system.ServiceController.start(ServiceController.java:394)

      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy4.start(Unknown Source)

      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)

      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)

      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)

      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:324)

      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)

      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)

      at $Proxy5.deploy(Unknown Source)

      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)

      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)

      at org.jboss.Main.boot(Main.java:150)

      at org.jboss.Main$1.run(Main.java:395)

      at java.lang.Thread.run(Thread.java:534)

      13:43:37,016 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@a69b6b

      13:43:37,016 INFO [org.jboss.security.plugins.JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@25b72a

      13:43:37,026 INFO [org.jboss.security.plugins.JaasSecurityManagerService] Added jbossmq, org.jboss.security.plugins.SecurityDomainContext@1c5cd7 to map

      13:43:37,046 INFO [org.jboss.mq.security.SecurityManager] Started jboss.mq:service=SecurityManager

      13:43:37,046 DEBUG [org.jboss.mq.server.jmx.Topic.testTopic] Starting

      13:43:37,066 INFO [org.jboss.mq.server.jmx.Topic.testTopic] Bound to JNDI name: topic/testTopic

      13:43:37,066 TRACE [org.jboss.mq.security.SecurityMetadata] Adding role: Role {name=guest;read=true;write=true;create=false}

      13:43:37,076 TRACE [org.jboss.mq.security.SecurityMetadata] Adding role: Role {name=publisher;read=true;write=true;create=false}

      13:43:37,076 TRACE [org.jboss.mq.security.SecurityMetadata] Adding role: Role {name=durpublisher;read=true;write=true;create=true}

      13:43:37,076 INFO [org.jboss.mq.server.jmx.Topic.testTopic] Started jboss.mq.destination:service=Topic,name=testTopic

      ...

      What am I missing in the config ?

      The other think, because I use Oracle as PersistenceManager ( oracle-jdbc2-service.xml ),
      where exactly queue/A, ..., queue/D, and queue/ex got created ?

      Thanks for any help.

      nusa.