ERROR 500 NoClassDefFoundError from Jackrabbit oak AbstractLoginModule - aem

I have upgraded AEM 6.5 SP5 to AEM SP12 and when I spin up the server im getting this error.
HTTP ERROR 500 java.lang.NoClassDefFoundError: org/apache/jackrabbit/oak/spi/security/authentication/AbstractLoginModule
URI: /libs/granite/core/content/login.html
STATUS: 500
MESSAGE: java.lang.NoClassDefFoundError: org/apache/jackrabbit/oak/spi/security/authentication/AbstractLoginModule
SERVLET: org.apache.felix.http.base.internal.dispatch.DispatcherServlet-1d81b3db
CAUSED BY: java.lang.NoClassDefFoundError: org/apache/jackrabbit/oak/spi/security/authentication/AbstractLoginModule
I tried to change Open JDK to Oracle JDK too but the issue was not resolved.
this is happening in Amazon Linux red hat server which i used to host the application.

Related

Weblogic 10.3.3 :: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()

I get the error
Caused By: java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode;
at org.hibernate.ejb.util.LogHelper.logPersistenceUnitInfo(LogHelper.java:39)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:520)
at org.springframework.orm.jpa.vendor.SpringHibernateEjbPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateEjbPersistenceProvider.java:50)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:370)
I'm using weblogic 10.3.3 and hibernate-jpa-2.0-api-1.0.1.Final.jar.
I even tried setting this jar in the server's startup classpath so it doesn't conflict with the server's JPA but the error still exists.
Not sure how to resolve this error . Any suggestions?

java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found when configuring JBoss EAP 7.1 Client

I am trying to configure my ESB server as a client for JBoss EAP 7.1 integrated Active MQ Artemis which will connect using the RemoteConnectionFactory. However, I couldn't use the JBoss client jar as it conflicts with the internal JARs. Therefore, I added all the necessary JARs separately.
Now an exception is being thrown saying no provider found.
I have added both xnio-api and xnio-nio jars.
Below is the exception.
Caused by: java.lang.IllegalArgumentException: XNIO001001: No XNIO provider found
at org.xnio.Xnio.doGetInstance(Xnio.java:226)
at org.xnio.Xnio.getInstance(Xnio.java:192)
at org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:47)
at org.jboss.naming.remote.client.InitialContextFactory.createEndpoint(InitialContextFactory.java:226)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateEndpoint(InitialContextFactory.java:207)
at org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:170)
at org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)
... 50 more
How do I resolve this error?

javax.servlet.error.exception: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports

I have problem to run my apps using Tomcat 7. I got this error:
javax.servlet.error.exception: javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspSourceImports
But when I run using Tomcat 8, it works fine. I need to use Tomcat 7 because I want to run the Tomcat from Eclipse Helios, and Eclipse Helios does not support Tomcat 8.
I do not know how to fix this. Appreciate your help.

Failed to startup Jboss 5.1

I am on Redhat, using Jboss 5.1 I am not able to start my Jboss. previously it was working i added some jar file in lib. Now its throwing error saying
Failed to boot JBoss:
java.lang.NullPointerException
at org.jboss.Main.boot(Main.java:136)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:745)
What can be the possible cause of this ???

Start up errors with Oracle Weblogic Server plugin for Eclipse Luna

