1 Reply Latest reply on Oct 11, 2011 10:41 AM by whitingjr

    Create connection factory fails for domain using CLI.

    whitingjr

      Hi,

      I am running AS7 with the domain controller.

       

      When a connection factory is created using the CLI using this command

       

      [domain@localhost:9999 /] add-jms-cf --profile=default --name=java:jboss/jms/LoaderQueueConnectionFactory

       

      the server throws this exception.

       

      [Server:server-one] 15:38:49,473 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.messaging.jms.connection-factory.java:jboss/jms/LoaderQueueConnectionFactory: org.jboss.msc.service.StartException in service jboss.messaging.jms.connection-factory.java:jboss/jms/LoaderQueueConnectionFactory: JBAS011639: Failed to create connection-factory

      [Server:server-one]     at org.jboss.as.messaging.jms.ConnectionFactoryService.start(ConnectionFactoryService.java:86)

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      [Server:server-one]     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]

      [Server:server-one]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]

      [Server:server-one]     at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]

      [Server:server-one] Caused by: HornetQException[errorCode=104 message=Null Connector name passed to create ConnectionFactory]

      [Server:server-one]     at org.hornetq.jms.server.impl.JMSServerManagerImpl.internalCreateCFPOJO(JMSServerManagerImpl.java:1155)

      [Server:server-one]     at org.hornetq.jms.server.impl.JMSServerManagerImpl.internalCreateCF(JMSServerManagerImpl.java:1111)

      [Server:server-one]     at org.hornetq.jms.server.impl.JMSServerManagerImpl.access$1000(JMSServerManagerImpl.java:98)

      [Server:server-one]     at org.hornetq.jms.server.impl.JMSServerManagerImpl$3.runException(JMSServerManagerImpl.java:977)

      [Server:server-one]     at org.hornetq.jms.server.impl.JMSServerManagerImpl.runAfterActive(JMSServerManagerImpl.java:1643)

      [Server:server-one]     at org.hornetq.jms.server.impl.JMSServerManagerImpl.createConnectionFactory(JMSServerManagerImpl.java:966)

      [Server:server-one]     at org.jboss.as.messaging.jms.ConnectionFactoryService.start(ConnectionFactoryService.java:71)

      [Server:server-one]     ... 5 more

      [Server:server-one]

       

      Is the syntax of the cli command correct ?

       

      Regards,

      Jeremy

       

       

      I have also tried

       

      [domain@localhost:9999 /] add-jms-cf --profile=default --name=LoaderQueueConnectionFactory