GithubHelp home page GithubHelp logo

Comments (7)

dirkraft avatar dirkraft commented on August 24, 2024 1

Well this seems to work so far at least for picking up @Path-annotated resources. Not sure yet if something else will fall out.

    @Override
    public void run(MyConfiguration configuration, Environment environment) throws Exception {
        environment.jersey().packages(getClass().getPackage().getName());
    }

For the record, my versions

    compile 'io.dropwizard:dropwizard-core:0.8.0'
    compile 'com.hubspot.dropwizard:dropwizard-guice:0.8.0'

and I'm on java8.

from dropwizard-guice.

dirkraft avatar dirkraft commented on August 24, 2024

I am having a similar problem. Are you also on Java8 and dropwizard/dropwizard-guice 0.8.0?

from dropwizard-guice.

jhaber avatar jhaber commented on August 24, 2024

We're on the latest version of Reflections, I'll try to see if it's a Java 8 incompatibility

from dropwizard-guice.

jhaber avatar jhaber commented on August 24, 2024

We've been seeing this issue intermittently as well, we're testing with Javassist 3.19.0-GA now to see if it fixes the issue by any chance

from dropwizard-guice.

eyce9000 avatar eyce9000 commented on August 24, 2024

I get this issue with java 8 if any of the methods in the resource contain short-hand lambda expressions.

from dropwizard-guice.

jhaber avatar jhaber commented on August 24, 2024

3.19.0-GA didn't do the trick, but maybe 3.20.0-GA will. (The fact that it affects classes with lambdas suggests it's a Javassist issue)

from dropwizard-guice.

t0tec avatar t0tec commented on August 24, 2024

I have an issue with this also (version 1.0.0).
Problem with registering filters (dropwizard-example in DateNotSpecifiedFilter) with the use of @Provider annotation.

and tasks don't get automatically added. Somehow still need to do the following:
environment.admin().addTask(guiceBundle.getInjector().getInstance(EchoTask.class));

from dropwizard-guice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.