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

Ask Your Question
0

ConfigurationException

Hi

I am starting a windows service from a directory above the gigaspaces directory and configuration files. The service will not start up correctly unless I move the config directory up a level.

The desired structure is as follows:

DirA/service.exe
DirA/DirB/gigaspace jars
DirA/DirB/config/
DirA/DirB/config/schemas/

I have set JSHOMEDIR to point to DirB & added it to PATH but I still see the following exception:

com.gigaspaces.config.ConfigurationException: Could not find the space schema file at: < config/schemas/ClientContainer-space-schema.xml >. at com.j_spaces.kernel.ResourceLoader.findSpaceSchema(ResourceLoader.java:1212) at com.j_spaces.core.JSpaceContainerImpl.createSpaceXML(JSpaceContainerImpl.java:2657)

What attribute should i be setting so the config directory does not need to be moved up a level?

Thanks, Aoife

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

asked 2009-10-29 05:15:18 -0500

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

Aoife,
I encourage you to place the space and cluster settings into the PU xml config file. This would be much better than the old space and cluster schema files.
Remember you don't have to use GSC/GSM to use the PU xml. You can use the puInstance if you can't use GSC/GSM to deploy your application.
Shay

answered 2009-10-29 14:02:18 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thanks for the relpy. At the moment we are working on upgrading a 4.1 peer to peer system to 7.0 in a very short time frame. Our aim is to get this upgrade complete with the minimum impact and change required, so initially there is no plan to modify the architecture to use pu's. However, it is something we plan to look at in the future.

aoifepo gravatar imageaoifepo ( 2009-11-05 06:20:59 -0500 )edit

In such a case I suggest you to follow the GigaSpaces folder structure and have the root folder as the JSHOMEDIR.
This will make sure your schema files and config files will be loaded correctly.
Shay

shay hassidim gravatar imageshay hassidim ( 2009-11-05 08:01:01 -0500 )edit
0

Try using Following properties -Dcom.gs.work -Dcom.gs.home

http://www.gigaspaces.com/wiki/displa...

Thanks Venkat

answered 2009-10-29 08:48:44 -0500

venkatg gravatar image
edit flag offensive delete link more

Comments

Thanks for the response.
Unfortunately I am still getting the same error which is eliminated if I move the config directory up a level.

aoifepo gravatar imageaoifepo ( 2009-10-29 09:33:05 -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-10-29 05:15:18 -0500

Seen: 47 times

Last updated: Oct 29 '09