[JBoss JIRA] Created: (SWITCHYARD-222) CDI bean deployment @Reference injection failure on subsequent SwitchYard app deployments
by Tom Fennelly (JIRA)
CDI bean deployment @Reference injection failure on subsequent SwitchYard app deployments
-----------------------------------------------------------------------------------------
Key: SWITCHYARD-222
URL: https://issues.jboss.org/browse/SWITCHYARD-222
Project: SwitchYard
Issue Type: Bug
Components: component-bean, deployment
Reporter: Tom Fennelly
Assignee: Tom Fennelly
Fix For: 0.1
Background... 2 switchyard deployments. First deployment has multiple beans with an @Reference service injection point in one of the beans, injecting a reference to the other service interface. When you attempt to deploy the second switchyard deployment, it fails during the weld deployment validation phase with an error that the injection point in the first deployment (remember... we're now deploying the second deployment) can not be resolved.
I dug into this with a debugger and I see the following....
When the 1st deployment is being deployed, the SwitchYard CDI extension receives all of the appropriate ProcessBean @Observes events from the weld bootstrap BeanDeployer. This triggers the addition of the SwitchYard client proxy beans for the injection point and the weld validation phase passes successfully.
When the 2nd deployment is being deployed, the WeldBootstrap class seems to go through the same process again for all deployments... loading all the classes, creating the beans, deploying them etc. This time however, when processing the deployment for the first deployment (containing the injection points), it doesn't seem to fire the ProcessBean @Observes events for the beans, resulting in a situation where the SwitchYard client proxy is never created for the injection point, resulting in the failure during the validation phase. From what I can make out... it looks like our SwitchYard CDI extension is not getting added to the BeanManager as one of the observers of the ProcessBean @Observes events, but I'm not totally sure about that.
I've no idea why it needs to go through all this process over and over again for every BeanDeployment archive.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (SWITCHYARD-217) Camel component fails on deploy in AS6
by Keith Babo (JIRA)
Camel component fails on deploy in AS6
--------------------------------------
Key: SWITCHYARD-217
URL: https://issues.jboss.org/browse/SWITCHYARD-217
Project: SwitchYard
Issue Type: Feature Request
Components: component-camel
Reporter: Keith Babo
Assignee: Daniel Bevenius
Fix For: 0.1
dbevenius
kcbabo: I think we need a ClasspathResovoler for this...one sec..
kcbabo: http://camel.apache.org/camel-jboss.html
kcbabo: That page desribes how to deploy camel to jboss...
8:24
kcbabo: I think you might be seeing this exception
09:20:06,892 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=switchyard.vfs:///opt/as6/jboss-6.0.0.Final/server/default/deploy/m3app-1.0.0-SNAPSHOT.jar state=Create: java.lang.IllegalStateException: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.milyn.smooks.camel.converters, org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter]
at org.switchyard.component.camel.deploy.CamelActivator.startCamelContext(CamelActivator.java:170) [:0.1.0-SNAPSHOT]
at org.switchyard.component.camel.deploy.CamelActivator.init(CamelActivator.java:86) [:0.1.0-SNAPSHOT]
at org.switchyard.deploy.internal.Deployment.deployServiceBindings(Deployment.java:301) [:0.1.0-SNAPSHOT]
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:118) [:0.1.0-SNAPSHOT]
at org.switchyard.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:67) [:0.1.0-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_24]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_24]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_24]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_24]
at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.milyn.smooks.camel.converters, org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter]
at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:971) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:986) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:1911) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1403) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1321) [:2.6.0]
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) [:2.6.0]
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1299) [:2.6.0]
at org.switchyard.component.camel.deploy.CamelActivator.startCamelContext(CamelActivator.java:168) [:0.1.0-SNAPSHOT]
... 61 more
Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: [org.milyn.smooks.camel.converters, org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter]
at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:77) [:2.6.0]
at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:395) [:2.6.0]
at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:41) [:2.6.0]
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:65) [:2.6.0]
at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:52) [:2.6.0]
at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:52) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.startServices(DefaultCamelContext.java:1593) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:884) [:2.6.0]
at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:969) [:2.6.0]
... 69 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months