6 Replies Latest reply on Jul 22, 2007 3:44 AM by sagi mann

    error: invalid user or password for JMS

    sagi mann Newbie

      Hi,
      I'm using a 3rd party JMS (Tibco EMS 4.4.1) and have followed the guidelines to integrate it with JBoss 4.0.1sp3. The problem is I don't know how to specify the usr/pwd so that JBoss could connect to Tibco EMS (the user/pwd were defined in Tibco). I keep getting (for the DLQ):

      javax.jms.JMSException: Error creating the dlq connection: Not permitted: invalid name or password
      at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:166)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:165)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:557)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:813)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1323)
      at java.lang.Thread.run(Thread.java:534)

      There was a thread about a similar error:
      http://www.jboss.com/index.html?module=bb&op=viewforum&f=48

      But I didn't quite understand why there are so many places that usr/pwd can be specified, and what is their purpose. Can anyone pls assist in setting a user/pwd in the right place within JBoss' configuration?

      thanks.

        • 2. Re: error: invalid user or password for JMS
          Adrian Brock Master

           


          But I didn't quite understand why there are so many places that usr/pwd can be specified


          Because authorities can be different based on what you doing,
          i.e. per queue/topic and whether you are sending or receiving

          The main places are:
          1) user/password for sending messages - JmsXARealm
          2) user/password for receiving messages in an MDB - MDBConfig
          3) user/password for sending messages to the DLQ - DLQConfig
          4) user/password for accessing jndi - JMSProvider in jms-ds.xml

          (3) is almost certainly irrelevant unless you are using JBossMQ.
          Most JMS servers provide their own DLQ processing (JBossMQ does not)
          so just remove the DLQConfig and configure the DLQ inside your jms server.

          • 3. Re: error: invalid user or password for JMS
            sagi mann Newbie

            Assuming JBoss manages a connection pool for this JMS implementation, which of the options is responsible for actually making the connection to Tibco EMS? Or - is more than one connection made?
            Setting the DLQUser/DLQPassword to the Tibco-side credentials had no effect, so I commented out the DLQ section for now. I also set the tibco user in the JmsXARealm. The creds in jms-ds.xml are both 'jbosslookup' - I didn't put it there, it was like that earlier. I'm not familiar with this user.

            login-module.xml:

            <application-policy name = "JmsXARealm">

            <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule"
            flag = "required">
            <!--
            <module-option name = "principal">report_server</module-
            -->
            <module-option name = "userName">admin</module-option>
            <module-option name = "password">admin</module-option>
            <module-option name = "managedConnectionFactoryName">jboss.jca:service=TxCM,name=JmsXA</module-option>
            </login-module>

            </application-policy>


            jms-ds.xml:

            <!-- The JMS provider loader -->

            TIBCOJMSProvider
            org.jboss.jms.jndi.JNDIProviderAdapter
            SSLXAQueueConnectionFactory
            XATopicConnectionFactory

            java.naming.security.principal=jbosslookup
            java.naming.security.credentials=jbosslookup
            java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
            java.naming.factory.url.pkgs=com.tibco.tibjms.naming
            java.naming.provider.url=tibjmsnaming://localhost:7243




            Now I still get the error, only this time the stack does not mention DLQ:

            sorry for the long stacktrace, but maybe it will shed some light:

            17:47:08,747 INFO [EjbModule] Deploying SnapshotCompletedMDB
            17:47:09,809 ERROR [JMSContainerInvoker] Starting failed jboss.j2ee:binding=message-driven-bean,jndiName=local/SnapshotCompleted
            MDB,plugin=invoker,service=EJB
            javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException:
            invalid name or password]
            at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:691)
            at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:516)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:731)
            at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:813)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy46.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:171)
            at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:262)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy44.start(Unknown Source)
            at org.jboss.ejb.EjbModule.startService(EjbModule.java:394)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy20.start(Unknown Source)
            at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy8.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
            at org.jboss.Main.boot(Main.java:162)
            at org.jboss.Main$1.run(Main.java:423)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: javax.jms.JMSSecurityException: invalid name or password
            at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:549)
            at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:713)
            at com.tibco.tibjms.TibjmsConnection.(TibjmsConnection.java:1955)
            at com.tibco.tibjms.TibjmsQueueConnection.(TibjmsQueueConnection.java:37)
            at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:187)
            at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:240)
            at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:79)
            at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:352)
            at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:678)
            ... 143 more
            17:47:09,809 WARN [ServiceController] Problem starting service jboss.j2ee:binding=message-driven-bean,jndiName=local/SnapshotCo
            mpletedMDB,plugin=invoker,service=EJB
            javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException:
            invalid name or password]
            at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:691)
            at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:516)
            at javax.naming.InitialContext.lookup(InitialContext.java:347)
            at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:731)
            at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:813)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy46.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:171)
            at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:262)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy44.start(Unknown Source)
            at org.jboss.ejb.EjbModule.startService(EjbModule.java:394)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy20.start(Unknown Source)
            at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:956)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy8.deploy(Unknown Source)
            at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
            at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
            at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
            at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
            at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:416)
            at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy4.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
            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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
            at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
            at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
            at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
            at org.jboss.Main.boot(Main.java:162)
            at org.jboss.Main$1.run(Main.java:423)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: javax.jms.JMSSecurityException: invalid name or password
            at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:549)
            at com.tibco.tibjms.TibjmsConnection._create(TibjmsConnection.java:713)
            at com.tibco.tibjms.TibjmsConnection.(TibjmsConnection.java:1955)
            at com.tibco.tibjms.TibjmsQueueConnection.(TibjmsQueueConnection.java:37)
            at com.tibco.tibjms.TibjmsxCFImpl._createImpl(TibjmsxCFImpl.java:187)
            at com.tibco.tibjms.TibjmsxCFImpl._createConnection(TibjmsxCFImpl.java:240)
            at com.tibco.tibjms.TibjmsQueueConnectionFactory.createQueueConnection(TibjmsQueueConnectionFactory.java:79)
            at com.tibco.tibjms.naming.TibjmsContext$Messenger.request(TibjmsContext.java:352)
            at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:678)
            ... 143 more

            • 4. Re: error: invalid user or password for JMS
              sagi mann Newbie

              something happened to the login-module.xml excerpt I put earlier. retrying:

              <!-- The JMS provider loader -->
              <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
              name=":service=JMSProviderLoader,name=TibjmsProvider">
              <attribute name="ProviderName">TIBCOJMSProvider</attribute>
              <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
              <attribute name="QueueFactoryRef">SSLXAQueueConnectionFactory</attribute>
              <attribute name="TopicFactoryRef">XATopicConnectionFactory</attribute>
              <attribute name="Properties">
              java.naming.security.principal=jbosslookup
              java.naming.security.credentials=jbosslookup
              java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialContextFactory
              java.naming.factory.url.pkgs=com.tibco.tibjms.naming
              java.naming.provider.url=tibjmsnaming://localhost:7243
              </attribute>
              </mbean>
              
              


              • 5. Re: error: invalid user or password for JMS
                Adrian Brock Master

                 

                "sagimann" wrote:
                The creds in jms-ds.xml are both 'jbosslookup' - I didn't put it there, it was like that earlier. I'm not familiar with this user.


                It's certainly not in the default JBoss configuration.


                17:47:09,809 ERROR [JMSContainerInvoker] Starting failed jboss.j2ee:binding=message-driven-bean,jndiName=local/SnapshotCompleted
                MDB,plugin=invoker,service=EJB
                javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException:
                invalid name or password]
                at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:691)
                at com.tibco.tibjms.naming.TibjmsContext.lookup(TibjmsContext.java:516)
                at javax.naming.InitialContext.lookup(InitialContext.java:347)


                This is your "jbosslookup" not getting authenticated in JNDI.

                This question is not a JMS question. It is a JNDI question.
                In fact, it is a really a TIBCO question/configuration since the error is coming from one
                of their classes.

                The only relation to JMS is that you configure the jndi properites in jms-ds.xml,
                given that answer, the issue for this forum is resolved.

                • 6. Re: error: invalid user or password for JMS
                  sagi mann Newbie

                  Thanks for the help - this was indeed the cause of issue. The jbosslookup creds had to be replaced with some other Tibco user.