Hi Mike,

I am starting Tuscany via java -jar modules/osgi-3.5.0-v20090520.jar -clean
-console -configuration features/configuration.
Then I install and start the jar with the console commands.

The location I get is the following:
file:/Users/alb/Development/XPOSER/SEE_THESIS/features/configuration/org.ecl
ipse.osgi/bundles/306/5/bundlefile

The jar structure was not complete. I forgot that maven is adding something
after compiling.
Now I unpacked the jar and this is what it really looks like:

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

So there is a service.bpel object but is a directory. Maybe there is a
confusion about the maven files inside?

greetings,
Alex

Am 26.07.10 20:52 schrieb "Mike Edwards" unter
<[email protected]>:

> 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(BPE
>> LDocumentProcessor.java:93)
>>     at 
>> org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.read(BPE
>> LDocumentProcessor.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