Jetty upgrade throwing exception after upgrading to 9.4.43.v20210629 - java

My project is using Jetty(org.eclipse.jetty) jars and I have upgraded it from 9.4.33 to latest 9.4.43
Post upgrade when I tried to start the services it is throwing the exception of
Failed startup of context o.e.j.w.WebAppContext#1e461e41{/,file:///opt/company/Myserver/src/main/webapp/,UNAVAILABLE}{src/main/webapp}
java.lang.noclassdeffounderror org/apache/jasper/servlet/jasperinitializer
Can anybody help me what exactly I am missing here. I double checked to ensure concern jars are available.
What I could figure out so far its reading the class at compile time but not able to find it at run time thus seeing this exception.
I tried replacing the 9.4.43 jars again with 9.4.33 and it worked fine without any other config/code change.
Any leads would be appreciated on how to trace and fix this issue.

Related

How can I fix the NoClassDefFoundError error that occurs when using evosuite to generate test cases?

I got this error when I used evosuite to generate test cases with my android project.
In the beginning, there was such an error:“can not find this class:android.support.v7.widget.Toolbar” I solved this problem by adding Android's jar package:collections-28.0.0.jar into CP path, and then the following error occurred in the process of automatically generating use cases for multiple files:
[MASTER] 21:22:39.979 [logback-2] ERROR TestClusterGenerator - Problem for com.rapidapp.base.account.AppBaseService. Failed to add dependencies for class android.support.v7.widget.Toolbar: java.lang.NoClassDefFoundError: android/support/v7/widget/Toolbar$SavedState
[java.lang.Class.getDeclaringClass0(Native Method), java.lang.Class.getDeclaringClass(Class.java:1235), java.lang.Class.getEnclosingClass(Class.java:1277), java.lang.Class.getSimpleBinaryName(Class.java:1443), java.lang.Class.getSimpleName(Class.java:1309), java.lang.Class.isAnonymousClass(Class.java:1411), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:155), org.evosuite.setup.TestUsageChecker.canUse(TestUsageChecker.java:338), org.evosuite.setup.TestClusterGenerator.addDependencyClass(TestClusterGenerator.java:975), org.evosuite.setup.TestClusterGenerator.resolveDependencies(TestClusterGenerator.java:358), org.evosuite.setup.TestClusterGenerator.generateCluster(TestClusterGenerator.java:137), org.evosuite.setup.DependencyAnalysis.analyze(DependencyAnalysis.java:118), org.evosuite.setup.DependencyAnalysis.analyzeClass(DependencyAnalysis.java:132), org.evosuite.TestSuiteGenerator.initializeTargetClass(TestSuiteGenerator.java:110), org.evosuite.TestSuiteGenerator.generateTestSuite(TestSuiteGenerator.java:130), org.evosuite.rmi.service.ClientNodeImpl$1.run(ClientNodeImpl.java:145), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617), java.lang.Thread.run(Thread.java:745)]
Finally, a use case is not generated.
I have experienced This exception before, when (trying) to run code which had been compiled on one operating system on another. Also, when updates have occurred to the OS.
Though you might have thought that backwards compatibility should remove this later, it is not always the case!

java.lang.NoClassDefFoundError in Drools

I am getting this error.
java.lang.NoClassDefFoundError: org/drools/core/command/runtime/rule/FireAllRulesCommand
Even though the same code along with same jars works fine in my teammate's system. This class is present in drools-core.jar I am not sure why for me class is not found during run time. I have no additional logs. It just shows the mentioned error during debug.
Could you please guide me here.

OpenSAML Issue - NoClassDefFoundError for TrustMaterial (Java7, Maven)

