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/