Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.2.3, 2.2.4
-
None
-
None
-
Ubuntu 18.04 LTS, Java OpenJDK 11.0.3 amd64
Description
Archiva installed in /usr/local/bin. Java Environment updated from Oracle 8 to OpenJDK 11.
2.2.3 worked before. After java update both former running 2.2.3 and a fresh install of 2.2.4 do NOT work. Jetty starts and is listening on port 8081 as configured in conf/jetty.xml but throws a 503 Problem accessing /. Reason: Service Unavailable
In conf/jetty.xml, conf/wrapper.conf, bin/archiva, and apps/archiva/WEB-INF/classes/log4j2.xml, the log path is set to /var/log/archiva. In bin/archiva, RUN_AS_USER=archiva. No further changes.
First error in log:
[WrapperSimpleAppMain] ERROR org.springframework.web.context.ContextLoader [] - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/usr/local/bin/apache-archiva-2.2.4/apps/archiva/WEB-INF/lib/archiva-web-common-2.2.4.jar!/META-INF/spring-context.xml]; nested exception is org.springframework.beans.FatalBeanException: Invalid NamespaceHandler class [org.apache.cxf.jaxrs.spring.NamespaceHandler] for namespace http://cxf.apache.org/jaxrs: problem with handler class file or dependent class; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414) ~[spring-beans-4.2.1.RELEASE.jar:4.2.1.RELEASE]
Looks as if something is not in the classpath. Java classpaths are set in conf/wrapper.conf, but i don't enough about the needed classes; the documentation tells nothing. How can i run archiva with Java 11?