Why doesn't my application launch into my browser?

Version 14.1 by Johan Henselmans on 2008/01/17 15:47

Discussion: You select 'Run as...' > WOApplication; the project runs; you can copy the url out of the console and into the browser; but it doesn't conveniently launch straight into the browser anymore.

Solution: You probably have a space in your Eclipse project name; eg. 'My Project' remove it, or replace it suitably, eg. 'MyProject' and it will probably all start working again. :p

Discussion: Presumably, the launch fails because the Eclipse project name automatically forms part of the URL for running the application as a WOApplication in Eclipse/WOLips. However, a space is not a legal character for a URL as we know, and must usually be escaped with UTF-8 encoding as '%20'.

If you are on Leopard, something else is going on. 

There used to be an application called /System/Library/WebObjects/Executables/WOOpenURL that opened the standard web browser with a pointer to the running the project, eg: http://193.78.79.17:49832/cgi-bin/WebObjects/d2wupload2.woa

That application does not exist any more in Leopard. But there is a simple workaround:

Type this in a terminal as root (or precede with sudo).
 mkdir p /System/Library/WebObjects/Executables
ln 
s /usr/bin/open /System/Library/WebObjects/Executables/WOOpenURL