glassfish
  1. glassfish
  2. GLASSFISH-20675

password alias does not work for create-jmsdest

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Invalid
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0_b89_RC5
    • Component/s: jms
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      Password alias does not work for create-jmsdest.

      To reproduce the issue

      1. Create password alias
      asadmin create-password-alias jms-password

      2. Set password alias
      C:\>asadmin set server.jms-service.jms-host.default_JMS_host.admin-password=$

      {ALIAS=jmspassword-alias}

      3. Execute create-jmsdest

      C:\>asadmin create-jmsdest --desttype queue JMSQueue2
      remote failure: Unable to create JMS Destination.
      Command create-jmsdest failed.

      server.log shows the following error.

      [2013-07-02T12:35:20.874+1000] [glassfish 4.0] [SEVERE] [] [] [tid: _ThreadID=35 _ThreadName=admin-listener(2)] [timeMillis: 1372732520874] [levelValue: 1000] [[
      Error in dealiasing the password ${ALIAS=jmspassword-alias}

      : Alias jmspassword-alias does not exist]]

      [2013-07-02T12:35:20.887+1000] [glassfish 4.0] [SEVERE] [] [] [tid: _ThreadID=35 _ThreadName=Thread-4] [timeMillis: 1372732520887] [levelValue: 1000] [[
      java.lang.SecurityException: JMX connector server jmxrmi: Failure detected during authentication com.sun.messaging.jmq.auth.api.FailedLoginException: [B4051]: Forbidden admin
      at com.sun.messaging.jmq.jmsserver.management.agent.MQJMXAuthenticator.authenticate(MQJMXAuthenticator.java:135)
      at javax.management.remote.rmi.RMIServerImpl.doNewClient(RMIServerImpl.java:232)
      at javax.management.remote.rmi.RMIServerImpl.newClient(RMIServerImpl.java:199)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      4. Note that create-jms-resource works as expected.
      C:\>asadmin create-jms-resource --restype javax.jms.ConnectionFactory jms/DurableConnectionFactory
      Connector resource jms/DurableConnectionFactory created.
      Command create-jms-resource executed successfully.

        Activity

          People

          • Assignee:
            David Zhao
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: