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

Ask Your Question
0

Failure to find persistent-container-schema.xml

I'm trying to start a persistent space from a default (unmodified) install of gigaspaces-xap-premium-6.6.2-ga. I'm doing this in the unmodified install because I'm having the same problem in my custom install.

$ ./gsInstance.sh /./frylock?schema=persistent


Jun 30, 2009 3:30:40 PM WARNING [com.gigaspaces.common.resourceloader]: Could not find the container schema: config/schemas/persistent-container-schema.xml.

Instead, loaded the default container schema < config/schemas/default-container-schema.xml > for the container configuration.

Thanks, Rowland

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

asked 2009-06-30 14:34:17 -0500

river2sea 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
0

This is not how you run a persistent space.

You should map your Space Classes via hibernate decorations (hbm or annotations) to database tables, use the Hibernate External Data Source config (you should decide if you want direct or async persistency) , start a database server and deploy a persistent space.

See more here:
http://www.gigaspaces.com/wiki/display/XAP66/ExternalDataSource

Shay

answered 2009-06-30 14:54:37 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hello Shay,

We are not interested in manually mapping our classes to the space. We plan to go into production using MySQL, and have been of the understanding for quite some time that we would not be requred to do any object-relational mapping. What are the other alternatives for persistence?

Thanks, Rowland

river2sea gravatar imageriver2sea ( 2009-06-30 14:59:28 -0500 )edit

The other option is to use the JDBC Storage Adapter. See: http://www.gigaspaces.com/wiki/displa...

Please read carefully the "Differences between the JDBC SA and the EDS" section.

Shay

shay hassidim gravatar imageshay hassidim ( 2009-06-30 15:04:01 -0500 )edit

Thanks for refreshing my memory Shay, JDBC storage adapter is the route we've been planning for. On the original question, do you know what's going on with the inability of GS to find the persistent-space-schema.xml?

I have a tool that I use that finds it on the classpath, as I expected it to, but I cannot figure out why GS can't find it.

Thanks, Rowland

river2sea gravatar imageriver2sea ( 2009-06-30 16:41:31 -0500 )edit

Do you see it within your JSpaces.jar/config/schemas?

It is loaded by default from there.

Shay

shay hassidim gravatar imageshay hassidim ( 2009-06-30 16:51:00 -0500 )edit

I think I see the problem. I have been looking at persistent-space-schema.xml, but the error message is complaining about persistent-container-schema.xml

WARNING [com.gigaspaces.common.resourceloader]: Could not find the container schema: config/schemas/persistent-container-schema.xml. Instead, loaded the default container schema < config/schemas/default-container-schema.xml > for the container configuration.

Could you clarify the difference for me?

My goal is to override the storage adapter using gs.properties to use one that I've modified:

space-config.persistent.StorageAdapterURL=/config/GenericJDBCProperties/H2Properties

Then in H2Properties I've modified jdbc.properties to contain:

driverClass=org.h2.Driver connectionUrl=jdbc:h2:/var/lib/CipherEngine/${com.gs.container.name}/${com.gs.space.name}DB; userName=sa password=

Basically I'm just trying to get the disk storage for the H2 adapter to move to /var/lib/CipherEngine/

I had this working last week, then mucked around with my classpath, and am now trying to get it going again. I think that the " Could not find the container schema: config/schemas/persistent-container-schema.xml" warning may just be a red herring?

Thanks again, Rowland

river2sea gravatar imageriver2sea ( 2009-06-30 17:17:01 -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

Stats

Asked: 2009-06-30 14:34:17 -0500

Seen: 53 times

Last updated: Jun 30 '09