java.lang.NoClassDefFoundError

tip

org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar

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

  • Did not find class available in classpath
    via by Unknown author,
  • Mocking static initialisers
    via by GeoffH,
  • Raible Designs | Java
    via by Unknown author,
  • [Wiki] Cleanup of QuestionsAndAnswers page
    via by Alexander Klimetschek,
  • The war does not deploy on Oracle application server (oc4j) 10.1.3 ArtifactoryContextConfigurer.contextInitialized throws a null pointer 09/03/04 16:37:12 SEVERE: ProgressObjectImpl.reportError nulloracle.oc4j.admin.jmx.shared.exceptions.InternalException at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107) at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:131) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at ch.qos.logback.classic.spi.PackagingDataCalculator.bestEffortLoadClass(PackagingDataCalculator.java:264) at ch.qos.logback.classic.spi.PackagingDataCalculator.computeBySTEP(PackagingDataCalculator.java:166) at ch.qos.logback.classic.spi.PackagingDataCalculator.populateUncommonFrames(PackagingDataCalculator.java:141) at ch.qos.logback.classic.spi.PackagingDataCalculator.populateFrames(PackagingDataCalculator.java:101) at ch.qos.logback.classic.spi.PackagingDataCalculator.calculate(PackagingDataCalculator.java:61) at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:50) at ch.qos.logback.classic.pattern.ExtendedThrowableProxyConverter.prepareLoggingEvent(ExtendedThrowableProxyConverter.java:35) at ch.qos.logback.classic.pattern.ThrowableProxyConverter.convert(ThrowableProxyConverter.java:141) at ch.qos.logback.classic.pattern.ThrowableProxyConverter.convert(ThrowableProxyConverter.java:30) at ch.qos.logback.core.pattern.FormattingConverter.write(FormattingConverter.java:32) at ch.qos.logback.core.pattern.PatternLayoutBase.writeLoopOnConverters(PatternLayoutBase.java:114) at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:129) at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:49) at ch.qos.logback.core.WriterAppender.subAppend(WriterAppender.java:282) at ch.qos.logback.core.WriterAppender.append(WriterAppender.java:122) at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:82) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:297) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:284) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:503) at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:495) at ch.qos.logback.classic.Logger.error(Logger.java:561) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:84) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1130) at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738) at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414) at com.evermind.server.Application.getHttpApplication(Application.java:545) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909) at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606) at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238) at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99) at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93) ... 4 more 09/03/04 16:37:12 WARNING: DeployerRunnable.run NoClassDefFoundErrororacle.oc4j.admin.internal.DeployerException: NoClassDefFoundError at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:134) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:613) Caused by: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at ch.qos.logback.classic.spi.PackagingDataCalculator.bestEffortLoadClass(PackagingDataCalculator.java:264) at ch.qos.logback.classic.spi.PackagingDataCalculator.computeBySTEP(PackagingDataCalculator.java:166) at ch.qos.logback.classic.spi.PackagingDataCalculator.populateUncommonFrames(PackagingDataCalculator.java:141) at ch.qos.logback.classic.spi.PackagingDataCalculator.populateFrames(PackagingDataCalculator.java:101) at ch.qos.logback.classic.spi.PackagingDataCalculator.calculate(PackagingDataCalculator.java:61) at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:50) at ch.qos.logback.classic.pattern.ExtendedThrowableProxyConverter.prepareLoggingEvent(ExtendedThrowableProxyConverter.java:35) at ch.qos.logback.classic.pattern.ThrowableProxyConverter.convert(ThrowableProxyConverter.java:141) at ch.qos.logback.classic.pattern.ThrowableProxyConverter.convert(ThrowableProxyConverter.java:30) at ch.qos.logback.core.pattern.FormattingConverter.write(FormattingConverter.java:32) at ch.qos.logback.core.pattern.PatternLayoutBase.writeLoopOnConverters(PatternLayoutBase.java:114) at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:129) at ch.qos.logback.classic.PatternLayout.doLayout(PatternLayout.java:49) at ch.qos.logback.core.WriterAppender.subAppend(WriterAppender.java:282) at ch.qos.logback.core.WriterAppender.append(WriterAppender.java:122) at ch.qos.logback.core.AppenderBase.doAppend(AppenderBase.java:82) at ch.qos.logback.core.spi.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57) at ch.qos.logback.classic.Logger.appendLoopOnAppenders(Logger.java:297) at ch.qos.logback.classic.Logger.callAppenders(Logger.java:284) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:503) at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:495) at ch.qos.logback.classic.Logger.error(Logger.java:561) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:84) at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1130) at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:738) at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:414) at com.evermind.server.Application.getHttpApplication(Application.java:545) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1990) at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1909) at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1606) at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:238) at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:99) at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:547) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:202) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    via by muz,
  • Migration from 8.1 to 10
    via by 666705,
    • java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.xindice.core.query.QueryEngine$1.process(QueryEngine.java:73) at org.apache.xindice.util.Configuration.processChildren(Configuration.java:679) at org.apache.xindice.core.query.QueryEngine.setConfig(QueryEngine.java:69) at org.apache.xindice.core.Database.setConfig(Database.java:268) at org.apache.xindice.core.Database.getDatabase(Database.java:89) at org.apache.xindice.server.XindiceServlet.init(XindiceServlet.java:166) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:118) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1093) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:756) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:177) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933) at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221) at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    pulse00pulse00
    6 times, last one,
    guizmaiiguizmaii
    2 times, last one,
    andyglickandyglick
    1 times, last one,
    serious2monkeysserious2monkeys
    60 times, last one,
    66 more bugmates