2 Replies Latest reply on Jul 1, 2005 12:42 AM by usrganesan

    JBoss 4.0.0 postgresql Datasource Configuration Problem

    usrganesan

      Hi
      iam unable configure the datasource in jboss4.0.0 ... while starting the server i am getting the follwing error ...

      16:50:29,437 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=ejb20-containerManaged-AccountHome,service=EJB
      org.jboss.deployment.DeploymentException: Failed to obtain type-mapping metadata from the metadata library MBean: jboss.jdbc:servi
      ce=metadata,datasource=postgres is not registered.; - nested throwable: (javax.management.InstanceNotFoundException: jboss.jdbc:se
      rvice=metadata,datasource=postgres is not registered.)

      Please guide me on that

      Regards
      Ganesan S

        • 1. Re: JBoss 4.0.0 postgresql Datasource Configuration Problem
          nusa

          Which *-ds.xml are you using ?

          • 2. Re: JBoss 4.0.0 postgresql Datasource Configuration Problem
            usrganesan

            i am using postgres-ds.xml
            i pasted copy of that

            <local-tx-datasource>
            <jndi-name>jdbc/ejb20-containerManaged-AccountHome</jndi-name>
            <connection-url>jdbc:postgresql://localhost:5432/POS</connection-url>
            <driver-class>org.postgresql.Driver</driver-class>
            <user-name>postgres</user-name>
            postgres
            <!-- sql to call when connection is created
            <new-connection-sql>some arbitrary sql</new-connection-sql>
            -->

            <!-- sql to call on an existing pooled connection when it is obtained from pool
            <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
            -->
            <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

            <type-mapping>PostgreSQL</type-mapping>

            </local-tx-datasource>