WebServiceContext cannot be injected into CDI Interceptor in JBoss EAP 6.4.
Environment
- Red Hat JBoss Enterprise Application Platform 6.4.1 and earlier
Issue
I am trying to inject WebServiceContext in CDI Interceptor using @Resource annotation but it fails with:
NameNotFoundException: env/com.MyInterceptor/webServiceContext
Resolution
This issue has been resolved in the Cumulative Patch release for JBoss EAP 6.4.CP02
Root Cause
The issue was fixed via WFLY-4487 and was fixed as part of JBoss EAP CP02 update for 6.4.0. See BZ-1210328
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
