The Artima Developer Community
Sponsored Link

Jini Forum
Invoking a method on a Jini service in Ant

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Frens Rumph

Posts: 3
Nickname: frens
Registered: Sep, 2006

Invoking a method on a Jini service in Ant Posted: Sep 7, 2006 5:31 AM
Reply to this message Reply
Advertisement
Hi folks,

I'm trying to invoke a method on a Jini service from an Ant script. I have created a custom Ant task that builds an object (a container for shipping class definitions to a central repository) of a bin dir. After the object is created, it should be sent to the central repository as an argument of the method I want to invoke. But the custom ant tasks throws a java.lang.NoClassDefFoundError: net/jini/core/lookup/ServiceRegistrar. This would indicate an incorrect classpath for my custom ant task. But the exception is thrown on the last of these two lines:
LookupLocator loc = new LookupLocator("jini://" + lusHost);
			ServiceRegistrar reggie = loc.getRegistrar();

jsk-lib.jar and jsk-platform.jar are included in the classpath. I believe that they are found, because otherwhise the task would throw the NoClassDefFoundError on the first line of the two lines of code above.

It would seem that I have a classloader problem of some sort. Has any of you got experience with using Jini inside of custom Ant task? Any thoughts are welcome of course.

Thank you in advance,

Frens Jan Rumph

Topic: Jini Installation Previous Topic   Next Topic Topic: Problem registering a service

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use