CDI Ambiguous dependencies

后端 未结 4 910
孤城傲影
孤城傲影 2021-02-19 11:11

I have a @SessionScoped @Named bean with a @Producer method for a user object:

@Named @SessionScoped
public class UserBean implements S         


        
4条回答
  •  鱼传尺愫
    2021-02-19 11:52

    I had very similar problem, and I got some offline help. My problem was that where my service was, it was included in a deployed ear AND in my web project as well. It was an accidental duplication, drop one out, and it will work if it is your case as well.

    here on the following picture I had the esb_khr inside the esb_khr_web, I removed. In eclipse: go to properties and deployment assembly.

    enter image description here

提交回复
热议问题