We are seeing the following error when trying to complete a single-sign-on using OpenSAML. This was working, then seemed to stop when we upgraded to Java 7 (though that could very well be a red herring). We did install the JCE, so don't think it's related to that. Has anyone encountered this before?
java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.ssl.TrustMaterial
org.opensaml.xml.security.x509.X509Util.decodeCertificate(X509Util.java:319)
org.opensaml.xml.security.keyinfo.KeyInfoHelper.getCertificate(KeyInfoHelper.java:194)
org.opensaml.xml.security.keyinfo.KeyInfoHelper.getCertificates(KeyInfoHelper.java:169)
org.opensaml.xml.security.keyinfo.provider.InlineX509DataProvider.extractCertificates(InlineX509DataProvider.java:191)
org.opensaml.xml.security.keyinfo.provider.InlineX509DataProvider.process(InlineX509DataProvider.java:125)
org.opensaml.xml.security.keyinfo.BasicProviderKeyInfoCredentialResolver.processKeyInfoChild(BasicProviderKeyInfoCredentialResolver.java:299)
org.opensaml.xml.security.keyinfo.BasicProviderKeyInfoCredentialResolver.processKeyInfoChildren(BasicProviderKeyInfoCredentialResolver.java:255)
org.opensaml.xml.security.keyinfo.BasicProviderKeyInfoCredentialResolver.processKeyInfo(BasicProviderKeyInfoCredentialResolver.java:189)
org.opensaml.xml.security.keyinfo.BasicProviderKeyInfoCredentialResolver.resolveFromSource(BasicProviderKeyInfoCredentialResolver.java:148)
org.opensaml.xml.security.credential.AbstractCriteriaFilteringCredentialResolver.resolve(AbstractCriteriaFilteringCredentialResolver.java:57)
org.opensaml.xml.security.credential.AbstractCriteriaFilteringCredentialResolver.resolve(AbstractCriteriaFilteringCredentialResolver.java:37)
org.opensaml.security.MetadataCredentialResolver.retrieveFromMetadata(MetadataCredentialResolver.java:266)
Ensure not-yet-commons-ssl-0.3.9.jar is on the classpath of the JVM. That is the jar that contains the TrustMaterial class.

Error while trying out JUnit

I have done more than an hour of searching while trying to run JUnit on my project. I can see that there is a class missing - LogEntryFormatter. But no matter how hard I tried, I am not able to find the jar file which contains this one. Eclipse shows the below stack trace after running the Test case file.
java.lang.NoClassDefFoundError: weblogic/logging/LogEntryFormatter
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:892)
at java.lang.ClassLoader.loadClass(ClassLoader.java:302)
at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at weblogic.logging.commons.LogImpl.(LogImpl.java:14)
at weblogic.logging.commons.LogFactoryImpl.getInstance(LogFactoryImpl.java:21)
at weblogic.logging.commons.LogFactoryImpl.getInstance(LogFactoryImpl.java:18)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.(SpringJUnit4ClassRunner.java:91)
...
When I use #RunWith(SpringJUnit4ClassRunner.class) and if I use #RunWith(JUnit4.class), a sample test seems to work.
Any sort of help will be useful. I am using WebLogic server, and all weblogic related jars are available on the classpath.
Ok, so after a lot of effort I am able to run JUnit Tests, although not in the exact way I want. I am also at a loss to explain why this is happening or where weblogic.logging is configured. This could be a possible problem with my project setup. After adding the following jar files to the classpath (after removing everything except jdk), it seems to be working for me.
wlclient
com.bea.core.utils.classloaders
com.bea.core.descriptor
com.bea.core.utils
com.bea.core.management.core
junit 4.5
Thanks to all those who helped by providing valuable comments. The stack traces encountered at each step helped me point in the right direction.

Jdeveloper error "java.lang.NoClassDefFoundError: Could not initialize class oracle.dbtools.raptor.config.DBConfig" on start

I use Jdeveloper Studio 11.1.1.4.0, I use the ADF components on it, but for the last couple of days when I start the Jdeveloper, this Error comes up
Uncaught exception
java.lang.NoClassDefFoundError: Could not initialize class oracle.dbtools.raptor.config.DBConfig
o.dbtools.raptor.oviewer.base.NavSelectionListener.viewSelectionChanged(NavSelectionListener.java:176)
o.i.view.View.fireViewSelectionChangedImpl(View.java:495)
o.i.view.ViewDecorator.fireViewSelectionChangedImpl(ViewDecorator.java:59)
o.i.view.View.fireViewSelectionChanged(View.java:485)
o.i.view.View.updateSelectionImpl0(View.java:444)
o.i.view.View.updateSelectionImpl(View.java:429)
o.i.view.View.updateSelection(View.java:306)
o.ideri.navigator.DefaultNavigatorWindow$4.viewSelectionChanged(DefaultNavigatorWindow.java:1108)
o.i.view.View.fireViewSelectionChangedImpl(View.java:495)
o.i.view.View.fireViewSelectionChanged(View.java:485)
o.i.view.View$2.actionPerformed(View.java:349)
jx.s.Timer.fireActionPerformed(Timer.java:271)
jx.s.Timer$DoPostEvent.run(Timer.java:201)
j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
j.a.EventQueue.dispatchEvent(EventQueue.java:597)
j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
j.a.EventDispatchThread.run(EventDispatchThread.java:122)
I can't find the Database Navigator either and also this error also comes up when I use anything related to the database, I tried to uninstall the Jdeveloper and removed the middleware folder and reinstall everything to get the default but still same story.
I really need a fix for this ASAP because I'm already behind schedule on my graduation project.
Thanks.
check your classpath, there must be a problem here, verify the JDevelloper folder is in

Categories

Resources