3 Replies Latest reply on Feb 25, 2002 4:23 AM by Carfield Yim

    How to setup JDBC datasource? Problem from setting up J2ME

    Carfield Yim Newbie

      Hi, I am now try to setup J2ME smarticket demo with JBoss, but haven't a lot of problems. The first is, I don't know how to setup a database.

      I have bought the manual, and check the website http://jboss.org/online-manual/HTML/ch03.html, still can set it up.

      I have modify this:
      http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/jboss/manual/src/examples/resources/jca/postgres-service.xml?rev=1.2&content-type=text/plain
      and include them in jboss.jcml. But I get the following error:

      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:420)
      at
      org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at java.lang.reflect.Method.invoke(Native Method)
      at
      com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at
      com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at
      org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
      at java.lang.reflect.Method.invoke(Native Method)
      at
      com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at
      com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.Main.(Main.java:208)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)

      However, there is a name call jboss.jca:service=ConnectionFactoryLoader,name=FooPostgresDS, why I still get error?