0 Replies Latest reply on Mar 1, 2005 4:59 AM by Rajesh P

    JMS Exception while creating a connection

    Rajesh P Newbie

      Hi All,

      Iam getting this error while trying to get a connection for JMS.
      Can somebody help me out on this.

      I have configured the connection factory name in the jboss-ds.xml in conf/jms given below

      <tx-connection-factory>
      <jndi-name>TEST/jms/TESTConnectionFactory</jndi-name>
      <xa-transaction/>
      <rar-name>jms-ra.rar</rar-name>
      <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Queue</config-property>
      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:TEST/jms/TESTConnectionFactory</config-property>
      <max-pool-size>500</max-pool-size>
      <security-domain-and-application>JmsXARealm</security-domain-and-application>
      </tx-connection-factory>
      ===============================================

      Configured the queues in jbossmq-destinations-service.xml, like the one given below

      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager

      =============================================
      But when the server starts up it gives me the following error.

      15:13:46,562 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
      javax.resource.spi.SecurityException: No Passwdord credentials found
      at org.jboss.resource.adapter.jms.JmsCred.getJmsCred(JmsCred.java:64)
      at org.jboss.resource.adapter.jms.JmsManagedConnectionFactory.createManagedConnection(JmsManagedConnectionFactory.java:96)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:508)
      at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:207)
      at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:534)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:396)
      at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:299)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:448)
      at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:838)
      at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.allocateConnection(JmsSessionFactoryImpl.java:369)
      at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createQueueSession(JmsSessionFactoryImpl.java:137)
      at com.silknet.ebiz.silkrequest.server.async.engine.Handler.run(Handler.java:92)

      Thanks And Regards,
      Rajesh P