5 Replies Latest reply on Jan 24, 2003 6:48 AM by ebreddy

    CMP2.0 bean deployment failure

    ebreddy

      Hi,

      While i am deploying a CMP2.0 bean, it's not deploying successfully. JBoss throwing the following error.

      I am using Server V3.0.4 and Oracle9i

      -----------------------------------------
      05:12:15,849 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
      -3.0.4_tomcat-4.1.12/server/default/deploy/Employee1.jar
      05:12:16,450 INFO [EjbModule] Creating
      05:12:16,480 INFO [EjbModule] Deploying EmployeeEJB
      05:12:16,930 INFO [EjbModule] Created
      05:12:16,930 INFO [EjbModule] Starting
      05:12:17,892 WARN [ServiceController] Problem starting service jboss.j2ee:jndiN
      ame=EmployeeCMP,service=EJB
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/O
      racleDS; - nested throwable: (javax.naming.NameNotFoundException: OracleDS not b
      ound)

      At the end its throwing following exception.

      -----------------------------------------
      05:12:00,787 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:name=JaasSecurityManager
      jboss.jca:service=RARDeployer
      -----------------------------------------------------
      <jbosscmp-jdbc>


      java:/OracleDS
      <datasource-mapping>Oracle8</datasource-mapping>
      <create-table>false</create-table>
      <remove-table>false</remove-table>


      <enterprise-beans>

      <ejb-name>EmployeeEJB</ejb-name>
      <table-name>Emp</table-name>
      <cmp-field>
      <field-name>empNo</field-name>
      <column-name>EMPNO</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>eName</field-name>
      <column-name>ENAME</column-name>
      </cmp-field>
      <cmp-field>
      <field-name>deptNo</field-name>
      <column-name>DEPTNO</column-name>
      </cmp-field>

      </enterprise-beans>

      </jbosscmp-jdbc>




      I attached my oracle-service.xml and jbosscmp-jdbc.xml files.

      Hoping somebody working on cmp beans will solve my problem.

      Thanks,

        • 1. Re: CMP2.0 bean deployment failure

          jboss.security:service=JaasSecurityManager

          Regards,
          Adrian

          • 2. Re: CMP2.0 bean deployment failure
            ebreddy

            Hi Adrian,

            Can you brief the reply, beacuse i am not able to locate the parametere "jboss.security:service" in oracle-service.xml.

            You may be right, while invoking this file itself the JBoss server is throwing error, copied below
            ----------------------

            07:16:16,568 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
            -3.0.4_tomcat-4.1.12/server/default/deploy/oracle-service.xml
            07:16:16,668 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=OracleDS
            does not implement any Service methods
            07:16:16,668 INFO [JBossManagedConnectionPool] Creating
            07:16:16,668 INFO [JBossManagedConnectionPool] Created
            07:16:16,678 INFO [JBossManagedConnectionPool] Starting
            07:16:16,678 INFO [JBossManagedConnectionPool] Started

            ---------------------------------

            I am using Oracle9i database.

            In my jbosscmp-jdbc.xml file is like this:


            java:/OracleDS
            <datasource-mapping>Oracle9</datasource-mapping>
            <create-table>false</create-table>
            <remove-table>false</remove-table>



            Thanks,
            Regards,

            • 3. Re: CMP2.0 bean deployment failure

              You have jboss.security:name= which is incorrect.
              It should be jboss.security:service=

              Regards,
              Adrian

              • 4. Re: CMP2.0 bean deployment failure
                ebreddy

                Hi,

                I corrected the oracle-service.xml file, but still it's giving the same problem

                Below i am presting the problem clearly.
                ---------------------------------------------------------
                I-While Running the oracle-service.xml

                MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.4_tomcat-4.1.12/server/default/deploy/oracle-service.xml
                01:57:49,270 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=OracleDS does not implement any Service methods

                -----------------------------------------------------------
                While deploying the Jar: Employee1.jar

                01:58:08,137 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss
                -3.0.4_tomcat-4.1.12/server/default/deploy/Employee1.jar
                01:58:08,528 INFO [EjbModule] Creating
                01:58:08,648 INFO [EjbModule] Deploying EmployeeEJB
                01:58:09,089 INFO [EjbModule] Created
                01:58:09,089 INFO [EjbModule] Starting
                01:58:09,579 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=EmployeeCMP,service=EJB
                org.jboss.deployment.DeploymentException: Error: can't find data source: java:/OracleDS; - nested throwable: (javax.naming.NameNotFoundException: OracleDS not b
                ound)
                ----------------------------------------------------------
                At the end just nefore server starts complete

                Incompletely deployed packages:

                MBeans waiting for classes:

                MBeans waiting for other MBeans:
                [ObjectName: jboss.jca:service=LocalTxCM,name=OracleDS
                state: FAILED
                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: java.lang.IllegalArgumentException: The class 'class org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory' has no setter for conf
                ig property 'scott', ObjectName: jboss.j2ee:jndiName=EmployeeCMP,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)]
                ----------------------------------------------------------

                Thanks,
                Reddy

                • 5. Re: CMP2.0 bean deployment failure-Thanks working fine
                  ebreddy

                  Thanks Adrian. It's working fine.

                  Regards,
                  Reddy