[weld-dev] Glassfish 3.1.1, EJB Interceptor and WELD-000069
Marius Bogoevici
marius.bogoevici at gmail.com
Thu Nov 17 13:27:04 EST 2011
On 2011-11-17, at 1:15 PM, Ales Justin wrote:
> This is *dev* mailing list, user questions go to *user* forum / mailing list.
As Ales said.
>
> On Thu, Nov 17, 2011 at 6:36 PM, Dipl.-Ing. Torsten Liermann <mist at liermann.ws> wrote:
>
> Hi,
>
> I would like to start with CDI on GlassFish 3.1.1. First I put a file named beans.xml in the META-INF directory of my EJB modules. With deploying that module, i will get the error
>
> DeploymentException: WELD-000069 An interceptor must have at least one binding ...
>
> But this interceptor is an EJB Interceptor not a Weld. The implementation of the interceptor looks like that::
>
> @javax.interceptor.Interceptor
> public class ServerInMaintenanceModeInterceptor {
> ...
> }
>
> What I'm doing wrong? Or, what must I do, that weld ignores EJB Interceptors
Just don't add the @javax.interceptor.Interceptor annotation. it's not necessary for @Interceptors() bindings, and in a CDI deployment must specify bindings (as per the spec).
>
> Thanks for an hint.
> Torsten
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
>
> _______________________________________________
> weld-dev mailing list
> weld-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/weld-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20111117/ba985840/attachment.html
More information about the weld-dev
mailing list