Sorry. Just try logging the path. It may help you.
log.info(component._componentDefinition().baseURL()) Jérémy DE ROYER Le 2 sept. 2013 à 17:23, Frank Stock a écrit : Hi Jérémy, I only have this on my development machine, never on the server. Frank Op 2 sep. 2013, om 15:53 heeft Jérémy DE ROYER <[email protected]<mailto:[email protected]>> het volgende geschreven: Hi Frank, I had the same issue but rarely and my servers. Sometimes, when the Component was loaded for the first time, I had this issue that made my app not usable : it was displaying a blank page. After many hours or days trying to solve it, I decided to secure the app : on the first time, it looks on the baseURL of the component. if the component is not found (containing ERROR in the path) my app restart. I never heard about it. It's not that clean but it works and I don't fear my customers calling me for a blank page. if (component._componentDefinition().baseURL().indexOf("ERROR") > -1) { try { log.error("Application terminated (? " + component.name() + " with baseURL " + component._componentDefinition().baseURL() + " not found ?)"); Thread.sleep(10L * 1000L); WOApplication.application().terminate(); return true; } catch (Exception e) { e.printStackTrace(); } } Ciao, Jérémy Le 2 sept. 2013 à 14:04, Frank Stock a écrit : this is what I get in the console: DEBUG NSLog - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main at "file:/Users/frank/Documents/workspace/xxxxApp/". Op 1 sep. 2013, om 23:22 heeft Theodore Petrosky <[email protected]<mailto:[email protected]>> het volgende geschreven: each one will need to have the link I am not sure if you can link your project folder and have apache traverse the folders to find your individual project folders. shortly after I got this working, I had a few conversations that lead me to just ignore it for a while. remember you only have to create the link once, so link all of your projects individually. On Sep 1, 2013, at 2:52 PM, Frank Stock <[email protected]<mailto:[email protected]>> wrote: Hi Theodore, Thank you for your answer but what name should I use if I have several projects? So if I have ~/Documents/MyWorkSpace/project1/build/project1.woa/Content/WebServerResources I make a symbolic link that I place in /Library/WebServer/Documents/WebObjects/??? Frank Op 1 sep. 2013, om 15:05 heeft Theodore Petrosky <[email protected]<mailto:[email protected]>> het volgende geschreven: the WebServerResources folder in your project needs to be served by Apache you need to create a symbolic link from (I am making up this set up) from ~/Documents/MyWorkspace/project1/WebServerResources to /Library/WebServer/Documents so that as the instructions state, "it is reachable by Apache" I was able to make this work, but I want to say that over the last year, I have asked other developers and if I were to draw a conclusion, not everyone is doing this. It is a nice experiment to more fully understand Apache. Ted On Sep 1, 2013, at 4:32 AM, Frank Stock <[email protected]<mailto:[email protected]>> wrote: Sorry, I want a setup with no direct connect: Turning Off Direct Connect * Configure your Apache to use mod_WebObjects or the cgi-bin adaptor * Ensure wotaskd is running * Set WODirectConnectEnabled to false * Set WOAllowRapidTurnaroundMode to false (It doesn't mean what you think it does - only useful pre-Eclipse days) - if you don't disable this then your static resources will still be served by the Java app instance and not by Apache. * Setup your WebServerResources folder so that it is reachable by Apache, eg by making a symbolic link from the folder CGI-Executables/WebObjects to MyGreatApp.woa in your build folder in Eclipse. Note: You may need to experiment with disabling the incremental builder setting to get build products that you can symbolic link to from the Apache root directories. * make sure that in your wotaskd. settings your WOHost settings is the same as in Eclipse (by default there is no -WOHost setting in the run configuration in Eclipse, you have to add that). -WOHost localhost is a nice one. * Profit It is not clear for me what the setup of the WebServerResources should be. Frank Op 31 aug. 2013, om 21:58 heeft Theodore Petrosky <[email protected]<mailto:[email protected]>> het volgende geschreven: that should be true but what about WODirectConnectEnabled? this should be true also ted On Aug 31, 2013, at 10:43 AM, Frank Stock <[email protected]<mailto:[email protected]>> wrote: Update: it works when I set WOAllowRapidTurnaroundMode to true, but I suppose that is not the way to do it. Begin doorgestuurd bericht: Van: Frank Stock <[email protected]<mailto:[email protected]>> Onderwerp: No template found for component Main at "file:/Users/xxx/Documents/workspace/AppV2/" Datum: 31 augustus 2013 15:43:28 CEST Aan: "[email protected]<mailto:[email protected]> WebObjects" <[email protected]<mailto:[email protected]>> Hi All, I am trying to setup my development with direct-connect. I think my configuration setting are ok, wotaksd is ok, I can see my App in the xm-file. My machine is Mac OS 10.8. First thing I get is : The requested application was not found on this server., Reloading gives me in de log: DEBUG NSLog - <com.webobjects.appserver._private.WOComponentDefinition> No template found for component Main at "file:/Users/frank/Documents/workspace/AppV2/". Any idea? Thanks in advance, Frank _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]<mailto:[email protected]>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to [email protected]<mailto:[email protected]> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]<mailto:[email protected]>) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net This email sent to [email protected]<mailto:[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: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
