We had the same problem a few weeks ago with Autolaunch when we upgraded
our already existing Win2k boxes running 5.2.3 to WinXP Pro. Apple does not
officially support Windows XP as a development platform, so the WO code
will not autolaunch for you. We discovered 2 solutions by searching various
newsgroups.
1. Not use autolaunch. Instead assign a fixed port to each application you
run and bookmark it in your browser.
2. Override the private methods in WOApplication that check for supported
platforms. There are 3 that seem relevant in WOApplication:
_isDomesticSupportedDevelopmentPlatform()
_isForeignSupportedDevelopmentPlatform()
_isSupportedDevelopmentPlatform() -- that probably calls one of the above
2 methods based on some criteria.
For quick and dirty to get this running, we override the method in our
Application class like this:
/* (non-Javadoc)
*..ee
com.webobjects.appserver.WOApplication#_isSupportedDevelopmentPlatform()
*/
public boolean _isSupportedDevelopmentPlatform() {
// TODO Auto-generated method stub
return true;//super._isSupportedDevelopmentPlatform();
}
A more cross-platform solution is to actually check for your current
platform, something like this (caution -- compiled in my mail program):
/* (non-Javadoc)
*..ee
com.webobjects.appserver.WOApplication#_isSupportedDevelopmentPlatform()
*/
public boolean _isSupportedDevelopmentPlatform() {
// TODO Auto-generated method stub
String s = System.getProperty("os.name");
return (super._isSupportedDevelopmentPlatform() ||
s.equals("Windows XP"));
}
Obviously, there is some Apple code that is getting short circuited here
and may cause unintended consequences, but we remove this code once we get
to production and deployment and just use it for convenience during
development. So far it works for us, until the day that Apple sees fit to
declare Windows XP an officially supported dev platform. When I get a
minute in the next few weeks, I plan on submitting a bug/feature request.
Good luck,
Logan Allred
Leif Åge Klungseth
<leif.klungset..t To: <woproject-de..bjectstyle.org>
ea.ntnu.no> cc:
Subject: AutoLaunch will not work
05/19/2004 07:30
AM
Hi.
When i upgraded from WO 5.1.x to 5.2.x i got som problem with AutoLaunch.
I run WO/eclipse on WinXP.
WOLips 1.0.7.40
Eclipse 2.1.0/2.1.1/2.1.2
I get the following errormessage:
-
[2004-05-19 10:09:10 CEST] <main> Your application is not running on a
supported development platform. AutoLaunch will not work.
Your application's URL is:
http://localhost.........
-
AutoOpenInBrowser is set to true:
-
[2004-05-19 10:09:09 CEST] <main> WOAutoOpenInBrowser=true
-
This worked correctly before the upgrade.
Is this a general problem, or just something weird on my computer?
Regards
--- Leif Åge Klungseth Webdeveloper, IT-department, NTNU Tlf: +4773597842 http://www.itea.ntnu.no/integrasjon
This archive was generated by hypermail 2.0.0 : Thu May 20 2004 - 11:08:59 EDT