You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Sandeep Raman <sa...@tcs.com> on 2008/03/06 07:18:24 UTC

Tuscany Runtime Error.

Hi,

I have an component service (wsdl) created with the operation name 
"start". Once i run the tuscany runtime , i get an error saying

org.osoa.sca.ServiceRuntimeException: No matching operation for start is 
found in service TwoWSService#Compose

what may be the possible reason for this error. The stacktrace is as 
follows:

SEVERE: No matching operation for start is found in service 
TwoWSService#Compose
org.osoa.sca.ServiceRuntimeException: No matching operation for start is 
found in service TwoWSService#Compose
        at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:165)
        at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:97)
        at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChain(RuntimeWireImpl.java:103)
        at 
org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:87)
        at 
org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(RuntimeWireInvoker.java:82)
        at 
org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(RuntimeWireImpl.java:126)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(Axis2ServiceProvider.java:589)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic(Axis2ServiceInOutSyncMessageReceiver.java:59)
        at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
        at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
        at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
        at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:285)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
        at 
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
        at 
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
        at 
org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61)
        at 
org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:205)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)


the wsdl file generated has the snippet as follows:

wsdl:binding name="ComposeSOAP11Binding" type="ns0:ComposePortType">
  <soap:binding style="document" tr
ansport="http://schemas.xmlsoap.org/soap/http" /> 
- <wsdl:operation name="start">
  <soap:operation soapAction="urn:start" style="document" /> 
- <wsdl:input>
  <soap:body use="literal" /> 
  </wsdl:input>
- <wsdl:output>
  <soap:body use="literal" /> 
  </wsdl:output>
- <wsdl:fault name="Exception">
  <soap:fault name="Exception" use="literal" /> 
  </wsdl:fault>
  </wsdl:operation>
  </wsdl:binding>

Regards
Sandeep.
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Tuscany Runtime Error.

Posted by Raymond Feng <en...@gmail.com>.
Hi,

It seems to me that the wrong version of WSDL4J is packaged into the WAR. 
Can you check WEB-INF/lib to make sure wsdl4j-1.6.2.jar is used?

Thanks,
Raymond
--------------------------------------------------
From: "Sandeep Raman" <sa...@tcs.com>
Sent: Monday, March 24, 2008 3:40 AM
To: <tu...@ws.apache.org>
Subject: Re: Tuscany Runtime Error.

> I see some errors but culdnt figure out, its failing in some tuscany class
>
> The log :
>
>
> Mar 24, 2008 4:07:21 PM org.apache.catalina.core.StandardContext
> filterStart
> SEVERE: Exception starting filter tuscany
> java.lang.NoSuchMethodError:
> javax.wsdl.Definition.getAllPortTypes()Ljava/util/Map;
>        at
> org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.processNoArgAndVoidReturnMethods(Java2WSDLHelper.java:334)
>        at
> org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.createDefinition(Java2WSDLHelper.java:301)
>        at
> org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.createWSDLInterfaceContract(Java2WSDLHelper.java:127)
>        at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<init>(Axis2ServiceBindingProvider.java:56)
>        at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:57)
>        at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:40)
>        at
> org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryExtensionPoint.java:195)
>        at
> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.addServiceBindingProvider(CompositeActivatorImpl.java:408)
>        at
> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:690)
>        at
> org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:748)
>        at
> org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:181)
>        at
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230)
>        at
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82)
>        at
> org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:225)
>        at
> org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:51)
>        at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
>        at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
>        at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
>        at
> org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
>        at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>        at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
>        at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
>        at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:450)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
>        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:585)
>        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
>        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
> Mar 24, 2008 4:07:30 PM org.apache.catalina.core.ApplicationContext log
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News
> / Redirect URL: http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
> paramName / Target param value: paramValue / Redirect URL:
> http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> http://jakarta.apache.org]]
> Mar 24, 2008 4:07:30 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Mar 24, 2008 4:07:30 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
> Mar 24, 2008 4:07:39 PM org.apache.catalina.core.ApplicationContext log
> INFO: ContextListener: contextInitialized()
> Mar 24, 2008 4:07:39 PM org.apache.catalina.core.ApplicationContext log
> INFO: SessionListener: contextInitialized()
>
>
>
> Regards
> Sandeep.
>
> "ant elder" <an...@gmail.com> wrote on 03/24/2008 03:34:59 PM:
>
>> On Mon, Mar 24, 2008 at 9:56 AM, Sandeep Raman <sa...@tcs.com>
>> wrote:
>>
>> > Mar 24, 2008 3:22:36 PM
>> > org.apache.tuscany.sca.host.webapp.WebAppServletHost ini
>> > tContextPath
>> > INFO: initContextPath: /LOSComposite
>> > Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
>> > SEVERE: Error filterStart
>> > Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
>> > SEVERE: Context [/LOSComposite] startup failed due to previous errors
>> >
>> >
>> When the StandardContext catches errors like this there will be
> additional
>> messages about the problem written to the logs in the Tomcat log
> directory,
>> could you check in there to see what the errors are?
>>
>>    ...ant
>
>> ForwardSourceID:NT0000961E
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany Runtime Error.

