<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2011-11-17, at 1:15 PM, Ales Justin wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">This is *dev* mailing list, user questions go to *user* forum / mailing list.<br></blockquote><div><br></div><div>As Ales said.</div><br><blockquote type="cite"><br><div class="gmail_quote">On Thu, Nov 17, 2011 at 6:36 PM, Dipl.-Ing. Torsten Liermann <span dir="ltr"><<a href="mailto:mist@liermann.ws">mist@liermann.ws</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><br>
Hi,<br>
<br>
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<br>
<br>
DeploymentException: WELD-000069 An interceptor must have at least one binding ...<br>
<br>
But this interceptor is an EJB Interceptor not a Weld. The implementation of the interceptor looks like that::<br>
<br>
@javax.interceptor.Interceptor<br>
public class ServerInMaintenanceModeInterceptor {<br>
...<br>
}<br>
<br>
What I'm doing wrong? Or, what must I do, that weld ignores EJB Interceptors<br></blockquote></div></blockquote><div><br></div><div>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). </div><br><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">
<br>
Thanks for an hint.<br>
Torsten<br>
_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
</blockquote></div><br>
_______________________________________________<br>weld-dev mailing list<br><a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/weld-dev</blockquote></div><br></body></html>