You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Christian H. Kuhn (JIRA)" <ji...@apache.org> on 2019/07/26 20:09:00 UTC

[jira] [Created] (MRM-1993) Invalid Namespace Handler

Christian H. Kuhn created MRM-1993:
--------------------------------------

             Summary: Invalid Namespace Handler
                 Key: MRM-1993
                 URL: https://issues.apache.org/jira/browse/MRM-1993
             Project: Archiva
          Issue Type: Bug
          Components: system
    Affects Versions: 2.2.4, 2.2.3
         Environment: Ubuntu 18.04 LTS, Java OpenJDK 11.0.3 amd64
            Reporter: Christian H. Kuhn


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]

[Complete log|http://example.com/]

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?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)