users@glassfish.java.net

Re: JMS Authentification Problem

From: <glassfish_at_javadesktop.org>
Date: Fri, 11 Jan 2008 05:16:28 PST

Thanx for your fast reply, but now that I changed to LOCAL,I get the following exception during GF startup:

[#|2008-01-11T14:01:25.281+0100|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=de5c015d-0f97-4cb7-a916-b65798c7f2f8;|Failed to load the rar
com.sun.enterprise.connectors.ConnectorRuntimeException: Failed to start resource adapter : MQJMSRA_RA4001: start:Aborting:JMSException on createConnection=[C4060]: Login failed: user=guest, broker=localhost:7676(3846)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:157)
        at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.<init>(ActiveJmsResourceAdapter.java:247)
        at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:107)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:300)
        at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:445)
        at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:224)
        at com.sun.enterprise.server.ConnectorModuleLoader.load(ConnectorModuleLoader.java:118)
        at com.sun.enterprise.server.ConnectorModuleLoader.doLoad(ConnectorModuleLoader.java:142)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
        at com.sun.enterprise.server.AbstractManager.loadOneSystemApp(AbstractManager.java:393)
        at com.sun.enterprise.connectors.ConnectorServiceImpl.loadDeferredResourceAdapter(ConnectorServiceImpl.java:242)
        at com.sun.enterprise.connectors.ConnectorServiceImpl.loadResourcesAndItsRar(ConnectorServiceImpl.java:212)
        at com.sun.enterprise.connectors.ConnectorServiceImpl.checkAndLoadResource(ConnectorServiceImpl.java:196)
        at com.sun.enterprise.connectors.ConnectorRuntime.checkAndLoadResource(ConnectorRuntime.java:878)
        at com.sun.enterprise.naming.SerialContextProviderImpl.checkAndLoadResource(SerialContextProviderImpl.java:96)
        at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
        at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:111)
        at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:339)
        at javax.naming.InitialContext.lookup(InitialContext.java:392)
        at com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:493)
        at com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:2754)
        at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:659)
        at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:175)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:500)
        at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
        at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
        at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
        at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:225)
        at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:217)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
        at scireum.research.glassfish.ASLauncher.main(ASLauncher.java:16)
Caused by: javax.resource.spi.ResourceAdapterInternalException: MQJMSRA_RA4001: start:Aborting:JMSException on createConnection=[C4060]: Login failed: user=guest, broker=localhost:7676(3846)
        at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:504)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter$1.run(ActiveInboundResourceAdapter.java:135)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.<init>(ActiveInboundResourceAdapter.java:131)
        ... 39 more
Caused by: com.sun.messaging.jms.JMSSecurityException: [C4060]: Login failed: user=guest, broker=localhost:7676(3846)
        at com.sun.messaging.jmq.jmsclient.ProtocolHandler.authenticate(ProtocolHandler.java:1086)
        at com.sun.messaging.jmq.jmsclient.ProtocolHandler.hello(ProtocolHandler.java:993)
        at com.sun.messaging.jmq.jmsclient.ProtocolHandler.hello(ProtocolHandler.java:888)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.hello(ConnectionImpl.java:528)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:2310)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:1012)
        at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:414)
        at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:60)
        at com.sun.messaging.jmq.jmsclient.XAConnectionImpl.<init>(XAConnectionImpl.java:58)
        at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnectionFactory.java:91)
        at com.sun.messaging.XAConnectionFactory.createXAConnection(XAConnectionFactory.java:69)
        at com.sun.messaging.jms.ra.ResourceAdapter.start(ResourceAdapter.java:491)
        ... 42 more
|#]


If i recreate the guest/guest account with imqusrmgr, it works again, but still i got the following credentials in my domain.xml:

<connector-connection-pool
        connection-definition-name="javax.jms.ConnectionFactory"
        name="jms/CoreConnectionFactory"...
>
      <property name="Password" value="cps"/>
      <property name="UserName" value="cps"/>
</connector-connection-pool>
[Message sent by forum member 'ahaufler' (ahaufler)]

http://forums.java.net/jive/thread.jspa?messageID=253395