Re: No template found for component

From: Chuck Hill (chil..lobal-village.net)
Date: Mon Apr 02 2007 - 13:52:58 EDT

  • Next message: André Koppany: "Re: Entity Modeler: wrong sql generation with frontbase"

    I _never_ have my components in the project root and I don't see this
    problem.

    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



    This archive was generated by hypermail 2.0.0 : Mon Apr 02 2007 - 13:53:43 EDT