[JBoss JIRA] Created: (WELD-824) injection/initializer/observer inheritance broken on Beans registered through BBD.addAnnotatedType()
by Jozef Hartinger (JIRA)
injection/initializer/observer inheritance broken on Beans registered through BBD.addAnnotatedType()
----------------------------------------------------------------------------------------------------
Key: WELD-824
URL: https://issues.jboss.org/browse/WELD-824
Project: Weld
Issue Type: Bug
Components: Class Beans (Managed and Session)
Affects Versions: 1.1.0.CR4
Reporter: Jozef Hartinger
I am having two classes: Foo and Bar where Bar extends Foo. Both these classes are outside of BDA (a jar with no beans.xml placed in WEB-INF/lib of a web app that has beans.xml) The Bar class is registered through a portable Extension (BeforeBeanDiscovery.addAnnotatedType()).
The problem is that while injection/initializers/event observers defined on the Bar class work as expected, the ones defined on the Foo class are never called. (Note that the Foo class itself is not registered as a Bean - Nevertheless, CDI services should be enabled on Bar's superclasses according to the spec)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (WELD-780) Place beans.xml under WEB-INF instead of WEB-INF/classes/META-INF in jsf/permalink example
by Sivakumar Thyagarajan (JIRA)
Place beans.xml under WEB-INF instead of WEB-INF/classes/META-INF in jsf/permalink example
------------------------------------------------------------------------------------------
Key: WELD-780
URL: https://jira.jboss.org/browse/WELD-780
Project: Weld
Issue Type: Bug
Components: Examples
Affects Versions: 1.1.0.Beta2
Reporter: Sivakumar Thyagarajan
Priority: Minor
As per Section 12.1 of CDI 1.0 specification:
> • The WEB-INF/classes directory of a war is a bean archive if there is a file named beans.xml in the WEB-INF directory of the war.
> • A directory in the JVM classpath is a bean archive if it has a file named beans.xml in the META-INF directory.
However the jsf/permalink sample bundles beans.xml under WEB-INF/classes/META-INF. This may not work in other containers (for instance see http://java.net/jira/browse/GLASSFISH-15009 ). So request to move the file (in weld-core): from
examples/jsf/permalink/src/main/resources/META-INF/beans.xml
to
examples/jsf/permalink/src/main/webapp/WEB-INF/beans.xml
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 4 months
[JBoss JIRA] Created: (WELD-575) Definition/DeploymentExceptions thrown by an AnnotationModel are wrapped by a ComputationException
by Marius Bogoevici (JIRA)
Definition/DeploymentExceptions thrown by an AnnotationModel are wrapped by a ComputationException
--------------------------------------------------------------------------------------------------
Key: WELD-575
URL: https://jira.jboss.org/browse/WELD-575
Project: Weld
Issue Type: Feature Request
Components: Reflection layer
Affects Versions: 1.0.1.Final
Reporter: Marius Bogoevici
Assignee: Pete Muir
Fix For: 1.1.0.BETA1
If an exception is thrown while evaluating a Function, the exception is wrapped by a ComputationException. As a result, the exceptions thrown by the AnnotationModel subclasses (Stereotype, InterceptionBinding) - which indicate a definition error detected while parsing the annotation are thrown as ComputationExceptions by the framework.
An illustration for this can be found in MetaAnnotationStore.getInterceptionBindingModel, although this needs to be done in a more general fashion.
--
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
13 years, 4 months