3 Replies Latest reply on Jul 23, 2003 6:14 AM by adrian.brock

    User is NOT authenticated!

    monu

      Hi,

      I am getting this error while sending message to queue. I am able to send messages to queue for 10-20 minutes after that getting this error:

      2003-07-22 10:07:37,563 DEBUG [org.jboss.security.plugins.JaasSecurityManager.jbossmq] Login failure
      javax.security.auth.login.LoginException: unable to find LoginModule class: org/jboss/mq/sm/file/DynamicLoginModule
      at javax.security.auth.login.LoginContext.invoke(LoginContext.java:711)
      at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
      at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
      at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
      at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:462)
      at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:417)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:244)
      at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:219)
      at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:157)
      at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
      at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:650)
      at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:288)
      at org.jboss.mq.il.jvm.JVMServerIL.authenticate(JVMServerIL.java:302)
      at org.jboss.mq.Connection.authenticate(Connection.java:876)
      at org.jboss.mq.Connection.(Connection.java:238)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:48)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)
      at com.mobilgw.sam.executionengine.queue.QueueMessenger.createConnection(QueueMessenger.java:114)
      at com.mobilgw.sam.executionengine.queue.AbstractMessenger.getConnectionWrapper(AbstractMessenger.java:360)
      at com.mobilgw.sam.executionengine.queue.AbstractMessenger.getSession(AbstractMessenger.java:377)
      at com.mobilgw.sam.executionengine.queue.AbstractMessenger.sendMessage(AbstractMessenger.java:760)
      at com.mobilgw.sam.executionengine.queue.AbstractMessenger.sendMessageWithRetry(AbstractMessenger.java:589)
      at com.mobilgw.sam.executionengine.queue.AbstractMessenger.send(AbstractMessenger.java:552)
      at com.mobilgw.sam.executionengine.queue.QueueMessageBroker.sendMessage(QueueMessageBroker.java:172)
      at com.mobilgw.sam.sms.SMSMessageReceiverHandler.data(SMSMessageReceiverHandler.java:37)
      at com.mobilgw.sms.SMSConnectionImpl.data(SMSConnectionImpl.java:531)
      at com.mobilgw.generated.Packet._ChannelImplBase.invoke(_ChannelImplBase.java:96)
      at com.mobilgw.jcee.ImplDelegate.invoke(ImplDelegate.java:269)
      2003-07-22 10:07:37,563 INFO [STDOUT] I:sam.executionengine.SAMReqResWrapperImpl.:SAMReqResWrapperImpl.java(414):SAM(EXECUTIONENGINE) Key: %s %s %s:SOURCE_TYPE: Value: :MT
      2003-07-22 10:07:37,571 INFO [STDOUT] I:sam.executionengine.SAMReqResWrapperImpl.:SAMReqResWrapperImpl.java(414):SAM(EXECUTIONENGINE) Key: %s %s %s:SHORT_CODE: Value: :7777
      2003-07-22 10:07:37,571 ERROR [STDERR] Jul 22, 2003 10:07:37 AM com.mobilgw.sam.common.SAMLoggerImpl severe
      SEVERE: class com.mobilgw.sam.executionengine.queue.AbstractMessenger:Error while sending message to queue. Reason : javax.jms.JMSSecurityException: User: xsam is NOT authenticated


      Please give your sugesstion to reslove this problem.

      Thanks in advance,
      Monu

        • 1. Re: User is NOT authenticated!

          What is the context classloader when you try to send
          the message?

          System.out.println(Thread.currentThread().getContextClassLoader());

          Regards,
          Adrian

          • 2. Re: User is NOT authenticated!
            monu

            thankx for the reply

            i checked my classloader, the class loader is
            com.caucho.util.DynamicClassLoader@c3dc66

            i m using resin with jboss. The above class loader is of resin. Is the error bcoz resin class loader is not able to find the org/jboss/mq/sm/file/DynamicLoginModule
            class in the classpth. Should i put my jaas jar file of jboss in resin classpath. Any clue about this.

            Cheers
            Monu

            • 3. Re: User is NOT authenticated!

              Probably.

              Try
              Thread.currentThread().getContextClassLoader().loadClass(...)

              Putting jboss classes in Resin will probably cause
              ClassCastExceptions unless it is using the UnifiedClassLoader.

              Regards,
              Adrian