Skip to content

Compatiblity with Dropwizard 1.0? #95

Description

@chriskessel

I'm trying to upgrade to Dropwizard 1.0 and I'm getting a failure running a unit test (haven't tried production yet since I'm fixing the tests first).

I filed it in the Dropwizard product and the fellow there says it looks like an incompatibility in libraries with the Guice module used by dropwizard-guice. Specifically he says "This looks like an incompatibility between HK2 (used by Jersey) and Google Guice which shows by including the dropwizard-guice module."

Is dropwizard-guice supposed to work with Dropwizard 1.0 or is that still in the works?

Here's the exception trace I get:

java.lang.IllegalStateException: It appears there is no ServiceLocatorGenerator installed.
                at com.squarespace.jersey2.guice.GuiceServiceLocatorGeneratorStub.create(GuiceServiceLocatorGeneratorStub.java:50)
                at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.internalCreate(ServiceLocatorFactoryImpl.java:312)
                at org.glassfish.hk2.internal.ServiceLocatorFactoryImpl.create(ServiceLocatorFactoryImpl.java:293)
                at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:138)
                at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:109)
                at org.glassfish.jersey.internal.RuntimeDelegateImpl.<init>(RuntimeDelegateImpl.java:63)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
                at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
                at java.lang.Class.newInstance(Class.java:442)
                at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:118)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions