I have a junit class which Im trying to call from another another main java class. Now it works just fine when this main class is in the same project but I get the following exception when I try to keep the same main class in another project and execute it :
2011-10-11 10:32:07 [ERROR]  @ RemotePersistentOptimizationDelegate : lookupServer : 122 - Error looking up the remote server
java.rmi.ConnectIOException: Exception creating connection to: 10.39.x.x; nested exception is:
java.net.NoRouteToHostException: No route to host: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
I checked the project for dependencies and added all projects to the main class' build path, still I get the above error. Is it some jar that im missing out?? Please,Please help!!
Thanks for your reply Rob, the main java project here is within the same eclipse workspace on the same machine, would the firewall still have a role to play? I was able to get the main class to work when I kept it in the same project as the JUnit test class.
Hi Rob, the following is the main class I'm using to call the JUnit class. My task basically is to write a project external to the JUnit project(within the same workspace), that calls JUnit classes in another project. Once again, this class executes fine when I keep it in the same project as the JUnit test classes.
To be very frank, the rest of the projects are a blackbox at the moment, I ran a search on the full workspace and did come up with a few xmls that have the same ip as the one thats figuring in the error.
Thanks a lot.
Joined: Mar 15, 2010
Just to give you a better idea,this is the xml (please find attached) , thats being used :