5 Replies Latest reply on Apr 7, 2003 2:58 PM by k1mzg

    Austhenticatin a user

    k1mzg

      Hi all,

      I'm starting to evaluate JBossMQ for an app. I d/l'ed
      jboss-3.2.0RC4, started the default server and am
      trying to connect from another VM on the same
      machine. Below is the code and resulting error.
      This happens with name, password of ("sa", "") and
      ("guest", "guest")

      Thanks for any help

      InitialContext ctx = new InitialContext();
      QueueConnectionFactory qcf = (QueueConnectionFactory)
      ctx.lookup("ConnectionFactory");

      QueueConnection queueConnection = qcf.createQueueConnection("sa", "");

      ===================================
      org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Option unsupported by protocol: connect)
      at org.jboss.mq.Connection.authenticate(Connection.java:882)
      at org.jboss.mq.Connection.(Connection.java:237)
      at org.jboss.mq.SpyConnection.(SpyConnection.java:48)
      at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)

        • 1. Re: Austhenticatin a user

          There is something wrong with your TCP/IP

          /etc/hosts ?
          firewall?

          Regards,
          Adrian

          • 2. Re: Austhenticatin a user
            k1mzg

            I'm running W2000 and there is no /etc/hosts and no
            firewall.

            IN the classpath of my client jvm, there is this line
            in the jndi.properties file:
            java.naming.provider.url=jnp://localhost:1099

            Then I start the default server and after trying to
            connect, get the error, cannot authenticate user.

            Wonder if I have to configure the IIS server to
            redirect?


            • 3. Re: Authenticating a user
              k1mzg

              Using W2000 witht no /etc/hosts and no firewall.

              In the client jvm there's this in the jndi.properties:
              java.naming.provider.url=jnp://localhost:1099

              Wondering if maybe I need to configure the IIS
              running on this machine to redirect it somehow to
              the JBoss server?

              • 4. Re: Authenticating a user

                Can you get a simple java socket program
                to work?

                The text of the message you reported comes
                from the underlying protocol stack.
                In your case WINSOCK.

                Regards,
                Adrian

                • 5. Re: Authenticating a user
                  k1mzg

                  The error changes when using different jdk's so I
                  don't reall know if it's a TCPIP problem or not. IIS
                  is being run on this machine. Does that need to be
                  configured to redirect?

                  1. Using jdk 1.3.1_04

                  org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.SocketException: Option unsupported by protocol: connect)
                  at org.jboss.mq.Connection.authenticate(Connection.java:882)
                  at org.jboss.mq.Connection.(Connection.java:237)
                  at org.jboss.mq.SpyConnection.(SpyConnection.java:48)
                  at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:135)
                  =====================================

                  2. Using jdk 1.4.0_02

                  javax.jms.JMSSecurityException: User: sa is NOT authenticated
                  at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:181)
                  at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:40)
                  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.oil.OILServerILService$Client.run(OILServerILService.java:328)
                  at java.lang.Thread.run(Thread.java:536)