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

Ask Your Question
0

Failed to find: rmi gigaspace with WebSphere 7

Hi:

I need help for run app java used Gigaspaces failed with connect rmi with GigaSpaces

RedHat enterprise 5.6 64bits WebSphere 7.0.0.17 64bits GigaSpaces gigaspaces-xap-premium-7.1.3-ga

GigaSpace running OK

netstat -na | grep 10098 tcp 0 0 0.0.0.0:10098 0.0.0.0:* LISTEN

When start App Java in WebSphere 7 failed connect rmi

Logging

2011-07-28 11:42:19,246 FINE [org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'close' on bean with name 'gigaspaceDataSource' 2011-07-28 11:42:19,247 FINE [org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'close' on bean with name 'dataSourceJDBC' 2011-07-28 11:42:19,247 SEVERE [org.springframework.web.context.ContextLoader] - Context initialization failed; Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cargaBancos' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'bancosCredito' threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error creating connection; Cause: com.j_spaces.core.client.FinderException: Failed to find: rmi://127.0.0.1:10098/./lynxseg?schema=default&state=started) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(AccessController.java:224) 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:222) 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.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) 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 com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1707) at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:380) at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:299) at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100) at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166) at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731) at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616) at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376) at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1123) at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1319) at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:610) at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:944) at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:726) at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2048) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:441) at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:384) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:112) at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:951) at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'bancosCredito' threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Error creating connection; Cause: com.j_spaces.core.client.FinderException: Failed to find: rmi://127.0.0.1:10098/./lynxseg?schema=default&state=started) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1276) ... 38 more

Any idea, help me please

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

asked 2011-07-28 13:05:29 -0500

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

jaissefsfex's avatar
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Are you using GigaSpaces JDBC driver?
Are you running Gigaspaces and WebSphere on the same machine?
What's the Space URL you are using? Is it rmi://127.0.0.1:10098/./lynxseg?schema=default&state=started ?
That's a bad URL.
If the space you started called lynxseg , WebSphere should use the following URL:
jini:////lynxseg

Shay

answered 2011-07-29 13:15:05 -0500

shay hassidim's avatar
edit flag offensive delete link more

Comments

Hi Shay Hassidim:

Are you using GigaSpaces JDBC driver?

Yes

Definition in XML

<bean id="gigaspaceDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.j_spaces.jdbc.driver.GDriver"/> <property name="url" value="jdbc:gigaspaces:url:rmi://localhost:10098/./lynxseg"/> <property name="initialSize" value="10"/> <property name="maxActive" value="50"/> <property name="maxIdle" value="15"/> </bean>

In test try with IP, name DNS and loopback, the error is the same.

Are you running Gigaspaces and WebSphere on the same machine?

Yes

What's the Space URL you are using? Is it rmi://127.0.0.1:10098/./lynxseg?schema=default&state=started ? That's a bad URL.

The space started is called lynxseg in WebSphere

WebSphere should use the following URL: jini:////lynxseg

Let me try again with this URL

Thanks

jdelgado's avatar jdelgado  ( 2011-08-01 12:57:48 -0500 )edit

Do you run a space within WebSphere, or you run it within a GSC and trying to communicate with it from WebSphere?

GigaSpaces JDBC don't need a connection pool.

Shay

shay hassidim's avatar shay hassidim  ( 2011-08-01 13:29:27 -0500 )edit

Hi Shay:

Do you run a space within WebSphere, or you run it within a GSC and trying to communicate with it from WebSphere?

The space run it with in a Giga Spaces and my Application try to communicate it from WebSphere

When use rmi failed

And change jini in my applicaction file ( WEB-INF/applicationContext.xml)

<bean id="gigaspaceDataSource"  class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
    <property name="driverClassName" value="com.j_spaces.jdbc.driver.GDriver" />    
    <property name="url"             value="jdbc:gigaspaces:url:jini://*/*/lynxseg" />      
    <property name="initialSize"     value="10"/>
    <property name="maxActive"       value="50"/>
    <property name="maxIdle"         value="15"/>
</bean>

The error is diferent "java.lang.NoSuchMethodError: net/jini/discovery/Constants.getHostAddress()Ljava/lang/String"

2011-08-01 13:26:51,814 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@66ee66ee: defining beans [dataSourceJDBC,gigaspaceDataSource,servicioTuxedo,loadCatalogo,cargaRutas,pathmapping,pathpdfs,urlmic,qualitasWS,loadBancos,cargaBancos,findsucPermitidas,loadsucPermitidas,cuotashogar,loadcuotasHogar,cuotasegc,loadcuotasEgc,cuotasPyme,loadcuotasPyme,vaDAO,CuentaAuxiliarDAO,cuotasSafePlus,loadcuotasSafePlus,cuotasVF,loadcuotasVF,auttModelosDao,zonaDescInbursaDao,armaDescInbursaDao,cpDescInbursaDao,esoDescInbursaDao,accountDao,userDao,menuDao,coloniaDao,datosRegionDao,datosOcupaciones,sexoDescuentoDao,autorizaPlanesDao,ciaPostalDao,vehiculoDao,basecalculoDao,modelosautosDao,coberturasautosDao,marcasAutosDAO,calculoPrimasAutosDAO,poblacionAltoRiesgoDAO,calculoDeducibleDAO,CalculoEmisorDAO,AutoEspecialDAO,CalculoDescuentoEmisorDAO,PlanesProdDAO,endososDAO,DetallesPlanesDAO,PaquetesAutosDAO,CambioClaveDAO,MarcaRamoDAO,descuentoEstado,estadoAltoRiesgo,vehiculoObj,descuentoZonaEstado,zonacp,descuentoMAP,tarifaEstado,componenteDPO,componenteRFI,emiteMultiCompania,validaSerie,clientecobro,pagoRecibo,pymeEmisorDAO,spaceManagerDAO,EmiteMuerteDao,consultaCuentaDao,ivaSucursalDao,CobraReciboDao,PagoReciboDao,cambioRecibo,PagoRecibotdcDao,infoPolizaDao,infoCuentaPolizaDao,parametrosDAO,oiiDAO,negativeFileDAO,infoSiniestroDao,segmentoDao,vfDAO,campDao,flotillaDao,RFIDao,DPODao,IFSDao,autoComparaDAO,ParamDescACDAO,ArmaDescInbursaACDAO,AuttModelosACDAO,CpDescInbursaACDAO,CpIvaInbursaACDAO,ESODescInbursaACDAO,EmisorInbursaACDAO,TarifaBaseInbursaACDAO,ZonaDescInbursaACDAO,CotizadorInbursaAC,CpDescMapfreACDAO,CpIvaMapfreACDAO,TarifaBaseMapfreACDAO,ZonaDescMapfreACDAO,CotizadorMapfreAC,CpIvaABAACDAO,TarifaBaseABAACDAO,ZonaDescABAACDAO,CotizadorABAAC,CpDescAXAACDAO,CpIvaAXAACDAO,TarifaBaseAXAACDAO,CotizadorAXAAC,CpIvaQUALITASACDAO,EstadoDescQUALITASACDAO,TarifaBaseQUALITASACDAO,CotizadorQUALITASAC,CpIvaGNPACDAO,TarifaBaseGNPACDAO,EstadoDescGNPACDAO,CotizadorGNPAC,polCanDAO,segurosApp,cacheManager,menuCache,templatesCache,cargaTemplates]; root of factory hierarchy 2011-08-01 13:26:51,816 FINE [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Retrieved dependent beans for bean 'gigaspaceDataSource': [segmentoDao] 2011-08-01 13:26:51,816 FINE [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Retrieved dependent beans for bean 'segmentoDao': [servicioTuxedo] 2011-08-01 13:26:51,817 FINE [org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'close' on bean with name 'gigaspaceDataSource' 2011-08-01 13:26:51,818 FINE [org.springframework.beans.factory.support.DisposableBeanAdapter] - Invoking destroy method 'close' on bean with name 'dataSourceJDBC' 2011-08-01 13:26:51,819 SEVERE [org.springframework.web.context.ContextLoader] - Context initialization failed; Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cargaBancos' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'bancosCredito' threw exception; nested exception is java.lang.NoSuchMethodError: net/jini/discovery/Constants.getHostAddress()Ljava/lang/String; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(AccessController.java:224) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory ...(more)

jdelgado's avatar jdelgado  ( 2011-08-01 13:52:39 -0500 )edit

please contact me via:
shay at gigaspaces.com

shay hassidim's avatar shay hassidim  ( 2011-08-01 13:56:48 -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: 2011-07-28 13:05:29 -0500

Seen: 242 times

Last updated: Jul 29 '11