[JBoss JIRA] Created: (WELD-793) Make bootstrap more granular
by Pete Muir (JIRA)
Make bootstrap more granular
----------------------------
Key: WELD-793
URL: https://issues.jboss.org/browse/WELD-793
Project: Weld
Issue Type: Feature Request
Affects Versions: 1.1.0.CR1
Reporter: Pete Muir
Priority: Blocker
Fix For: 1.2.0.Beta1
Currently the bootstrap is fairly coarse grained, not allowing the container to "skip" parts of bootstrap if it can provide the information externally.
The primary goal here is to allow the container to skip the the bootstrap up until after all ProcessAnnotatedType events have been sent, and the modified class metadata has been built. My proposal for this is to introduce a new method to bootstrap that passes in a map of BDA->AnnotatedType that Weld can use to boot.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (WELD-1095) Document unsafe instantiators
by Jozef Hartinger (JIRA)
Jozef Hartinger created WELD-1095:
-------------------------------------
Summary: Document unsafe instantiators
Key: WELD-1095
URL: https://issues.jboss.org/browse/WELD-1095
Project: Weld
Issue Type: Feature Request
Components: Reflection layer
Affects Versions: 1.1.6.Final
Reporter: Jozef Hartinger
Assignee: Ales Justin
Priority: Minor
Fix For: 1.2.0.Beta1
WELD-56 has been resolved a while ago however the docs still say:
{quote}
A future release of Weld will likely support a non-standard workaround for this limitation, using non-portable JVM APIs:
Sun, IcedTea, Mac: Unsafe.allocateInstance() (The most efficient)
IBM, JRockit: ReflectionFactory.newConstructorForSerialization()
But we didn't get around to implementing this yet.
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (WELD-1113) Specializing beans in different bean archives is still broken
by Mark Struberg (JIRA)
Mark Struberg created WELD-1113:
-----------------------------------
Summary: Specializing beans in different bean archives is still broken
Key: WELD-1113
URL: https://issues.jboss.org/browse/WELD-1113
Project: Weld
Issue Type: Bug
Reporter: Mark Struberg
This is a follow up on WELD-912.
It appears that this is still broken!
I tried it first on glassfish-3.1.1. with an upgraded weld-osgi-bundle.1.1.7.Final.
I get the following error reported:
remote failure: Error occurred during deployment: Exception while loading the app : WELD-000047 Specializing bean must extend another bean: Managed Bean [class at.ac.tuwien.tiss.core.fe.codi.TissCodiWindowContextConfig] with qualifiers [@Any @Default]. Please see server.log for more details.
But my class extends the parent class:
public class TissCodiWindowContextConfig extends WindowContextConfig { ..
The TissCodiWindowContextConfig is in my project jar, the parent class in codi-jsf.jar, both in my WEB-INF/lib folders of my webapp.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (WELD-1145) Unsatisfied dependencies for generic type arrays
by Marek Schmidt (JIRA)
Marek Schmidt created WELD-1145:
-----------------------------------
Summary: Unsatisfied dependencies for generic type arrays
Key: WELD-1145
URL: https://issues.jboss.org/browse/WELD-1145
Project: Weld
Issue Type: Bug
Affects Versions: 1.1.8.Final
Environment: JBoss AS 7.1.2.Final
Reporter: Marek Schmidt
Assignee: Ales Justin
The following set of beans fail to deploy with
{code}
public class Bar<X>
{
public Bar(X x) {
this.x = x;
}
public X x;
}
{code}
{code}
public class BarsProducer
{
private static Bar<Integer>[] bars = new Bar[]{new Bar<Integer>(new Integer(1))};
@Produces
public Bar<Integer>[] getBars() {
return bars;
}
}
{code}
{code}
public class Foo
{
@Inject Bar<Integer>[] field;
}
{code}
{noformat}
14:23:47,915 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."jboss-as-helloworld.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-as-helloworld.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [Bar[]] with qualifiers [@Default] at injection point [[field] @Inject org.jboss.as.quickstarts.helloworld.Foo.field]
at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [Bar[]] with qualifiers [@Default] at injection point [[field] @Inject org.jboss.as.quickstarts.helloworld.Foo.field]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:380)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
... 5 more
{noformat}
Also note that the src/test/java/org/jboss/weld/tests/arrays/ArrayInjectionTest.java will fail if @Inject is used to inject the arrays instead of the arquillian enrichment.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month