On Nov 8, 2007 11:06 AM, Simon Laws <[EMAIL PROTECTED]> wrote:

>
>
> On 11/8/07, ant elder <[EMAIL PROTECTED]> wrote:
>
> > I like this idea a lot. For one thing it would mean applications don't
> > have
> > to know anything about Tuscany so could avoid all the problems with
> > dependencies in build scripts.
> >
> >    ...ant
> >
> > On Nov 2, 2007 7:29 AM, Bob Marbeck < [EMAIL PROTECTED]> wrote:
> >
> > > Could there be a command line version of this so sca jars can be run
> > > outside of Tomcat? Something like java -jar tuscany.jar<repositoryFolder>
> > > where  repositoryFolder is the same type of thing used by the
> > tuscany.war?
> > >
> > >
> > > ----- Forwarded Message ----
> > > From: Bob Marbeck <[EMAIL PROTECTED] >
> > > To: [EMAIL PROTECTED]
> > > Cc: tuscany-dev@ws.apache.org
> > > Sent: Wednesday, October 31, 2007 5:33:49 PM
> > > Subject: Re: [jira] Commented: (TUSCANY-1884) Allow the setting of the
> > > contribution root in the web.xml
> > >
> > >
> > > This seems quite neat and makes running things much easier. Is it
> > going to
> > > be included in a release soon? And are the other samples going to be
> > updated
> > > so they all work  when run in the tuscany.war?
> > >
> > >
> > > ----- Original Message ----
> > > From: Bob Marbeck <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Cc: tuscany-dev@ws.apache.org
> > > Sent: Wednesday, October 31, 2007 4:33:34 PM
> > > Subject: Re: [jira] Commented: (TUSCANY-1884) Allow the setting of the
> >
> > > contribution root in the web.xml
> > >
> > >
> > > It does! Thanks Ant.
> > >
> > >
> > > ----- Original Message ----
> > > From: ant elder <[EMAIL PROTECTED] >
> > > To: Bob Marbeck <[EMAIL PROTECTED]>
> > > Cc: tuscany-dev@ws.apache.org
> > > Sent: Wednesday, October 31, 2007 4:24:44 PM
> > > Subject: Re: [jira] Commented: (TUSCANY-1884) Allow the setting of the
> > > contribution root in the web.xml
> > >
> > >
> > >
> > >
> > > On 10/31/07, Bob Marbeck < [EMAIL PROTECTED]> wrote:
> > > That tuscany.war sounded interesting so i gave it a try but it doesn't
> > > seem to work. The Tomcat console shows:
> > >
> > >
> > > 31-Oct-2007 15:43:11
> > org.apache.tuscany.sca.webapp.WarContextListeneraddContribution
> > > INFO: Added contribution: file:/C:/TuscanyRepository/sample-
> > > helloworld-ws-service.jar
> > > 31-Oct-2007 15:43:11
> > org.apache.tuscany.sca.node.impl..SCANodeImplstartComposites
> > > INFO: http://localhost:8080/ has no composites to start
> > >
> > > Any ideas?
> > >
> > > It looks like you're trying the Tuscany sample helloworld-ws-service,
> > > looking in that jar the problem is that it doesn't have  an
> > > sca-contribution.xml file or have the  .composite file in the
> > > meta-inf/sca-deployables folder, so the  composite wont get started by
> > > default. That can be fixed by adding one of those, i've tried that and
> > put
> > > the resulting jar up at
> > >
> > http://people.apache.org/~antelder/tuscany/sample-helloworld-ws-service.jar<http://people.apache.org/%7Eantelder/tuscany/sample-helloworld-ws-service.jar>
> > <http://people.apache.org/%7Eantelder/tuscany/sample-helloworld-ws-service.jar
> > >.
> > > That works ok for me with the tuscany.war, and once deployed you can
> > see
> > > the wsdl for the service by going to
> > > http://localhost:8080/tuscany/HelloWorldServiceComponent?wsdl
> > >
> > > Can you let me know if that works for you?
> > >
> > >   ...ant
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> I was thinking about going in and fixing up Sebatien's maven plugin to
> generate our sample build.xml files to avoid all the hand editing we have
> been doing. This could be a way round some (all) of that so I'm liking the
> sound of this too. Applications would still have to know about the SCA apis
> but not the details of Tuscany.
>
> Am I right in thinking that the tuscany-jar would just be the core stuff
> to be combined with extensions
>
> - on the classpath
> - in some other bigger jars buld for specific purposes
> - in the webapp war
>
> What was the thinking there?
>
>  Simon
>
>
I've committed a prototype start of this in
https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/distribution/standalone/,
its currently just the webapp distro striped down and changed to be started
from a main method so we can test this out. To run it you build the module
then something like:

mvn dependency:copy-dependencies -o
java -Djava.ext.dirs=target/dependency -jar
target\tuscany-sca.jarC:\MyTuscanyRepository

where MyTuscanyRepository is a folder containing contribution jars (which
need an sca-contribution.xml file or have the  .composite file in the
meta-inf/sca-deployables folder as discussed earlier in this thread).

There's a lot that needs be improved but this is a start so we can get some
ideas.

   ...ant

Reply via email to