4 Replies Latest reply on Apr 5, 2011 5:14 PM by manish jain

    [EjbDeployer] Verify failed; continuing: java.lang.NoClassDefFoundError:

    manish jain Newbie

      I am trying to deploy my application to jboss-6.0.0.Final.

      The structure of our application is

      /server/.../deploy

      --A.WAR (exploded)

      --B.EAR (exploded)

      ----B1.WAR (not exploded)

      Below class ValidationException is avialble inside the B1.war file but for some reason it says NoClassDefFoundError.

       

      I didn't find any documentation help for class loading related configuration for jboss-6.

       

      Can anyone please help me out ?

       

       

       

       

      17:04:26,438 INFO  [ContextConfig] WARNING: Security role name username used in an <auth-constraint> without being defined in a <security-role>

      17:04:27,595 WARN  [EjbDeployer] Verify failed; continuing: java.lang.NoClassDefFoundError: com/generic/exceptions/ValidationException

              at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_24]

              at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_24]

              at java.lang.Class.privateGetPublicMethods(Class.java:2547) [:1.6.0_24]

              at java.lang.Class.getMethods(Class.java:1410) [:1.6.0_24]

              at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:686) [:6.0.0.Final]

              at org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifier20.java:848) [:6.0.0.Final]

              at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:78) [:6.0.0.Final]

              at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:183) [:6.0.0.Final]

              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:261) [:6.0.0.Final]

              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:74) [:6.0.0.Final]

              at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) [:2.2.0.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

              at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

              at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

              at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

      Caused by: java.lang.ClassNotFoundException: com.generic.exceptions.ValidationException from BaseClassLoader@124ab8f0{vfs:///jboss-6.0.0.Final/server/default/deploy/ans/ansHealthB2B.ear}

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:480) [jboss-classloader.jar:2.2.0.GA]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_24]

              ... 58 more

       

      17:04:27,635 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///jboss-6.0.0.Final/server/default/deploy/ans/ansHealthB2B.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.

              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:276) [:6.0.0.Final]

              at org.jboss.ejb.deployers.EjbDeployer.deploy(EjbDeployer.java:74) [:6.0.0.Final]

              at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) [:2.2.0.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

        • 1. [EjbDeployer] Verify failed; continuing: java.lang.NoClassDefFoundError:
          jaikiran pai Master

          B1.war will have a separate isolated classloader and classes within that war will not be accessible to classes in B.ear unless you configure it to be so. See http://community.jboss.org/wiki/useJBossWebClassLoaderinJBoss5 for details.

          • 2. [EjbDeployer] Verify failed; continuing: java.lang.NoClassDefFoundError:
            Ales Justin Master

            Also, the hiearchy lookup is .war can see .ear resources, but not the other way around.

            • 3. [EjbDeployer] Verify failed; continuing: java.lang.NoClassDefFoundError:
              Nicklas Karlsson Master

              As deployment archive/jar visibility can quite a nasty beast, it would be nice to have (for AS7 if not else) a matrix of all combinations with + (can see) and - (can't see) and then one of these matrixes for each configuration option (how they're affected).

               

              Another nice feature would be an web app where you could upload any ear and war and it would output all relevant EE-configuration (structure + xml file contents). The you could just ask users to pass their app through it and post on the forum ;-)

              • 4. [EjbDeployer] Verify failed; continuing: java.lang.NoClassDefFoundError:
                manish jain Newbie

                Thanks a lot...

                After commenting out 'WarClassLoaderDeployer' bean from inside /jboss-6.0.0.Final/server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml ejbs get deployed properly.

                 

                But when try to execute and one of the ejb bean method I get this....

                 

                java.io.NotSerializableException: sun.awt.image.ToolkitImage

                 

                [java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)

                java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

                 

                java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

                java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

                 

                java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

                java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

                java.util.ArrayList.writeObject(ArrayList.java:570)

                sun.reflect.GeneratedMethodAccessor359.invoke(Unknown Source)

                sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                java.lang.reflect.Method.invoke(Method.java:597)

                java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)

                java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1469)

                java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

                java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

                java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1518)

                java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1483)

                java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1400)

                java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1158)

                java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)

                org.jboss.invocation.MarshalledValue.<init>(MarshalledValue.java:70)

                org.jboss.invocation.MarshalledValueEX.<init>(MarshalledValueEX.java:46)

                org.jboss.invocation.unified.interfaces.JavaSerializationManager.createdMarshalledValue(JavaSerializationManager.java:100)

                org.jboss.invocation.InvokerInterceptor.createMarshalledValueForCallByValue(InvokerInterceptor.java:279)

                org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:296)

                org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61)

                org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

                org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

                org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

                org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)

                org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

                $Proxy568.executeReportRequest(Unknown Source

                 

                I have set callByValue to true for EJB2xDeployer.If I set it to false I get .

                javax.ejb.EJBException: Invalid invocation, check your deployment packaging

                 

                 

                Not sure which is the right approach and why it is throwing 'java.io.NotSerializableException:'

                 

                Do you think this could be related to class loader ?. Any pointers please ?

                 

                 

                jboss-6 and Java 1.6

                 

                Once again thanks a lot for your time.