java.lang.NoClassDefFoundError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
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 com.bea.netuix.nf.factories.TagClassMap$NamespaceTagnameMap.getClass(TagClassMap.java:149) at com.bea.netuix.nf.factories.TagClassMap.getClass(TagClassMap.java:75) at com.bea.netuix.nf.factories.ControlTreeFactoryBuilder$ReflectionStreamReader.startElement(ControlTreeFactoryBuilder.java:352) at weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:460) at weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:222) at weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:875) at weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:592) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1478) at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:330) at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:526) at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:582) at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:153) at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1176) at com.bea.netuix.servlets.services.WeblogicXmlServices.doSaxParse(WeblogicXmlServices.java:87) at com.bea.netuix.nf.factories.ControlTreeFactoryBuilder.getNetuixControlFactory(ControlTreeFactoryBuilder.java:101) at com.bea.netuix.nf.factories.ControlTreeFactoryBuilder.getNetuixControlFactory(ControlTreeFactoryBuilder.java:75) at com.bea.netuix.servlets.manager.SingleFileProcessor.getControlFactoryFromFile(SingleFileProcessor.java:616) at com.bea.netuix.servlets.manager.SingleFileProcessor.getControlFactoryFromFile(SingleFileProcessor.java:558) at com.bea.netuix.servlets.manager.SingleFileProcessor.getMergedControlFromFile(SingleFileProcessor.java:427) at com.bea.netuix.servlets.manager.UIServlet.processStream(UIServlet.java:664) at com.bea.netuix.servlets.manager.UIServlet.getTree(UIServlet.java:554) at com.bea.netuix.servlets.manager.UIServlet.getTree(UIServlet.java:525) at com.bea.netuix.servlets.manager.UIServlet.setupJspContext(UIServlet.java:299) at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:224) at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:195) at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:180) at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:221) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:124) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3212) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    Users with the same issue

    Unknown visitor1 times, last one,
    pulse00
    pulse006 times, last one,
    guizmaii
    guizmaii2 times, last one,
    andyglick
    andyglick1 times, last one,
    serious2monkeys
    serious2monkeys60 times, last one,
    66 more bugmates