3 Replies Latest reply on Jul 30, 2002 8:58 AM by sayers

    Oracle JBoss 2.4.7 / Jetty-4.0.4

    sayers

      I am attempting to setup a jdbc connection with our oracle database. It appears that the driver is loaded, and bound, but when I attempt to access the application I receive the following error:

      [INFO,STDOUT] Error when initializing Connection to CMS: javax.naming.NameNotFoundException: jdbc not bound
      [INFO,STDERR] java.rmi.ServerException: Transaction rolled back; nested exception is:
      java.lang.NullPointerException
      [INFO,STDERR] java.lang.NullPointerException
      [INFO,STDERR] <<no stack trace available>>
      [INFO,STDERR]

      Please help.

      Thank you,

      Shawn.

        • 1. Re: Oracle JBoss 2.4.7 / Jetty-4.0.4
          jsjsjothi

          Hi,
          U bind the DataSource in the ejb-jar.xml with the xml element
          <env-entry>
          <env-entry-name>DataSource</env-entry-name>
          <env-entry-type>java.lang.String</env-entry-type>
          <env-entry-value>java:/OracleDB</env-entry-value>
          </env-entry>



          • 2. Re: Oracle JBoss 2.4.7 / Jetty-4.0.4
            jsjsjothi

            Hi,
            U bind the DataSource in the ejb-jar.xml with the xml element
            <env-entry>
            <env-entry-name>DataSource</env-entry-name>
            <env-entry-type>java.lang.String</env-entry-type>
            <env-entry-value>java:/OracleDB</env-entry-value>
            </env-entry>

            all the best,

            • 3. Re: Oracle JBoss 2.4.7 / Jetty-4.0.4
              sayers

              Each time I attempt to add the xml element to the ejb-xml.jar I receive the following error:

              [INFO,J2eeDeployer] Deploy J2EE application: file:/C:/JBoss_BeFree/jboss/deploy/cms_ejb.jar
              [ERROR,AutoDeployer] DeploymentInfo failed:file:/C:/JBoss_BeFree/jboss/deploy/cms_ejb.jar
              org.jboss.deployment.J2eeDeploymentException: no deployment descriptor (META-INF/ejb-jar.xml, WEB-INF/web.xml, META-INF/applicati
              at org.jboss.deployment.LegacyInstaller.determineType(LegacyInstaller.java:383)

              What am I doing wrong?

              Thank you.

              Shawn.