4 Replies Latest reply on Dec 15, 2008 4:38 AM by jaikiran pai

    ClassNotFoundException double while deploying EJB session be

    Tomaz Cerar Master

      Hi,

      We are trying to port an application that works on JBAS 4.2.3 with no problems. And we get this stacktrace:


      18:00:15,659 WARN [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@baf94e
      18:00:15,675 WARN [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@baf94e
      18:00:15,735 WARN [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@baf94e
      18:00:15,740 WARN [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@baf94e
      18:00:16,629 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/eloto.ear state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying eloto.jar: Unable to create annotation for method/field partialRollbackGamePayment for EJB GamePaymentProcessDelegateBean
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:203)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:104)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
       at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
       at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
       at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
       at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
       at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: Unable to create annotation for method/field partialRollbackGamePayment for EJB GamePaymentProcessDelegateBean
       at org.jboss.ejb3.Ejb3DescriptorHandler.addAnnotations(Ejb3DescriptorHandler.java:2214)
       at org.jboss.ejb3.Ejb3DescriptorHandler.addAnnotations(Ejb3DescriptorHandler.java:2227)
       at org.jboss.ejb3.Ejb3DescriptorHandler.addTransactionAnnotations(Ejb3DescriptorHandler.java:1176)
       at org.jboss.ejb3.Ejb3DescriptorHandler.addDescriptorAnnotations(Ejb3DescriptorHandler.java:915)
       at org.jboss.ejb3.Ejb3DescriptorHandler.getStatefulContainer(Ejb3DescriptorHandler.java:469)
       at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:209)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:668)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:628)
       at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:610)
       at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:573)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:488)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)
       ... 23 more
      Caused by: java.lang.ClassNotFoundException: double from BaseClassLoader@1c749fc{VFSClassLoaderPolicy@ca6d70{name=vfszip:/C:/development/tools/jboss-5.0.0.GA/server/default/deploy/eloto.ear domain=Cl



      method in question is:
      public void partialRollbackGamePayment(GamePaymentRecord rec, double rollbackSum);


      why he can't find double? it is a primitive? it should always be there ;-)