2 Replies Latest reply on Nov 19, 2003 8:19 AM by _rho

    ear versions deployment problem

    _rho Newbie

      My ear file contains only bean .jar-s and no war or sar.

      For one customer i have define specific jndi,datasoruce names.
      For second customer i am using the same ear, but with different jndi and datasource names defined in descriptors.

      All works fine until both ear deployment descriptors versions refer to the same versions of beans.

      If later i update ear number one with newer versions of beans (adding new functionality which requires changes in descriptors), it's not possible to deploy second (unchanged ) ear anymore.

      Seems like bean class has global scope and it's not possible to have several running versions of the same bean ?

      deployment error is :

      2003-11-12 19:46:53,662 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2003-11-12 19:46:53,664 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2003-11-12 19:46:53,665 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2003-11-12 19:46:53,658 ERROR [org.jboss.deployment.MainDeployer] could not create deployment: file:/var/shared/jboss-3.2.0/server/magma/tmp/deploy/server/mag
      ma/deploy/sk.iway.blogic.pfizer.ear/25.sk.iway.blogic.pfizer.ear-contents/y.sk.iway.blogic.tasks.asm.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:501)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:280)
      2003-11-12 19:46:53,567 DEBUG [org.jboss.ejb.EJBDeployer] Verifying file:/var/shared/jboss-3.2.0/server/magma/tmp/deploy/server/magma/deploy/sk.iway.blogic.pf
      izer.ear/25.sk.iway.blogic.pfizer.ear-contents/y.sk.iway.blogic.tasks.asm.jar
      2003-11-12 19:46:53,614 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : Tasks
      Method : public abstract Collection findRootTasksForUser(Integer, Integer, Integer) throws FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.

      2003-11-12 19:46:53,615 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : Tasks
      Method : public abstract Collection findTasksTodoForUser(Integer, Integer, Integer) throws FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.

      2003-11-12 19:46:53,616 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : Tasks
      Method : public abstract Collection findChildTasks(Integer, Integer, Integer) throws FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.

      2003-11-12 19:46:53,619 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : Tasks
      Method : public abstract Collection findSubTasksChecked(Integer, Integer, Integer) throws FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.

      2003-11-12 19:46:53,619 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation:
      Bean : Tasks
      Method : public abstract Collection findTasksSupervisedByUser(Integer) throws FinderException
      Section: 10.5.6
      Warning: Every finder method except findByPrimaryKey(key) must be associated with a query element in the deployment descriptor.