18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

JAVA ClassNotFoundException trying to go to the Test Website URL

blytleblytle Members
edited December 2012 in Sahi - Open Source
Greetings!

I have SAHI Open Source and JAVA JDK 7 installed (C:\glassfish3\jdk7\bin). When I launch the SAHI dashboard and click on the Internet Explorer button, IE 8 launches and the page http://sahi.example.com/_s_/dyn/Driver_initialized loads as expected.

When I enter www.google.com in the 'Enter start URL' and click go, the following error is displayed:


C:\installs\sahi\userdata\bin>SET SAHI_HOME=..\..

C:\installs\sahi\userdata\bin>SET SAHI_USERDATA_DIR=..

C:\installs\sahi\userdata\bin>SET SAHI_EXT_CLASS_PATH=

C:\installs\sahi\userdata\bin>CALL ..\..\bin\dashboard.bat
SAHI_HOME: ..\..
SAHI_USERDATA_DIR: ..
SAHI_EXT_CLASS_PATH:
Sahi properties file = C:\installs\sahi\config\sahi.properties
Sahi user properties file = C:\installs\sahi\userdata\config\userdata.properties

>>>> Sahi started. Listening on port: 9999
>>>> Configure your browser to use this server and port as its proxy
>>>> Browse any page and CTRL-ALT-DblClick on the page to bring up the Sahi Cont
roller
Reading browser types from: C:\installs\sahi\userdata\config\browser_types.xml
Firefox 4 was not found at C:\Program Files (x86)\Mozilla Firefox 4.0 Beta 7\fir
efox.exe
C:\Program Files (x86)\Internet Explorer\iexplore.exe -noframemerging http://sah
i.example.com/_s_/dyn/Driver_initialized
Dec 27, 2012 10:03:55 AM net.sf.sahi.ssl.SSLHelper getKeyManagerFactoryForRemote
Fetch
INFO: No SSL Client Cert specified
Dec 27, 2012 10:08:07 AM net.sf.sahi.command.CommandExecuter execute
WARNING: commandClass = >www.google.com< commandMethod = >execute<
Dec 27, 2012 10:08:07 AM net.sf.sahi.command.CommandExecuter execute
WARNING: java.lang.ClassNotFoundException: www.google.com
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at net.sf.sahi.util.ClassLoadHelper.getClass(ClassLoadHelper.java:24)
at net.sf.sahi.command.CommandExecuter.execute(CommandExecuter.java:53)
at net.sf.sahi.LocalRequestProcessor.handleDyn(LocalRequestProcessor.jav
a:65)
at net.sf.sahi.LocalRequestProcessor.getLocalResponse(LocalRequestProces
sor.java:38)
at net.sf.sahi.ProxyProcessor.processLocally(ProxyProcessor.java:186)
at net.sf.sahi.ProxyProcessor.run(ProxyProcessor.java:86)
at java.lang.Thread.run(Thread.java:722)



Any idea what I am missing?

Thanks so Much!

Answers

Sign In or Register to comment.