GRID Customization - CLASSPATH Error

31 views
Skip to first unread message

Tanmay Ghorai

unread,
Apr 4, 2015, 3:44:53 PM4/4/15
to seleniu...@googlegroups.com
Hi All,

I was trying to Customize the Grid. Intention is to capture all Testing Sessions and some validations on test Session request. I have downloaded the Selenium Grid Source code and injected my custom code in Registry and RequestHandler classes. I wanted to store all these information in Oracle Database. While I am trying to invoke the Grid to connect to the Database, I am getting below error :

java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.openqa.grid.web.servlet.handler.RequestHandler.getDBConnection(RequestHandler.java:110)
        at org.openqa.grid.web.servlet.handler.RequestHandler.getTestData(RequestHandler.java:130)
        at org.openqa.grid.web.servlet.handler.RequestHandler.process(RequestHandler.java:241)
        at org.openqa.grid.web.servlet.DriverServlet.process(DriverServlet.java:83)
        at org.openqa.grid.web.servlet.DriverServlet.doPost(DriverServlet.java:67)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.seleniumhq.jetty7.servlet.ServletHolder.handle(ServletHolder.java:565)


I have ojdbc14.jar in my CLASSPATH. Appreciate any help.

Regards

krishnan.ma...@gmail.com

unread,
Apr 4, 2015, 8:59:37 PM4/4/15
to seleniu...@googlegroups.com

Please answer the below two questions

1. How are you building your uber jar ?
2. How are you starting the node/hub.

-Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else"

--
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/c7a6764d-84f5-4c3e-8537-142166bb0dc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tanmay Ghorai

unread,
Apr 5, 2015, 8:44:39 PM4/5/15
to seleniu...@googlegroups.com
Hi Krishnan,

1. I am building Jar running go script.
2. Starting hub/node running jar : hub :  java -jar  server-with-tests-standalone.jar -role hub ,  node : java -jar  server-with-tests-standalone.jar -role node –hub http://localhost:4444/grid/register


Regards
Tanmay

krishnan.ma...@gmail.com

unread,
Apr 5, 2015, 8:49:40 PM4/5/15
to Selenium Users

Make sure that your uber jar contains the jdbc driver classes as well.
I don't think your uber jar has them which explains the error.

To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e7487b78-6885-4125-90a9-16e63953b45b%40googlegroups.com.

Tanmay Ghorai

unread,
Apr 7, 2015, 2:58:28 PM4/7/15
to seleniu...@googlegroups.com
Hi Krishnan,

Thanks for your suggestions.
I am using 'go' script to compile these. Wondering how to include JDBC jar ( Driver clases) ? Appreciate any help.

Regards
Tanmay

Krishnan Mahadevan

unread,
Apr 7, 2015, 10:50:22 PM4/7/15
to Selenium Users
I have not used go so I wouldn't know. Maven is the only animal that am familiar with :)
So let me just side step and someone else help you with that query !
You could also try asking the universal guru : Google :)

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/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply all
Reply to author
Forward
0 new messages