Hi I am getting the same error, were you able to figure out what the problem was? It runs fine in webobjects 5.2 but not with 5.4
Thanks. --- On Wed, 7/23/08, Ondra Cada <[EMAIL PROTECTED]> wrote: From: Ondra Cada <[EMAIL PROTECTED]> Subject: No template found for component?!? To: "WebObjects-Dev Development" <[email protected]> Date: Wednesday, July 23, 2008, 12:18 PM As a followup for my previous mail, On 23.7.2008, at 15:02, Ondra Cada wrote: > ...I've considered the following pattern: > > (a) giving all the slow components a common superclass, say, > OCSLongResponserBase > (b) exploit a similar technique LongResponsePage uses in this > superclass, but running the appendToResponse in the thread; thus, > making them all "long response" at once. > ... > The threads run precisely as intended, but the response generation > in the long response thread does not work: seems the framework > accesses some extra context which I forget to (or don't know how) > cache or to "enforce" inside the long response thread. The actual > result in the cached response seems somewhat random, from a > completely empty response to a partially created page, I suppose > depending on a timing of the long response and main threads. it seems the culprit it does not work is that occassionally "No template found for component" occurs. Does anybody knows who reports this error and why? I have created my own Resource Manager, and it finds the desired component all right, but then the "No template found for component" error occurs, like this: public class ResourceManager extends WOResourceManager { ... public String urlForResourceNamed(String aResourceName, String aFrameworkName, NSArray aLanguagesList, WORequest aRequest) { NSLog.err.appendln("RM:url "+aResourceName +" ("+aFrameworkName+") in "+aLanguagesList+", request "+aRequest); String url=super.urlForResourceNamed (aResourceName,aFrameworkName,aLanguagesList,aRequest); NSLog.err.appendln(" returns \""+url+"\""); return url; } and the log looks like this: ... [2008-07-23 18:08:27 CEST] <Thread-1> RM:url PageFrame.wo (null) in ("Czech"), request null [2008-07-23 18:08:27 CEST] <Thread-1> returns "/WebObjects/ Test.woa/Volumes/300/Projects/Test/Czech.lproj/PageFrame.wo" ... other threads logs only here ... [2008-07-23 18:08:29 CEST] <Thread-1> <com.webobjects.appserver._private.WOComponentDefinition> No template found for component PageFrame at "file:/Users/ocs/Generated/ WODevelopment/Test.woa/". ... I am pretty much flabbergasted :( Thanks for any idea what might be the culprit, --- Ondra Čada OCSoftware: [EMAIL PROTECTED] http://www.ocs.cz private [EMAIL PROTECTED] http://www.ocs.cz/oc _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/muc154%40yahoo.com This email sent to [EMAIL PROTECTED]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
