Alexander Blotny wrote:
Hi,

I am trying to get the BPEL hello world sample running in Tuscany M5.

I start the node inside the Activator of the jar file:

String location = ContributionLocationHelper.getContributionLocation(Activator.class); node = NodeFactory.newInstance().createNode("helloworld.composite", new Contribution("test", location));
Hello bpelService = node.getService(Hello.class, "BPELHelloWorldComponent");
String result = bpelService.hello("Hello"); System.out.println(result);

The file structure of the jar is the following:

  helloworld.bpel
  helloworld.bpelex
  helloworld.composite
  helloworld.wsdl
  log4j.properties
META-INF
  MANIFEST.MF
  sca-contribution.xml
de/fhg/fokus/ngni/xposer/see/service/bpel
  Activator.class
  Hello.class

The only things I changed in the sample is the namespace in the composite and contribution from xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903 to xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912.

Now the following error occurs:

26.07.2010 11:42:05 org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor [Contribution: test, Artifact: META-INF/maven/de.fhg.fokus.ngni.xposer.see.services/service.bpel] (ContributionReadException)
SCHWERWIEGEND: ContributionReadException occured due to :
org.apache.tuscany.sca.contribution.processor.ContributionReadException: java.lang.NullPointerException at org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.read(BPELDocumentProcessor.java:93) at org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.read(BPELDocumentProcessor.java:57) at
<snip>

I guess that the BPEL document cannot be found. But I did not find a way to point on the file in the sample.

Thanks in advance for some advice.

greetings,
Alex
Alex,

It would be interesting to know more how you are starting the JAR.

The error itself implies that Tuscany is reading your contribution and thinks 
it has found a file:

META-INF/maven/de.fhg.fokus.ngni.xposer.see.services/service.bpel

When it tries to read that file it gets an exception.

Given that you claim the JAR layout as above, that such a file should be found seems more than a little surprising.

One interesting question is just what location you get for the contribution - how about printing out what you get for "location" in the code above?


Yours,  Mike.

Reply via email to