help with grid custom proxy

100 views
Skip to first unread message

Lars Meister

unread,
Nov 4, 2013, 5:58:33 AM11/4/13
to seleniu...@googlegroups.com
Hi,

my Problem is that the hub couldn't find the custom proxy class .. but why?

i'm trying to setup a custom grid proxy that implements 'DefaultRemoteProxy'. I tried a few ways to get this going but stuck always.
The custom proxy currently just calls its parent initiializer class: https://gist.github.com/niftysniffer/7300282

I'm creating a jar using maven. the file is saved in project tree under java dir: java/net/optativ/EGridRemoteProxy.java 
and I create a jar with mvn install. This is my pom: https://gist.github.com/niftysniffer/7300866

Afterwards I throw SnapshotJar and selenium-standalone-server in the same directory and start the hub like this:

java -cp "eGrid-1.0-SNAPSHOT.jar:selenium-server-standalone-2.35.0.jar" org.openqa.grid.selenium.GridLauncher -role hub 

and kick off the node like this:

java -cp "eGrid-1.0-SNAPSHOT.jar:selenium-server-standalone-2.35.0.jar" org.openqa.grid.selenium.GridLauncher -role node -proxy net.optativ.EGridRemoteProxy -hub http://127.0.0.1:4444/grid/register

The node starts but couldn't register itself at the hub: message: "couldn't register this node : Error sending the registration request."

and the hub says: 

org.openqa.grid.internal.BaseRemoteProxy getNewInstance

SCHWERWIEGEND: net.optativ.EGridRemoteProxy

java.lang.ClassNotFoundException: net.optativ.EGridRemoteProxy

at java.net.URLClassLoader$1.run(URLClassLoader.java:202) 

... and more stacktrace ...


Do somebody see why the custom remote class couldn't be found by the  hub?

kind regards
// lars

Lars Meister

unread,
Nov 6, 2013, 6:44:29 AM11/6/13
to seleniu...@googlegroups.com
Any suggestions ?

kind regards
// lars

Krishnan Mahadevan

unread,
Nov 6, 2013, 7:43:38 PM11/6/13
to seleniu...@googlegroups.com
Lars
Everything looks fine ( your pom n code ). Are you sure you are giving te jar name properly for your custom proxy ? I think you should start looking there. 
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a3ed4b72-8606-4863-9962-800bb51b0378%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


--
Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
Reply all
Reply to author
Forward
0 new messages