Re: problems with WOComponents in packages and starting in Eclipse

From: Felix Franz (fran..rgosign.de)
Date: Tue Jun 10 2003 - 05:22:59 EDT

  • Next message: Paul Hertz: "Re: Adding Application Resources"

    Hi Ulrich,

    On Tuesday, June 10, 2003, at 09:21 AM, Ulrich Köster wrote:

    > is the working directory of the launch config the woa?
    >

    yes, the working directory is the woa. I created a little test app
    using the following procedure:

    - use the wizard to create a WOApplication "PackageTest".
    - use the wizard to create a new WOComponent "MyComponent"
    - create a new package foo.bar.baz
    - move MyComponent inside foo.bar.baz (refactor>move)
    - embed MyComponent in Main.wo

    in the launch configuration-Arguments: Working directory: Workspace
    PackageTest/PackageTest.woa

    launching the application (either run or debug) brings the following
    stack trace:

    -- Normal WO output snipped ---

    [2003-06-10 11:15:36 CEST] <main> Waiting for requests...
    [2003-06-10 11:15:37 CEST] <WorkerThread0>
    WOBundle.lookForClassInAllBundles(MyComponent) failed!
    [2003-06-10 11:15:37 CEST] <WorkerThread0>
    <com.webobjects.appserver._private.WOComponentDefinition> WARNING:
    Unable to find component class named "MyComponent". If this is not
    intended to be a classless component, check your framework settings and
    the contents of your classpath file (in the .woa's
    Contents/<PLATFORM_NAME> subdirectory).
    [2003-06-10 11:15:37 CEST] <WorkerThread0> <WOApplication
    'PackageTest'>: Exception occurred while handling request:
    com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException:
    [<com.webobjects.appserver.WOComponent name: MyComponent subcomponents:
    null > valueForKey()]: lookup of unknown key: 'foo'.
    This WOComponent does not have an instance variable of the name foo or
    _foo, nor a method of the name foo, _foo, getFoo, or _getFoo

    --- snipped --

    Am I missing some steps in the above procedure? Updating PB.project
    (WOLips-menu), rebuilding the project doesn't change the behavior. If
    you need some more info, just ask.

    felix



    This archive was generated by hypermail 2.0.0 : Tue Jun 10 2003 - 05:21:42 EDT