3 Replies Latest reply on May 21, 2017 10:04 PM by Kumar pasu

    Jboss 4.0.3 RC1 with JDK 1.8

    Kumar pasu Newbie

      Hi,

       

      Getting the following error when deploying ear which has jar,ear's in it.

       

      14:25:52,185 INFO  [EARDeployer] Init J2EE application: file:/C:/dev/servers/jboss-4.0.3RC1/server/default/tmp/deploy/tmp872058806265277578Temp.ear-contents/Temp.sar-contents/TempSOAAPI.ear

      14:25:52,810 WARN  [EJBDeployer] Verify failed; continuing

      java.lang.NoClassDefFoundError: one/two/AddServReqNote

              at java.lang.Class.getDeclaredMethods0(Native Method)

              at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)

              at java.lang.Class.privateGetPublicMethods(Class.java:2902)

              at java.lang.Class.getMethods(Class.java:1615)

              at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:664)

              at org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifier20.java:834)

              at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:64)

              at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:166)

              at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:548)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)

              at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)

              at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)

              at com.sun.proxy.$Proxy24.create(Unknown Source)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:919)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:909)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:909)

              at org.jboss.deployment.MainDeployer.create(MainDeployer.java:909)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:773)

              at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)

              at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

              at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)

      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.

              at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:564)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)

       

      Please let me know if you need any details to get this addressed please.

        • 1. Re: Jboss 4.0.3 RC1 with JDK 1.8
          Kumar pasu Newbie

          java.lang.NoClassDefFoundError: one/two/AddServReqNote

           

          Here is the directory structure:

           

          one.ear

              - two.sar

                   - three.ear

                         - four.jar (Initializing of this jar is getting that NoClassDefFoundError) . However, jar containing this class is exist in two.sar i.e., parent.

           

          • 2. Re: Jboss 4.0.3 RC1 with JDK 1.8
            Tomaz Cerar Master

            First version of jboss that works on JDK8 it JBoss 8 aka WildFly 8 or newer.

            • 3. Re: Jboss 4.0.3 RC1 with JDK 1.8
              Kumar pasu Newbie

              Hi Tomaz,

               

              Many Thanks for your response please.

               

              For some scenario, I could able to deploy some other application which was built on jdk 1.8 on Jboss 4.0.3 RC1 server and I think, as per my understanding, above error is irrespective of jdk version as error says specific class is not exist though specific class is present in jar as part of ear. 

               

              Am I missing something here?

               

              Please let me know if you need any further details to able to surpass this error please.