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

Ask Your Question

Simple yet annoying - java.lang.ClassNotFoundException

Hi there,

I'm relatively new to using Eclipse and Gigaspaces. I'm trying to expand on the supplied OMS example with Gigaspaces. Basically I'm adding a third party jar file (that contains com.streamhub.api.PushServer), but I'm getting the following error when I deploy my PU onto the GSC (even though all the names resolve in Eclipse):

2010-02-03 14:23:58,975 GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate oms-runtime [1]; Caused by: org.jini.rio.core.JSBInstantiationException: java.lang.ClassNotFoundException: com.streamhub.api.PushServer at org.jini.rio.boot.ServiceClassLoader.loadClass(ServiceClassLoader.java:249) at org.jini.rio.boot.ServiceClassLoader.loadClass(ServiceClassLoader.java:182) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398) at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredFields(Class.java:1743) at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:516) at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:500) at org.openspaces.core.context.GigaSpaceContextBeanPostProcessor.findClassMetadata(GigaSpaceContextBeanPostProcessor.java:127)

Could someone please tell me where I'm going wrong as I'm starting to pull out what little hair I have left out.

Thanks in advance

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

asked 2010-02-04 04:52:33 -0500

robertral gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted


You should place your third party jars under the lib folder of the PU folder/jar.


answered 2010-02-04 07:36:30 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Thanks for your help. I will try this out.

Many regards,


robertral gravatar image robertral  ( 2010-02-17 03:48:25 -0500 )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: 2010-02-04 04:52:33 -0500

Seen: 437 times

Last updated: Feb 04 '10