We have an existing project which we built using Eclipse Indigo and the relevant weblogic server plugin. This was done four years back and we are trying to migrate to the Eclipse Luna. The project imports and everything works fine until I add the weblogic server tools plugin for Eclipse Luna or a lower version and restart eclipse. It starts complaining "An internal error occurred during"
Building Workspace
Initializing Java Tooling
Validating project
AppXray Indexing (This I could fix by disabling from Windows->Preferences->Oracle->AppXray)
The resulting application EAR is deployed on Oracle Weblogic Server 10gR3.
Any help with resolving the issues will be highly appreciated. I know the problem is with the Oracle Weblogic Server tool plugin for Eclipse Luna as the moment I remove it I do not see any errors. I have tried cleaning up .metadata and then relaunching eclipse but still the error starts ocurring.
UPDATE: Below is the exception stacktrace that I found from the .log file within .metadata. I am not able to understand anything from the log. Can anyone help?
!ENTRY org.eclipse.core.jobs 4 2 2015-04-29 07:07:17.086
!MESSAGE An internal error occurred during: "Initializing Java Tooling".
!STACK 0
java.lang.RuntimeException: IModuleReferenceSystemLibrary.ResolvedPath: ResolvedPathDerivedValueService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.DerivedValueService.value(DerivedValueService.java:34)
at org.eclipse.sapphire.Value.refreshContent(Value.java:119)
at org.eclipse.sapphire.Value.refreshContent(Value.java:83)
at org.eclipse.sapphire.Value.text(Value.java:260)
at org.eclipse.sapphire.Value.text(Value.java:253)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl.createContainer(SystemLibrariesContainerImpl.java:200)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl$Initializer.initialize(SystemLibrariesContainerImpl.java:278)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2902)
at org.eclipse.jdt.internal.core.JavaModelManager$9.run(JavaModelManager.java:2808)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2848)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1932)
at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:4016)
at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: PossibleValuesValidationService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.services.ValidationService.validation(ValidationService.java:49)
at org.eclipse.sapphire.Property.refreshValidation(Property.java:254)
at org.eclipse.sapphire.Property.validation(Property.java:476)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:74)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 16 more
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: ModuleIdValuesProvider.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.PossibleValuesService.values(PossibleValuesService.java:77)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:57)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 23 more
Caused by: java.lang.NullPointerException
at oracle.eclipse.tools.common.util.DomUtil.elements(DomUtil.java:152)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.parseFeatureXmlFile(WebLogicServerInstall.java:490)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.loadModulesRegistry(WebLogicServerInstall.java:477)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.getModules(WebLogicServerInstall.java:394)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleIdValuesProvider.compute(ModuleIdValuesProvider.java:22)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:93)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 28 more
!ENTRY org.eclipse.ui.workbench 4 2 2015-04-29 07:07:17.274
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.RuntimeException: IModuleReferenceSystemLibrary.ResolvedPath: ResolvedPathDerivedValueService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.DerivedValueService.value(DerivedValueService.java:34)
at org.eclipse.sapphire.Value.refreshContent(Value.java:119)
at org.eclipse.sapphire.Value.refreshContent(Value.java:83)
at org.eclipse.sapphire.Value.text(Value.java:260)
at org.eclipse.sapphire.Value.text(Value.java:253)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl.createContainer(SystemLibrariesContainerImpl.java:200)
at oracle.eclipse.tools.weblogic.syslib.internal.SystemLibrariesContainerImpl$Initializer.initialize(SystemLibrariesContainerImpl.java:278)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2902)
at org.eclipse.jdt.internal.core.JavaModelManager$9.run(JavaModelManager.java:2808)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2848)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1932)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:3247)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2693)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2857)
at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1962)
at org.eclipse.jdt.internal.core.JavaProject.isOnClasspath(JavaProject.java:2240)
at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator.getOverlay(BuildpathIndicatorLabelDecorator.java:48)
at org.eclipse.jdt.internal.ui.BuildpathIndicatorLabelDecorator.decorate(BuildpathIndicatorLabelDecorator.java:35)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:273)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:83)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:367)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:349)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:372)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:332)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: PossibleValuesValidationService.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.services.ValidationService.validation(ValidationService.java:49)
at org.eclipse.sapphire.Property.refreshValidation(Property.java:254)
at org.eclipse.sapphire.Property.validation(Property.java:476)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:74)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleReferenceSystemLibraryServices$ResolvedPathDerivedValueService.compute(ModuleReferenceSystemLibraryServices.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 28 more
Caused by: java.lang.RuntimeException: IModuleReferenceSystemLibrary.ModuleId: ModuleIdValuesProvider.compute() has failed
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:130)
at org.eclipse.sapphire.services.DataService.data(DataService.java:75)
at org.eclipse.sapphire.PossibleValuesService.values(PossibleValuesService.java:77)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:57)
at org.eclipse.sapphire.services.internal.PossibleValuesValidationService.compute(PossibleValuesValidationService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 35 more
Caused by: java.lang.NullPointerException
at oracle.eclipse.tools.common.util.DomUtil.elements(DomUtil.java:152)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.parseFeatureXmlFile(WebLogicServerInstall.java:490)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.loadModulesRegistry(WebLogicServerInstall.java:477)
at oracle.eclipse.tools.weblogic.WebLogicServerInstall.getModules(WebLogicServerInstall.java:394)
at oracle.eclipse.tools.weblogic.syslib.internal.ModuleIdValuesProvider.compute(ModuleIdValuesProvider.java:22)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:93)
at org.eclipse.sapphire.PossibleValuesService.compute(PossibleValuesService.java:1)
at org.eclipse.sapphire.services.DataService.refresh(DataService.java:103)
... 40 more
After experiencing this problem on our team I thought I would post the solution we found.
This occurred when we moved from a Luna based IDE to the Mars SR1 release. We tracked it down to a file that was in source control.
.settings/oracle.eclipse.tools.weblogic.syslib.xml
Once deleted eclipse would start happily, and we were good to go. One developer tracked the issue down to a single line inside the file.
<module id="javax.persistence" javadoc="http://java.sun.com/javaee/5/docs/api"/>
If that single <module> line is commented out the eclipse oepe error goes away. FYI, you won't see this error when importing the project, just on every restart after the project has been pulled down.