4 Replies Latest reply on Feb 11, 2003 5:13 AM by sbocquet

    Setting up an Informix Datasource

    sbocquet

      Hi,

      I'm just trying to set an Informix Datasource with JBoss v3.2.0.
      I have put an informix-service.xml file with the correct parameters in the deploy directory of the default conf.

      When I restart JBoss, it tries to deploy my CMP EJB (written with XDoclet), but I have this error.

      P.S. : It works perfectly with Hypersonic SQL (table creation and do on...).

      Could someone help to undestand what I have missed ?


      16:52:09,421 INFO [EJBDeployer] looking for nested deployments in : file:/C:/Program Files/JBoss/server/default/deploy/ejb-test.jar
      16:52:09,937 INFO [EjbModule] Creating
      16:52:10,000 INFO [EjbModule] Deploying enterprise/User
      16:52:10,140 INFO [EjbModule] Deploying enterprise/SequenceGenerator
      16:52:10,156 INFO [EjbModule] Deploying enterprise/UserSession
      16:52:10,187 INFO [StatelessSessionContainer] Creating
      16:52:10,203 INFO [StatelessSessionContainer] Created
      16:52:10,218 INFO [StatelessSessionContainer] Creating
      16:52:10,234 INFO [StatelessSessionContainer] Created
      16:52:10,250 INFO [EntityContainer] Creating
      16:52:10,562 ERROR [EntityContainer] Initialization failed
      org.jboss.deployment.DeploymentException: DefaultDS not bound
      ...
      16:52:11,296 WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=ejb/enterprise/User,service=EJB
      org.jboss.deployment.DeploymentException: DefaultDS not bound
      ...

        • 1. Re: Setting up an Informix Datasource
          lafr

          Did you use DefaultDS as name of informix-Datasource ?
          Definetly not.
          Did you perhaps use InformixDS from the example informix-service.xml ?
          If you choose something else than DefaultDS you have to tell XDcolet to use this.

          ->ejbdoclet
          ->jboss
          datasource="InformixDS" e.g.

          • 2. Re: Setting up an Informix Datasource
            sbocquet

            Did you use DefaultDS as name of informix-Datasource ?
            SB / Yes, I think. (see the attached file)

            Definetly not.
            SB / ???


            Did you perhaps use InformixDS from the example informix-service.xml ?
            SB / Yes, that was my starting point. But I know have tried the informix-ds.xml file.

            If you choose something else than DefaultDS you have to tell XDcolet to use this.
            SB / That was done, but I choose the DefaultDS option.

            ->ejbdoclet
            ->jboss
            datasource="InformixDS" e.g.

            • 3. Re: Setting up an Informix Datasource
              sbocquet

              OK...

              I have found my mistakes... It was just a configuration problem.
              I will now try with InformixXADS...

              Indeed, thanks a lot for the answer...

              • 4. Re: Setting up an Informix Datasource
                sbocquet

                Hi,

                Now it works with informix-ds.xml...
                But I've the same error with informix-xa-ds.xml

                [CONSOLE Log]
                11:08:40,671 ERROR [EntityContainer] Initialization failed
                org.jboss.deployment.DeploymentException: InformixXADS not bound

                Here are my conf files...

                [XDoclet .ant.properties conf file]
                type.mapping=InformixDB
                datasource.name=java:/InformixXADS

                [jaws.xml generated by XDoclet]

                java:/InformixXADS
                <type-mapping>InformixDB</type-mapping>

                [jbosscmp-jdbc.xml generated by XDoclet]
                <jbosscmp-jdbc>

                java:/InformixXADS
                <datasource-mapping>InformixDB</datasource-mapping>


                I've also configured the standardjaws.xml & the standardjbosscmp-jdbc.xml as well with the java:/InformixXADS parameter... but i don't think it comes from here, no?

                What do you think I've mist?