Switchyard 0.8 SCA Binding and Clustering
scisci Mar 29, 2013 4:44 AMHi,
We have two project
the first
a simlpe java bean with a java interface and a SCA bind (clustered)
we have copiled, installed and deployed with mvn
the second
a simple java bean with a java interface
a reference to the other service with a java interface and a SCA bind with RoundRobin strategy
( we have added the the other service java interface as POM dependecy , is it correct ?)
and a scheduling binding.
We have deployed the services as cluster demo quickstart ( node2, node3 first service and on node1 second ) and this i log on node1:
09:17:43,003 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 29) JBAS016200: Activating ConfigAdmin Subsystem
09:17:43,028 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 34) JBAS010280: Activating Infinispan subsystem.
09:17:43,040 INFO [org.jboss.as.security] (ServerService Thread Pool -- 49) JBAS013101: Activating Security Subsystem
09:17:43,040 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 43) JBAS011800: Activating Naming Subsystem
09:17:43,076 INFO [org.jboss.as.security] (MSC service thread 1-6) JBAS013100: Current PicketBox version=4.0.7.Final
09:17:43,079 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
09:17:43,083 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 44) JBAS011940: Activating OSGi Subsystem
09:17:43,099 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 53) JBAS015537: Activating WebServices Extension
09:17:43,109 INFO [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
09:17:43,109 INFO [org.jboss.as.clustering.jgroups] (ServerService Thread Pool -- 38) JBAS010260: Activating JGroups subsystem.
09:17:43,112 INFO [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
09:17:43,117 INFO [org.switchyard] (ServerService Thread Pool -- 55) Activating SwitchYard Extension
09:17:43,137 INFO [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]
09:17:43,474 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.2.GA
09:17:43,562 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 34) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
09:17:43,567 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
09:17:43,588 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 34) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
09:17:43,585 INFO [org.apache.coyote.ajp.AjpProtocol] (MSC service thread 1-1) Starting Coyote AJP/1.3 on ajp--127.0.0.1-8009
09:17:43,757 INFO [org.jboss.modcluster.ModClusterService] (MSC service thread 1-7) Initializing mod_cluster 1.2.0.Final
09:17:43,773 INFO [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (MSC service thread 1-7) Listening to proxy advertisements on 224.0.1.105:23364
09:17:43,819 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
09:17:43,819 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/jbpmDS]
09:17:43,825 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory C:\switchyard-as7-0.8.0.Final\switchyard-as7-0.8\node1\deployments
09:17:43,861 INFO [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:9999
09:17:43,861 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:4447
09:17:43,933 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "Prova_SCA.jar"
09:17:44,133 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016002: Processing weld deployment Prova_SCA.jar
09:17:44,194 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016005: Starting Services for CDI deployment: Prova_SCA.jar
09:17:44,252 INFO [org.jboss.weld.Version] (MSC service thread 1-8) WELD-000900 1.1.6 (Final)
09:17:44,268 INFO [org.switchyard] (MSC service thread 1-8) Deploying SwitchYard application 'Prova_SCA.jar'
09:17:44,275 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016008: Starting weld service for deployment Prova_SCA.jar
09:17:44,663 INFO [stdout] (pool-6-thread-1)
09:17:44,665 INFO [stdout] (pool-6-thread-1) -------------------------------------------------------------------
09:17:44,667 INFO [stdout] (pool-6-thread-1) GMS: address=node1/cluster, cluster=cluster, physical address=127.0.0.1:55200
09:17:44,669 INFO [stdout] (pool-6-thread-1) -------------------------------------------------------------------
09:17:44,941 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-9-thread-1) ISPN000078: Starting JGroups Channel
09:17:44,951 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-9-thread-1) ISPN000094: Received new cluster view: [node2/cluster|2] [node2/cluster, node3/cluster, node1/cluster]
09:17:44,956 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-9-thread-1) ISPN000079: Cache local address is node1/cluster, physical addresses are [127.0.0.1:55200]
09:17:44,964 INFO [org.infinispan.factories.GlobalComponentRegistry] (pool-9-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL
09:17:45,234 INFO [org.infinispan.jmx.CacheJmxRegistration] (pool-9-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
09:17:45,292 INFO [org.jboss.as.clustering.infinispan] (pool-9-thread-1) JBAS010281: Started default cache from cluster container
09:17:45,299 INFO [org.switchyard] (MSC service thread 1-1) Starting SwitchYard service
09:17:45,469 INFO [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-1) JMX enabled.
09:17:45,484 INFO [org.switchyard.security.SecurityProvider] (MSC service thread 1-1) Using SecurityProvider implementation: org.switchyard.security.jboss.JBossJaasSecurityProvider
09:17:45,490 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Apache Camel 0.8.0.Final (CamelContext: camel-1) is starting
09:17:45,494 INFO [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-1) StatisticsLevel at All so enabling load performance statistics
09:17:45,576 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-1) Loaded 179 type converters
09:17:45,588 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Total 0 routes, of which 0 is started.
09:17:45,593 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Apache Camel 0.8.0.Final (CamelContext: camel-1) started in 0.098 seconds
09:17:45,860 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-1) Loaded 179 type converters
09:17:46,283 INFO [org.switchyard.as7.extension.cluster.RemoteEndpointListener] (MSC service thread 1-1) Published Remote Service Endpoint /switchyard-remote
09:17:46,289 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Apache Camel 0.8.0.Final (CamelContext: camel-1) is shutting down
09:17:46,295 INFO [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-1) TypeConverterRegistry utilization[attempts=0, hits=0, misses=0, failures=0] mappings[total=179, misses=0]
09:17:46,300 INFO [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-1) Apache Camel 0.8.0.Final (CamelContext: camel-1) is shutdown in 0.011 seconds. Uptime 0.810 seconds.
09:17:46,306 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."Prova_SCA.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."Prova_SCA.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unable to instantiate strategy class: RoundRobin
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:85)
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.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]
Caused by: org.switchyard.exception.SwitchYardException: Unable to instantiate strategy class: RoundRobin
at org.switchyard.component.sca.SCAInvoker.createLoadBalancer(SCAInvoker.java:152)
at org.switchyard.component.sca.SCAInvoker.<init>(SCAInvoker.java:64)
at org.switchyard.component.sca.deploy.SCAActivator.activateBinding(SCAActivator.java:94)
at org.switchyard.deploy.internal.Deployment.deployReferenceBindings(Deployment.java:274)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:139)
at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:106)
at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:78)
... 5 more
Caused by: java.lang.ClassNotFoundException: RoundRobin from [Module "org.switchyard.component.sca:main" from local module loader @c90a0a (roots: C:\switchyard-as7-0.8.0.Final\switchyard-as7-0.8\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_05]
at java.lang.Class.forName(Class.java:186) [rt.jar:1.7.0_05]
at org.switchyard.component.sca.SCAInvoker.createLoadBalancer(SCAInvoker.java:146)
... 11 more
09:17:46,385 INFO [org.jboss.as] (MSC service thread 1-1) JBAS015951: Admin console listening on http://127.0.0.1:9990
09:17:46,387 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Prova_SCA.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Prova_SCA.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Prova_SCA.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unable to instantiate strategy class: RoundRobin"}}
09:17:46,389 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 4915ms - Started 189 of 318 services (1 services failed or missing dependencies, 126 services are passive or on-demand)
09:17:46,403 INFO [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016009: Stopping weld service for deployment Prova_SCA.jar
09:17:46,416 INFO [org.jboss.as.clustering.infinispan] (pool-9-thread-1) JBAS010282: Stopped default cache from cluster container
09:17:46,416 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment Prova_SCA.jar in 29ms
09:17:46,437 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-5-thread-1) ISPN000082: Stopping the RpcDispatcher
09:17:46,756 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."Prova_SCA.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."Prova_SCA.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unable to instantiate strategy class: RoundRobin
09:17:46,773 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Prova_SCA.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Prova_SCA.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unable to instantiate strategy class: RoundRobin"}}}}
May someone help us??
Thanks
Mirko