WELD-001408 Unsatisfied dependencies for type [Validator]

前端 未结 2 1225
孤街浪徒
孤街浪徒 2021-01-13 17:13

I\'m unable to deploy my project after migrating it from Java EE 6 to Java EE 7.

I already have CDI enabled (beans.xml with bean-discovery-mode=\"all\" for backward

2条回答
  •  我在风中等你
    2021-01-13 17:43

    After a couple of hours testing out this problem, i concluded its related to an incompatibility issue between Apache MyFaces CODI (CDI Extension) and Java EE 7. You can test it on your own by creating an empty Java EE 7 project (Netbeans + Glassfish 4.0) and adding the library, their last release can be downloaded from Here

    I was using this extension cause of its @ViewAccessScoped implementation. I replaced it by the new JSF 2.2 annotation javax.faces.view.ViewScoped which actually works with CDI

提交回复
热议问题