Giter Site home page Giter Site logo

Comments (8)

jdubois avatar jdubois commented on July 17, 2024

I'd love to, but they require write access to lots of my Github stuff, and I'm not ready to do this...

BTW, I'm using drone.io on the generated app, you can see it here: https://drone.io/github.com/jhipster/jhipster-sample-app

from generator-jhipster.

jmirc avatar jmirc commented on July 17, 2024

ok. I close it.

from generator-jhipster.

sidharta avatar sidharta commented on July 17, 2024

When I build in Drone.io or Shippable I get:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityConfiguration': Injection of autowired dependencies failed; nested exception is java.lang.IllegalStateException: Cannot apply org.springframework.security.config.annotation.authentication.configurers.userdetails.DaoAuthenticationConfigurer@6d48f1c to already built object

Just like https://drone.io/github.com/jhipster/jhipster-sample-app/4

Can you suggest something? Thanks :)

from generator-jhipster.

jdubois avatar jdubois commented on July 17, 2024

Use JDK 1.8 to build
I don't remember why, but that solved the issue :-)

from generator-jhipster.

sidharta avatar sidharta commented on July 17, 2024

That doesn't seem to be the problem... My configuration is exactly like yours with JDK8. The only difference from the sample-app is that I generated 2 more entities.

https://drone.io/bitbucket.org/sidharta/get2share/1

from generator-jhipster.

amr avatar amr commented on July 17, 2024

Please note that I've had the same issue, with a Docker container which I specifically created for testing building, running and testing the application from scratch on a new machine. I encountered the same issue. Likely, one awesome fellow had the same issue and made a fix, here:

http://stackoverflow.com/questions/26348877/can-not-apply-daoauthenticationconfigurer-to-already-built-object

It fixed the issue of running the tests on my Docker container, and I would say that the fix seems reasonable.

from generator-jhipster.

KoljaTM avatar KoljaTM commented on July 17, 2024

fwiw, I had the same problem as reported in the StackOverflow article and fixed it by changing

@Inject
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
    auth
        .userDetailsService(userDetailsService)
            .passwordEncoder(passwordEncoder());
}

to

@Override
public void configure(AuthenticationManagerBuilder auth) throws Exception {
    auth
        .userDetailsService(userDetailsService)
            .passwordEncoder(passwordEncoder());
}

I don't really know what exactly that is changing, or why it was necessary for Ci build (Teamcity) but not for local build.

from generator-jhipster.

jlfuentes avatar jlfuentes commented on July 17, 2024

The fix proposed KoljaTM works fine, here the explanation:

http://stackoverflow.com/questions/26348877/can-not-apply-daoauthenticationconfigurer-to-already-built-object

Thx!

from generator-jhipster.

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.