Re: No template found for component

From: Chuck Hill (chil..lobal-village.net)
Date: Mon Apr 02 2007 - 16:54:26 EDT

  • Next message: Fabian Peters: "Re: No template found for component"

    Hi Fabian,

    On Apr 2, 2007, at 12:17 PM, Fabian Peters wrote:

    > Hi Chuck,
    >
    > Am 02.04.2007 um 19:52 schrieb Chuck Hill:
    >
    >> I _never_ have my components in the project root and I don't see
    >> this problem.
    >
    > Well, do you have localized components? Maybe it's related to the
    > localization part?

    I have a few, I don't use them much but I don't recall it causing
    problems.

    > I did not find very much info on "Folder References", which are
    > required by WOResourceManager, according to the API, to locate
    > resources in rapid turnaround mode. Maybe Ulrich can shed some
    > light on this, but it's been quite a while I've seen a post from
    > him...

    "Folder References" is an Xcode term, nothing to do with WO. The
    groups shown in Xcode don't necessarily correspond to actual folders
    on the file system. If you don't use/make "Folder References" in
    Xcode, you end up with

    Resources/
            TDComponent.api
            TDComponent.wod
            TDComponent.html

    Instead of the correct
    Resources/
            TDComponent.api
            TDComponent.wo/
                    TDComponent.wod
                    TDComponent.html

    Chuck

    >
    >> On Apr 2, 2007, at 10:20 AM, Fabian Peters wrote:
    >>
    >>> Hi Jean-Pierre,
    >>>
    >>> Am 02.04.2007 um 12:38 schrieb Jean Pierre Malrieu:
    >>>
    >>>> Everything happens to me...
    >>>
    >>> But not exclusively to you...
    >>>
    >>>> In development mode, I get the following error:
    >>>> <com.webobjects.appserver._private.WOComponentDefinition> No
    >>>> template found for component TDComponent at "file:/Users/jpm/
    >>>> Documents/EclipseTemp/workspace/TDBase/build/TDBase.woa".
    >>>>
    >>>> TDComponent is in a framework (called TDComps) that an app
    >>>> called TDBase depends upon.
    >>>>
    >>>> In order to organize my Frameworks with Project Wonder structure
    >>>> (and be capable to use the last build.xml), I have created a
    >>>> "Component" folder in the TDComps project (the framework), and
    >>>> put my components in there. Then, in development mode, TDBase
    >>>> (the app) won't see those components, hence the no template
    >>>> found error. If I move the components to the root of the
    >>>> framework project, everything is fine in development, but not in
    >>>> deployment (they don't get copied due to the recent build.xml).
    >>>>
    >>>> How would you tell the app that the components are not at the
    >>>> root of the framework?
    >>>>
    >>>> What puzzles me most is that the build folder (for the
    >>>> framework) has the following structure:
    >>>>
    >>>> TDComps.Framework
    >>>> Resources
    >>>> French.lproj
    >>>> my .wo files
    >>>> .....
    >>>> Java
    >>>> my api. files
    >>>> ......
    >>>> WebServerResources
    >>>>
    >>>> I don't see any difference in the build: whether or not my
    >>>> components are in a "Components" folder, the incremental build
    >>>> is the same (yes I cleaned the framework to be sure). And yet,
    >>>> the app sees the components in one case and not in the other.
    >>>
    >>> I ran into the same problem a few days ago. I figure that the
    >>> problem is due to the way the WOResourceManager resolves
    >>> localized components in rapid turnaround mode. See my previous
    >>> messages on this: <http://objectstyle.org/woproject-old/lists/
    >>> woproject-dev/2007/03/0125.html>
    >>>
    >>>> I would appreciate your help again.
    >>>
    >>> I'm afraid I can't really help. I reverted back to keeping all
    >>> the components in the project root.
    >>>
    >>> cheers
    >>>
    >>> Fabian
    >>>
    >>
    >> --
    >>
    >> 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
    >>
    >>
    >>
    >>
    >>
    >
    >

    -- 
    

    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 : Mon Apr 02 2007 - 16:56:21 EDT