{"action":"created","issue":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1648","repository_url":"https://api.github.com/repos/dropwizard/dropwizard","labels_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1648/labels{/name}","comments_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1648/comments","events_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1648/events","html_url":"https://github.com/dropwizard/dropwizard/issues/1648","id":167778771,"number":1648,"title":"HK2 classes missing ","user":{"login":"sheldon-sminq","id":11736700,"avatar_url":"https://avatars.githubusercontent.com/u/11736700?v=3","gravatar_id":"","url":"https://api.github.com/users/sheldon-sminq","html_url":"https://github.com/sheldon-sminq","followers_url":"https://api.github.com/users/sheldon-sminq/followers","following_url":"https://api.github.com/users/sheldon-sminq/following{/other_user}","gists_url":"https://api.github.com/users/sheldon-sminq/gists{/gist_id}","starred_url":"https://api.github.com/users/sheldon-sminq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheldon-sminq/subscriptions","organizations_url":"https://api.github.com/users/sheldon-sminq/orgs","repos_url":"https://api.github.com/users/sheldon-sminq/repos","events_url":"https://api.github.com/users/sheldon-sminq/events{/privacy}","received_events_url":"https://api.github.com/users/sheldon-sminq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T06:11:49Z","updated_at":"2016-07-27T07:09:07Z","closed_at":null,"body":"I was just trying out the latest Dropwizard 1.0.0 release, my tests fails to run throwing the following error\r\n\r\n```\r\njava.lang.NoClassDefFoundError: org/glassfish/hk2/utilities/cache/ComputationErrorException\r\n\tat org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl.initialize(ServiceLocatorGeneratorImpl.java:68)\r\n\tat org.jvnet.hk2.external.generator.ServiceLocatorGeneratorImpl.create(ServiceLocatorGeneratorImpl.java:103)\r\n\tat org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:265)\r\n\tat org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:225)\r\n\tat org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)\r\n\tat org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:123)\r\n\tat org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:330)\r\n\tat org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392)\r\n\tat org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177)\r\n\tat org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369)\r\n\tat javax.servlet.GenericServlet.init(GenericServlet.java:244)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:640)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:419)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:875)\r\n\tat org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:349)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)\r\n\tat org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)\r\n\tat org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)\r\n\tat com.codahale.metrics.jetty9.InstrumentedHandler.doStart(InstrumentedHandler.java:103)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)\r\n\tat org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)\r\n\tat org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)\r\n\tat org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:231)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)\r\n\tat org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)\r\n\tat org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)\r\n\tat org.eclipse.jetty.server.handler.StatisticsHandler.doStart(StatisticsHandler.java:252)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)\r\n\tat org.eclipse.jetty.server.Server.start(Server.java:411)\r\n\tat org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)\r\n\tat org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)\r\n\tat org.eclipse.jetty.server.Server.doStart(Server.java:378)\r\n\tat org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)\r\n\tat io.dropwizard.cli.ServerCommand.run(ServerCommand.java:53)\r\n\tat io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:44)\r\n\tat io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)\r\n\tat io.dropwizard.testing.DropwizardTestSupport.startIfRequired(DropwizardTestSupport.java:194)\r\n\tat io.dropwizard.testing.DropwizardTestSupport.before(DropwizardTestSupport.java:112)\r\n\tat io.dropwizard.testing.junit.DropwizardAppRule.before(DropwizardAppRule.java:128)\r\n\tat org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:46)\r\n\tat org.junit.rules.RunRules.evaluate(RunRules.java:20)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)\r\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)\r\n\tat org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)\r\n\tat org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)\r\n\tat org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)\r\n\tat org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)\r\nCaused by: java.lang.ClassNotFoundException: org.glassfish.hk2.utilities.cache.ComputationErrorException\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:381)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n```\r\nI am not sure its a dropwzard specific issue, but i use guice for injection so could this be the culprit?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dropwizard/dropwizard/issues/comments/235504509","html_url":"https://github.com/dropwizard/dropwizard/issues/1648#issuecomment-235504509","issue_url":"https://api.github.com/repos/dropwizard/dropwizard/issues/1648","id":235504509,"user":{"login":"sheldon-sminq","id":11736700,"avatar_url":"https://avatars.githubusercontent.com/u/11736700?v=3","gravatar_id":"","url":"https://api.github.com/users/sheldon-sminq","html_url":"https://github.com/sheldon-sminq","followers_url":"https://api.github.com/users/sheldon-sminq/followers","following_url":"https://api.github.com/users/sheldon-sminq/following{/other_user}","gists_url":"https://api.github.com/users/sheldon-sminq/gists{/gist_id}","starred_url":"https://api.github.com/users/sheldon-sminq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheldon-sminq/subscriptions","organizations_url":"https://api.github.com/users/sheldon-sminq/orgs","repos_url":"https://api.github.com/users/sheldon-sminq/repos","events_url":"https://api.github.com/users/sheldon-sminq/events{/privacy}","received_events_url":"https://api.github.com/users/sheldon-sminq/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T07:09:07Z","updated_at":"2016-07-27T07:09:07Z","body":"Ok found the issue  I used the  https://github.com/xvik/dropwizard-guicey library for guice support in dropwizard. From the dependency tree  the HK2 Guice bridge is at version 2.4.0-b31, but the latest dropwizard jersey is at 2.4.0-b34. This could be the root cause."}}
{"actor":{"display_login":"sheldon-sminq"}}