Hi , Thanks for the reply Ant . I am a bit confused now . I was having a look at the clients in those sample examples and tried to create on for this example (Please find HelloWorldClient attached) . Now I first run the composite file as per the tutorial to create the web service . Now when I run the client (HelloWorldClient ) as application , it throws up the following error . (Please note that I am using eclipse to run the files) Warning: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor
Jun 10, 2008 10:02:49 AM org.apache.tuscany.sca.http.jetty.JettyServer addServletMapping INFO: Added Servlet mapping: http://mmithun-lxp:8080/HelloWorld Exception in thread "main" org.osoa.sca.ServiceUnavailableException: Service not found for component default reference default (bindingURI=HelloWorldImpl operation=sayHello). Ensure that the composite containing the service is loaded and started somewhere in the SCA domain and that if running in a remote node that the interface of the target service marked as @Remotable at org.apache.tuscany.sca.binding.sca.impl.RuntimeSCAReferenceBindingProvider.createInvoker(RuntimeSCAReferenceBindingProvider.java:247) at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.addReferenceBindingInterceptor(RuntimeWireImpl.java:228) at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.initInvocationChains(RuntimeWireImpl.java:167) at org.apache.tuscany.sca.core.assembly.RuntimeWireImpl.getInvocationChains(RuntimeWireImpl.java:109) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.getInvocationChain(JDKInvocationHandler.java:243) at org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:148) at $Proxy5.sayHello(Unknown Source) at helloworld.HelloWorldClient.main(HelloWorldClient.java:14) I am new to web services . It will be great if some one can spare some time and give pointers. After I get this thing working I will prepare a tutorial so that new users will face less trouble learning this wonderful tool. Thanks and Regards, Mithun ________________________________ From: ant elder [mailto:[EMAIL PROTECTED] Sent: Tue 6/10/2008 5:13 AM To: tuscany-user@ws.apache.org Subject: Re: Error seen when deploying a web service using tuscany That tutorial only covers creating the service, it doesn't cover creating a client to use the service (maybe we should add to the tutorial for that?). We do have some samples which show WS clients, for example helloworld-ws-reference, see https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/samples/helloworld-ws-reference/README. You should be able adapt that to work with the tutorial web service. ...ant On Mon, Jun 9, 2008 at 9:57 PM, Mohan, Mithun <[EMAIL PROTECTED]> wrote: > Hi , > > Thanks for updating the tutorial > I am able to access the page http://localhost:8080/HelloWorld?wsdl and > retrieve the WSDL of the webservice . > > But how do I access the webservice ? I tried giving > http://localhost:8080/HelloWorld but it gave me the below exception > > <Exception> > org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation > not found is /HelloWorld and the WSA Action = null > at > org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:86). > at org.apache.axis2.engine.Phase.invoke(Phase.java:308) > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) > at > org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) > at > org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119) > at > org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:799) > at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) > at > org.apache.tuscany.sca.binding.ws.axis2.Axis2ServiceServlet.doGet(Axis2ServiceServlet.java:257) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > 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:362) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:324) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) > at > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:828) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) > at org.apache.tuscany.sca.core.work.Jsr237Work.run(Jsr237Work.java:61) > at > org.apache.tuscany.sca.core.work.ThreadPoolWorkManager$DecoratingWork.run(ThreadPoolWorkManager.java:214) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) > at java.lang.Thread.run(Thread.java:619) > </Exception> > > > Can anyone tell me how to access the web-service which is created ? > > Thanks and Regards, > Mithun > > ________________________________ > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Sat 6/7/2008 3:52 PM > To: tuscany-user@ws.apache.org; [EMAIL PROTECTED] > Subject: Re: Error seen when deploying a web service using tuscany > > > > I have updated the tutorial to fix this issue and to work with the 1.2 > plugin. > > > On 6/7/08, ant elder <[EMAIL PROTECTED]> wrote: > > On Fri, Jun 6, 2008 at 6:54 PM, Mohan, Mithun <[EMAIL PROTECTED]> > wrote: > > > >> > >> Hi, > >> > >> I am using the tutorial to create a web service using tuscany. Please > >> find below the tutorial I am referring > >> > >> > http://incubator.apache.org/tuscany/build-your-first-web-services-with-t > >> uscany.html< > http://incubator.apache.org/tuscany/build-your-first-web-services-with-tuscany.html > > > >> > >> When I follow the same steps . I get the following error. > >> > >> SEVERE: Could not start composite > >> org.osoa.sca.ServiceRuntimeException: > >> javax.xml.stream.XMLStreamException: Non-default namespace can not map > >> to empty URI (as per Namespace 1.0 # 2) in XML 1.0 documents > >> at > >> org.apache.tuscany.sca.workspace.admin.impl.DeployedCompositeCollectionI > >> mpl.writeCompositeCollection(DeployedCompositeCollectionImpl.java:395) > >> > >> Please find the complete logs for more information. Please note that I > >> am only using Tuscany with plugins for this .I am not using any server > >> like Axis with Tomcat. > >> > >> It will be great if you someone can spare time and guide me in this . > >> > >> Thanks and Regards, > >> Mithun > >> > >> > > > > What was the URL you used to install the Tuscany Eclipse plugin? That > > tutorial page you point to uses an old URL, the current one for the > latest > > release of the Tuscany 1.2 code is > > > http://archive.apache.org/dist/incubator/tuscany/java/sca/1.2-incubating/updatesite/(you<http://archive.apache.org/dist/incubator/tuscany/java/sca/1.2-incubating/updatesite/%28you> > > can find this from the Tuscany downloads page at > > http://incubator.apache.org/tuscany/sca-java-releases.html. > > > > ...ant > > > > > -- > Luciano Resende > Apache Tuscany Committer > http://people.apache.org/~lresende <http://people.apache.org/%7Elresende> > http://lresende.blogspot.com/ > > >