[JBoss JIRA] Updated: (WELDINT-40) JBossTransactionServices fails to deploy within a profile with JTS transactions installed
by Pete Muir (JIRA)
[ https://jira.jboss.org/jira/browse/WELDINT-40?page=com.atlassian.jira.plu... ]
Pete Muir updated WELDINT-40:
-----------------------------
Fix Version/s: 6.0.0.CR1
> JBossTransactionServices fails to deploy within a profile with JTS transactions installed
> -----------------------------------------------------------------------------------------
>
> Key: WELDINT-40
> URL: https://jira.jboss.org/jira/browse/WELDINT-40
> Project: Weld Integration
> Issue Type: Bug
> Components: JBoss Services (Other)
> Environment: 'all' profile with JTS transactions installed; trunk of the JBossAS
> Reporter: Ivo Studensky
> Fix For: 6.0.0.CR1
>
>
> In case of the JTS transactions installed into the 'all' profile, the JBossTransactionServices mbean from the weld.deployer fails to deploy.
> The org.jboss.weld.integration.transaction.JBossTransactionServices class uses com.arjuna.ats.jbossatx.jta.TransactionManagerService for TM and although the com.arjuna.ats.jbossatx.jts.TransactionManagerService class extends it, deployment of the JBossTransactionServices mbean fails with this error:
> 15:31:51,511 ERROR [AbstractKernelController] Error installing to Instantiated: name=JBossTransactionServices state=Described: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[com.arjuna.ats.jbossatx.jta.TransactionManagerService] actual=[com.arjuna.ats.jbossatx.jts.TransactionManagerService]
> at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
> at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
> at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
> at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
> at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:295)
> at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:116)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
> at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
> at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
> at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
> at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
> at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
> at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
> at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
> at org.jboss.system.ServiceController.doChange(ServiceController.java:671)
> at org.jboss.system.ServiceController.start(ServiceController.java:443)
> at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)
> at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
> at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
> at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
> at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)
> at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:291)
> at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)
> at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1570)
> at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1535)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:944)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
> at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
> at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
> at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
> at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
> at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:260)
> at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:102)
> at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:829)
> at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:432)
> at java.lang.Thread.run(Thread.java:619)
> See snippet of the JBossTransactionServices class:
> ...
> import com.arjuna.ats.jbossatx.jta.TransactionManagerService;
> ...
> public class JBossTransactionServices implements TransactionServices
> {
>
> /** The TM */
> private final TransactionManagerService transactionManager;
>
> public JBossTransactionServices(TransactionManagerService transactionManager)
> {
> this.transactionManager = transactionManager;
> }
> ...
--
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, 3 months
[JBoss JIRA] Closed: (WELDINT-32) Injectiing TimerService or Session context fails
by Pete Muir (JIRA)
[ https://jira.jboss.org/jira/browse/WELDINT-32?page=com.atlassian.jira.plu... ]
Pete Muir closed WELDINT-32.
----------------------------
Resolution: Duplicate Issue
Mark as dupe of other issues
> Injectiing TimerService or Session context fails
> ------------------------------------------------
>
> Key: WELDINT-32
> URL: https://jira.jboss.org/jira/browse/WELDINT-32
> Project: Weld Integration
> Issue Type: Bug
> Components: JBoss EJB 3.0 integration
> Environment: Windows Vista x86_64, JDK1.6.0_17
> Reporter: Nikolay Elenkov
>
> Injection using @Resource fails with this exception:
> java.lang.RuntimeException: Error resolving property asyncTest against base null
> org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:120)
> org.jboss.weld.integration.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:51)
> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
> ...
> caused by
> java.lang.RuntimeException: Error looking up java:/comp/env/weldtest.weldjsf.AsyncTest/timerService in JNDI
> org.jboss.weld.injection.spi.helpers.AbstractResourceServices.resolveResource(AbstractResourceServices.java:38)
> org.jboss.weld.util.Beans.injectEEFields(Beans.java:692)
> org.jboss.weld.bean.ManagedBean$1$1.proceed(ManagedBean.java:218)
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:51)
> Code:
> @Stateless
> public class AsyncTest {
> @Resource
> private TimerService timerService;
> @Resource
> private SessionContext sessionContext
> According to Nicklas Karlsson this is a 'bug in the integration where JBoss reports to Weld on which EJB:s are available where' (see forum link)
>
--
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, 3 months
[JBoss JIRA] Updated: (WELDINT-32) Injectiing TimerService or Session context fails
by Pete Muir (JIRA)
[ https://jira.jboss.org/jira/browse/WELDINT-32?page=com.atlassian.jira.plu... ]
Pete Muir updated WELDINT-32:
-----------------------------
Assignee: (was: Pete Muir)
> Injectiing TimerService or Session context fails
> ------------------------------------------------
>
> Key: WELDINT-32
> URL: https://jira.jboss.org/jira/browse/WELDINT-32
> Project: Weld Integration
> Issue Type: Bug
> Components: JBoss EJB 3.0 integration
> Environment: Windows Vista x86_64, JDK1.6.0_17
> Reporter: Nikolay Elenkov
>
> Injection using @Resource fails with this exception:
> java.lang.RuntimeException: Error resolving property asyncTest against base null
> org.jboss.weld.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:120)
> org.jboss.weld.integration.webtier.jsf.ForwardingELResolver.getValue(ForwardingELResolver.java:51)
> javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
> com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
> ...
> caused by
> java.lang.RuntimeException: Error looking up java:/comp/env/weldtest.weldjsf.AsyncTest/timerService in JNDI
> org.jboss.weld.injection.spi.helpers.AbstractResourceServices.resolveResource(AbstractResourceServices.java:38)
> org.jboss.weld.util.Beans.injectEEFields(Beans.java:692)
> org.jboss.weld.bean.ManagedBean$1$1.proceed(ManagedBean.java:218)
> org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:51)
> Code:
> @Stateless
> public class AsyncTest {
> @Resource
> private TimerService timerService;
> @Resource
> private SessionContext sessionContext
> According to Nicklas Karlsson this is a 'bug in the integration where JBoss reports to Weld on which EJB:s are available where' (see forum link)
>
--
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, 3 months