4 Replies Latest reply on Mar 8, 2002 3:09 PM by deaconpham

    Cloudscape / Connection refused

    xanders

      Hi,

      when starting JBoss with Cloudscape I get the following connection error:

      [CloudscapeDB] XA Connection pool CloudscapeDB bound to java:/CloudscapeDB
      [CloudscapeDB] java.sql.SQLException: Connection refused to host: localhost; nes
      ted exception is:
      java.net.ConnectException: Connection refused: connect
      [CloudscapeDB] Pool CloudscapeDB factory org.jboss.pool.jdbc.xa.XAConnectionFact
      ory@54864a unable to create new object!
      [CloudscapeDB] Pool CloudscapeDB [0/0/10] waiting for a free object

      The configuration in jboss.jcml is:

      <!-- JDBC -->
      <mbean code="org.jboss.jdbc.JdbcProvider" name="DefaultDomain:service=JdbcProvider">
      <attribute name="Drivers">COM.cloudscape.core.RmiJdbcDriver</attribute>
      </mbean>

      <!-- Cloudscape -->

      <mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=CloudscapeDB">
      <attribute name="PoolName">CloudscapeDB</attribute>
      <attribute name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl</attribute>
      <attribute name="URL">jdbc:cloudscape:rmi://localhost:1099/CloudscapeDB</attribute>
      <attribute name="JDBCUser">admin</attribute>
      <attribute name="Password">admin</attribute>
      <attribute name="Properties"></attribute>
      <attribute name="GCMinIdleTime">1200000</attribute>
      <attribute name="MaxSize">10</attribute>
      <attribute name="GCEnabled">false</attribute>
      <attribute name="InvalidateOnError">true</attribute>
      <attribute name="TimestampUsed">false</attribute>
      <attribute name="Blocking">true</attribute>
      <attribute name="GCInterval">120000</attribute>
      <attribute name="IdleTimeout">1800000</attribute>
      <attribute name="IdleTimeoutEnabled">false</attribute>
      <attribute name="LoggingEnabled">true</attribute>
      <attribute name="MaxIdleTimeoutPercent">1.0</attribute>
      <attribute name="MinSize">0</attribute>
      </mbean>

      The CloudscapeDB is located in Cloudscape/CloudscapeDB (where Cloudscape is root directory) and started with following command

      java RmiJdbc.RJJdbcServer -sm -port 1099 COM.cloudscape.core.RmiJdbcDriver

      Does anybody of you know the reason for this error and can give me a solution for my problem.

      Thanks in advance,
      Joerg

        • 1. Re: Cloudscape / Connection refused
          pai_deepak

          I have never used cloudscape - but i have got similar exceptions and i would "guess" - its a permission to dB problem.

          • 2. Re: Cloudscape / Connection refused
            dsameer


            All,

            I am attempting to run JBoss3alpha with

            Cloudscape, but getting the following errors .

            Any ideas ?

            SD.

            File - cloudscapeds-service.xml
            ----------------------------------------------
            <?xml version="1.0" encoding="UTF-8"?>

            <!-- =====================================================================-->
            <!-- JDBC Cloudscape-->
            <!-- ===================================================================== -->





            ConnectionURL=jdbc:cloudscape:CloudscapeDB;create=true
            DriverClass=COM.cloudscape.core.JDBCDriver

            CloudscapeDB
            java:/TransactionManager
            <depends optional-attribute-name="ResourceAdapterName">jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter
            <depends optional-attribute-name="ConnectionManagerFactoryLoaderName">jboss.jca:service=ConnectionManagerFactoryLoader,name=MinervaSharedLocalCMFactory
            #
            #Wed Aug 15 16:17:29 EDT 2001
            BlockingTimeoutMillis=50000
            IdleTimeoutMinutes=30
            MaxSize=10
            CleanupIntervalMinutes=10
            MinSize=0
            MaxIdleTimeoutPercent=1.0


            org.jboss.resource.security.ManyToOnePrincipalMapping

            UserName=root
            Password=




            ----------------------------------------------------------

            JBOSS3alpha deployment errors -

            --------------------------------------------------------
            [17:25:26,733,ServiceCreator] About to create the beanjboss.jca:service=Connect
            onFactoryLoader,name=CloudscapeDB
            [17:25:26,748,ServiceCreator] Created the beanjboss.jca:service=ConnectionFacto
            yLoader,name=CloudscapeDB
            [17:25:26,748,ConnectionFactoryLoader] Starting
            [17:25:26,748,CloudscapeDB] Stopped
            javax.management.RuntimeOperationsException: Object name cannot be null
            at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.
            ava:1096)
            at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFa
            toryLoader.java:402)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:
            17)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            23)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceContro
            ler.java:775)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:479)
            at org.jboss.system.ServiceController.registerAndStartService(ServiceCo
            troller.java:273)
            at org.jboss.system.ServiceController.deploy(ServiceController.java:257

            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            23)
            at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732

            at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:
            68)
            at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215

            at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSuppor
            .java:107)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            23)
            at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
            at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
            at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509

            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:
            17)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            23)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceContro
            ler.java:775)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:479)
            at org.jboss.system.ServiceController.registerAndStartService(ServiceCo
            troller.java:273)
            at org.jboss.system.ServiceController.deploy(ServiceController.java:257

            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            23)
            at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732

            at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:
            68)
            at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215

            at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSuppor
            .java:107)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1
            23)
            at org.jboss.Main.(Main.java:199)
            at org.jboss.Main$1.run(Main.java:411)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.Main.main(Main.java:406)
            [17:25:26,764,Default] javax.management.RuntimeOperationsException: Object name
            cannot be null
            [17:25:26,764,Default] at com.sun.management.jmx.MBeanServerImpl.isRegistered(
            BeanServerImpl.java:1096)
            [17:25:26,764,Default] at org.jboss.resource.ConnectionFactoryLoader.startServ
            ce(ConnectionFactoryLoader.java:402)
            [17:25:26,764,Default] at org.jboss.system.ServiceMBeanSupport.start(ServiceMB
            anSupport.java:117)
            [17:25:26,764,Default] at java.lang.reflect.Method.invoke(Native Method)
            [17:25:26,764,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1628)
            [17:25:26,764,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1523)
            [17:25:26,764,Default] at org.jboss.system.ServiceController$ServiceProxy.invo
            e(ServiceController.java:775)
            [17:25:26,764,Default] at $Proxy0.start(Unknown Source)
            [17:25:26,780,Default] at org.jboss.system.ServiceController.start(ServiceCont
            oller.java:479)
            [17:25:26,780,Default] at org.jboss.system.ServiceController.registerAndStartS
            rvice(ServiceController.java:273)
            [17:25:26,780,Default] at org.jboss.system.ServiceController.deploy(ServiceCon
            roller.java:257)
            [17:25:26,780,Default] at java.lang.reflect.Method.invoke(Native Method)
            [17:25:26,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1628)
            [17:25:26,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1523)
            [17:25:26,780,Default] at org.jboss.deployment.ServiceDeployer.invoke(ServiceD
            ployer.java:732)
            [17:25:26,780,Default] at org.jboss.deployment.ServiceDeployer.addMBeans(Servi
            eDeployer.java:668)
            [17:25:26,780,Default] at org.jboss.deployment.ServiceDeployer.deploy(ServiceD
            ployer.java:215)
            [17:25:26,780,Default] at org.jboss.deployment.DeployerMBeanSupport.deploy(Dep
            oyerMBeanSupport.java:107)
            [17:25:26,780,Default] at java.lang.reflect.Method.invoke(Native Method)
            [17:25:26,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1628)
            [17:25:26,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1523)
            [17:25:26,780,Default] at org.jboss.deployment.AutoDeployer.deploy(AutoDeploye
            .java:654)
            [17:25:26,780,Default] at org.jboss.deployment.AutoDeployer.run(AutoDeployer.j
            va:327)
            [17:25:26,780,Default] at org.jboss.deployment.AutoDeployer.startService(AutoD
            ployer.java:509)
            [17:25:26,780,Default] at org.jboss.system.ServiceMBeanSupport.start(ServiceMB
            anSupport.java:117)
            [17:25:26,780,Default] at java.lang.reflect.Method.invoke(Native Method)
            [17:25:26,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1628)
            [17:25:26,780,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1523)
            [17:25:26,780,Default] at org.jboss.system.ServiceController$ServiceProxy.invo
            e(ServiceController.java:775)
            [17:25:26,780,Default] at $Proxy0.start(Unknown Source)
            [17:25:26,780,Default] at org.jboss.system.ServiceController.start(ServiceCont
            oller.java:479)
            [17:25:26,795,Default] at org.jboss.system.ServiceController.registerAndStartS
            rvice(ServiceController.java:273)
            [17:25:26,795,Default] at org.jboss.system.ServiceController.deploy(ServiceCon
            roller.java:257)
            [17:25:26,795,Default] at java.lang.reflect.Method.invoke(Native Method)
            [17:25:26,795,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1628)
            [17:25:26,795,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1523)
            [17:25:26,795,Default] at org.jboss.deployment.ServiceDeployer.invoke(ServiceD
            ployer.java:732)
            [17:25:26,795,Default] at org.jboss.deployment.ServiceDeployer.addMBeans(Servi
            eDeployer.java:668)
            [17:25:26,795,Default] at org.jboss.deployment.ServiceDeployer.deploy(ServiceD
            ployer.java:215)
            [17:25:26,795,Default] at org.jboss.deployment.DeployerMBeanSupport.deploy(Dep
            oyerMBeanSupport.java:107)
            [17:25:26,795,Default] at java.lang.reflect.Method.invoke(Native Method)
            [17:25:26,795,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1628)
            [17:25:26,795,Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanS
            rverImpl.java:1523)
            [17:25:26,795,Default] at org.jboss.Main.(Main.java:199)
            [17:25:26,795,Default] at org.jboss.Main$1.run(Main.java:411)
            [17:25:26,795,Default] at java.security.AccessController.doPrivileged(Native M
            thod)
            [17:25:26,795,Default] at org.jboss.Main.main(Main.java:406)
            [17:25:26,795,ServiceController] javax.management.RuntimeOperationsException: O
            ject name cannot be null
            [17:25:26,795,AutoDeployer] Started
            [17:25:26,795,Default] JBoss 3.0.0alpha(200111202304) [RABBIT-HOLE] Started in
            m:5s:109ms
            [17:25:29,795,AutoDeployer] Auto-deploying file:/C:/jboss-3.0.0alpha/deploy/lib
            jms-ra.rar
            [17:25:42,045,AutoDeployer] Auto-deploying file:/C:/jboss-3.0.0alpha/deploy/lib
            jboss-xa.rar
            [17:25:42,045,AutoDeployer] Auto-deploying file:/C:/jboss-3.0.0alpha/deploy/lib
            jboss-jdbc.rar
            [17:25:42,045,AutoDeployer] Auto-deploying file:/C:/jboss-3.0.0alpha/deploy/jmx
            ejb-adaptor.jar
            [17:25:42,061,AutoDeployer] Auto-deploying file:/C:/jboss-3.0.0alpha/deploy/ejb
            management.jar
            [17:25:42,061,AutoDeployer] Auto deploy of file:/C:/jboss-3.0.0alpha/deploy/lib
            jms-ra.rar
            [17:25:42,061,RARDeployer] Attempting to deploy RAR at 'file:/C:/jboss-3.0.0alp
            a/deploy/lib/jms-ra.rar'
            [17:25:42,233,Default] Libraries adding URLClassLoader -1544415803 key URL file
            /C:/jboss-3.0.0alpha/deploy/lib/jms-ra.rar
            [17:25:42,248,ServiceController] JCA:service=RARDeployment,name=JMS Adapter doe
            not implement any Service methods
            [17:25:42,248,ConnectionFactoryLoader] Starting
            [17:25:42,280,JmsXA] Not setting config property 'Password'
            [17:25:42,280,JmsXA] Not setting config property 'UserName'
            [17:25:42,280,JmsXA] Using default value 'java:DefaultJMSProvider' for config

            -----------------------------------------------------------





            • 3. Re: Cloudscape / Connection refused
              davidjencks

              I need to buy some larger type for the online manual or stop answering the same question over and over.

              in jboss 3 alpha, the depends optional-attribute-name= tags have to be mbean-ref name=
              and the referenced object names have to start JCA not jboss.jca.

              If you change to jboss beta or cvs, you won't have to change your cloudscape config file.

              • 4. Re: Cloudscape / Connection refused
                deaconpham

                xanders

                I think I may know the cause of the problem. I encountered this same issue when trying to deploy the sun petstore application.

                Jboss uses port 1099 for its jndi, which is the same port cloudscape uses. You must run cloudscape on a different port. The documentation for this is at http://jboss.org/online-manual/HTML/ch14s02.html.

                I ran cloudscape on port 1098 and was able to connect to it when starting jboss. I ran cloudscape with this command:
                java RmiJdbc.RJJdbcServer -sm -port 1098 COM.cloudscape.core.RmiJdbcDriver


                Hope this helps,
                Deacon