4 Replies Latest reply on Apr 17, 2002 8:21 PM by scoy

    CMP2.0 on Jboss 3.0 beta, deploy problems

    bpeeters

      I want to deploy an ear file (CMP2.0), but I've got an exception.
      And it works fine with j2ee RI from sun.
      This is the exception:

      12:36:22,296 INFO [EJBDeployer] Deploying PolicyLocalBean
      12:36:23,255 INFO [EJBDeployer] Deploying PolicyPillarBean
      12:36:23,585 ERROR [EntityContainer] Exception in service lifecyle operation: create
      org.jboss.deployment.DeploymentException: Could not find matching method for public abstract
      com.acunia.ots.ejb.entity.policy.PolicyLocal com.acunia.ots.ejb.entity.policy.PolicyLocalHome.createPolicy(java.lang.String,java.lang.String) throws javax.ejb.CreateException
      at org.jboss.ejb.EntityContainer.setupHomeMappingImpl(EntityContainer.java:783)
      at org.jboss.ejb.EntityContainer.setupHomeMapping(EntityContainer.java:801)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:314)
      at org.jboss.ejb.Container.invoke(Container.java:745)


      I put my ear file and my sources.
      Can anyone help me??

      Bart

        • 1. Re: CMP2.0 on Jboss 3.0 beta, deploy problems
          jacktr

          first of all you have to deploy a jar file.
          the jar file must contain an META-INF directory with an
          ejb-jar.xml, an jboss.xml and when using cmp beans an jbosscmp-jdbc.xml.
          take a look at: http://www.jboss.org/online-manual/HTML/index.html
          hope this helps

          • 2. Re: CMP2.0 on Jboss 3.0 beta, deploy problems
            scoy

            Your ear file deploys OK on jboss-3.0.0RC1:

            21:49:03,011 INFO [MainDeployer] Starting deployment of package: file:/Users/steve/EnterpriseJava/jboss-all/build/output/jboss-3.0.0RC1/server/default/deploy/test-policy.ear
            21:49:03,018 INFO [EARDeployer] Init J2EE application: file:/Users/steve/EnterpriseJava/jboss-all/build/output/jboss-3.0.0RC1/server/default/deploy/test-policy.ear
            21:49:03,499 INFO [EjbModule] Creating
            21:49:03,589 INFO [EjbModule] Deploying PolicyLocalBean
            21:49:04,064 INFO [EjbModule] Deploying PolicyPillarBean
            21:49:08,182 INFO [EjbModule] Created
            21:49:08,185 INFO [EjbModule] Starting
            21:49:08,453 INFO [PolicyLocalBean] Created table 'POLICYLOCALBEAN' successfully.
            21:49:08,485 INFO [EjbModule] Started
            21:49:08,487 INFO [MainDeployer] Successfully completed deployment of package: file:/Users/steve/EnterpriseJava/jboss-all/build/output/jboss-3.0.0RC1/server/default/deploy/test-policy.ear

            • 3. Re: CMP2.0 on Jboss 3.0 beta, deploy problems
              bpeeters

              Thanks, I will try to deploy it on the alpha version.
              But normally it should work on the beta version. Not ?

              Bart

              • 4. Re: CMP2.0 on Jboss 3.0 beta, deploy problems
                scoy

                Qué?

                RC1 is the download currently available from sourceforge. This is "release candidate 1" - it's more recent than the beta. You definitely don't want to go back to the alpha.