5 Replies Latest reply on Mar 22, 2002 6:06 PM by roysun

    How to specify Postgre db on Jboss3

    roysun Newbie

      How to specify Postgre db on JBoss3? Can I use postgre-service.xml? If yes, where should I put it?

      Roy

        • 1. Re: How to specify Postgre db on Jboss3
          David Jencks Master

          yes, in the deploy directory.

          • 2. Re: How to specify Postgre db on Jboss3
            roysun Newbie

            Do I have to deploy resource adapter for Postgre DB, or .rar ?

            Roy

            • 3. Re: How to specify Postgre db on Jboss3
              roysun Newbie

              basically, I am going to spacify a postgre db for entity bean using. I modified and copied postgres-service.xml to .../deploy. When I start jboss I got the following exception says "javax.management.RuntimeOperationsException: Object name cannot be null". But I can see the mbean deployed on 8082 view as

              jboss.jca
              service=ConnectionFactoryLoader,name=IqosPostgresDS
              Thanks

              Roy
              ============================================================================================

              [11:33:39,556,AutoDeployer] Auto deploy of file:/C:/work/java/jboss-all/build/output/jboss-3.0.0alpha/deploy/postgres-service.xml
              [11:33:39,616,Default] About to create the beanjboss.jca:service=ConnectionFactoryLoader,name=IqosPostgresDS
              [11:33:39,616,Default] Created the beanjboss.jca:service=ConnectionFactoryLoader,name=IqosPostgresDS
              [11:33:39,817,ConnectionFactoryLoader] Starting
              [11:33:39,817,IqosPostgresDS] Stopped
              javax.management.RuntimeOperationsException: Object name cannot be null
              at com.sun.management.jmx.MBeanServerImpl.isRegistered(MBeanServerImpl.java:1096)
              at org.jboss.resource.ConnectionFactoryLoader.startService(ConnectionFactoryLoader.java:402)
              at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:774)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:478)
              at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:272)
              at org.jboss.system.ServiceController.deploy(ServiceController.java:256)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:768)
              at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:704)
              at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:209)
              at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport.java:122)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:633)
              at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:308)
              at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:489)
              at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:117)
              at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:774)
              at $Proxy0.start(Unknown Source)
              at org.jboss.system.ServiceController.start(ServiceController.java:478)
              at org.jboss.system.ServiceController.registerAndStartService(ServiceController.java:272)
              at org.jboss.system.ServiceController.deploy(ServiceController.java:256)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:768)
              at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:704)
              at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:209)
              at org.jboss.deployment.ServiceDeployer.postRegister(ServiceDeployer.java:623)
              at com.sun.management.jmx.MBeanServerImpl.postRegisterInvoker(MBeanServerImpl.java:2274)
              at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:532)
              at org.jboss.Main.(Main.java:194)
              at org.jboss.Main$1.run(Main.java:404)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.Main.main(Main.java:399)

              • 4. Re: How to specify Postgre db on Jboss3
                David Jencks Master

                get the right version of the postgres-service.xml for your jboss 3 version. Read the cvs notes, check the object name references to make sure they are exactly the same as the object names used (e.g. jboss.jca:... vs JCA:...)

                • 5. Re: How to specify Postgre db on Jboss3
                  roysun Newbie

                  Yes. JAC. Thanks.
                  Roy