On Nov 30, 2007 3:32 PM, Simon Laws <[EMAIL PROTECTED]> wrote:

<snip>

I don't know what your contribution looks like but I'm going to try getting
> your web app code running in the store sample so I can move the sample
> distributed scenario on a bit and help you out. Any pointers to where I
> should start?
>

OK I've tried to tidy things up a bit so you could have a go but remember it
is still right in the middle of getting done so its all a bit hacky, and
nothing is finished or working properly or beautiful yet :)

There's a distribution/tomcat folder, building that creates an archive in
the target directory which can be unziped over a Tomcat install to add
things like all the Tuscany jars to the tomcat lib folder. You then have to
manually update the Tomcat conf/server.xml <Host> to include className= for
the Tuscany class, eg:

      <Host name="localhost"  appBase="webapps"
            className="org.apache.tuscany.sca.runtime.tomcat.TuscanyHost"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

Now when Tomcat starts up it should start a standalone sca node. There will
be FileNotFoundException errors for all the webapps that don't have any
WEB-INF/classes folder which can be ignored.

I've updated the samples so helloworld-ws-service creates a deployable
contribution that you can drop into the Tomcat sca-contributions folder
which should get added to the node automatically , can verify its worked by
getting the wsdl at http://localhost:8080/tuscany/HelloWorldService?wsdl.
And there's a webapp sample, helloworld-ws-deep-webapp, that creates a
webapp war which includes a composite but no Tuscany jars or Tuscany things
in the web.xml, doesn't yet work to deploy that without a tomcat restart
yet, but after a restart you can test the sca endpoint by getting the wsdl
at http://localhost:8080/tuscany/HelloWorldComponent?wsdl

There's a properties file in the sca-contributions folder and in there you
can define the url of and sca domain to have the tomcat node be part of, not
sure if that actually works properly yet.

   ...ant

Reply via email to