[
https://jira.jboss.org/browse/JBAS-8128?page=com.atlassian.jira.plugin.sy...
]
Marius Bogoevici resolved JBAS-8128.
------------------------------------
Resolution: Done
Modified to allow the creation of an empty ValidationService, in case a ValidationFactory
is not available for the deployment. This is a temporary fix, to allow non-Java EE JBoss
deployments to use CDI (although the injection of a @Resource Validator will not be
possible). A more comprehensive solution should be provided by JBAS-8171.
WeldBootstrapDeployer fails when beans are deployed in .jar
-----------------------------------------------------------
Key: JBAS-8128
URL:
https://jira.jboss.org/browse/JBAS-8128
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Weld/CDI
Affects Versions: 6.0.0.M3
Environment: OSX 10.6.4, JDK 1.6, JBoss AS 6 built from current trunk (default
config)
Reporter: Keith Babo
Assignee: Marius Bogoevici
Attachments: stack.txt, weld-pojo.jar, weld-pojo.zip
Deploying beans in a .jar archive causes the Weld deployer to puke. Full stack attached,
but here's a snip:
15:06:59,436 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to PreReal:
name=vfs:///opt/jboss-as/server/default/deploy/weld-pojo-0.0.1-SNAPSHOT.jar
state=PostClassLoader mode=Manual requiredState=PreReal:
org.jboss.deployers.spi.DeploymentException: Missing ValidatorFactory attachment in
deployment:
The deployment is basically two java classes: one bean uses @Inject to inject an instance
of the other bean. Certainly possible that I'm doing something stupid here, so please
let me know if that's the case.
Attached to this issue:
o stack.txt -> full stack when I drop the archive in server/default/deploy
o weld-pojo.jar -> example jar
o weld-pojo.zip -> example source
--
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