Re: WO 5.4 and Stateless components

From: Chuck Hill (chil..lobal-village.net)
Date: Thu Apr 24 2008 - 19:10:45 EDT

  • Next message: Alex Cone: "Re: WO 5.4 and Stateless components"

    Check the launcher configuration. Did you mess with the classpath?

    On Apr 24, 2008, at 4:06 PM, Alex Cone wrote:

    > OK - seems to be a "running in Eclipse" thing. Built and deployed
    > the app runs fine....
    >
    > On Apr 24, 2008, at 3:14 PM, Chuck Hill wrote:
    >
    >>
    >> On Apr 24, 2008, at 2:53 PM, Alex Cone wrote:
    >>
    >>> Hi!
    >>>
    >>> I just converted a project to WO 5.4 and I'm seeing very odd
    >>> behavior/errors with my stateless components. Basically...
    >>>
    >>> a) the application seems to be trying to synchronize bindings,
    >>> leading to:
    >>>
    >>> This WOComponent does not have an instance variable of the name
    >>> foo or _foo, nor a method of the name setFoo or _setFoo' object
    >>> '<com.webobjects.appserver.WOComponent name: FooStateless
    >>> subcomponents: null >' key 'foo'>
    >>>
    >>> (The component inherits from a generic stateless component that
    >>> returns isStaeless is true, synchronizesVariablesWithBindings is
    >>> false.)
    >>>
    >>> b) the actual code for the component seems to be being ignored
    >>> (though there is no error message like one usually gets when the
    >>> java class cannot be found and we fall back to a generic
    >>> WOComponent). If I break in my class's constructor the breakpoint
    >>> is never hit.
    >>>
    >>> The second problem would probably account for the first problem.
    >>> The component in question is in a framework project in my Eclipse
    >>> workspace...
    >>
    >> Not much to add. It sounds like it is not finding the class file.
    >> I'd crank up the NSLog levels and check the app logs. Triple check
    >> the classpath.
    >>
    >> Chuck
    >>
    >>
    >> --
    >>
    >> Practical WebObjects - for developers who want to increase their
    >> overall knowledge of WebObjects or who are trying to solve specific
    >> problems.
    >> http://www.global-village.net/products/practical_webobjects
    >>
    >>
    >>
    >>
    >>
    >
    >
    > __alex cone
    > ceo c o d e f a b llc
    > ab..odefab.com
    > 212.465.8484 x101
    > http://www.codefab.com
    >
    > If you are not living on the edge, you are taking up too much space.
    >
    >
    >
    >
    >

    -- 
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Thu Apr 24 2008 - 19:11:26 EDT