Server Error : The server reported an internal error - no login possible

Hi,
I just installed the camunda platform run on a windows server.
But when I open the cockpit I get the " Server Error : The server reported an internal error. Try to refresh the page or login and out of the application." as an error.

I’m also getting another error when I try to input the credentials: " Login Failed : Wrong credentials, locked user or missing access rights to application"

Logs:
2021-08-06 10:08:15.053 ERROR 18380 — [nio-8080-exec-6] o.a.c.c.C.[.[localhost].[/].[Admin Api] : Allocate exception for servlet [Admin Api]

java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.runtime.reflect.opt.Injector
at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:83) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:176) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:282) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.property.ArrayProperty.(ArrayProperty.java:69) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.(ArrayERProperty.java:88) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.(ArrayElementProperty.java:100) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.(ArrayElementNodeProperty.java:62) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) ~[na:na]
at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:128) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.(ClassBeanInfoImpl.java:181) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:509) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:326) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:141) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:236) ~[jaxb-impl-2.2.4.jar!/:2.2.4]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:567) ~[na:na]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:187) ~[jaxb-api-2.2.3.jar!/:na]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:147) ~[jaxb-api-2.2.3.jar!/:na]
at javax.xml.bind.ContextFinder.find(ContextFinder.java:349) ~[jaxb-api-2.2.3.jar!/:na]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446) ~[jaxb-api-2.2.3.jar!/:na]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409) ~[jaxb-api-2.2.3.jar!/:na]
at org.glassfish.jersey.server.wadl.internal.WadlApplicationContextImpl.getJAXBContextFromWadlGenerator(WadlApplicationContextImpl.java:121) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.server.wadl.internal.WadlApplicationContextImpl.isJaxbImplAvailable(WadlApplicationContextImpl.java:270) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.server.wadl.WadlFeature.configure(WadlFeature.java:65) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.model.internal.CommonConfig.configureFeatures(CommonConfig.java:728) ~[jersey-common-2.33.jar!/:na]
at org.glassfish.jersey.model.internal.CommonConfig.configureMetaProviders(CommonConfig.java:647) ~[jersey-common-2.33.jar!/:na]
at org.glassfish.jersey.server.ResourceConfig.configureMetaProviders(ResourceConfig.java:823) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:328) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.server.ApplicationHandler.lambda$initialize$1(ApplicationHandler.java:293) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:292) ~[jersey-common-2.33.jar!/:na]
at org.glassfish.jersey.internal.Errors.process(Errors.java:274) ~[jersey-common-2.33.jar!/:na]
at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:232) ~[jersey-common-2.33.jar!/:na]
at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:292) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.server.ApplicationHandler.(ApplicationHandler.java:259) ~[jersey-server-2.33.jar!/:na]
at org.glassfish.jersey.servlet.WebComponent.(WebComponent.java:311) ~[jersey-container-servlet-core-2.33.jar!/:na]
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:154) ~[jersey-container-servlet-core-2.33.jar!/:na]
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:347) ~[jersey-container-servlet-core-2.33.jar!/:na]
at javax.servlet.GenericServlet.init(GenericServlet.java:158) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1134) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:761) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:135) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707) ~[tomcat-embed-core-9.0.46.jar!/:na]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.46.jar!/:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[na:na]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.46.jar!/:na]
at java.base/java.lang.Thread.run(Thread.java:831) ~[na:na]

Thanks for helping!

@svenr If you are using Java 9 or above, you additionally need a JAXB implementation. We recommend to use version 2.2.3 of com.sun.xml.bind:jaxb-impl .

    <dependency>
      <groupId>com.sun.xml.bind</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.2.3</version>
    </dependency>

https://docs.camunda.org/get-started/spring-boot/project-setup/

https://docs.camunda.org/manual/7.15/update/minor/79-to-710/#spin-and-jaxb

Hi,
so if I get that right I cannot use Camunda Platform Run because there I don’t have a pom.xml to put the dependency?

Hi @svenr , Camunda platform run doesn’t have the jaxb-impl dependency in the classpath. Here’s the extracted dependencies of the camunda-bpm-run-core.jar


If you’re using platform run, then you should download the jaxb-impl dependency and copy it to the below path of camunda-bpm-run application:

/camunda-bpm-run-7.15.0/configuration/userlib
4 Likes

Thank you!
It seems to work now!

@svenr Glad it worked :tada:

1 Like

The dependency for me worked only with the version 2.3.3
Please verify

2 Likes

Yes, this is what solved my problem

@gds75you Which camunda version are you using? Is it camunda version > 7.15?