[JBoss JIRA] Created: (WELDINT-29) Add deployers for injection between Weld and MC
by Kabir Khan (JIRA)
Add deployers for injection between Weld and MC
-----------------------------------------------
Key: WELDINT-29
URL: https://jira.jboss.org/jira/browse/WELDINT-29
Project: Weld Integration
Issue Type: Feature Request
Components: Deployer
Reporter: Kabir Khan
Assignee: Pete Muir
Fix For: 5.2.0.Beta5
On 10 Nov 2009, at 10:39, Kabir Khan wrote:
Hi Pete,
I've done a fair bit of work on https://svn.jboss.org/repos/jbossas/projects/weld-int/trunk/deployer which I need to commit. This falls into two parts.
1) Moving some of the hardcoded strings created by the deployers into DeployersUtils utility methods
2) New stuff for mc-weld integration
I know you guys are busy releasing everything and don't want to fuck things up for you. So first of all, is there a code freeze on this repository at the moment?
<pete>No code freeze officially. I did a new release of weld-int last night with the latest Weld 1.0.0 code. If you could hold until later today, so I can verify all, that would be great :-)</pete>
Secondly, it looks like the AS 5.2 releases are taken from trunk?
<pete>Yes.</pete>
The stuff for 1) is pretty trivial. Apart from those the changes for 2) are all new classes, but this depends on snapshot versions of MC kernel and deployers. Unless you have any objections or better suggestions, I think I will create a new module for my 2) work which hardcodes the dependencies to those snapshot versions and which is excluded from the main build unless run with a special profile untill we have some proper MC releases.
<pete>Yes, quite happy with that!</pete>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months
[JBoss JIRA] Created: (CDITCK-67) test applications failed to deploy due to "unresolvable ambiguous EL name exists"
by Hong Zhang (JIRA)
test applications failed to deploy due to "unresolvable ambiguous EL name exists"
---------------------------------------------------------------------------------
Key: CDITCK-67
URL: https://jira.jboss.org/jira/browse/CDITCK-67
Project: CDI TCK
Issue Type: CTS Challenge
Security Level: Public (Everyone can see)
Affects Versions: 1.0.0.GA
Environment: Ubuntu/X86
Reporter: Hong Zhang
Priority: Critical
I am investigation the test failures for org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest class. The deployment failed for the application due to some validation failure in weld RI code.
>From the stack trace, it found two beans with name "farmer":
Caused by: org.jboss.weld.DeploymentException: An unresolvable ambiguous EL name exists for farmer; found [org.jboss.weld.bean-/home/hzhang/files/sun/glassfishv3/glassfish/domains/domain1/applications/org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest/org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest_jar/-SessionBean-LazyFarmer, org.jboss.weld.bean-/home/hzhang/files/sun/glassfishv3/glassfish/domains/domain1/applications/org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest/org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationTest_jar/-SessionBean-Farmer]
at org.jboss.weld.Validator.validateBeanNames(Validator.java:321)
at org.jboss.weld.Validator.validateDeployment(Validator.java:273)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:389)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:166)
So I tried to step into weld RI code to see why this happened.
This is what I found so far:
1. The Farmer class has a @Named annotation, and AbstractBean.initName() would set its name as the default name (the simple name of the class): "farmer".
2. The LazyFarmer class extends from Farmer class and does not have a @Named annotation, so AbstractBean.initName() does not assign any name to it. Its name is later assigned in AbstractBean.postSpecialize using its specialized bean's name (this.name = getSpecializedBean().getName()). Its specialized bean is its super class Farmer, and Farmer's name is "farmer". So now LazyFarmer's name is also "farmer".
Seems from the RI code, it's expected these two beans will have the same name "farmer". So not sure how this test would pass with the current TCK/RI.
This is also the cause of the deployment failure for org.jboss.jsr299.tck.tests.inheritance.specialization.enterprise.EnterpriseBeanSpecializationIntegrationTest
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 10 months