On 5/9/07, Luciano Resende <[EMAIL PROTECTED]> wrote:

How am I supposed to run the sample ant builds ? Here are the steps I did
:

1.build the distributions
2.unzip the distributions to a temporary directory
3.go to inside the distributions sample/calculator directory (either
binary/source)
4.issue an "ant" command


run:
     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tuscany/assembly/impl/DefaultAssemblyFactory
     [java]     at
org.apache.tuscany.binding.axis2.Axis2ModuleActivator.start(
Axis2ModuleActivator.java:48)
     [java]     at
org.apache.tuscany.host.embedded.impl.ReallySmallRuntime.startModules(
ReallySmallRuntime.java:146)
     [java]     at
org.apache.tuscany.host.embedded.impl.ReallySmallRuntime.start(
ReallySmallRuntime.java:101)
     [java]     at
org.apache.tuscany.host.embedded.impl.DefaultSCADomain.<init>(
DefaultSCADomain.java:86)
     [java]     at
org.apache.tuscany.host.embedded.SCADomain.createNewInstance(
SCADomain.java:186)
     [java]     at
org.apache.tuscany.host.embedded.SCADomain.newInstance(SCADomain.java:52)
     [java]     at calculator.CalculatorClient.main(CalculatorClient.java
:31)
     [java] Java Result: 1

If I try on the source distribution, I get the following :

compile:
    [javac] Compiling 11 source files to
D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\target\classes
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorClient.java:22:
package org.apache.tuscany.host
embedded does not exist
    [javac] import org.apache.tuscany.host.embedded.SCADomain;
    [javac]                                         ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorServiceImpl.java:21:
package org.osoa.sca.annot
tions does not exist
    [javac] import org.osoa.sca.annotations.Reference;
    [javac]                                 ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorServiceImpl.java:34:
cannot find symbol
    [javac] symbol  : class Reference
    [javac] location: class calculator.CalculatorServiceImpl
    [javac]     @Reference
    [javac]      ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorServiceImpl.java:39:
cannot find symbol
    [javac] symbol  : class Reference
    [javac] location: class calculator.CalculatorServiceImpl
    [javac]     @Reference
    [javac]      ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorServiceImpl.java:44:
cannot find symbol
    [javac] symbol  : class Reference
    [javac] location: class calculator.CalculatorServiceImpl
    [javac]     @Reference
    [javac]      ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorServiceImpl.java:49:
cannot find symbol
    [javac] symbol  : class Reference
    [javac] location: class calculator.CalculatorServiceImpl
    [javac]     @Reference
    [javac]      ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorClient.java:31:
cannot find symbol
    [javac] symbol  : class SCADomain
    [javac] location: class calculator.CalculatorClient
    [javac]         SCADomain domain =
SCADomain.newInstance("http://calc";, ".", "Calculator.composite");
    [javac]         ^
    [javac] D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\src\main\java\calculator\CalculatorClient.java:31:
cannot find symbol
    [javac] symbol  : variable SCADomain
    [javac] location: class calculator.CalculatorClient
    [javac]         SCADomain domain =
SCADomain.newInstance("http://calc";, ".", "Calculator.composite");
    [javac]                            ^
    [javac] 8 errors

BUILD FAILED
D:\temp\M3\tuscany-
sca-1.0-incubating-SNAPSHOT-src\samples\calculator\build.xml:31:
Compile failed; see the compiler error output for details.

Total time: 1 second

On 5/8/07, ant elder <[EMAIL PROTECTED]> wrote:
> Ok, i'll do at least one to help review how its done, i'll start at the
> bottom with the supplychain sample.
>
>    ...ant
>
> On 5/8/07, Simon Laws <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I'm working steadily through the samples...
> >
> > - Converting readmes to simple text READMEs and updating where
appropriate
> > - Adding build.xml (or mulitple as required) to provide an ant build
for
> > the
> > binary distribution
> > - Adding a diagram of the sample composite (not necessary for the
> > distribution but I always do this for myself as a way of working out
> > what's
> > going on)
> >
> > Anyhow. I'm down to calculator-script as I write this. So if anyone
want's
> > to take a look at how its working out and provide feedback that would
be
> > good. If anyone wants to do a few that would be even better ;-)
> >
> > Regards
> >
> > Simon
> >
>


--
Luciano Resende
http://people.apache.org/~lresende

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Hi Luciano

The ant scripts will only work in the binary distribution because they rely
on the tuscany-sca-all-1.0-incubating-SNAPSHOT.jar which is not available in
the src distribution.

The error you are getting in the binary distribution looks like it is to do
with problems in the axis2 binding. I have just been through the process
getting the latest head from svn, building a binary distribution, upacking
it and running ant on the calculator sample. It works for me but then I am
not including binding-ws-axis2 in my disitribution.

The HelloWorld web service sample fails for me during the main mvn build so
I guess the axis2 binding is still broken in some way.

Regards

Simon

Reply via email to