[weld-issues] [JBoss JIRA] Updated: (WELD-752) Registering an interceptor in beans.xml from a Jar;

Robson Saraiva Ximenes (JIRA) jira-events at lists.jboss.org
Wed Nov 10 14:13:01 EST 2010


     [ https://jira.jboss.org/browse/WELD-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robson Saraiva Ximenes updated WELD-752:
----------------------------------------

           Description: 
I have a jar with an Interception class registered in META/INF/beans.xml;

My web app has this jar into classpath, but when I deploy some problems show up.

1 - Registering the interceptor inside the JAR/META-INF/beans.xml: notthing happend and the interceptor is not registered

2 - Registering the interceptor in WEB-INF/META-INF/beans.xml: throws an exception (org.jboss.weld.exceptions.DeploymentException: WELD-001416 Enabled interceptor class [<class>br.gov.frameworkdemoiselle.internal.interceptor.TransactionInterceptor</class>)

I believe that the best way is to merge all beans.xml and give a way of programmatically resolve any conflict;

P.S: It works for Weld-se but not to Weld-servlet!

  was:
I have a jar with an Interception class registered in META/INF/beans.xml;

My web app has this jar into classpath, but when I deploy some problems show up.

1 - Registering the interceptor inside the JAR/META-INF/beans.xml: notthing happend and the interceptor is not registered

2 - Registering the interceptor in WEB-INF/META-INF/beans.xml: throws an exception duplicated exception

I believe that the best way is to merge all beans.xml and give a way of programmatically resolve any conflict;

P.S: It works for Weld-se but not to Weld-servlet!

    Steps to Reproduce: 
Create a project myLib with an interceptor registered in /meta-inf/beans.xml and pack this as myLib.jar;

Create an Web app and add myLib.jar to the lib directory... see why the interceptor works in WELD-SE but not in WELD-Servelt

  was:
Create a project A with an interceptor registered in /meta-inf/beans.xml and pack this in a JAR;

Create an Web app and add this JAR em the lib directory... see why the interceptor works in WELD-SE but not in WELD-Servelt



> Registering an interceptor in beans.xml from a Jar;
> ---------------------------------------------------
>
>                 Key: WELD-752
>                 URL: https://jira.jboss.org/browse/WELD-752
>             Project: Weld
>          Issue Type: Bug
>          Components: Bootstrap and Metamodel API, CDI API
>    Affects Versions: 1.1.0.Beta2
>         Environment: Ubuntu, Weld-servlet and Weld-SE
>            Reporter: Robson Saraiva Ximenes
>             Fix For: 1.1.0.Beta2
>
>         Attachments: stack.txt
>
>
> I have a jar with an Interception class registered in META/INF/beans.xml;
> My web app has this jar into classpath, but when I deploy some problems show up.
> 1 - Registering the interceptor inside the JAR/META-INF/beans.xml: notthing happend and the interceptor is not registered
> 2 - Registering the interceptor in WEB-INF/META-INF/beans.xml: throws an exception (org.jboss.weld.exceptions.DeploymentException: WELD-001416 Enabled interceptor class [<class>br.gov.frameworkdemoiselle.internal.interceptor.TransactionInterceptor</class>)
> I believe that the best way is to merge all beans.xml and give a way of programmatically resolve any conflict;
> P.S: It works for Weld-se but not to Weld-servlet!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list