[ https://issues.apache.org/jira/browse/JCR-4402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
druid updated JCR-4402: ----------------------- Attachment: screenshot-3.png > Deployment of jackrabbit-webapp-2.16.3 on Payara 4.1.2.181 running on Ubuntu > 14.04 LTS > -------------------------------------------------------------------------------------- > > Key: JCR-4402 > URL: https://issues.apache.org/jira/browse/JCR-4402 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-webapp > Affects Versions: 2.16.3 > Reporter: druid > Priority: Major > Attachments: image-2019-01-15-11-06-16-032.png, > image-2019-01-15-11-07-19-606.png, screenshot-3.png, server.log > > > Not possible to deploy jackrabbit-web-2.16.3 on Ubuntu 14.04 LTS and Payara > 4.1.2.181 > !image-2019-01-15-11-06-16-032.png! > !image-2019-01-15-11-07-19-606.png! > due to following exception during war file deployment: > {noformat} > [2019-01-15T10:42:21.763+0100] [Payara 4.1] [SEVERE] [] > [javax.enterprise.web.core] [tid: _ThreadID=195 > _ThreadName=admin-thread-pool::admin-listener(5)] [timeMillis: 1547545341763] > [levelValue: 1000] [[ > Error invoking ServletContainerInitializer > ch.qos.logback.classic.servlet.LogbackServletContainerInitializer > java.lang.NoSuchMethodError: > ch.qos.logback.core.util.Loader.getResources(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Set; > at > ch.qos.logback.classic.util.ContextInitializer.multiplicityWarning(ContextInitializer.java:183) > at > ch.qos.logback.classic.util.ContextInitializer.statusOnResourceSearch(ContextInitializer.java:175) > at > ch.qos.logback.classic.util.ContextInitializer.getResource(ContextInitializer.java:141) > at > ch.qos.logback.classic.util.ContextInitializer.findURLOfDefaultConfigurationFile(ContextInitializer.java:135) > at > ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) > at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) > at > org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55) > at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129) > at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108) > at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302) > at > ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addStatus(StatusViaSLF4JLoggerFactory.java:32) > at > ch.qos.logback.classic.util.StatusViaSLF4JLoggerFactory.addInfo(StatusViaSLF4JLoggerFactory.java:20) > at > ch.qos.logback.classic.servlet.LogbackServletContainerInitializer.onStartup(LogbackServletContainerInitializer.java:32) > at > org.apache.catalina.core.StandardContext.callServletContainerInitializers(StandardContext.java:5659) > at > com.sun.enterprise.web.WebModule.callServletContainerInitializers(WebModule.java:608) > at > org.apache.catalina.core.StandardContext.start(StandardContext.java:5557) > at com.sun.enterprise.web.WebModule.start(WebModule.java:522) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:956) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:939) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:684) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2099) > at > com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1745) > at com.sun.enterprise.web.WebApplication.start(WebApplication.java:107) > at org.glassfish.internal.data.EngineRef.start(EngineRef.java:122) > at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:294) > at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:357) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:501) > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:220) > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:508) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:544) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:540) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:539) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:570) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:562) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:360) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:561) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1469) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:111) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1851) > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1727) > at > org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:263) > at > org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:234) > at > org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:285) > at > org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:136) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at > org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) > at > org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:160) > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) > at > org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) > at > org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326) > at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) > at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) > at org.glassfish.jersey.internal.Errors.process(Errors.java:315) > at org.glassfish.jersey.internal.Errors.process(Errors.java:297) > at org.glassfish.jersey.internal.Errors.process(Errors.java:267) > at > org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) > at > org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) > at > org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) > at > org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:384) > at > org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:316) > at > org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:179) > at > com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:483) > at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) > at > org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206) > at > org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180) > at > org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:231) > at > org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) > at > org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) > at > org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) > at > org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539) > at > org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56) > at > org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593) > at > org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573) > at java.lang.Thread.run(Thread.java:748) > ]] > {noformat} > For complete log see: server.log > *Workaround* > Apparently this is caused by the > {{jackrabbit-webapp-2.16.3/WEB-INF/lib/oak-upgrade-1.0.39.jar}} being the > last jar on the classpath (after > {{jackrabbit-webapp-2.16.3/WEB-INF/lib/logback-classic-1.2.3.jar}}) and not > having > {{ch.qos.logback.core.util.Loader.getResources(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/util/Set;}} > method. > This method is present in > {{jackrabbit-webapp-2.16.3/WEB-INF/lib/logback-classic-1.2.3.jar}}. So by > changing the jackrabbit-webapp-2.16.3,war and reordering the libs in > jackrabbit-webapp-2.16.3.war (also needed to add {{jcr-2.0.jar}}) like here > below, I managed to get it deployed on Linux. > !screenshot-3.png! -- This message was sent by Atlassian JIRA (v7.6.3#76005)