java.lang.NoClassDefFoundError

tip

Check if the version of resteasy is using is the same JBoss is using. To find it out, search for resteasy-jaxrs* in JBoss/Wildfly directory and at your pom.xml.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Deploying CXF client on JBoss AS 7
    via Stack Overflow by ewanc
    ,
  • Run As is totally broken
    via GitHub by gavinking
    ,
    • java.lang.NoClassDefFoundError: oracle/adf/share/logging/ADFLogger at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:279)[jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:132)[jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:111)[jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)[jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:222)[jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:361)[jsf-impl-2.1.7-jbossorg-2.jar:] at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)[jsf-impl-2.1.7-jbossorg-2.jar:] at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)[jbossweb-7.0.13.Final.jar:] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)[jbossweb-7.0.13.Final.jar:] at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)[jboss-as-web-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[rt.jar:1.7.0_04] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[rt.jar:1.7.0_04] at java.lang.Thread.run(Thread.java:722)[rt.jar:1.7.0_04] Caused by: java.lang.NoClassDefFoundError: oracle/adf/share/logging/ADFLogger at oracle.adfinternal.controller.util.LogUtils.<clinit>(LogUtils.java:40)[adf-controller-rt-common.jar:] at oracle.adfinternal.controller.lifecycle.LifecycleImpl.<clinit>(LifecycleImpl.java:38)[adf-controller.jar:] at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.<init>(ADFLifecyclePhaseListener.java:26)[adf-controller.jar:] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[rt.jar:1.7.0_04] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[rt.jar:1.7.0_04] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[rt.jar:1.7.0_04] at java.lang.reflect.Constructor.newInstance(Constructor.java:525)[rt.jar:1.7.0_04] at java.lang.Class.newInstance0(Class.java:372)[rt.jar:1.7.0_04] at java.lang.Class.newInstance(Class.java:325)[rt.jar:1.7.0_04] at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:268)[jsf-impl-2.1.7-jbossorg-2.jar:] ... 14 more Caused by: java.lang.ClassNotFoundException: oracle.adf.share.logging.ADFLogger from [Module "deployment.ola_ViewController_webapp.war:main" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) ... 24 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    81 more bugmates