2

Когда я распаковываю автономную версию Apache Archiva 2.2.1 и запускаю ее с помощью sudo -u archiva env JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JDK_HOME=/usr/lib/jvm/java-8-openjdk-amd64 JRE_HOME=/usr/lib/jvm/java-8-openjdk-amd64 /bin/bash /var/lib/archiva/apache-archiva-current/bin/archiva console Я получаю следующее исключение. Такое поведение наблюдается в модуле systemd и это может вызвать ошибку HTTP 503 и сообщение об ошибке «Бесполезно». Service Unavailable в браузере, пока модуль systemd сообщает о рабочем состоянии.

Я подозреваю, что это происходит, потому что Java 8 используется вместо 8 (на основе https://stackoverflow.com/questions/43574426/how-to-resolve-java-lang-noclassdeffounderror-javax-xml-bind-jaxbexception-in-j) и потому что, если я удаляю все openjdk-9... и перезапускаю archiva.service это работает, поэтому решение может заключаться в том, чтобы заставить archiva использовать OpenJDK 8. Он игнорирует JAVA_HOME и JRE_HOME в модуле systemd .

jvm 1    | org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [jar:file:/var/lib/archiva/apache-archiva-2.2.1/apps/archiva/WEB-INF/lib/archiva-rest-services-2.2.1.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
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:414)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
jvm 1    |      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:604)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
jvm 1    |      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
jvm 1    |      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
jvm 1    |      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
jvm 1    |      at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
jvm 1    |      at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:336)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.doStart(ContextDeployer.java:421)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81)
jvm 1    |      at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
jvm 1    |      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:282)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)
jvm 1    |      at java.security.AccessController.doPrivileged(java.base@9-Ubuntu/Native Method)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
jvm 1    |      at org.eclipse.jetty.start.Main.start(Main.java:615)
jvm 1    |      at org.eclipse.jetty.start.Main.main(Main.java:96)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(java.base@9-Ubuntu/Thread.java:843)
jvm 1    | Caused by: 
jvm 1    | 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
jvm 1    |      at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:140)
jvm 1    |      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1406)
jvm 1    |      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
jvm 1    |      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:604)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
jvm 1    |      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
jvm 1    |      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
jvm 1    |      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
jvm 1    |      at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
jvm 1    |      at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:336)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.doStart(ContextDeployer.java:421)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81)
jvm 1    |      at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
jvm 1    |      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:282)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)
jvm 1    |      at java.security.AccessController.doPrivileged(java.base@9-Ubuntu/Native Method)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
jvm 1    |      at org.eclipse.jetty.start.Main.start(Main.java:615)
jvm 1    |      at org.eclipse.jetty.start.Main.main(Main.java:96)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(java.base@9-Ubuntu/Thread.java:843)
jvm 1    | Caused by: 
jvm 1    | java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
jvm 1    |      at org.apache.cxf.jaxrs.spring.NamespaceHandler.init(NamespaceHandler.java:27)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:131)
jvm 1    |      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1406)
jvm 1    |      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
jvm 1    |      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:604)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
jvm 1    |      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
jvm 1    |      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
jvm 1    |      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
jvm 1    |      at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
jvm 1    |      at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:336)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.doStart(ContextDeployer.java:421)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81)
jvm 1    |      at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
jvm 1    |      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:282)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)
jvm 1    |      at java.security.AccessController.doPrivileged(java.base@9-Ubuntu/Native Method)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
jvm 1    |      at org.eclipse.jetty.start.Main.start(Main.java:615)
jvm 1    |      at org.eclipse.jetty.start.Main.main(Main.java:96)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(java.base@9-Ubuntu/Thread.java:843)
jvm 1    | Caused by: 
jvm 1    | java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
jvm 1    |      at java.net.URLClassLoader.findClass(java.base@9-Ubuntu/URLClassLoader.java:388)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:383)
jvm 1    |      at org.apache.cxf.jaxrs.spring.NamespaceHandler.init(NamespaceHandler.java:27)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.resolve(DefaultNamespaceHandlerResolver.java:131)
jvm 1    |      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1406)
jvm 1    |      at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1401)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:168)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:138)
jvm 1    |      at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:94)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:508)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
jvm 1    |      at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
jvm 1    |      at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
jvm 1    |      at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
jvm 1    |      at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:604)
jvm 1    |      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:509)
jvm 1    |      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
jvm 1    |      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
jvm 1    |      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:782)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:424)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:774)
jvm 1    |      at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1242)
jvm 1    |      at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:717)
jvm 1    |      at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:494)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.deploy(ContextDeployer.java:359)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.access$000(ContextDeployer.java:82)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer$ScannerListener.fileAdded(ContextDeployer.java:107)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportAddition(Scanner.java:615)
jvm 1    |      at org.eclipse.jetty.util.Scanner.reportDifferences(Scanner.java:540)
jvm 1    |      at org.eclipse.jetty.util.Scanner.scan(Scanner.java:403)
jvm 1    |      at org.eclipse.jetty.util.Scanner.doStart(Scanner.java:336)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.deploy.ContextDeployer.doStart(ContextDeployer.java:421)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.util.component.AggregateLifeCycle.doStart(AggregateLifeCycle.java:81)
jvm 1    |      at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:58)
jvm 1    |      at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:96)
jvm 1    |      at org.eclipse.jetty.server.Server.doStart(Server.java:282)
jvm 1    |      at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1274)
jvm 1    |      at java.security.AccessController.doPrivileged(java.base@9-Ubuntu/Native Method)
jvm 1    |      at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.eclipse.jetty.start.Main.invokeMain(Main.java:473)
jvm 1    |      at org.eclipse.jetty.start.Main.start(Main.java:615)
jvm 1    |      at org.eclipse.jetty.start.Main.main(Main.java:96)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-Ubuntu/Native Method)
jvm 1    |      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-Ubuntu/NativeMethodAccessorImpl.java:62)
jvm 1    |      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-Ubuntu/DelegatingMethodAccessorImpl.java:43)
jvm 1    |      at java.lang.reflect.Method.invoke(java.base@9-Ubuntu/Method.java:535)
jvm 1    |      at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
jvm 1    |      at java.lang.Thread.run(java.base@9-Ubuntu/Thread.java:843)

1 ответ1

0

Вы можете установить команду Java, используемую Archiva, в файле $ARCHIVA_ROOT/conf/wrapper.conf

Первоначально это настроено на использование версии Java из системного пути.

#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
wrapper.java.command=java
wrapper.working.dir=..

(More omitted...)

Вот пример использования определенной установки Java (в Windows)

#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_162\bin\java
wrapper.working.dir=..

Всё ещё ищете ответ? Посмотрите другие вопросы с метками .