My nexus service stopped running - Sonatype Nexus Repository - Sonatype Community
My nexus service stopped running
post by elinofer on Feb 26, 2023
my nexus service stoppedd running. attaching log. i can’t find what’s changes between morning and evening 😞 using nexus nexus-2.14.15-01
using java 8
jvm 1 | 2023-02-27 05:21:15,977+0200 ERROR [WrapperListener_start_runner] org.sonatype.nexus.bootstrap.jsw.JswLauncher - Failed to start
jvm 1 | java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present
jvm 1 | at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
jvm 1 | ... 47 common frames omitted
wrapper | ← Wrapper Stopped
Can some help me out
post by mpiggott on Feb 27, 2023
The error message suggests you may not be using Java8.
post by elinofer on Feb 28, 2023
Thanks - but when i check my java i can see
Version 8 update 361
So what can i do more?
post by laurencet on Feb 28, 2023
Hello Elin, that looks like it might be Java JRE. The JSW requires a Java JDK.
Can you run ‘java -version’ in your terminal to confirm was version your system is using?
If you are indeed using a JRE, can you please try and install the JDK and set this as your default java version and try again.
post by elinofer on Feb 28, 2023
I have do done as you suggested
C:\WINDOWS\system32>java -version
java version “1.8.0_202”
Java™ SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot™ 64-Bit Server VM (build 25.202-b08, mixed mode)
I have installed the:
C:\Program Files\Java\jdk1.8.0_202
on my nexus-2.14.15-01 folder log i get the following while trying to run the nexus service
jvm 1 | 2023-02-28 13:54:25,095+0200 ERROR [WrapperListener_start_runner] org.sonatype.nexus.bootstrap.jsw.JswLauncher - Failed to start
jvm 1 | java.lang.TypeNotPresentException: Type javax.xml.bind.JAXBContext not present
jvm 1 | at java.base/sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117)
jvm 1 | ... 47 common frames omitted
Please Help!!!
post by pba on Mar 6, 2023
The error still suggests that a java version 11 is used.
The jax support was removed in java 11.
Is there a java 11 (or higher) installation present on the system?
Maybe there is a JAVA_HOME variable set? Or an alternative java path in the Nexus startup script?