I figured out how to read the sub-process output from Coldfusion through getInputStream(). Unfortunately, the read() method seems to block until the sub-process is forcefully terminated. However, this is what I get, implying the server seems to be starting up correctly:
11:14:46.337 INFO - Java: Sun Microsystems Inc. 10.0-b23\\ 11:14:46.337 INFO - OS: Windows XP 5.1 x86\\ 11:14:46.337 INFO - v1.0-beta-1 [2201], with Core v1.0-beta-1 [1994]\\ 11:14:46.446 INFO - Version Jetty/5.1.x\\ 11:14:46.446 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]\\ 11:14:46.446 INFO - Started HttpContext[/selenium-server,/selenium-server]\\ 11:14:46.446 INFO - Started HttpContext[/,/]\\ 11:14:46.649 INFO - Started SocketListener on
0.0.0.0:4444
Is it possible that the sub-process isn't actually running as a separate process, and is somehow blocking the main process running Coldfusion? How would I work around this?
The exact error I get from calls to DefaultSelenium is:
DefaultSelenium = createobject("java","com.thoughtworks.selenium.DefaultSelenium");\\ browser = DefaultSelenium.init("localhost", 4444, '*iexplore', "
http://www.google.com");\\ browser.start();\\ browser.open("/");\\ browser.waitForPageToLoad("30000");\\ WriteOutput('text='&browser.isTextPresent("Privacy")&'<br/>');\\ browser.stop();
Could not contact Selenium Server; have you started it? Catch body broken: IOException from cmd=getNewBrowserSession&1=*iexplore&2=http%3A%2F%
2Fwww.google.com -> java.net.ConnectException: Connection refused: connect