Posted by Sandeep Raman <sa...@tcs.com>.
I see some errors but culdnt figure out, its failing in some tuscany class

The log :


Mar 24, 2008 4:07:21 PM org.apache.catalina.core.StandardContext 
filterStart
SEVERE: Exception starting filter tuscany
java.lang.NoSuchMethodError: 
javax.wsdl.Definition.getAllPortTypes()Ljava/util/Map;
        at 
org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.processNoArgAndVoidReturnMethods(Java2WSDLHelper.java:334)
        at 
org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.createDefinition(Java2WSDLHelper.java:301)
        at 
org.apache.tuscany.sca.interfacedef.wsdl.java2wsdl.Java2WSDLHelper.createWSDLInterfaceContract(Java2WSDLHelper.java:127)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceBindingProvider.<init>(Axis2ServiceBindingProvider.java:56)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:57)
        at 
org.apache.tuscany.sca.binding.ws.axis2.Axis2BindingProviderFactory.createServiceBindingProvider(Axis2BindingProviderFactory.java:40)
        at 
org.apache.tuscany.sca.provider.DefaultProviderFactoryExtensionPoint$LazyBindingProviderFactory.createServiceBindingProvider(DefaultProviderFactoryExtensionPoint.java:195)
        at 
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.addServiceBindingProvider(CompositeActivatorImpl.java:408)
        at 
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:690)
        at 
org.apache.tuscany.sca.core.assembly.CompositeActivatorImpl.activate(CompositeActivatorImpl.java:748)
        at 
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain.<init>(DefaultSCADomain.java:181)
        at 
org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:230)
        at 
org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:82)
        at 
org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(WebAppServletHost.java:225)
        at 
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:51)
        at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
        at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
        at 
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
        at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        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:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 24, 2008 4:07:30 PM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News 
/ Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: 
paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]
Mar 24, 2008 4:07:30 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 24, 2008 4:07:30 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 24, 2008 4:07:39 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 24, 2008 4:07:39 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()



Regards
Sandeep.

"ant elder" <an...@gmail.com> wrote on 03/24/2008 03:34:59 PM:

> On Mon, Mar 24, 2008 at 9:56 AM, Sandeep Raman <sa...@tcs.com>
> wrote:
> 
> > Mar 24, 2008 3:22:36 PM
> > org.apache.tuscany.sca.host.webapp.WebAppServletHost ini
> > tContextPath
> > INFO: initContextPath: /LOSComposite
> > Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Error filterStart
> > Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
> > SEVERE: Context [/LOSComposite] startup failed due to previous errors
> >
> >
> When the StandardContext catches errors like this there will be 
additional
> messages about the problem written to the logs in the Tomcat log 
directory,
> could you check in there to see what the errors are?
> 
>    ...ant

> ForwardSourceID:NT0000961E 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Tuscany Runtime Error.

Posted by ant elder <an...@gmail.com>.
On Mon, Mar 24, 2008 at 9:56 AM, Sandeep Raman <sa...@tcs.com>
wrote:

> Mar 24, 2008 3:22:36 PM
> org.apache.tuscany.sca.host.webapp.WebAppServletHost ini
> tContextPath
> INFO: initContextPath: /LOSComposite
> Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/LOSComposite] startup failed due to previous errors
>
>
When the StandardContext catches errors like this there will be additional
messages about the problem written to the logs in the Tomcat log directory,
could you check in there to see what the errors are?

   ...ant

Re: Tuscany Runtime Error.

Posted by Sandeep Raman <sa...@tcs.com>.
Mar 24, 2008 3:22:36 PM 
org.apache.tuscany.sca.host.webapp.WebAppServletHost ini
tContextPath
INFO: initContextPath: /LOSComposite
Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Mar 24, 2008 3:22:40 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/LOSComposite] startup failed due to previous errors


This above stack trace comes when i deploy my war in tomcat,while there 
are no previous errors in the stack trace

My compsoite file now:



<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License. 
-->

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
        targetNamespace="http://eai"
        xmlns:hw="http://eai"
        name="LOS">

   <component name="EAI1Component" >
        <implementation.java 
