Como corrigir java.lang.ClassNotFoundException: javax.xml.bind.JAXBException ao usar o Apache Archiva 2.2.1?

2

Quando descompactei a versão independente do Apache Archiva 2.2.1 e iniciei com 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 , recebo a seguinte exceção. O comportamento parece ocorrer no systemd unit e isso parece causar o erro HTTP 503 e a mensagem de erro Service Unavailable no navegador, enquanto o systemd unidade relata o estado de trabalho.

Eu suspeito que isso acontece porque o Java 9 é usado em vez de 8 (com base em link ) e porque se eu desinstalar todos os openjdk-9... packages e reiniciar archiva.service ele funciona, então a solução poderia ser usar archiva para usar o OpenJDK 8. ignora JAVA_HOME e JRE_HOME na unidade 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)
    
por Karl Richter 07.05.2017 / 13:53

1 resposta

0

Você pode definir o comando Java usado pelo Archiva no arquivo $ARCHIVA_ROOT/conf/wrapper.conf

Inicialmente, isso é configurado para usar a versão Java do caminho do sistema

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

(More omitted...)

Aqui está um exemplo para usar uma instalação Java específica (no Windows)

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

Tags