On Tue, Mar 11, 2008 at 3:38 AM, Sandeep Raman <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I have an issue with the component service not coming up. below mentioned
> is my scenario.
>
> I have a JSP (default.jsp) which does the following:
>
> <%@ page import="org.apache.tuscany.sca.host.embedded.SCADomain"%>
> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
> <%
>      SCADomain scaDomain = SCADomain.newInstance("RunTime.composite");
>      System.out.println("RunTime Composite Started");
> %>
>
> and the Runtime.composite is as follows:
>
>    <component name="TwoWSService">
>        <implementation.java class="eai.Compose" />
>        <service name="Compose">
>             
> interface="http://eai#wsdl.interface(TwoWSService)<http://eai#wsdl.interface%28TwoWSService%29>"
> />
>            <binding.ws uri="http://localhost:8080/TwoWSService"; />
>        </service>
>    </component>
>
>
> Now I create a war of all my Java classes , wsdl , composite files and
> with the default.jsp as the default run target.
> This war gets deployed in tomcat and the jsp page comes up. It creates a
> new instance of Runtime.composite too , but it doesnt seem to be starting
> the
> component service which i have mentioned in the composite file :
> <binding.ws uri="http://localhost:8080/TwoWSService"; />.
>
> What could be wrong in this, Can you please guide me.
>
> Regards
> Sandeep Raman.
>

It could be there is a dependency missing but its hard to tell from just
that description. Are there any odd messages produce on the tomcat console
or logs? One thing is having the jsp create the SCADomain is not the normal
way to start the runtime, have you seen how the calculator-ws sample does
this? There's two significant bits - the config in the web.xml [1] and the
code in the jsp [2].

   ...ant

[1]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/calculator-ws-webapp/src/main/webapp/WEB-INF/web.xml
[2]
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/calculator-ws-webapp/src/main/webapp/calc.jsp

Reply via email to