Uploaded image for project: 'Archiva (Retired)'
  1. Archiva (Retired)
  2. MRM-1993

Invalid Namespace Handler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.2.3, 2.2.4
    • None
    • system
    • 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]

      Complete log

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            QNo Christian H. Kuhn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: