<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Installing Selenium-RC as a Windows service</title>
	<atom:link href="http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/</link>
	<description></description>
	<pubDate>Thu, 09 Sep 2010 00:56:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Nick</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-68</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 26 Jul 2010 19:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-68</guid>
		<description>@manisha: change &lt;code&gt;java -jar selenium-server.jar&lt;/code&gt; back to &lt;code&gt;-Xrs -jar selenium-server.jar&lt;/code&gt; and it should work fine.

You don't need to specify 'java' in the &lt;code&gt;AppParameters&lt;/code&gt; because it's already specified as the &lt;code&gt;Application&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>@manisha: change <code>java -jar selenium-server.jar</code> back to <code>-Xrs -jar selenium-server.jar</code> and it should work fine.</p>
<p>You don&#8217;t need to specify &#8216;java&#8217; in the <code>AppParameters</code> because it&#8217;s already specified as the <code>Application</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Integrating Selenium Tests into CruiseControl.Net via NUnit &#171; Everything Web</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-67</link>
		<dc:creator>Integrating Selenium Tests into CruiseControl.Net via NUnit &#171; Everything Web</dc:creator>
		<pubDate>Mon, 26 Jul 2010 02:10:35 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-67</guid>
		<description>[...] found a great resource that details how to do this. To summarize the article, follow these simple [...]</description>
		<content:encoded><![CDATA[<p>[...] found a great resource that details how to do this. To summarize the article, follow these simple [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manisha</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-66</link>
		<dc:creator>manisha</dc:creator>
		<pubDate>Wed, 14 Jul 2010 13:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-66</guid>
		<description>Hi,

I followed this instructions to run RC as service.

I was able to create registory entery by name SeleniumRC. I don't know what is -Xrs -jar selenium-server.jar is used for so I changed it to java -jar selenium-server.jar command.

I hope its okay. 

After this I am not sure how to start SeleniumRC as service.

Can some one help?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I followed this instructions to run RC as service.</p>
<p>I was able to create registory entery by name SeleniumRC. I don&#8217;t know what is -Xrs -jar selenium-server.jar is used for so I changed it to java -jar selenium-server.jar command.</p>
<p>I hope its okay. </p>
<p>After this I am not sure how to start SeleniumRC as service.</p>
<p>Can some one help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NuclearFisher</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-65</link>
		<dc:creator>NuclearFisher</dc:creator>
		<pubDate>Wed, 26 May 2010 16:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-65</guid>
		<description>I was able to run Selenium-server-1.0.3 as Windows service with JavaService-2.0.10 (http://forge.ow2.org/projects/javaservice/) as follows:

1. Copy "JavaService.exe" to selenium-server-1.0.3\ directory as "selenium.exe"
2. Run the following batch in the same directory (edit paths and SEL_PARAMS if needed):
========
@echo off
set JAVA_HOME=c:\java\jre6
set JVMDIR=%JAVA_HOME%\bin\client
set JSBINDIR=%CD%
set JSEXE=%JSBINDIR%\selenium.exe
set SVC_NAME=Selenium4445

set SEL_PARAMS="-port 4445 -log %JSBINDIR%\logs\%SVC_NAME%.log -ensureCleanSession -trustAllSSLCertificates"
set SEL_JAR=%JSBINDIR%\selenium-server.jar
set SEL_START=org.openqa.selenium.server.SeleniumServer

echo . About to remove the previously installed service if any:
pause
%JSEXE% -uninstall %SVC_NAME%

echo . Using following version of JavaService executable:
%JSEXE% -version
echo .

echo Installing service... Press Control-C to abort
pause
echo .

%JSEXE% -install %SVC_NAME% %JVMDIR%\jvm.dll -Djava.class.path=%SEL_JAR% -start "%SEL_START%" -params "%SEL_PARAMS%"
echo .
pause

%JSEXE% -queryconfig %SVC_NAME%
========

Voila!

PS: Draw your attention to how double quotes are used. Each substring in SEL_PARAMS should be passed to SeleniumServer.class as a separate parameter and should not be combined to the single string. Otherwise nothing will work.
See the corresponding registry key below:
========
REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Selenium4445\Parameters]
"JavaService Version"="2,0,10,0"
"JVM Library"="c:\\java\\jre6\\bin\\client\\jvm.dll"
"JVM Option Count"=dword:00000001
"JVM Option Number 0"="-Djava.class.path=C:\\Java\\selenium\\selenium-server-1.0.3\\selenium-server.jar"
"Start Class"="org.openqa.selenium.server.SeleniumServer"
"Start Method"="main"
"Shutdown Timeout"=dword:00007530
"Overwrite Files Flag"=dword:00000000
"Startup Sleep"=dword:00000000
"Start Param Count"=dword:00000006
"Start Param Number 0"="-port"
"Start Param Number 1"="4445"
"Start Param Number 2"="-log"
"Start Param Number 3"="C:\\Java\\selenium\\selenium-server-1.0.3\\logs\\Selenium4445.log"
"Start Param Number 4"="-ensureCleanSession"
"Start Param Number 5"="-trustAllSSLCertificates"
========</description>
		<content:encoded><![CDATA[<p>I was able to run Selenium-server-1.0.3 as Windows service with JavaService-2.0.10 (http://forge.ow2.org/projects/javaservice/) as follows:</p>
<p>1. Copy &#8220;JavaService.exe&#8221; to selenium-server-1.0.3\ directory as &#8220;selenium.exe&#8221;<br />
2. Run the following batch in the same directory (edit paths and SEL_PARAMS if needed):<br />
========<br />
@echo off<br />
set JAVA_HOME=c:\java\jre6<br />
set JVMDIR=%JAVA_HOME%\bin\client<br />
set JSBINDIR=%CD%<br />
set JSEXE=%JSBINDIR%\selenium.exe<br />
set SVC_NAME=Selenium4445</p>
<p>set SEL_PARAMS=&#8221;-port 4445 -log %JSBINDIR%\logs\%SVC_NAME%.log -ensureCleanSession -trustAllSSLCertificates&#8221;<br />
set SEL_JAR=%JSBINDIR%\selenium-server.jar<br />
set SEL_START=org.openqa.selenium.server.SeleniumServer</p>
<p>echo . About to remove the previously installed service if any:<br />
pause<br />
%JSEXE% -uninstall %SVC_NAME%</p>
<p>echo . Using following version of JavaService executable:<br />
%JSEXE% -version<br />
echo .</p>
<p>echo Installing service&#8230; Press Control-C to abort<br />
pause<br />
echo .</p>
<p>%JSEXE% -install %SVC_NAME% %JVMDIR%\jvm.dll -Djava.class.path=%SEL_JAR% -start &#8220;%SEL_START%&#8221; -params &#8220;%SEL_PARAMS%&#8221;<br />
echo .<br />
pause</p>
<p>%JSEXE% -queryconfig %SVC_NAME%<br />
========</p>
<p>Voila!</p>
<p>PS: Draw your attention to how double quotes are used. Each substring in SEL_PARAMS should be passed to SeleniumServer.class as a separate parameter and should not be combined to the single string. Otherwise nothing will work.<br />
See the corresponding registry key below:<br />
========<br />
REGEDIT4</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Selenium4445\Parameters]<br />
&#8220;JavaService Version&#8221;=&#8221;2,0,10,0&#8243;<br />
&#8220;JVM Library&#8221;=&#8221;c:\\java\\jre6\\bin\\client\\jvm.dll&#8221;<br />
&#8220;JVM Option Count&#8221;=dword:00000001<br />
&#8220;JVM Option Number 0&#8243;=&#8221;-Djava.class.path=C:\\Java\\selenium\\selenium-server-1.0.3\\selenium-server.jar&#8221;<br />
&#8220;Start Class&#8221;=&#8221;org.openqa.selenium.server.SeleniumServer&#8221;<br />
&#8220;Start Method&#8221;=&#8221;main&#8221;<br />
&#8220;Shutdown Timeout&#8221;=dword:00007530<br />
&#8220;Overwrite Files Flag&#8221;=dword:00000000<br />
&#8220;Startup Sleep&#8221;=dword:00000000<br />
&#8220;Start Param Count&#8221;=dword:00000006<br />
&#8220;Start Param Number 0&#8243;=&#8221;-port&#8221;<br />
&#8220;Start Param Number 1&#8243;=&#8221;4445&#8243;<br />
&#8220;Start Param Number 2&#8243;=&#8221;-log&#8221;<br />
&#8220;Start Param Number 3&#8243;=&#8221;C:\\Java\\selenium\\selenium-server-1.0.3\\logs\\Selenium4445.log&#8221;<br />
&#8220;Start Param Number 4&#8243;=&#8221;-ensureCleanSession&#8221;<br />
&#8220;Start Param Number 5&#8243;=&#8221;-trustAllSSLCertificates&#8221;<br />
========</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kostia</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-63</link>
		<dc:creator>Kostia</dc:creator>
		<pubDate>Thu, 21 Jan 2010 23:08:49 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-63</guid>
		<description>Thanks for the post!

I ran into the same problem (the parameters) and solved it by using a BAT-file containing the whole command line:

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC\Parameters]
"Application"="C:\\Path\To\My\BAT\File"</description>
		<content:encoded><![CDATA[<p>Thanks for the post!</p>
<p>I ran into the same problem (the parameters) and solved it by using a BAT-file containing the whole command line:</p>
<p>Windows Registry Editor Version 5.00<br />
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC\Parameters]<br />
&#8220;Application&#8221;=&#8221;C:\\Path\To\My\BAT\File&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-62</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Tue, 12 Jan 2010 23:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-62</guid>
		<description>Thanks for this post. It saved me a lot of time.</description>
		<content:encoded><![CDATA[<p>Thanks for this post. It saved me a lot of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-58</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 20 Oct 2009 17:55:19 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-58</guid>
		<description>Hi,

I must admit I haven't tried starting it on anything other than the default port - but I would have thought it should work.

The first thing to try would be to start the service from the command line using the arguments you're setting in the registry; so, in your case:

cd "C:\\Program Files\\selenium-server-1.0.1"
java -Xrs -jar selenium-server.jar -port 8888

If that doesn't start correctly, it should give you an error message with the cause.

HTH -</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I must admit I haven&#8217;t tried starting it on anything other than the default port - but I would have thought it should work.</p>
<p>The first thing to try would be to start the service from the command line using the arguments you&#8217;re setting in the registry; so, in your case:</p>
<p>cd &#8220;C:\\Program Files\\selenium-server-1.0.1&#8243;<br />
java -Xrs -jar selenium-server.jar -port 8888</p>
<p>If that doesn&#8217;t start correctly, it should give you an error message with the cause.</p>
<p>HTH -</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Dumaresq</title>
		<link>http://unintelligible.org/blog/2009/07/28/installing-selenium-rc-as-a-windows-service/#comment-57</link>
		<dc:creator>Dave Dumaresq</dc:creator>
		<pubDate>Tue, 20 Oct 2009 16:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://unintelligible.org/blog/?p=171#comment-57</guid>
		<description>Thanks for this!

Have you tried starting the SeleniumRC service on a port other than the default (4444)? I'm trying to pass in the parameter -port 8888 without any luck. I tried adding it to the registry key:

AppParameters"="-Xrs -jar selenium-server.jar -port 8888"

But it doesn't seem to get picked up. (How can I view console output?)

Neither does it when I add it to the service properties Start parameters. Then the system tells me the service was started and stopped because it may not have had any work to do.</description>
		<content:encoded><![CDATA[<p>Thanks for this!</p>
<p>Have you tried starting the SeleniumRC service on a port other than the default (4444)? I&#8217;m trying to pass in the parameter -port 8888 without any luck. I tried adding it to the registry key:</p>
<p>AppParameters&#8221;=&#8221;-Xrs -jar selenium-server.jar -port 8888&#8243;</p>
<p>But it doesn&#8217;t seem to get picked up. (How can I view console output?)</p>
<p>Neither does it when I add it to the service properties Start parameters. Then the system tells me the service was started and stopped because it may not have had any work to do.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
