Re: AutoLaunch will not work

From: Chuck Hill (chil..lobal-village.net)
Date: Sat May 29 2004 - 14:58:48 EDT

  • Next message: Kaj Hejer: "Build failed from cvs"

    I think the post below may be what you are recalling. I was not the
    originator.

    HTH
    Chuck

    Q. When i upgraded from WO 5.1.x to 5.2.x i got som problem with
    AutoLaunch. I run WO/eclipse on WinXP.
    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?

    A. 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
    convergys.com

    At 07:55 PM 29/05/2004 +0200, Ulrich Köster wrote:
    >Moin Leif,
    >
    >as far as I can remember Chuck Hill posted the answer in the omni or
    >apple list.
    >
    >Ulrich
    >Am 21.05.2004 um 10:38 schrieb Leif Åge Klungseth:
    >
    >> Hi Ulrich,
    >> and thanks for your answer.
    >> I installed under the default directory (c:\apple) and the NEXT_ROOT
    >> env var is set to C:/Apple. I tried to remove the wobuild.properties
    >> file, but it didn't help.
    >>
    >> regards
    >> Leif
    >>
    >>> -----Original Message-----
    >>> From: Ulrich Köster
    >>> Sent: Wednesday, May 19, 2004 7:57 PM
    >>> To: WOLips <woproject-de..bjectstyle.org>
    >>> Subject: Re: AutoLaunch will not work
    >>>
    >>> Hi Leif,
    >>>
    >>> please make sure that your NextRoot environment variable
    >>> points to the correct directory.
    >>>
    >>> In the case you've installed WebObjects under a different
    >>> directory open the WOLips preferences and check "Rebuild
    >>> wobuild.properties on next launch", quit Eclipse, delete the
    >>> file wobuild.properties in under user.home/Library and
    >>> restart Eclipse.
    >>>
    >>> Ulrich
    >>>
    >>> Am 19.05.2004 um 15:30 schrieb Leif Åge Klungseth:
    >>>
    >>>>
    >>>> 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
    >>>>
    >>>
    >>>
    >>>
    >
    >
    >

    --
    

    Chuck Hill chil..lobal-village.net Global Village Consulting Inc. http://www.global-village.net



    This archive was generated by hypermail 2.0.0 : Sat May 29 2004 - 14:55:18 EDT