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

Ask Your Question
0

Web Application hosted on Tomcat unable to find space

Hi there,

I get the following exception when trying to deploy a portlet on Tomcat 6.0...

Registering portlets for SamplePortlet 23:38:07,732 INFO [DispatcherPortlet:97|http://www.openspaces.org/forum/] Initializing portlet 'SamplePortlet' 23:38:07,809 INFO [DispatcherPortlet:259|http://www.openspaces.org/forum/] FrameworkPortlet 'SamplePortlet': initialization started 23:38:07,814 ERROR [DispatcherPortlet:272|http://www.openspaces.org/forum/] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'space' defined in ServletContext resource [/WEB-INF/config/beans/SamplePortlet-servlet.xml]: Invocation of init method failed; nested exception is org.openspaces.core.space.CannotFindSpaceException: Failed to find space with url --jini:////helper?groups=sampleGroup&state=started--; nested exception is com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes:

Service attributes: [ http://com.j_spaces.lookup.entry.stat... ] Service attributes: [ http://net.jini.lookup.entry.name(nam... ] Lookup timeout: [5000|http://www.openspaces.org/forum/] Classes: [ http://interface%20com.j_spaces.core.... ] Jini Lookup Groups: [sampleGroup|http://www.openspaces.org/forum/]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:948) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:702) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:378) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1114) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1212) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:595) Caused by: org.openspaces.core.space.CannotFindSpaceException: Failed to find space with url --jini:////helper?groups=sampleGroup&state=started--; neste d exception is com.j_spaces.core.client.FinderException: LookupFinder failed to find service using the following service attributes:

Service attributes: [ http://com.j_spaces.lookup.entry.stat... ] Service attributes: [ http://net.jini.lookup.entry.name(nam... ] Lookup timeout: [5000|http://www.openspaces.org/forum/] Classes: [ http://interface%20com.j_spaces.core.... ] Jini Lookup Groups: [sampleGroup|http://www.openspaces.org/forum/]

at org.openspaces.core.space.UrlSpaceFactoryBean.doCreateSpace(UrlSpaceFactoryBean.java:278) at org.openspaces.core.space.AbstractSpaceFactoryBean.afterPropertiesSet(AbstractSpaceFactoryBean.java:124) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333) ... 27 more


However, I am able to see the space (along with the corresponsind group name) in gsui.sh.

The entry in pu.xml are

+<os-core:space id="DiveshSpace" url="/./helper" lookup-groups="sampleGroup">+

and the entry in the web application's spring xml application context is

+bean id="space" class="org.openspaces.core.space.UrlSpaceFactoryBean" lazy-init="default" autowire="default" dependency-check="default">+

+<property name="url" value="jini:////helper" />+

+<property name="lookupGroups" value="sampleGroup" />+

+</bean>+

Everything seems to be fine in the configuration [as I see it ;) ]...moreover, even the spaces are up and running (as i see them in gsui.sh).

Any clues on why this may be happening ? Any help would be greatly appreciated.

Thanks !

Divesh

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

asked 2008-06-26 18:27:00 -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

try this:
<property name="url" value="jini:////helper?locators=sampleGroup" />

Remove the :
<property name="lookupGroups" value="sampleGroup" />

Shay

answered 2008-06-26 19:18:52 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Sorry I meant: try this: <property name="url" value="jini://*/*/helper?locators=MACHINE_RUNNING_GSM"/>

Shay

shay hassidim gravatar imageshay hassidim ( 2008-06-26 19:38:02 -0500 )edit

Hi Shay,

Thanks for the prompt reply.

Scenario is, I have a multicast LOOKUPGROUP in which a couple of machines participate and I want to just query a space in the lookupgroup being agnostic of the machine !

Cheers,

diveshpremdeep gravatar imagediveshpremdeep ( 2008-06-26 19:52:55 -0500 )edit

I understand this.
The test I would like to do should confirm if the problem is multicast or something else.
Shay

shay hassidim gravatar imageshay hassidim ( 2008-06-26 20:13:25 -0500 )edit

Ok Shay, I will try it.

Edited by: Divesh Premdeep on Jun 27, 2008 6:17 AM

diveshpremdeep gravatar imagediveshpremdeep ( 2008-06-27 05:37:03 -0500 )edit

Doesn't work

diveshpremdeep gravatar imagediveshpremdeep ( 2008-06-27 05:50:35 -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: 2008-06-26 18:27:00 -0500

Seen: 54 times

Last updated: Jun 26 '08