On Jul 10, 2006, at 9:35 AM, Rashmi Hunt wrote:
Hello,
I have latest sandbox code and I am trying to run earinit sample in
Eclipse.
I am getting NullPointerException while locating the service because
compositeContext is null
Snippet from EagerInitClient.java
* CompositeContext compositeContext =
CurrentCompositeContext.getContext();*
* // Locate the Eager init service
EagerInitService eagerInitService =
compositeContext.locateService(EagerInitService.class,
"EagerInitComponent");*
Please let me know how to run this sample.
Are you running this through the launcher?
http://article.gmane.org/gmane.comp.apache.webservices.tuscany.devel/
4608
I was able to run this in idea in two ways:
1) using the remote debugger
2) using the application debugger on the launcher specifying the
correct command line options
I also needed to set -Dtuscany.bootDir to make sure it picked up
the boot jars from the right place
YMMV may vary depending on what Eclipse does to the classpath but if
you do have issues please ping the list.
Do you think we need something like the TuscanyRuntime from M1 that
would allow you to bootstrap the runtime from inside the application
code?
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]