8 Replies Latest reply on Feb 7, 2003 5:25 PM by rstack

    Oracle Datasource Problem again

    vmader

      Hi,

      when starting JBOSS with an oracle ds configured, I get following messages:

      09:20:45,385 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
      ration 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.jca:service=LocalTxCM,name=OracleDS
      state: CONFIGURED
      I Depend On: jboss.jca:service=LocalTxDS,name=OracleDS
      jboss.jca:service=LocalTxPool,name=OracleDS
      jboss.jca:service=CachedConnectionManager
      jboss.security:service=JaasSecurityManager
      jboss.jca:service=RARDeployer

      Depends On Me: , ObjectName: jboss.jca:service=LocalTxDS,name=OracleDS
      state: CONFIGURED
      I Depend On: jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC
      Wrapper

      Depends On Me: jboss.jca:service=LocalTxCM,name=OracleDS
      ]
      09:20:45,405 INFO [URLDeploymentScanner] Started
      09:20:45,405 INFO [MainDeployer] Deployed package: file:/C:/jboss-3.0.3_tomcat-
      4.1.12/server/jpbc/conf/jboss-service.xml


      my oracle-configuration is:

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- ===================================================================== -->
      <!-- -->
      <!-- JBoss Server Configuration -->
      <!-- -->
      <!-- ===================================================================== -->



      <!-- ==================================================================== -->
      <!-- ConnectionManager setup for Oracle dbs -->
      <!-- Build jmx-api (build/build.sh all) and view for config documentation -->
      <!-- Thanks to Steven Coy -->
      <!-- ==================================================================== -->




      <!-- Include a login module configuration named OracleDbRealm.
      Update your login-conf.xml, here is an example for a
      ConfiguredIdentityLoginModule:

      <application-policy name = "OracleDbRealm">

      <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
      <module-option name = "principal">yourprincipal</module-option>
      <module-option name = "userName">yourusername</module-option>
      <module-option name = "password">yourpassword</module-option>
      <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=OracleDS</module-option>
      </login-module>

      </application-policy>

      NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the
      module-option name = "managedConnectionFactoryName"
      must match the object name of the ConnectionManager you are configuring here.
      -->

      <!--uncomment out this line if you are using the OracleDbRealm above
      OracleDbRealm
      -->

      <depends optional-attribute-name="ManagedConnectionFactoryName">
      <!--embedded mbean-->


      jdbc/PBC_Live



      <config-property name="ConnectionURL" type="java.lang.String">jdbc:oracle:oci8:@pbcdev</config-property>
      <config-property name="DriverClass" type="java.lang.String">oracle.jdbc.driver.OracleDriver</config-property>
      <!--set these only if you want only default logins, not through JAAS -->
      <config-property name="UserName" type="java.lang.String">PBC_Live</config-property>
      <config-property name="Password" type="java.lang.String">PBC_Live</config-property>




      <!--Below here are advanced properties -->
      <!--hack-->
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper



      <depends optional-attribute-name="ManagedConnectionPool">
      <!--embedded mbean-->


      0
      50
      5000
      15
      <!--criteria indicates if Subject (from security domain) or app supplied
      parameters (such as from getConnection(user, pw)) are used to distinguish
      connections in the pool. Choices are
      ByContainerAndApplication (use both),
      ByContainer (use Subject),
      ByApplication (use app supplied params only),
      ByNothing (all connections are equivalent, usually if adapter supports
      reauthentication)-->
      ByContainer



      <depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

      java:/TransactionManager

      <!--make the rar deploy! hack till better deployment-->
      jboss.jca:service=RARDeployer






        • 1. Re: Oracle Datasource Problem again
          davidjencks

          Look through your server log for exceptions related to any of these mbeans, and check the jmx viewer to see if they are all present.

          • 2. Re: Oracle Datasource Problem again

            I am having the same problem. Please let me know if you figured it out.

            thanks,
            David

            • 3. Re: Oracle Datasource Problem again
              josephine

              JBoss team,

              Provide solution to solve the oracle datasource problem. I have recentaly purchased JBoss 3.0 and JBossCMP 3.0, none of them explains.

              Josephine

              • 4. Re: Oracle Datasource Problem again
                dirk.dinger


                Hi,

                I have the same problem. In my opinion there is a great lack of information in the official documentation.
                It is not practical enough. After the theoretical overview, there is a big jump to the sample configuration files. But if you copy those samples into your configuration, nothing works.
                It would be neccessary to explain the lifecycle of a datasource going throug a concrete example.

                Regards,
                Dirk

                • 5. Re: Oracle Datasource Problem again
                  prasanna_ramamoorthy

                  Hi

                  I am having the below problem.Can anybody give me the details of configuration of Datasource for Oracle in jboss?

                  regards
                  Prasanna
                  mailto:prasanna47@yahoo.com


                  • 6. Re: Oracle Datasource Problem again
                    prasanna_ramamoorthy

                    Hi

                    I am having the below problem.Can anybody give me the details of configuration of Datasource for Oracle in jboss?

                    regards
                    Prasanna
                    mailto:prasanna47@yahoo.com


                    • 7. Re: Oracle Datasource Problem again
                      mschoning

                      I once had problems with Oracle datasources. I was using JBoss 3.0.3 but I got it working and it kept working when I migrated to JBoss 3.0.4

                      So take a look at my example config, in that old thread and see if that can help you guys.
                      http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ luck, Michael

                      • 8. Re: Oracle Datasource Problem again
                        rstack

                        I also am having the problem. I am getting the following error message:

                        2003-02-07 15:51:49,702 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'Cause: Incomplete Deployment listing:Packages waiting for a deployer: Incompletely deployed packages: MBeans waiting for classes: MBeans waiting for other MBeans:[ObjectName: jboss.jca:service=LocalTxCM,name=OracleDS state: CONFIGURED
                        I Depend On: jboss.jca:service=LocalTxDS,name=OracleDS jboss.jca:service=LocalTxPool,name=OracleDS jboss.jca:service=CachedConnectionManager jboss.security:name=JaasSecurityManager jboss.jca:service=RARDeployer Depends On Me: , ObjectName: jboss.j2ee:jndiName=CustomerHomeRemote,service=EJB state: FAILED I Depend On: Depends On Me: org.jboss.deployment.DeploymentException: Error: can't find data source: java:/OracleDS; - nested throwable: (javax.naming.NameNotFoundException: OracleDS not bound)]

                        In look at the JBoss console, I see that -
                        "service=LocalTxCm, name=OracleDS
                        service=LocalDSCm, name=OracleDS
                        service=LocalPoolCm, name=OracleDS"

                        are set the same as for hsqldbDS (the default database)
                        but -

                        "J2EEtype=JCAManagedConnectionFactory,name=hsqldbDS=LocalTxDS
                        and "J2EEServer=Single,JCAResource=JCA,J2EEType=JCAConnectionFactory, name=hsqldbDS-LocalTxCm"

                        are not set for Oracle

                        Does this provide a clue to anyone what going wrong?

                        Richard