8 Replies Latest reply on Apr 4, 2013 4:58 AM by scisci

    Switchyard 0.8 SCA Binding and Clustering

    scisci

      Hi,

      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

        • 1. Re: Switchyard 0.8 SCA Binding and Clustering
          solimo

          Hi,

           

          Had same error when generated SCA binding for composite reference with graphic tool in v 0.8. If you are going to use Round Robin any way just drop {urn:switchyard-config:switchyard:1.0} loadBalance="RoundRobin" from your SCA binding. It's just a mare workaround but for me it was a blocking issue while playing with SCA binding.

           

          Robert

          • 2. Re: Switchyard 0.8 SCA Binding and Clustering
            kcbabo

            This is a bug in the tooling:

            https://issues.jboss.org/browse/SWITCHYARD-1371

             

            You need to use RoundRobinStrategy instead of RoundRobin.  The workaround is to specify a custom class for load balance strategy and use the name "RoundRobinStrategy" for the class name.  As Robert pointed out above, the default setting at runtime if nothing is specified is RoundRobinStrategy so you could also just delete the loadBalance attribute from your switchyard.xml.

            • 3. Re: Switchyard 0.8 SCA Binding and Clustering
              scisci

              Hi,

              now the problem with the RoundRobin Strategy is resolved but now we have a porblem with the java inteface of the first servcie.

              On the cluster demo quickstart you have directly added the code of the interface in the dealer, we have added the interface as dependency of pom, is it correct ?

              Is this the problem why don't find the interface ?

               

              the error log ...

               

              13:04:18,172 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) 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: Failed to load Service interface class 'it.gestielle.switchyard.Talend_Exec.Talend_Exec'.

                  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: Failed to load Service interface class 'it.gestielle.switchyard.Talend_Exec.Talend_Exec'.

                  at org.switchyard.deploy.internal.Deployment.loadServiceInterface(Deployment.java:353)

                  at org.switchyard.deploy.internal.Deployment.getCompositeReferenceInterface(Deployment.java:292)

                  at org.switchyard.deploy.internal.Deployment.deployReferenceBindings(Deployment.java:276)

                  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

               

              13:04:18,222 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015951: Admin console listening on http://127.0.0.1:9990

              13:04:18,223 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: Failed to load Service interface class 'it.gestielle.switchyard.Talend_Exec.Talend_Exec'."}}

              13:04:18,228 ERROR [org.jboss.as] (MSC service thread 1-8) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 4712ms - Started 189 of 318 services (1 services failed or missing dependencies, 126 services are passive or on-demand)

              13:04:18,250 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016009: Stopping weld service for deployment Prova_SCA.jar

              13:04:18,262 INFO  [org.jboss.as.clustering.infinispan] (pool-12-thread-1) JBAS010282: Stopped default cache from cluster container

              13:04:18,264 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment Prova_SCA.jar in 40ms

              13:04:18,285 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-3-thread-1) ISPN000082: Stopping the RpcDispatcher

              13:04:18,300 SEVERE [org.jgroups.protocols.UNICAST2] (OOB-18,null) node1/cluster: sender window for node2/cluster not found

              13:04:18,608 INFO  [org.jboss.as.contro

              13:04:18,623 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: Failed to load Service interface class 'it.gestielle.switchyard.Talend_Exec.Talend_Exec'."}}}}

               

              help please

              Thank

              Mirko

              • 4. Re: Switchyard 0.8 SCA Binding and Clustering
                kcbabo

                If you reference a class from an application then it needs to be resolvable within the class loader space of the deployment.  Common approaches to this include:

                 

                1) Including a version of the class in each deployment which uses it.

                2) Creating a distinct module/deployment for shared classes and resources and then introduce a dependency on this module for each application deployment.

                 

                Option 2 is preferred and is the approach followed by the multiApp quickstart if you're looking for an example of how to define the shared deployment and reference it from applications:

                https://github.com/jboss-switchyard/quickstarts/tree/master/demos/multiApp

                 

                Option 1 is quick and easy, but it can lead to problems long term if versions of the class start to change and is particularly dicey if both applications are in the same VM.

                • 5. Re: Switchyard 0.8 SCA Binding and Clustering
                  kcbabo

                  BTW, the POM dependency resolves the class for building your application.  The above comment is about resolving the class when your application is deployed to the runtime.

                  • 6. Re: Switchyard 0.8 SCA Binding and Clustering
                    scisci

                    Hi,

                    I've tryed with the second option, as multiApp I've create two distinct project one only with the interface ( it.gestielle.switchyard package ) and the second with only the service implementation (it.gestielle.switchyard.Talend_Exec_Service package)

                    On the second project I've imported the interface as runtime POM dependecy and deployed the two jar on server

                     

                    this is the log error

                     

                    17:12:59,244 INFO  [org.switchyard] (MSC service thread 1-5) Deploying SwitchYard application 'Talend_Exec.jar'

                    17:12:59,251 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016008: Starting weld service for deployment Talend_Exec.jar

                    17:12:59,425 WARN  [org.jboss.modules] (MSC service thread 1-3) Failed to define class it.gestielle.switchyard.Talend_Exec_Service.Talend_ExecBean in Module "deployment.Talend_Exec.jar:main" from Service Module Loader: java.lang.LinkageError: Failed to link it/gestielle/switchyard/Talend_Exec_Service/Talend_ExecBean (Module "deployment.Talend_Exec.jar:main" from Service Module Loader)

                        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                        at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                        at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                        at org.jboss.modules.Module.loadModuleClass(Module.java:517)

                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                        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 org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.weld.bootstrap.BeanDeployer.loadClass(BeanDeployer.java:98) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:77) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:123) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                        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: java.lang.NoClassDefFoundError: it/gestielle/switchyard/Talend_Exec

                        at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_05]

                        at java.lang.ClassLoader.defineClass(ClassLoader.java:791) [rt.jar:1.7.0_05]

                        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.7.0_05]

                        at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                        ... 21 more

                    Caused by: java.lang.ClassNotFoundException: it.gestielle.switchyard.Talend_Exec from [Module "deployment.Talend_Exec.jar:main" from Service Module Loader]

                        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)

                        ... 26 more

                     

                    17:12:59,459 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) WELD-000119 Not generating any bean definitions from it.gestielle.switchyard.Talend_Exec_Service.Talend_ExecBean because of underlying class loading error

                    17:12:59,462 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-3) catching: org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.ClassNotFoundException: it.gestielle.switchyard.Talend_Exec_Service.Talend_ExecBean from [Module "deployment.Talend_Exec.jar:main" from Service Module Loader]

                        at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:74) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.weld.bootstrap.BeanDeployer.loadClass(BeanDeployer.java:98) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:77) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:123) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                        at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                        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: java.lang.ClassNotFoundException: it.gestielle.switchyard.Talend_Exec_Service.Talend_ExecBean from [Module "deployment.Talend_Exec.jar:main" from Service Module Loader]

                        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 org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                        ... 12 more

                     

                    17:12:59,711 INFO  [org.switchyard] (MSC service thread 1-7) Starting SwitchYard service

                    17:12:59,882 INFO  [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-7) JMX enabled.

                    17:12:59,896 INFO  [org.switchyard.security.SecurityProvider] (MSC service thread 1-7) Using SecurityProvider implementation: org.switchyard.security.jboss.JBossJaasSecurityProvider

                    17:12:59,900 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Apache Camel 0.8.0.Final (CamelContext: camel-1) is starting

                    17:12:59,901 INFO  [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-7) StatisticsLevel at All so enabling load performance statistics

                    17:12:59,991 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-7) Loaded 179 type converters

                    17:13:00,005 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Total 0 routes, of which 0 is started.

                    17:13:00,007 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Apache Camel 0.8.0.Final (CamelContext: camel-1) started in 0.105 seconds

                    17:13:00,017 INFO  [org.switchyard.component.sca.deploy.SCAActivator] (MSC service thread 1-7) Unable to resolve cache-container cluster.  clustering for <binding.sca> will not be available for services and references.

                    17:13:00,133 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-7) Loaded 179 type converters

                    17:13:00,371 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Apache Camel 0.8.0.Final (CamelContext: camel-1) is shutting down

                    17:13:00,375 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-7) TypeConverterRegistry utilization[attempts=0, hits=0, misses=0, failures=0] mappings[total=179, misses=0]

                    17:13:00,377 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-7) Apache Camel 0.8.0.Final (CamelContext: camel-1) is shutdown in 0.006 seconds. Uptime 0.477 seconds.

                    17:13:00,379 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."Talend_Exec.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."Talend_Exec.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:it.gestielle.switchyard:Talend_Exec:1.0}Talend_Exec'.

                        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: Unknown Service name '{urn:it.gestielle.switchyard:Talend_Exec:1.0}Talend_Exec'.

                        at org.switchyard.component.bean.deploy.BeanComponentActivator.activateService(BeanComponentActivator.java:85)

                        at org.switchyard.deploy.internal.Deployment.deployImplementations(Deployment.java:460)

                        at org.switchyard.deploy.internal.Deployment.start(Deployment.java:140)

                        at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:106)

                        at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:78)

                        ... 5 more

                     

                    17:13:00,395 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015951: Admin console listening on http://127.0.0.1:9990

                    17:13:00,397 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Talend_Exec.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Talend_Exec.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Talend_Exec.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:it.gestielle.switchyard:Talend_Exec:1.0}Talend_Exec'."}}

                    17:13:00,397 ERROR [org.jboss.as] (MSC service thread 1-7) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 3575ms - Started 207 of 288 services (1 services failed or missing dependencies, 78 services are passive or on-demand)

                    17:13:00,401 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "Switchyard-Artifacts-0.0.1-SNAPSHOT.jar" was rolled back with no failure message

                    17:13:00,403 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016009: Stopping weld service for deployment Talend_Exec.jar

                    17:13:00,408 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment Switchyard-Artifacts-0.0.1-SNAPSHOT.jar in 6ms

                    17:13:00,412 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment Talend_Exec.jar in 15ms

                    17:13:00,414 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                    JBAS014777:   Services which failed to start:      service jboss.deployment.unit."Talend_Exec.jar".SwitchYardService: org.jboss.msc.service.StartException in service jboss.deployment.unit."Talend_Exec.jar".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:it.gestielle.switchyard:Talend_Exec:1.0}Talend_Exec'.

                     

                    17:13:00,418 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

                    17:13:00,422 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.\"Talend_Exec.jar\".SwitchYardService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Talend_Exec.jar\".SwitchYardService: org.switchyard.exception.SwitchYardException: Unknown Service name '{urn:it.gestielle.switchyard:Talend_Exec:1.0}Talend_Exec'."}}}}

                     

                    May help me please.

                    I apologize if my questions seem stupid

                    Thanks

                    Mirko

                    • 7. Re: Switchyard 0.8 SCA Binding and Clustering
                      kcbabo

                      I suspect this is just a misconfiguration issue and that the dependency is not being added to the manifest of the application with the implementation (which depends on the deployment with the interface).  Declaring a POM dependency is not enough.  You need to configure the maven jar plugin to add the dependency as an entry to the deployment jar's manifest.  Like this:

                      https://github.com/jboss-switchyard/quickstarts/blob/master/demos/multiApp/order-service/pom.xml#L93

                       

                      If you've done that already or you still have trouble after trying that, please attach your projects so we can help debug further.

                      • 8. Re: Switchyard 0.8 SCA Binding and Clustering
                        scisci

                        Hi,

                        Now I've created two jar, one with the interface and second with the implemantation of the service. I've deployed and tested the service and now work (binding sca and soap)

                        I've created a new service with a reference to the first service (sca reference) but when deployed this service there was an error.

                        Attached the log file and the code of the new service

                        May someone help me

                        Thanks

                        Mirko