Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
グラスフィッシュにデプロイする .war アプリケーションがあります。CDI を実行したいので、POJO から java:comp/BeanManager を検索する必要があります。しかし、それは機能しません: BeanManager が単に見つかりません!
なにが問題ですか?
Glassfish で CDI を有効にする必要がありますか? それとも、.ear ファイルでのみ機能しますか?
ありがとう。
WEB-INF フォルダーの下に空の beans.xml がありますか? beans.xml がないと、CDI は有効になりません。