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

Ask Your Question
0

Upgrade from 6.6 to 7.1.3

I'm running in to a few issue upgrading gigaspaces from 6.6 to 7.1

A few I've moved past.
For example 1) Pudeploy no longer works. Was replaced by deploy in the startup scripts.
2) Pu.xml for our space object is now picked up from a different deploy directory. Previously we pulled out the bin, config, deploy overwrites outside of the base installation. Right now the deploy directory outside of the application is no longer loaded. However moving the xml files under the gigaspaces install does load them

3) This one is particularly causing headaches. Seeing the following error related to gsadmin 2011-01-24 16:30:48,702 GSC SEVERE [com.gigaspaces.grid.gsc] - Failed to instantiate vantage_sit [2]; Caused by: org.jini.rio.core.JSBInstantiationException: com.gigaspaces.security.directory.UserNotFoundException: Could not find user: gsadmin at com.gigaspaces.security.fs.FileServiceAccessor.loadUserByUsername(FileServiceAccessor.java:104) at com.gigaspaces.security.fs.FileSecurityManager.authenticate(FileSecurityManager.java:44) at com.gigaspaces.security.service.SecurityInterceptor.authenticate(SecurityInterceptor.java:168) at com.gigaspaces.internal.server.space.SpaceImpl.login(SpaceImpl.java:3894) at com.gigaspaces.internal.lrmi.stubs.LRMISpaceImpl.login(LRMISpaceImpl.java:753) at com.j_spaces.core.client.SpaceProxySecurityManager.login(SpaceProxySecurityManager.java:66) at com.gigaspaces.internal.client.spaceproxy.AbstractDirectSpaceProxy.login(AbstractDirectSpaceProxy.java:563) at com.gigaspaces.internal.server.space.SpaceImpl.loginToEmbeddedProxy(SpaceImpl.java:1996) at com.gigaspaces.internal.server.space.SpaceImpl.getSingleProxy(SpaceImpl.java:2024) at com.j_spaces.core.RemoteEventFactory.<init>(RemoteEventFactory.java:38) at com.gigaspaces.internal.server.space.SpaceEngine.<init>(SpaceEngine.java:449) at com.gigaspaces.internal.server.space.SpaceImpl.createEngine(SpaceImpl.java:3411) at com.gigaspaces.internal.server.space.SpaceImpl.start(SpaceImpl.java:3058) at com.gigaspaces.internal.server.space.SpaceImpl.<init>(SpaceImpl.java:284) at com.j_spaces.core.JSpaceContainerImpl.createSpaceImpl(JSpaceContainerImpl.java:2572) at com.j_spaces.core.JSpaceContainerImpl.loadSpace(JSpaceContainerImpl.java:2499) at com.j_spaces.core.JSpaceContainerImpl.xmlInit(JSpaceContainerImpl.java:1130) at com.j_spaces.core.JSpaceContainerImpl.initContainer(JSpaceContainerImpl.java:561) at com.j_spaces.core.JSpaceContainerImpl.<init>(JSpaceContainerImpl.java:449) at com.j_spaces.core.client.SpaceFinder.initContainer(SpaceFinder.java:769) at com.j_spaces.core.client.SpaceFinder.findEmbeddedService(SpaceFinder.java:928) at com.j_spaces.core.client.SpaceFinder.findService(SpaceFinder.java:604) at com.j_spaces.core.client.SpaceFinder.findService(SpaceFinder.java:564) at com.j_spaces.core.client.SpaceFinder.find(SpaceFinder.java:447) at org.openspaces.core.space.UrlSpaceFactoryBean.doCreateSpace(UrlSpaceFactoryBean.java:338) at org.openspaces.core.space.AbstractSpaceFactoryBean.afterPropertiesSet(AbstractSpaceFactoryBean.java:176) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$5.run(AbstractAutowireCapableBeanFactory.java:1459) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

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

asked 2011-03-07 15:27:38 -0500

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

Hi Anil,

If I remember correctly, the security model changed between 6.6 and 7.0.1. * In 6.6, the file with the user account data could only be in the "security" directory under the GigaSpaces install directory, or in a directory reachable via a relative path with respect to the "security" directory; that custom directory needed be set as -D argument. I remember using something like "../../../blah-blah" to escape to the root and then go into the custom directory.

  • In 7.0.1, in addition to passing in "-Dcom.gs.security.enabled=true", a JVM property like this needs be passed in: -Dcom.gs.security.properties-file=<path to="" a="" properites="" file=""> The properties file then is expected to have a property like this: com.gs.security.fs.file-service.file-path=<path to="" the="" fsm="" file="" will="" the="" user="" account="" data="">

If I am not mistaken, the -D arguments could also be set in the pu.xml.

If you've done the above and it still isn't working then, if you haven't checked already, perhaps it is worth checking if user "gsadmin" actually exists (before doing anything else).

Also...the old security file needs be migrated or recreated - see [ http://www.gigaspaces.com/wiki/displa... ].

HTH - Vanio

answered 2011-03-08 17:57:53 -0500

vanio 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

Stats

Asked: 2011-03-07 15:27:38 -0500

Seen: 76 times

Last updated: Mar 08 '11