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

Ask Your Question
0

Tomcat Exception

When starting up Tomcat in a Linux environment, and when tomcat tries to connecting with GS I´m getting:

PC 1: Tomcat PC 2: GSM-GSC

java.rmi.ConnectException: Connect Failed; nested exception is: java.net.ConnectException: Connection refused at com.j_spaces.obf.ta.connect(SourceFile:164) at com.j_spaces.obf.fn.cJ(SourceFile:52) at com.j_spaces.obf.td.invoke(SourceFile:44) at com.gigaspaces.lrmi.DynamicSmartStub.invokeRemote(SourceFile:357) at com.gigaspaces.lrmi.DynamicSmartStub.invoke(SourceFile:345) at com.sun.jini.reggie.$Proxy7.lookup(Unknown Source) at com.sun.jini.reggie.RegistrarProxy.lookup(RegistrarProxy.java:118) at net.jini.lookup.ServiceDiscoveryManager.lookup(ServiceDiscoveryManager.java:2870) at com.j_spaces.core.client.LookupFinder.find(SourceFile:251) at com.j_spaces.core.client.SpaceFinder.a(SourceFile:1031) at com.j_spaces.core.client.SpaceFinder._find(SourceFile:615) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:412) at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:387) at com.j_spaces.core.client.SpaceFinder.find(SourceFile:206)

Ideas?

Thanks in advance

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

asked 2008-09-11 17:13:05 -0600

nullcipher2 gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

Are u sure u got the right machine ip used for the locators?
Can u run a simple client from the machine running tomcat to connect to the space using the same URL tomcat is using? Maybe is just classpath issue.

Shay

answered 2008-09-11 17:26:49 -0600

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I think this is a several issue:

PC 1 = GSM - GSC (GSC is registered successfully)
PC 2 = GSC, it can´t register into the PC 1 GSM , I´m getting:

1-sep-2008 17:51:47
INFO net.jini.lookup.ServiceDiscoveryManager: Exception occurred while attempting to register with the lookup service event mechanism
Caused by: java.rmi.ConnectException: Connect Failed; nested exception is:
        java.net.ConnectException: Connection refused
11-sep-2008 17:51:47
INFO com.gigaspaces.grid.gsc: GSC started successfully with groups gigaspaces-6.5.1-XAP-ga and locators

11-sep-2008 17:51:47
INFO net.jini.lookup.JoinManager: JoinManager - failure
Caused by: java.rmi.ConnectException: Connect Failed; nested exception is:
        java.nio.channels.ClosedByInterruptException
11-sep-2008 17:51:52
INFO net.jini.lookup.ServiceDiscoveryManager: Exception occurred while attempting to register with the lookup service event mechanism
Caused by: java.rmi.ConnectException: Connect Failed; nested exception is:
        java.net.ConnectException: Connection refused
11-sep-2008 17:51:52
INFO net.jini.lookup.JoinManager: JoinManager - failure
Caused by: java.rmi.ConnectException: Connect Failed; nested exception is:
        java.nio.channels.ClosedByInterruptException
11-sep-2008 17:51:57
INFO net.jini.lookup.ServiceDiscoveryManager: Exception occurred while attempting to register with the lookup service event mechanism
Caused by: java.rmi.ConnectException: Connect Failed; nested exception is:
        java.net.ConnectException: Connection refused
11-sep-2008 17:51:57
INFO net.jini.lookup.JoinManager: JoinManager - failure
Caused by: java.rmi.ConnectException: Connect Failed; nested exception is:
java.nio.channels.ClosedByInterruptException

nullcipher2 gravatar imagenullcipher2 ( 2008-09-11 17:49:15 -0600 )edit

I solved the issue, it was a bad configuration in the hosts file.

Thanks

nullcipher2 gravatar imagenullcipher2 ( 2008-09-11 21:14:59 -0600 )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-09-11 17:13:05 -0600

Seen: 55 times

Last updated: Sep 11 '08