Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Creating a space by calling SpaceFinder.find()

I am trying to create a new container/space, on the fly, simply by using the following line of code (com.j_spaces.core.client.SpaceFinder): {code} SpaceFinder.find("java://localhost:10098/testSpace_container/testSpace?create"); {code} According to the following reference, this will create both the space and the container using the default schema.

Reference: http://openspaces.org/wiki/pages/view...

However, I get an uncaught exception and the following: {code} Exception in thread "main" java.lang.NoClassDefFoundError: net/jini/lease/LeaseListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at com.example.services.WorldLoaderService.findSpace(WorldLoaderService.java:50) at com.example.services.WorldLoaderService.main(WorldLoaderService.java:130) {code}

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2104]{quote}

asked 2007-08-01 17:06:05 -0600

jeff_seattle gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

I am currently using jini-core-2.1.jar.

answered 2007-08-01 17:14:00 -0600

jeff_seattle gravatar image
edit flag offensive delete link more


Jeff, I think you're missing the jsk-lib.jar from your path.

Take a look at http://openspaces.org/wiki/display/GS... to find out what your classpath settings should be.

toby gravatar imagetoby ( 2007-08-01 17:20:01 -0600 )edit

Yup, just figured that out. Thanks

jeff_seattle gravatar imagejeff_seattle ( 2007-08-01 17:43:00 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2007-08-01 17:06:05 -0600

Seen: 50 times

Last updated: Aug 01 '07