brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BROOKLYN-238) brooklyn launch fails due to duplicate libraries of different versions
Date Mon, 14 Mar 2016 14:41:33 GMT
Aled Sage created BROOKLYN-238:
----------------------------------

             Summary: brooklyn launch fails due to duplicate libraries of different versions
                 Key: BROOKLYN-238
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-238
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Aled Sage


Brooklyn 0.9.0-SNAPSHOT fails to start on some environments due to conflicting class versions
in `./lib/brooklyn/` (see https://issues.apache.org/jira/browse/BROOKLYN-223).

On a CentOS 7 VM with `OpenJDK Runtime Environment (build 1.8.0_71-b15)`, I got the error
shown below:

{noformat}
Mar 14 14:14:43 ip-10-89-9-181 java: Exception in thread "main" java.lang.NoSuchMethodError:
javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.cxf.jaxrs.utils.ResourceUtils.createApplication(ResourceUtils.java:837)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.createServerFromApplication(CXFNonSpringJaxrsServlet.java:526)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet.init(CXFNonSpringJaxrsServlet.java:115)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:163)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.server.Server.start(Server.java:387)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.server.Server.doStart(Server.java:354)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.launcher.BrooklynWebServer.start(BrooklynWebServer.java:410)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.launcher.BrooklynLauncher.startWebApps(BrooklynLauncher.java:829)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.launcher.BrooklynLauncher.start(BrooklynLauncher.java:604)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.cli.Main$LaunchCommand.call(Main.java:457)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.cli.Main$LaunchCommand.call(Main.java:194)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.cli.AbstractMain.execCli(AbstractMain.java:252)
Mar 14 14:14:43 ip-10-89-9-181 java: at org.apache.brooklyn.cli.AbstractMain.execCli(AbstractMain.java:244)
{noformat}

This class comes from:

{noformat}
$ for i in `find . -name '*.jar'`; do if unzip -Z -1 $i | grep -q '^javax/ws/rs/ApplicationPath.class';
then echo $i; fi; done
./javax.ws.rs-api-2.0.1.jar
./jsr311-api-1.1.1.jar
{noformat}

jsr311-api is a transitive dependency of jclouds-core; javax.ws.rs-api is an explicit dependency
of brooklyn-rest-api.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message