This is my first post. I don't have much experience with CDI and Jersey so I could well be doing something wrong but I have been unable to inject into a filter and would appreciate any suggestions. I don't think I am using the package scanning because I have used a ResourceConfig and AbstractBinder class to explicitly define the class I want to inject but in trying to get it to work I have defined some packages to scan.
I have a EAR file with the following structure:
The shared.jar contains the following classes:
The Application class is defined as follows:
The ApplicationBinder class is defined as follows:
Each of the WAR files has a web.xml similar to the following:
<?xml version="1.0" encoding="UTF-8"?>
In A.war I have an endpoint as follows:
This works fine and the Test instance gets injected (Yeah!!!).
But...when I add @Inject onto my filter class (package2.MyFilter) I get the following exception:
Apr 15, 2016 10:51:39 AM org.apache.catalina.core.StandardContext filterStart
Sorry for the long email but any help would be very much appreciated.
|Free forum by Nabble||Edit this page|