1 Reply Latest reply on Feb 1, 2017 12:52 AM by Panagiotis Chavariotis

    JBOSS 6.4 deployment fails

    ghanshyam goliwadekar Newbie

      Error log:

       

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."sterling-ops.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."sterling-ops.ear".WeldStartService: Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1936) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_92]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_92]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_92]

      Caused by: org.jboss.weld.exceptions.WeldException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:283)

        at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:237)

        at org.jboss.weld.bean.builtin.ee.AbstractEEBean.<init>(AbstractEEBean.java:43)

        at org.jboss.weld.bean.builtin.ee.UserTransactionBean.<init>(UserTransactionBean.java:52)

        at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:190)

        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349)

        at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:64)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]

        ... 3 more

      Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:99)

        at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:386)

        at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:276)

        ... 11 more

      Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/ProxyObject

        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_92]

        at java.lang.ClassLoader.defineClass(ClassLoader.java:763) [rt.jar:1.8.0_92]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_92]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_92]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_92]

        at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_92]

        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:118)

        at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:95)

        ... 13 more

      Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.ProxyObject from [Module "deployment.sterling-ops.ear:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.7.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.7.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.7.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.7.Final-redhat-1]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.7.Final-redhat-1]

        ... 21 more

        • 1. Re: JBOSS 6.4 deployment fails
          Panagiotis Chavariotis Novice

          For your info, org.javassist is shipped as a private module because it is not part of the Java EE standard.

          As a result, it should not be used directly by application code.

          However, try to add an explicit application dependency on org.javassist in jboss-deployment-structure.xml, like the following:

          <jboss-deployment-structure ...>

                  <deployment>

                          <dependencies>

                                  ...

                                  <module name="org.javassist"/>

                          </dependencies>

                  </deployment>

          </jboss-deployment-structure>

          1 of 1 people found this helpful