3 Replies Latest reply on Mar 11, 2005 6:31 AM by Mukti furtado

    error: ConnectionFactory not bound

    Mukti furtado Newbie

      Hi,

      I have created a method in session bean to send message. below is the code of my method

      public void sendMessage() throws NamingException,JMSException{

      QueueConnectionFactory cf;
      QueueConnection connection;
      QueueSession session;
      Queue destination;
      QueueSender sender;
      TextMessage message;

      Hashtable env = new Hashtable();
      env.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      env.put(Context.PROVIDER_URL,
      "localhost:1099");
      Context ctx = new InitialContext(env);


      //ctx = new InitialContext();
      cf = (QueueConnectionFactory)ctx.lookup("ConnectionFactory");
      destination = (Queue)ctx.lookup("queue/testQueue");

      connection = cf.createQueueConnection();
      session = connection.createQueueSession(false,
      Session.AUTO_ACKNOWLEDGE);
      sender = session.createSender(destination);
      message = session.createTextMessage();
      message.setText("Hello World1!");

      System.out.println("Sending Message.");
      sender.send(message);

      connection.close();
      System.out.println("Done.");
      }

      I am getting the following error in the browser

      javax.naming.NameNotFoundException: ConnectionFactory not bound

      Can anyone tell me why this error is coming
      Thanks



        • 1. ConnectionFactory not bound
          Mukti furtado Newbie

          I am getting some errors in the console. Please check it

          ===============================================================================
          .
          JBoss Bootstrap Environment
          .
          JBOSS_HOME: C:\jboss-4.0.1\bin\\..
          .
          JAVA: D:\j2sdk1.4.2_07\bin\java
          .
          JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
          .
          CLASSPATH: D:\j2sdk1.4.2_07\lib\tools.jar;C:\jboss-4.0.1\bin\\run.jar
          .
          ===============================================================================
          .
          14:31:23,312 INFO [Server] Starting JBoss (MX MicroKernel)...
          14:31:23,312 INFO [Server] Release ID: JBoss [Zion] 4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)
          14:31:23,312 INFO [Server] Home Dir: C:\jboss-4.0.1
          14:31:23,312 INFO [Server] Home URL: file:/C:/jboss-4.0.1/
          14:31:23,312 INFO [Server] Library URL: file:/C:/jboss-4.0.1/lib/
          14:31:23,312 INFO [Server] Patch URL: null
          14:31:23,312 INFO [Server] Server Name: default
          14:31:23,328 INFO [Server] Server Home Dir: C:\jboss-4.0.1\server\default
          14:31:23,328 INFO [Server] Server Home URL: file:/C:/jboss-4.0.1/server/default/
          14:31:23,328 INFO [Server] Server Data Dir: C:\jboss-4.0.1\server\default\data
          14:31:23,328 INFO [Server] Server Temp Dir: C:\jboss-4.0.1\server\default\tmp
          14:31:23,343 INFO [Server] Server Config URL: file:/C:/jboss-4.0.1/server/default/conf/
          14:31:23,343 INFO [Server] Server Library URL: file:/C:/jboss-4.0.1/server/default/lib/
          14:31:23,343 INFO [Server] Root Deployment Filename: jboss-service.xml
          14:31:23,343 INFO [Server] Starting General Purpose Architecture (GPA)...
          14:31:24,312 INFO [ServerInfo] Java version: 1.4.2_07,Sun Microsystems Inc.
          14:31:24,312 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_07-b05,Sun Microsystems Inc.
          14:31:24,312 INFO [ServerInfo] OS-System: Windows 2000 5.0,x86
          14:31:25,203 INFO [Server] Core system initialized
          14:31:28,468 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
          14:31:28,828 INFO [WebService] Using RMI server codebase: http://Mukti:8083/
          14:31:29,140 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
          14:31:38,968 INFO [Embedded] Catalina naming disabled
          14:31:40,250 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
          14:31:40,343 INFO [Catalina] Initialization processed in 1203 ms
          14:31:40,343 INFO [StandardService] Starting service jboss.web
          14:31:40,359 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
          14:31:40,421 INFO [StandardHost] XML validation disabled
          14:31:40,453 INFO [Catalina] Server startup in 110 ms
          14:31:40,750 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/http-invoker.sar/invoker.war/
          14:31:42,859 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp4763jboss-ws4ee-exp.war/
          14:31:43,234 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
          14:31:43,703 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
          14:31:48,765 INFO [MailService] Mail Service bound to java:/Mail
          14:31:49,984 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jboss-local-jdbc.rar
          14:31:50,375 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jboss-xa-jdbc.rar
          14:31:50,734 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/jms/jms-ra.rar
          14:31:51,046 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1/server/default/deploy/mail-ra.rar
          14:31:51,968 ERROR [HypersonicDatabase] Starting failed jboss:database=localDB,service=Hypersonic
          java.sql.SQLException: General error: java.lang.NullPointerException
          at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
          at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
          at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
          at org.hsqldb.jdbcDriver.connect(Unknown Source)
          at java.sql.DriverManager.getConnection(DriverManager.java:512)
          at java.sql.DriverManager.getConnection(DriverManager.java:171)
          at org.jboss.jdbc.HypersonicDatabase.getConnection(HypersonicDatabase.java:806)
          at org.jboss.jdbc.HypersonicDatabase.startStandaloneDatabase(HypersonicDatabase.java:617)
          at org.jboss.jdbc.HypersonicDatabase.startService(HypersonicDatabase.java:587)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:416)
          at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
          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:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272)
          at $Proxy34.start(Unknown Source)
          at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:228)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
          at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy8.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:416)
          at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
          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:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
          at org.jboss.Main.boot(Main.java:162)
          at org.jboss.Main$1.run(Main.java:423)
          at java.lang.Thread.run(Thread.java:534)
          14:31:51,968 WARN [ServiceController] Problem starting service jboss:database=localDB,service=Hypersonic
          java.sql.SQLException: General error: java.lang.NullPointerException
          at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
          at org.hsqldb.jdbc.jdbcConnection.(Unknown Source)
          at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
          at org.hsqldb.jdbcDriver.connect(Unknown Source)
          at java.sql.DriverManager.getConnection(DriverManager.java:512)
          at java.sql.DriverManager.getConnection(DriverManager.java:171)
          at org.jboss.jdbc.HypersonicDatabase.getConnection(HypersonicDatabase.java:806)
          at org.jboss.jdbc.HypersonicDatabase.startStandaloneDatabase(HypersonicDatabase.java:617)
          at org.jboss.jdbc.HypersonicDatabase.startService(HypersonicDatabase.java:587)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:416)
          at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
          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:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272)
          at $Proxy34.start(Unknown Source)
          at org.jboss.deployment.XSLSubDeployer.start(XSLSubDeployer.java:228)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
          at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy8.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
          at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:416)
          at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:722)
          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:324)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
          at org.jboss.Main.boot(Main.java:162)
          at org.jboss.Main$1.run(Main.java:423)
          at java.lang.Thread.run(Thread.java:534)
          14:31:52,562 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding to JNDI name 'java:JmsXA'
          14:31:52,921 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=MySqlDS,service=DataSourceBinding to JNDI name 'java:MySqlDS'
          14:31:53,000 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/jmx-console.war/
          14:31:53,515 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/jboss-4.0.1/server/default/deploy/management/web-console.war/
          14:31:54,859 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.1/server/default/deploy/teste.ear
          14:31:56,125 INFO [EjbModule] Deploying Teste
          14:31:56,421 WARN [StatelessSessionContainer] No resource manager found for jms/PointToPoint
          14:31:56,453 INFO [EJBDeployer] Deployed: file:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp4815teste.ear-contents/teste-ejb.jar
          14:31:56,562 INFO [TomcatDeployer] deploy, ctxPath=/teste, warUrl=file:/C:/jboss-4.0.1/server/default/tmp/deploy/tmp4815teste.ear-contents/teste-exp.war/
          14:31:56,937 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.1/server/default/deploy/teste.ear
          14:31:56,937 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
          MBeans waiting for other MBeans:
          ObjectName: jboss.ejb:persistencePolicy=database,service=EJBTimerService
          state: CREATED
          I Depend On: jboss.jca:name=DefaultDS,service=DataSourceBinding

          Depends On Me:
          ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
          state: CREATED
          I Depend On: jboss.mq:service=Invoker
          jboss.web:service=WebServer

          Depends On Me:
          ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
          state: CREATED
          I Depend On: jboss:service=TransactionManager
          jboss.jca:name=DefaultDS,service=DataSourceBinding

          Depends On Me:
          ObjectName: jboss.mq:service=StateManager
          state: CREATED
          I Depend On: jboss.jca:name=DefaultDS,service=DataSourceBinding

          Depends On Me: jboss.mq:service=DestinationManager

          ObjectName: jboss.mq:service=DestinationManager
          state: CREATED
          I Depend On: jboss.mq:service=MessageCache
          jboss.mq:service=PersistenceManager
          jboss.mq:service=StateManager

          Depends On Me: jboss.mq.destination:name=testTopic,service=Topic
          jboss.mq.destination:name=securedTopic,service=Topic
          jboss.mq.destination:name=testDurableTopic,service=Topic
          jboss.mq.destination:name=testQueue,service=Queue
          jboss.mq.destination:name=A,service=Queue
          jboss.mq.destination:name=B,service=Queue
          jboss.mq.destination:name=C,service=Queue
          jboss.mq.destination:name=D,service=Queue
          jboss.mq.destination:name=ex,service=Queue
          jboss.mq:service=SecurityManager
          jboss.mq.destination:name=DLQ,service=Queue

          ObjectName: jboss.mq:service=PersistenceManager
          state: CREATED
          I Depend On: jboss.jca:name=DefaultDS,service=DataSourceBinding

          Depends On Me: jboss.mq:service=DestinationManager

          ObjectName: jboss.mq.destination:name=testTopic,service=Topic
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=securedTopic,service=Topic
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=testDurableTopic,service=Topic
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=testQueue,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=A,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=B,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=C,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=D,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager

          Depends On Me:
          ObjectName: jboss.mq.destination:name=ex,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager

          Depends On Me:
          ObjectName: jboss.mq:service=Invoker
          state: CREATED
          I Depend On: jboss.mq:service=TracingInterceptor

          Depends On Me: jboss.mq:service=InvocationLayer,type=HTTP
          jboss.mq:service=InvocationLayer,type=JVM
          jboss.mq:service=InvocationLayer,type=UIL2

          ObjectName: jboss.mq:service=TracingInterceptor
          state: CREATED
          I Depend On: jboss.mq:service=SecurityManager

          Depends On Me: jboss.mq:service=Invoker

          ObjectName: jboss.mq:service=SecurityManager
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager

          Depends On Me: jboss.mq.destination:name=testTopic,service=Topic
          jboss.mq.destination:name=securedTopic,service=Topic
          jboss.mq.destination:name=testDurableTopic,service=Topic
          jboss.mq.destination:name=testQueue,service=Queue
          jboss.mq:service=TracingInterceptor
          jboss.mq.destination:name=DLQ,service=Queue

          ObjectName: jboss.mq.destination:name=DLQ,service=Queue
          state: CREATED
          I Depend On: jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

          Depends On Me:
          ObjectName: jboss.mq:service=InvocationLayer,type=JVM
          state: CREATED
          I Depend On: jboss.mq:service=Invoker

          Depends On Me:
          ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
          state: CREATED
          I Depend On: jboss.mq:service=Invoker

          Depends On Me:
          ObjectName: jboss.jca:name=DefaultDS,service=LocalTxCM
          state: CREATED
          I Depend On: jboss.jca:name=DefaultDS,service=ManagedConnectionPool
          jboss.jca:service=CachedConnectionManager
          jboss.security:service=JaasSecurityManager
          jboss:service=TransactionManager

          Depends On Me: jboss.jca:name=DefaultDS,service=DataSourceBinding

          ObjectName: jboss.jca:name=DefaultDS,service=ManagedConnectionPool
          state: CREATED
          I Depend On: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory

          Depends On Me: jboss.jca:name=DefaultDS,service=LocalTxCM

          ObjectName: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
          state: CREATED
          I Depend On: jboss:database=localDB,service=Hypersonic
          jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment

          Depends On Me: jboss.jca:name=DefaultDS,service=ManagedConnectionPool

          ObjectName: jboss.jca:name=DefaultDS,service=DataSourceBinding
          state: CREATED
          I Depend On: jboss.jca:name=DefaultDS,service=LocalTxCM
          jboss:service=invoker,type=jrmp

          Depends On Me: jboss.ejb:persistencePolicy=database,service=EJBTimerService
          jboss:service=KeyGeneratorFactory,type=HiLo
          jboss.mq:service=StateManager
          jboss.mq:service=PersistenceManager

          ObjectName: jboss:database=localDB,service=Hypersonic
          state: FAILED
          I Depend On:
          Depends On Me: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
          java.sql.SQLException: General error: java.lang.NullPointerException

          MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
          ObjectName: jboss:database=localDB,service=Hypersonic
          state: FAILED
          I Depend On:
          Depends On Me: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
          java.sql.SQLException: General error: java.lang.NullPointerException

          14:31:57,265 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
          14:31:57,578 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
          14:31:57,609 INFO [JkMain] Jk running ID=0 time=0/141 config=null
          14:31:57,625 INFO [Server] JBoss (MX MicroKernel) [4.0.1 (build: CVSTag=JBoss_4_0_1 date=200412230944)] Started in 33s:766ms

          • 2. Re: error: ConnectionFactory not bound
            harm laat, de Newbie

             


            MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
            ObjectName: jboss:database=localDB,service=Hypersonic
            state: FAILED
            I Depend On:
            Depends On Me: jboss.jca:name=DefaultDS,service=ManagedConnectionFactory
            java.sql.SQLException: General error: java.lang.NullPointerException


            Looks like something is wrong with your Default Datasource. Please correct that first.



            • 3. Re: error: ConnectionFactory not bound
              Mukti furtado Newbie

              Thanks
              I reinstalled jboss and the errors are gone.