Issue Type: Bug Bug
Affects Versions: 2.0.0.Alpha3
Assignee: Marek Schmidt
Components: Examples
Created: 11/Jul/12 9:35 AM
Description:

The pastecode example fails to deploy with

15:18:03,163 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."weld-pastecode.war".WeldService: org.jboss.msc.service.StartException in service jb
oss.deployment.unit."weld-pastecode.war".WeldService: org.jboss.weld.exceptions.DefinitionException: WELD-001451 javax.transaction.UserTransaction cannot be injected into an enterprise bean with container-managed 
transactions [BackedAnnotatedField] @Inject private org.jboss.weld.examples.pastecode.session.PopulateDatabase.utx
        at org.jboss.as.weld.services.WeldService.start(WeldService.java:84)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
        at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-001451 javax.transaction.UserTransaction cannot be injected into an enterprise bean with container-managed transactions [BackedAnnotatedField] @Inject
 private org.jboss.weld.examples.pastecode.session.PopulateDatabase.utx
        at org.jboss.weld.bootstrap.Validator.validateInjectionPointForDefinitionErrors(Validator.java:354)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:296)
        at org.jboss.weld.bootstrap.Validator.validateGeneralBean(Validator.java:157)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:184)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:470)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:74)
        at org.jboss.weld.bootstrap.ConcurrentValidator$1.doWork(ConcurrentValidator.java:72)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
        at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_30]
        at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_30]
        ... 3 more

The problem seems to be exactly as the error says.

Environment: JBoss AS 7.1.1 + Weld 2.0.0.Alpha3
Fix Versions: 2.0.0.Alpha4
Project: Weld
Priority: Major Major
Reporter: Marek Schmidt
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira