Hi Reymond,

Thank you for your reply.

How do I run the example if it is deployed to a web server, such as
Tomcat? I found an information about TuscanyServlet, which needs to be
in web.xml file, which I have now.

Let's say that my server's root context and web app context URL is
http://localhost:8080/myWebApp. What do I have to add after this URL
to be able to access the application? According to SCA spec, the web
service WSDL should be available if the URL ends with ?wsdl. But if I
type http://localhost:8080/myWebApp/?wsdl in the browser, I get an
exception:

SEVERE: Servlet.service() for servlet TuscanyServlet threw exception
java.lang.IllegalStateException: No servlet registered for path: /
        at 
org.apache.tuscany.sca.webapp.TuscanyServlet.service(TuscanyServlet.java:57)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:595)

I did some debugging on this and it seems that the servlet tries to
obtain a mapping from a Map, which is empty. Is this a bug or am I
just missing something in my .composite file or WSDL?

Also, did you create the WSDL file manually or did you use any
generation tool provided by Tuscany?

Thanks,
Radim

On 7/25/07, Raymond Feng <[EMAIL PROTECTED]> wrote:
Hi, Radim.

I'm not very sure if we already have the support to deploy an SCA service as
a web service without WSDL. If not, that's something we want to support for
sure.

We have a sample to demonstrate the usage of SCA, web service and SDO. It
seems to be what you are looking for. You can see the sample code at:

https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-ws-sdo

Thanks,
Raymond

----- Original Message -----
From: "Radim Kolarik" <[EMAIL PROTECTED]>
To: <tuscany-user@ws.apache.org>
Sent: Wednesday, July 25, 2007 7:38 AM
Subject: Services and WSDL files


> Hi,
>
> Is it necessary to supply wsdl file if I want to deploy an SCA service as
> a
> web service? Or can Tuscany generate the file "on the fly"?
>
> If I need to supply the file myself, what would be the best way to
> generate
> the file? Is it possible to generate the file for SDOs, if they are
> service
> parameters or if a service returns an SDO object as its result?
>
> Thanks,
> Radim
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to