Weld not initializing properly

前端 未结 4 1332
名媛妹妹
名媛妹妹 2021-01-12 03:42

I am setting up basic environment for learning CDI in JavaEE7. I have the following code for starting Weld. Just a startup and shutdown.

package         


        
4条回答
  •  青春惊慌失措
    2021-01-12 04:01

    This problem also occur even if you miss to keep beans.xml file in you test/resource/META-INF folder.\

    Make sure you are maintaining beans.xml file as its mandatory file for Context and Dependency injection.

提交回复
热议问题