Re: How to properly embed wonder frameworks

From: Pascal Robert (prober..acti.ca)
Date: Thu Mar 12 2009 - 07:02:51 EDT

  • Next message: David Avendasora: "Re: build servers finally fully back to life"

    Hi,

    You have to set the WOFrameworksBaseURL property to /WebObjects/
    HelloWorld.woa/Frameworks

    Now, two things about that property. It will change the base URL for
    all frameworks, so if you use WSR coming from JavaWOExtensions that
    ships from the WO package, it will not find the WSR for those
    frameworks. You will have to either use the JavaWOExtensions framework
    from Wonder or embed the System frameworks too (which is a good idea
    anyway). And WO 5.4.3 have a bug for WOFrameworksBaseURL, you have to
    add 3 lines of code to your Application class so that the
    WOFrameworksBaseURL is read. Check the list archives for the code.

    > Hi All,
    >
    > I am at a point of my WO journey of deploying my app.
    >
    > My problem is that, I have project wonder frameworks installed in my
    > dev windows box, but not in the deployment linux box.
    >
    > I used the ant build script that WOLips generated for me and enabled
    > the "Embed Local Frameworks" option.
    >
    > I can see that the resulting packages in dist folder (HelloWorld-
    > Application.tar.gz and HelloWorld-WebServerResources.tar.gz) has the
    > wonder frameworks it needed.
    >
    > The problem is that accessing my app (HelloWonder) on the linux box,
    > i see
    >
    > <script src="/WebObjects/Frameworks/Ajax.framework/
    > WebServerResources/wonder.js"></script>
    > That is generated on my pages. If I did embed my local frameworks,
    > this resource should have been (please correct me)
    > <script src="/WebObjects/HelloWorld.woa/Frameworks/Ajax.framework/
    > WebServerResources/wonder.js"></script>
    > Did I miss a setting in WOLips?
    >
    > Thanks,
    > Amiel
    >
    > --
    > socket error: unable to connect to 127.0.0.1

    -------------------------------------------------------
    Pascal Robert

    http://www.macti.ca
    http://www.aircourriel.com
    http://www.linkedin.com/in/macti

    Skype: MacTICanada
    AIM/iChat : MacTICanada



    This archive was generated by hypermail 2.0.0 : Thu Mar 12 2009 - 07:04:24 EDT