Ant was mention adding the dependency to the maven pom.xml. If you are using ant, maybe you could use this ant script [1] as an example
[1] https://svn.apache.org/repos/asf/tuscany/java/sca/samples/helloworld-ws-service-webapp/build.xml On Fri, Oct 31, 2008 at 10:59 AM, fahim salim <[EMAIL PROTECTED]> wrote: > Hello > > do you mean that I should add a jar file in the path specified in build.xml. > Are these the libraries concerning axis2*.jar ? > > Fahim > > 2008/10/31 ant elder <[EMAIL PROTECTED]> >> >> That is indicating the WS binding dependencies are not available in your >> classpath, do you have the tuscany-ws-axis2 dependency defined in your >> pom.xml or build script? You can see an example of what you need at >> https://svn.apache.org/repos/asf/tuscany/java/sca/samples/calculator-ws-webapp/pom.xml >> >> ...ant >> >> On Fri, Oct 31, 2008 at 12:14 PM, fahim salim <[EMAIL PROTECTED]> wrote: >>> >>> Hello Luciano >>> >>> I have tried the modifications in sca-contribution.xml file >>> but I have the following errors in Tomcat : >>> >>> >>> 31 oct. 2008 12:29:20 >>> org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPath >>> INFO: ContextPath: /HelloWebWervice >>> 31 oct. 2008 12:29:26 >>> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor >>> read >>> ATTENTION: Element {http://www.osoa.org/xmlns/sca/1.0}binding.ws cannot >>> be processed. ([row,col {unknown-source}]: [6,5]) >>> 31 oct. 2008 12:29:26 >>> org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor >>> ATTENTION: Element {http://www.osoa.org/xmlns/sca/1.0}binding.ws cannot >>> be processed. ([row,col {unknown-source}]: [6,5]) >>> >>> >>> Do you have any idea for this problem ? >>> >>> Thanks >>> Fahim >>> >>> >>> 2008/10/30 Luciano Resende <[EMAIL PROTECTED]> >>>> >>>> On Thu, Oct 30, 2008 at 10:40 AM, fahim salim <[EMAIL PROTECTED]> >>>> wrote: >>>> > Hello All >>>> > >>>> > What I have tried to do is to deploy an sca web service within Tomcat >>>> > I have used the same application as in the tutorial "Build your first >>>> > Web >>>> > Services with Tuscany". >>>> > >>>> > I have added the followings files: >>>> > >>>> > +webapp/META-INF/sca-contribution.xml >>>> > >>>> > <contribution xmlns="http://www.osoa.org/xmlns/sca/1.0" >>>> > targetNamespace="http://sample" >>>> > xmlns:sample="http://sample"> >>>> > <deployable composite="sample:helloworld"/> >>>> > </contribution> >>>> > >>>> >>>> If you are following the example from this guide [1], the composite >>>> QName should be {http://helloworld}helloworld, so I guess your >>>> sca-contribution.xml should be something like : >>>> >>>> <contribution xmlns="http://www.osoa.org/xmlns/sca/1.0" >>>> targetNamespace="http://helloworld" >>>> xmlns:helloworld="http://helloworld> >>>> <deployable composite="helloworld:helloworld"/> >>>> </contribution> >>>> >>>> >>>> [1] >>>> http://tuscany.apache.org/build-your-first-web-services-with-tuscany.html >>>> >>>> >>>> > +webapp/WEB-INF/web.xml >>>> > >>>> > <web-app> >>>> > <display-name>Apache Tuscany Hello World Web Service >>>> > </display-name> >>>> > <filter> >>>> > <filter-name>tuscany</filter-name> >>>> > >>>> > >>>> > <filter-class>org.apache.tuscany.sca.host.webapp.TuscanyServletFilter</filter-class> >>>> > </filter> >>>> > <filter-mapping> >>>> > <filter-name>tuscany</filter-name> >>>> > <url-pattern>/*</url-pattern> >>>> > </filter-mapping> >>>> > <welcome-file-list id="WelcomeFileList"> >>>> > <welcome-file></welcome-file> >>>> > </welcome-file-list> >>>> > </web-app> >>>> > >>>> > I have generated the war file : ws.war and deployed it in Tomcat. >>>> > But something goes wrong because I have http error 404 when using url >>>> > http://localhost:8080/HelloWorld?wsdl >>>> > >>>> >>>> The web.xml seems right, but the issue is that the runtime won't >>>> really deploy and start the deployable composite as it's not properly >>>> defined in the sca-contribution.xml. Try to see if the proposed >>>> changes help you get farther. >>>> >>>> > Am I missing something ? >>>> > >>>> > Thanks >>>> > Fahim >>>> > >>>> >>>> >>>> >>>> -- >>>> Luciano Resende >>>> Apache Tuscany, Apache PhotArk >>>> http://people.apache.org/~lresende >>>> http://lresende.blogspot.com/ >>> >> > > -- Luciano Resende Apache Tuscany, Apache PhotArk http://people.apache.org/~lresende http://lresende.blogspot.com/
