hi,
I am sure that most of you face this problem, and i will be very happy
if you could help me on this.
in my application (jave + eclipse ) i insert the selenuim-server.jar to my project add it to the classpath.
by running the following program in eclipse - it works just fine:
import org.openqa.selenium.server.SeleniumServer;\\ import com.thoughtworks.selenium.DefaultSelenium;\\ import com.thoughtworks.selenium.Selenium;\\ public class Server {\\ \\ \\ \\ \\ public static void main(String[] args) throws Exception {\\ \\ \\ final String BASE_URL = "
http://www.google.co.il/";//in your case
www.google.com\\ Selenium selenium = new DefaultSelenium( "localhost",4444,"*iexplore",BASE_URL); \\ \\ SeleniumServer seleniumServer = new SeleniumServer(); \\ \\ seleniumServer.start();\\ selenium.start(); \\ selenium.open("
http://www.google.co.il/");\\ }\\ }
now,
i wan' t to run this program as stand alone application - so i using eclipse - create runnable jar.
and by running this jar ( using command line ) i am getting this exception :
C:\Documents and Settings\Administrator>java -jar c:\re.jar\\ 15:15:31.906 INFO - Java: Sun Microsystems Inc. 1.6.0_01-b06\\ 15:15:31.906 INFO - OS: Windows XP 5.1 x86\\ 15:15:31.921 INFO - v1.0.1 [2696], with Core v@VERSION@ [@REVISION@]\\ 15:15:32.109 INFO - Version Jetty/5.1.x\\ 15:15:32.109 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]\\ 15:15:32.109 INFO - Started HttpContext[/selenium-server,/selenium-server]\\ 15:15:32.109 INFO - Started HttpContext[/,/]\\ 15:15:32.140 INFO - Started SocketListener on
0.0.0.0:4444\\ 15:15:32.140 INFO - Started org.mortbay.jetty.Server@1ca318a\\ 15:15:32.265 INFO - Checking Resource aliases\\ 15:15:32.312 INFO - Command request: getNewBrowserSession[*iexplore,
http://www.google.co.il/, ] on session null\\ 15:15:32.312 INFO - creating new remote session\\ 15:15:32.484 INFO - Allocated session c9e3b33dd8344236b1ce0f7cda4a6807 for
http://www.google.co.il/, launching...\\ 15:15:32.484 ERROR - Failed to start new browser session, shutdown browser and clear all session data\\ java.lang.IllegalArgumentException: Resource not found: /core\\ at org.openqa.selenium.server.browserlaunchers.ResourceExtractor.extractResourcePath(ResourceExtractor.java:39)\\ at org.openqa.selenium.server.browserlaunchers.HTABrowserLauncher.createHTAFiles(HTABrowserLauncher.java:85)\\ at org.openqa.selenium.server.browserlaunchers.HTABrowserLauncher.launch(HTABrowserLauncher.java:60)\\ at org.openqa.selenium.server.browserlaunchers.HTABrowserLauncher.launchRemoteSession(HTABrowserLauncher.java:14\\ 0)
{font:style=text-decoration: underline;}Failed to start new browser session - why ?{font}
i can clearly see that the server start to run just fine.
so if one of you could help me on this i will be *{font:style=color: #333333;}very grateful{font}*..
Thanks in advanced for your support..
Eraz