class="com.tcs.mswitch.synchronous.Main_ESB"/>
   </component>

    <component name="EAI2Component" >
        <implementation.java 
class="com.tcs.mswitch.synchronous.Main_ESB"/>
    </component>

    <component name="EAI3Component" >
        <implementation.java 
class="com.tcs.mswitch.synchronous.Main_ESB"/>
    </component>


    <component name="ComposerComponent">
        <implementation.java class="eai.ComposerImpl"/> 
    </component>

    <service name="ComposerService" promote="ComposerComponent">
        <interface.java interface="eai.Composer" /> 
       <binding.ws 
uri="http://localhost:8080/LOSComposite/LOSComposerService"/> 
    </service>

</composite>
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Deploying the composite File.

Posted by Sandeep Raman <sa...@tcs.com>.
Hi,

Can someone guide me on how to deploy a composite file in application 
servers.

Following is my scenario:

1) I have got wsdl's and implementation java classes placed in axis2 
directory in a web server
2) Now I have created the composite of these wsdl's and created a 
component service.
3) Where should i now place the .composite file.

I have to compose services in Tomcat as well as WebSphere.

Regards
Sandeep.
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



Re: Tuscany Runtime Error.

Posted by Simon Laws <si...@googlemail.com>.
Hi Sandeep

Are you able to provide the test case which is giving the error? If so the
best thing to do is open a JIRA and attach it there so someone can run it
and track down the problem.

Just taking a wild stab in the dark it would appear that the runtime is not
able to find the appropriate "start()" method on class that implements the
"Compose" interface. I don't know why this would be without running the
actual sample. Assuming that your component is implemented in Java you could
try telling the component implementation forcibly that it is exposing SCA
services using the SCA @Service annotation. Something like...

@Service(Compose.class)
public class MyComponentImplementation {

  public void start(){
    ...
  }

  etc...
}


Regards

Simon

On Thu, Mar 6, 2008 at 6:18 AM, Sandeep Raman <sa...@tcs.com> wrote:

> Hi,
>
> I have an component service (wsdl) created with the operation name
> "start". Once i run the tuscany runtime , i get an error saying
>
> org.osoa.sca.ServiceRuntimeException: No matching operation for start is
> found in service TwoWSService#Compose
>
> what may be the possible reason for this error. The stacktrace is as
> follows:
>
> SEVERE: No matching operation for start is found in service
> TwoWSService#Compose
> org.osoa.sca.ServiceRuntimeException: No matching operation for start is
> found in service TwoWSService#Compose
>        at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(
> RuntimeWireImpl.java:165)
>        at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(
> RuntimeWireImpl.java:97)
>        at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChain(
> RuntimeWireImpl.java:103)
>        at
> org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(
> RuntimeWireInvoker.java:87)
>        at
> org.apache.tuscany.sca.core.invocation.RuntimeWireInvoker.invoke(
> RuntimeWireInvoker.java:82)
>        at
> org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.invoke(
> RuntimeWireImpl.java:126)
>        at
> org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceProvider.invokeTarget(
> Axis2ServiceProvider.java:589)
>        at
>
> org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceInOutSyncMessageReceiver.invokeBusinessLogic
> (Axis2ServiceInOutSyncMessageReceiver.java:59)
>        at
>
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic
> (AbstractInOutSyncMessageReceiver.java:42)
>        at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> AbstractMessageReceiver.java:96)
>        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>        at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
> HTTPTransportUtils.java:275)
>        at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>        at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>        at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367)
>        at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>        at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
>        at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
>        at org.mortbay.jetty.Server.handle(Server.java:285)
>        at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
>        at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(
> HttpConnection.java:835)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
>        at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
>        at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
>        at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java
> :368)
>        at
> org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61)
>        at
> org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(
> ThreadPoolWorkManager.java:205)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> ThreadPoolExecutor.java:650)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java
> :675)
>        at java.lang.Thread.run(Thread.java:595)
>
>
> the wsdl file generated has the snippet as follows:
>
> wsdl:binding name="ComposeSOAP11Binding" type="ns0:ComposePortType">
>  <soap:binding style="document" tr
> ansport="http://schemas.xmlsoap.org/soap/http" />
> - <wsdl:operation name="start">
>  <soap:operation soapAction="urn:start" style="document" />
> - <wsdl:input>
>  <soap:body use="literal" />
>  </wsdl:input>
> - <wsdl:output>
>  <soap:body use="literal" />
>  </wsdl:output>
> - <wsdl:fault name="Exception">
>  <soap:fault name="Exception" use="literal" />
>  </wsdl:fault>
>  </wsdl:operation>
>  </wsdl:binding>
>
> Regards
> Sandeep.
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>