I have created a simple DASService component, and trying to use it in a client web application (based on webapp sample app)... Although, I'm getting the following exception :
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 java.util.ArrayList.RangeCheck(ArrayList.java:546) java.util.ArrayList.get(ArrayList.java:321) org.apache.tuscany.spi.extension.CompositeComponentExtension.getServiceInstance(CompositeComponentExtension.java:239) org.apache.tuscany.spi.extension.CompositeComponentExtension.locateService(CompositeComponentExtension.java:269) org.apache.tuscany.core.launcher.CompositeContextImpl.locateService(CompositeContextImpl.java:65) org.apache.jsp.Company_jsp._jspService(Company_jsp.java:80) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.tuscany.runtime.webapp.TuscanyFilter.doFilter(TuscanyFilter.java:58)
das service default.scdl
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="DASServiceComposite"> <component name="DASServiceComponent"> <implementation.java class=" org.apache.tuscany.samples.das.service.DASServiceImpl"/> </component> </composite>
das service client default.scdl
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="DASServiceComposite"> <component name="DASServiceComponent"> <implementation.composite name="DASServiceComposite" jarLocation="lib/sample-das-service-1.0-incubator-SNAPSHOT.jar"/> </component> </composite> This is with trunk code... Any ideas on what might be wrong ? - Luciano Resende