I deployed all the artifacts as described in quickstarts/switchyard/demos/multiApp/README.md Then I opened http://localhost:8080/switchyard-quickstart-demo-multi-web and tried adding an item. This lead to an exception while it should have worked. org.switchyard.component.bean.BeanComponentException: A service reference to service 'InventoryService' is not bound into this client proxy instance. A reference configuration to the service may be required in the application configuration. org.switchyard.component.bean.ClientProxyBean$ClientProxyInvocationHandler.invoke(ClientProxyBean.java:270) com.sun.proxy.$Proxy306.createItem(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:45) org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) org.jboss.weld.proxies.InventoryService$1366014918$Proxy$_$$_WeldClientProxy.createItem(InventoryService$1366014918$Proxy$_$$_WeldClientProxy.java) org.switchyard.quickstarts.demo.multiapp.web.ItemEntry.create(ItemEntry.java:62) org.switchyard.quickstarts.demo.multiapp.web.ItemEntry$Proxy$_$$_WeldClientProxy.create(ItemEntry$Proxy$_$$_WeldClientProxy.java) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:606) org.apache.el.parser.AstValue.invoke(AstValue.java:258) org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278) org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87) com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:101) javax.faces.component.UICommand.broadcast(UICommand.java:315) javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:786) javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1251) com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
This is a bug in the switchyard.xml included with the web project. It currently has an empty composite and it should have this instead: <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="web" targetNamespace="urn:switchyard-quickstart-demo:multiapp:0.1.0"> <component name="ItemEntryBean"> <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.demo.multiapp.web.ItemEntry"/> <reference name="InventoryService"> <interface.java interface="org.switchyard.quickstarts.demo.multiapp.InventoryService"/> </reference> </component> </composite>
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1774 to Resolved
Keith Babo <kbabo> made a comment on jira SWITCHYARD-1774 pushed
See attached screenshot - problem is not present with ER6.
Created attachment 814699 [details] Screenshot
Keith Babo <kbabo> updated the status of jira SWITCHYARD-1774 to Closed