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

Ask Your Question

Problem using mirror service


I want to use the mirror service for persist my data in database (here in Mysql). I use gigaspaces XAP 6.5

To begin, I looked on this page: [ http://www.gigaspaces.com/wiki/displa... ]

When I write gsInstance "/./mirror-service?schema=mirror" in command line, I have this error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/hibernate/Session at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at com.j_spaces.obf.dj.loadClass(SourceFile:87) at com.j_spaces.sadapter.datasource.DataAdapter.configure(SourceFile:469) at com.j_spaces.sadapter.datasource.DataAdapter.init(SourceFile:221) at com.j_spaces.obf.if.a(SourceFile:350) at com.j_spaces.obf.pv.a(SourceFile:709) at com.j_spaces.core.JSpaceImpl.B(SourceFile:3474) at com.j_spaces.core.JSpaceImpl.y(SourceFile:3352) at com.j_spaces.core.JSpaceImpl.start(SourceFile:3153) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:366) at com.j_spaces.core.JSpaceImpl.<init>(SourceFile:306) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2921) at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2844) at com.j_spaces.core.JSpaceContainerImpl.bj(SourceFile:1286) at com.j_spaces.core.JSpaceContainerImpl.bc(SourceFile:681) at com.j_spaces.core.JSpaceContainerImpl.<init>(SourceFile:576) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:748) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:867) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:591) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:387) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:371) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:458) at com.j_spaces.core.client.SpaceFinder.main(SourceFile:1247)

In lib directory, I don't have a folder with hibernate'jars but even if I add this folder, the same error appears.

I also teste with SpaceFinder.find("/./mirror-service?schema=mirror) in my java code, and I implement a hibernate session but I always have the same error. Do you know why?? What should I do?



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

asked 2008-06-17 10:38:39 -0600

jas gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

Hi Jennifer,

The easiest way to start with mirror setup is to run the maven plug-in to create for you the reliable-async template.
Simply go to ${gs_home}/tools/maven and follow the instructions in the readme file.

Once you have the maven plug-in installed, you can create (mvn os:create) the reliable asyc template.
This will get you up and running with mirror topology pretty quick.


answered 2008-06-17 13:00:19 -0600

nirpaz gravatar image
edit flag offensive delete link more

The following libraries are required when using GigaSpaces HibernateDataSource: * ant-antlr-1.6.5.jar * antlr-2.7.6rc1.jar * asm-attrs.jar * asm.jar * cglib-2.1.3.jar * commons-collections-2.1.1.jar * commons-logging-1.0.4.jar * dom4j-1.6.1.jar * ehcache-1.1.jar * hibernate3.jar * jdbc2_0-stdext.jar * jta.jar * commons-dbcp-1.2.2.jar * commons-pool-1.3.jar

If you use Maven you can find relevant template for such config. See: http://www.gigaspaces.com/wiki/displa...

Please note GigaSpaces 6.5 has new HibernateDataSource implementations - these should be used:. org.openspaces.persistency.hibernate.DefaultHibernateExternalDataSource org.openspaces.persistency.hibernate.StatelessHibernateExternalDataSource


answered 2008-06-17 11:55:51 -0600

shay hassidim gravatar image
edit flag offensive delete link more

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: 2008-06-17 10:38:39 -0600

Seen: 57 times

Last updated: Jun 17 '08