1 2 Previous Next 15 Replies Latest reply on Nov 15, 2012 10:05 PM by mageshbk

    Installing SwitchYard via Forge

    jsightler

      I am attempting to setup a SY project via forge, but the process is consistently failing:

       

      Using Forge at /home/jsightler/javadevtools/jbossforge/latest

          _____                   

         |  ___|__  _ __ __ _  ___

         | |_ / _ \| `__/ _` |/ _ \  \\

         |  _| (_) | | | (_| |  __/  //

         |_|  \___/|_|  \__, |\___|

                         |___/     

       

       

      JBoss Forge, version [ 1.1.1.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]

      [sytest1] sytest1 $ set VERBOSE true

      [sytest1] sytest1 $ project install-facet switchyard

       

       

      Unable to configure application for OpenShift: backup standalone.xml already exists /home/jsightler/project/openshift/sytest1/.openshift/config/standalone.xml.orig

      ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)

      org.jboss.forge.project.ProjectModelException: Could not complete installation of facet: [switchyard]. Installation was aborted by the Facet during installation.

                at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:246)

                at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:166)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

                at org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)

                at org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:105)

                at org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:81)

                at org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:59)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)

                at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)

                at org.jboss.forge.shell.plugins.builtin.project.ProjectPlugin.installFacet(ProjectPlugin.java:108)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)

                at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)

                at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818)

                at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841)

                at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:631)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

                at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)

                at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)

                at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)

                at java.lang.Thread.run(Thread.java:662)

      [sytest1] sytest1 $

       

      Am I doing something wrong? Is there a better way to do this?

        • 1. Re: Installing SwitchYard via Forge
          igarashitm

          Hello Jess,

           

          Could you remove following file and try again?

          /home/jsightler/project/openshift/sytest1/.openshift/config/standalone.xml.orig
          

           

          And I'm not sure anyone have tried to use with Forge 1.1.1 because our docs suggests to use 1.0.2.Final. You may hit unknown problem with it

          https://docs.jboss.org/author/display/SWITCHYARD/Installing+Forge+Tooling

           

          Thanks,

          Tomo

          • 2. Re: Installing SwitchYard via Forge
            jsightler

            I have tried it again, and I receive essentially the same error:

             

            Using Forge at /home/jsightler/javadevtools/jbossforge/latest

                _____                   

               |  ___|__  _ __ __ _  ___

               | |_ / _ \| `__/ _` |/ _ \  \\

               |  _| (_) | | | (_| |  __/  //

               |_|  \___/|_|  \__, |\___|

                               |___/     

             

             

            JBoss Forge, version [ 1.1.1.Final ] - JBoss, by Red Hat, Inc. [ http://jboss.org/forge ]

            [sytest4] sytest4 $ set VERBOSE true

            [sytest4] sytest4 $ project install-facet switchyard

             

             

            ? Facet [switchyard] requires packaging type(s) [jar], but is currently [war]. Update packaging? (Note: this could deactivate other plugins in your project.) [Y/n] Y

            Unable to configure application for OpenShift: Translet class loaded, but unable to create translet instance.

            Wrote /home/jsightler/project/openshift/sytest4/pom.xml

            ***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)

            org.jboss.forge.project.ProjectModelException: Could not complete installation of facet: [switchyard]. Installation was aborted by the Facet during installation.

                      at org.jboss.forge.project.BaseProject.performInstallation(BaseProject.java:246)

                      at org.jboss.forge.project.BaseProject.installFacet(BaseProject.java:166)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

                      at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

                      at org.jboss.weld.proxies.Project$-1946286523$Proxy$_$$_WeldClientProxy.installFacet(Project$-1946286523$Proxy$_$$_WeldClientProxy.java)

                      at org.jboss.forge.shell.project.FacetInstallationHandler.performInstallation(FacetInstallationHandler.java:105)

                      at org.jboss.forge.shell.project.FacetInstallationHandler.install(FacetInstallationHandler.java:81)

                      at org.jboss.forge.shell.project.FacetInstallationHandler.installRequest(FacetInstallationHandler.java:59)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                      at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                      at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

                      at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)

                      at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)

                      at org.jboss.forge.shell.plugins.builtin.project.ProjectPlugin.installFacet(ProjectPlugin.java:108)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.forge.shell.command.Execution.perform(Execution.java:134)

                      at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)

                      at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)

                      at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:818)

                      at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:841)

                      at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:631)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)

                      at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

                      at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                      at java.lang.reflect.Method.invoke(Method.java:597)

                      at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)

                      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)

                      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)

                      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)

                      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)

                      at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)

                      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)

                      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)

                      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)

                      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)

                      at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)

                      at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)

                      at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)

                      at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:172)

                      at java.lang.Thread.run(Thread.java:662)

            [sytest4] sytest4 $

             

            I will try it again with the old forge version later.

             

            Thanks,

            Jess

            • 3. Re: Installing SwitchYard via Forge
              igarashitm

              I think it's convenient if SwitchYardFacet just could remove standalone.xml.orig, so Raised a JIRA

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

              • 4. Re: Installing SwitchYard via Forge
                jsightler

                I'm still getting the same error with forge 1.0.6. I'm not really sure what could be the issue here.

                • 5. Re: Installing SwitchYard via Forge
                  jsightler

                  Ok, so this turned out to be a form of user error. Following the guide works:

                  https://docs.jboss.org/author/display/SWITCHYARD/Installing+Forge+Tooling

                   

                  Installing from within forge via "forge install-plugin switchyard" does not work at all.

                  • 6. Re: Installing SwitchYard via Forge
                    kcbabo

                    Which version of SY are you using?  I tested Forge 1.0.5 with SY 0.6 Final as part of our release sanity check and it worked A-OK.  That said, I did not test an OpenShift app, so I can give that a go and see if anything explodes.


                    FWIW, the version of SY in OpenShift is pretty old at the moment.  It's a mid-release capture of 0.4.  We are working with the OpenShift team to update our modules right now, so we should have 0.6 up their soonish.  In the meantime, you can always overlay modules by pushing newer module versions as part of your app.  We really need to make this process easier (like unzipping a zip into the .openshift dir of your app), but it's not quite there yet.

                    • 7. Re: Installing SwitchYard via Forge
                      jsightler

                      Yes, it looks like the install-facet is working now that I've installed the forge plugin correctly. :-)

                       

                      Having said that, I'm having a really difficult time getting a sample app deployed. I decided to update the modules to 0.6, but that didn't seem to help. It appears to startup ok, but nothing is accessible from the URL:

                       

                      http://sytest7-jsightlerdomain1.rhcloud.com/OrderService?wsdl

                       

                      I've uploaded the full sample app to:

                      https://www.dropbox.com/s/amohu6lxj9elexd/sytest7.zip

                       

                      This is attempting to deploy on the AS7 gear.

                      • 8. Re: Installing SwitchYard via Forge
                        igarashitm

                        Did you see the message like this in your app status? then you would get WSDL from http://127.0.0.1:8080/swydws/OrderService?wsdl

                        2012/03/14 14:55:41,376 INFO    [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-3) Setting the server's publish address to be http://127.0.0.1:8080/swydws/OrderService
                        

                         

                        You can get your app status by

                        rhc app status -l <openshift-account> -a <app-name>
                        
                        • 9. Re: Installing SwitchYard via Forge
                          jsightler

                          Yes, I received the following logs:

                          2012/11/15 00:25:35,565 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "sytest7.jar"

                          2012/11/15 00:25:36,156 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment sytest7.jar

                          2012/11/15 00:25:36,354 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: sytest7.jar

                          2012/11/15 00:25:36,654 INFO  [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900 1.1.5 (AS71)

                          2012/11/15 00:25:36,752 INFO  [org.switchyard] (MSC service thread 1-4) Deploying SwitchYard application 'sytest7.jar'

                          2012/11/15 00:25:36,762 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016008: Starting weld service for deployment sytest7.jar

                          2012/11/15 00:25:38,852 WARNING [org.jgroups.protocols.pbcast.NAKACK] (pool-6-thread-1) use_mcast_xmit should not be used because the transport (TCP) does not support IP multicasting; setting use_mcast_xmit to false

                          2012/11/15 00:25:39,348 INFO  [stdout] (pool-6-thread-1)

                          2012/11/15 00:25:39,349 INFO  [stdout] (pool-6-thread-1) -------------------------------------------------------------------

                          2012/11/15 00:25:39,355 INFO  [stdout] (pool-6-thread-1) GMS: address=sytest7-jsightlerdomain1.rhcloud.com/cluster, cluster=cluster, physical address=10.121.13.178:7600

                          2012/11/15 00:25:39,365 INFO  [stdout] (pool-6-thread-1) -------------------------------------------------------------------

                          2012/11/15 00:26:11,304 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-11-thread-1) ISPN000078: Starting JGroups Channel

                          2012/11/15 00:26:11,364 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-11-thread-1) ISPN000094: Received new cluster view: [sytest7-jsightlerdomain1.rhcloud.com/cluster|0] [sytest7-jsightlerdomain1.rhcloud.com/cluster]

                          2012/11/15 00:26:11,394 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-11-thread-1) ISPN000079: Cache local address is sytest7-jsightlerdomain1.rhcloud.com/cluster, physical addresses are [10.121.13.178:7600]

                          2012/11/15 00:26:11,459 INFO  [org.infinispan.factories.GlobalComponentRegistry] (pool-11-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.1.FINAL

                          2012/11/15 00:26:11,547 INFO  [org.infinispan.jmx.CacheJmxRegistration] (pool-11-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.

                          2012/11/15 00:26:12,363 INFO  [org.jboss.as.clustering.infinispan] (pool-11-thread-1) JBAS010281: Started default cache from cluster container

                          2012/11/15 00:26:12,373 INFO  [org.switchyard] (MSC service thread 1-2) Starting SwitchYard service

                          2012/11/15 00:26:12,556 WARN  [org.apache.camel.impl.ActiveMQUuidGenerator] (MSC service thread 1-2) Could not generate unique stub by using DNS and binding to local port, will fallback and use localhost as name: java.net.BindException: Permission denied

                                    at java.net.PlainSocketImpl.socketBind(Native Method) [rt.jar:1.7.0_09-icedtea]

                                    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376) [rt.jar:1.7.0_09-icedtea]

                                    at java.net.ServerSocket.bind(ServerSocket.java:376) [rt.jar:1.7.0_09-icedtea]

                                    at java.net.ServerSocket.<init>(ServerSocket.java:237) [rt.jar:1.7.0_09-icedtea]

                                    at java.net.ServerSocket.<init>(ServerSocket.java:128) [rt.jar:1.7.0_09-icedtea]

                                    at org.apache.camel.impl.ActiveMQUuidGenerator.<clinit>(ActiveMQUuidGenerator.java:60) [camel-core-2.10.0.jar:2.10.0]

                                    at org.apache.camel.impl.DefaultCamelContext.createDefaultUuidGenerator(DefaultCamelContext.java:2481) [camel-core-2.10.0.jar:2.10.0]

                                    at org.apache.camel.impl.DefaultCamelContext.<init>(DefaultCamelContext.java:206) [camel-core-2.10.0.jar:2.10.0]

                                    at org.switchyard.common.camel.SwitchYardCamelContext.<init>(SwitchYardCamelContext.java:63) [switchyard-common-camel-0.6.0.Final.jar:0.6.0.Final]

                                    at org.switchyard.deploy.ServiceDomainManager.createDomain(ServiceDomainManager.java:106)

                                    at org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:100) [switchyard-deploy-jboss-as7-0.6.0.Final.jar:0.6.0.Final]

                                    at org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:72) [switchyard-deploy-jboss-as7-0.6.0.Final.jar:0.6.0.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_09-icedtea]

                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_09-icedtea]

                                    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]

                           

                           

                          2012/11/15 00:26:12,952 INFO  [org.apache.camel.management.ManagementStrategyFactory] (MSC service thread 1-2) JMX enabled.

                          2012/11/15 00:26:13,054 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-2) Apache Camel 0.6.0.Final (CamelContext: camel-1) is starting

                          2012/11/15 00:26:13,062 INFO  [org.apache.camel.management.DefaultManagementLifecycleStrategy] (MSC service thread 1-2) StatisticsLevel at All so enabling load performance statistics

                          2012/11/15 00:26:13,569 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-2) Loaded 187 type converters

                          2012/11/15 00:26:13,666 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-2) Total 0 routes, of which 0 is started.

                          2012/11/15 00:26:13,675 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-2) Apache Camel 0.6.0.Final (CamelContext: camel-1) started in 0.612 seconds

                          2012/11/15 00:26:14,376 INFO  [org.apache.camel.impl.converter.DefaultTypeConverter] (MSC service thread 1-2) Loaded 187 type converters

                          2012/11/15 00:26:18,065 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-2) Route: direct:{urn:switchyard-quickstart:bean-service:0.1.0}InventoryService started and consuming from: Endpoint[direct://%7Burn:switchyard-quickstart:bean-service:0.1.0%7DInventoryService]

                          2012/11/15 00:26:18,862 INFO  [org.switchyard.common.camel.SwitchYardCamelContext] (MSC service thread 1-2) Route: direct:{urn:switchyard-quickstart:bean-service:0.1.0}OrderService started and consuming from: Endpoint[direct://%7Burn:switchyard-quickstart:bean-service:0.1.0%7DOrderService]

                          2012/11/15 00:26:19,459 INFO  [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC service thread 1-2) Add Service

                          id=org.switchyard.component.soap.endpoint.BaseWebService

                          address=http://127.9.178.1:8080/OrderService

                          implementor=org.switchyard.component.soap.endpoint.BaseWebService

                          invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker

                          serviceName={urn:switchyard-quickstart:bean-service:1.0}OrderService

                          portName={urn:switchyard-quickstart:bean-service:1.0}OrderServicePort

                          wsdlLocation=vfs:/content/sytest7.jar/wsdl/OrderService.wsdl

                          mtomEnabled=false

                          2012/11/15 00:26:20,373 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {urn:switchyard-quickstart:bean-service:1.0}OrderService from WSDL: vfs:/content/sytest7.jar/wsdl/OrderService.wsdl

                          2012/11/15 00:26:22,468 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-2) Setting the server's publish address to be http://127.9.178.1:8080/OrderService

                          2012/11/15 00:26:22,772 INFO  [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC service thread 1-2) WSDL published to: file:/var/lib/openshift/4ba72d23826541e4aa3694b5ae023813/jbossas-7/jbossas-7/standalone/data/wsdl/.deployment/OrderService.wsdl

                          2012/11/15 00:26:22,852 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-2) register: jboss.ws:context=,endpoint=org.switchyard.component.soap.endpoint.BaseWebService

                          2012/11/15 00:26:23,272 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "sytest7.jar"

                           

                           

                          Those look ok to me, but the URL itself isn't accessible.

                          • 10. Re: Installing SwitchYard via Forge
                            mageshbk

                            Hey Jess,

                             

                            I am having a look at the attached app. Please allow me sometime!

                             

                            Magesh

                            • 11. Re: Installing SwitchYard via Forge
                              jsightler

                              Ok, I've figured it out. It was a context path issue. Changing the context path from / to /swytest7 in switchyard.xml fixed the issue.

                               

                              Is this the expected behavior?

                              • 12. Re: Installing SwitchYard via Forge
                                mageshbk

                                Hi Jess,

                                 

                                I used your application and I get the same error. The WSDL is not accessible because the server itself is not available. The org.apache.camel.impl.ActiveMQUuidGenerator seem to be the issue for me too. I am not sure if it is because of the mismatch in the modules version of AS7 gear and SwitchYard modules. Could you try to run your application on JBossEAP 6.0 gear? Meanwhile, I will dig deeper and see if this is our Camel component issue running on OpenShift.

                                • 13. Re: Installing SwitchYard via Forge
                                  mageshbk

                                  Are you able to access the WSDL now?

                                  • 14. Re: Installing SwitchYard via Forge
                                    jsightler

                                    Yes, changing the context path allows me to see the WSDL and access the service via SOAP.

                                     

                                    The ActiveMQ stacktrace appears to be a red-herring, as it continues with a fallback. As far as I can tell the fallback works ok.

                                     

                                    I'm not sure why it breaks with a context path of '/', though?

                                    1 2 Previous Next