Re: Tomcat
On 06/08/2012, at 4:26 PM, Ron X wrote: does anybody know - can i move with WO-application from WebObjects-server to the Tomcat server WITHOUT rewriting all views and pages from wo-pages (templates) to jsp? Definitely. The standard Ant build.xml script has a war target for building a servlet that you can run in a servlet container. It's not something I've done for years, but there should be no template modification required to run under Tomcat. (What made you think that would be required?) (As an aside, I can't find a decent wiki reference for this. I added the legacy warning to this page in 2009: http://wiki.wocommunity.org/display/WO/Creating+a+wonder+app+to+deploy+as+a+servlet But now the page I intended to forward people to has disappeared.) -- Paul Hoadley http://logicsquad.net/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Tomcat
Le 2012-08-06 à 04:26, Paul Hoadley a écrit : On 06/08/2012, at 4:26 PM, Ron X wrote: does anybody know - can i move with WO-application from WebObjects-server to the Tomcat server WITHOUT rewriting all views and pages from wo-pages (templates) to jsp? Definitely. The standard Ant build.xml script has a war target for building a servlet that you can run in a servlet container. It's not something I've done for years, but there should be no template modification required to run under Tomcat. (What made you think that would be required?) (As an aside, I can't find a decent wiki reference for this. I added the legacy warning to this page in 2009: http://wiki.wocommunity.org/display/WO/Creating+a+wonder+app+to+deploy+as+a+servlet But now the page I intended to forward people to has disappeared.) http://wiki.wocommunity.org/display/documentation/Servlet+Deployment+Setup ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Tomcat
On 06/08/2012, at 5:58 PM, Pascal Robert wrote: (As an aside, I can't find a decent wiki reference for this. I added the legacy warning to this page in 2009: http://wiki.wocommunity.org/display/WO/Creating+a+wonder+app+to+deploy+as+a+servlet But now the page I intended to forward people to has disappeared.) http://wiki.wocommunity.org/display/documentation/Servlet+Deployment+Setup Crazy—I _swear_ that was a 404 five minutes ago! Thanks Pascal. -- Paul Hoadley http://logicsquad.net/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Tomcat
Le 2012-08-06 à 04:31, Paul Hoadley a écrit : On 06/08/2012, at 5:58 PM, Pascal Robert wrote: (As an aside, I can't find a decent wiki reference for this. I added the legacy warning to this page in 2009: http://wiki.wocommunity.org/display/WO/Creating+a+wonder+app+to+deploy+as+a+servlet But now the page I intended to forward people to has disappeared.) http://wiki.wocommunity.org/display/documentation/Servlet+Deployment+Setup Crazy—I _swear_ that was a 404 five minutes ago! Thanks Pascal. The link from the deprecated page was indeed incorrect, I just changed it. I moved all current pages to the documentation space, and Confluence should have rewritten all links but it seems it didn't change that one. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: linking editing contexts from two apps
So I viewed Mike's presentation for ERJGroupsSynchronizer. wow, it just worked right out of the gate. So now I need to decide if I should set a timer to automatically fire a method to update the AjaxUpdateContainer on the company internal app. I am thinking I will warn the internal people to check their email for change notifications before altering rows. It's not a great solution, but it will work in a pinch. Ted --- On Wed, 8/1/12, Ted Archibald ted.archib...@gmail.com wrote: From: Ted Archibald ted.archib...@gmail.com Subject: Re: linking editing contexts from two apps To: Theodore Petrosky tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Date: Wednesday, August 1, 2012, 6:17 AM ERJGroupsSynchronizer might be what you're looking for, Mike describes it in the video Project Wonder in Depth (WOWODC West 2009) On Tue, Jul 31, 2012 at 8:48 AM, Theodore Petrosky tedp...@yahoo.com wrote: I have a Wonder app that I did a while ago. This is an internal app that is used in production. I have been asked to create a client facing version. Not all fields will be editable and it will fire an email if they touch anything. How do I maintain freshness of data? If my internal app updates the data, how do I notify the client app. Or should I not care and just make sure that the client app is always going to the database? likewise if the client updates a row, how will my internal app know? There are approximately 1 rows of data (small) and it only grows a thousand a year. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com This email sent to ted.archib...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Startup in deployment hangs
More weirdness: Problem is clearly related to specifying WOHost: Adding string-WOHost/string stringlocalhost/string to WOTaskd and WOMonitor startup plist makes them hang, no matter what hostname I use (localhost, 127.0.0.1, FQDN. Bonjour Name). They do not respond to any connect request. They startup without a hick when I remove those params. Ok, I run without them. Next: The following is the command line WOMonitor uses to start the app (no WOHost now! that was a problem in my first posting): -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ImmoData-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName ImmoData -WOMonitorEnabled YES -WONoPause YES -Xmx256M -Duser.name=production Monitor is not able to bring up the app, starts reporting deaths. Using the very same command line from a terminal session starts the app and it works. And Monitor suddenly reports that the app is running (big power switch turns green). So monitor is not controlling the app but clearly sees it. For now (testing purposes) I can run the app manually from terminal. But need more ideas from the deployment gurus out there (and what's wrong with -WOHost) ? Thanks for any tips ---markus--- On 03.08.2012, at 12:55, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I have a simple ERD2W application that is in ongoing development. For the customer to be able to see progress I decided to set up an out-of-the-box Mac Mini with Lion Server 10.7.4 and make a preliminary version of the app available. Absolute minimum configured, installed wotaskd and womonitor with Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get config xml file). Built my application embedding everything (using build.xml in Eclipse). Application and instance configured properly in Monitor but instance does not start. Trying to start the app from terminal with all the command line args copied from Monitor brings the app halfway up, then it sits there and hangs. /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version number: Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] WARN NSLog - Couldn't load properties file: /var/root/WebObjects.properties at path: /var/root Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.prototypes.ERPrototypes Aug 03 12:40:20 N/A[N/A] WARN NSLog - Principal class 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.directtoweb.ERDirectToWeb Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.ajax.Ajax Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - WebObjects version = 5.4.3 Aug 03 12:40:20 ImmoData[N/A] DEBUG NSLog - Created adaptor of class WODefaultAdaptor on port 2001 and address public2.local/192.168.56.110 with WOWorkerThread minimum of 16 and maximum of 256 Aug 03 12:40:21 ImmoData[2001] DEBUG NSLog - Creating LifebeatThread now with: ImmoData 2001 public2.local/192.168.56.110 1085 3 here it just sits and waits, nothing happens anymore. Any idea why? Any tips how to find out what it is waiting for and how to fix things? Thanks a lot ---markus--- ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list
Re: Startup in deployment hangs
Does the box have a real DNS name? In my experience, OS X Server is doing nasty things when DNS is not setup (OS X client is more tolerant). If the box is standalone, you could start the DNS service on OS X server, make a DNS zone for a dummy domain (my.dom or something) and use that DNS service as the DNS server for the box (e.g., in the network configuration of the box, specify that the DNS server is 127.0.0.1). More weirdness: Problem is clearly related to specifying WOHost: Adding string-WOHost/string stringlocalhost/string to WOTaskd and WOMonitor startup plist makes them hang, no matter what hostname I use (localhost, 127.0.0.1, FQDN. Bonjour Name). They do not respond to any connect request. They startup without a hick when I remove those params. Ok, I run without them. Next: The following is the command line WOMonitor uses to start the app (no WOHost now! that was a problem in my first posting): -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ImmoData-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName ImmoData -WOMonitorEnabled YES -WONoPause YES -Xmx256M -Duser.name=production Monitor is not able to bring up the app, starts reporting deaths. Using the very same command line from a terminal session starts the app and it works. And Monitor suddenly reports that the app is running (big power switch turns green). So monitor is not controlling the app but clearly sees it. For now (testing purposes) I can run the app manually from terminal. But need more ideas from the deployment gurus out there (and what's wrong with -WOHost) ? Thanks for any tips ---markus--- On 03.08.2012, at 12:55, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I have a simple ERD2W application that is in ongoing development. For the customer to be able to see progress I decided to set up an out-of-the-box Mac Mini with Lion Server 10.7.4 and make a preliminary version of the app available. Absolute minimum configured, installed wotaskd and womonitor with Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get config xml file). Built my application embedding everything (using build.xml in Eclipse). Application and instance configured properly in Monitor but instance does not start. Trying to start the app from terminal with all the command line args copied from Monitor brings the app halfway up, then it sits there and hangs. /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version number: Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] WARN NSLog - Couldn't load properties file: /var/root/WebObjects.properties at path: /var/root Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.prototypes.ERPrototypes Aug 03 12:40:20 N/A[N/A] WARN NSLog - Principal class 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.directtoweb.ERDirectToWeb Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.ajax.Ajax Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - WebObjects version = 5.4.3 Aug 03 12:40:20 ImmoData[N/A] DEBUG NSLog - Created adaptor of class WODefaultAdaptor on port 2001 and address public2.local/192.168.56.110 with WOWorkerThread minimum of 16 and maximum of 256 Aug 03
Re: ERXLocalizer default language
Hi Ramsey, I am not sure what to do in order to dump my created keys. Could you help me? Thanks. Miguel Torres On 03/08/2012, at 09:59, Ramsey Gurley ramseygur...@gmail.com wrote: Dump your created keys. The answer should be in them. Ramsey On Aug 3, 2012, at 7:11 AM, WebObjects TORAcom wrote: Hi Ramsey thanks for the answer. I tried it with no luck. This is my configuration on EOModeler: Screen Shot 2012-08-03 at 09.02.22.png Entity name: Usuario Attribute name: usuario ../Resources/Spanish_MX.lproj/Localizable.strings contents { PropertyKey.usuario = Login ID; Usuario.usuario = Login ID; components.general.Main.username = Usuario; components.general.Main.password = Contraseña; components.general.Main.message = Use un nombre de usuario y contraseñaa válidos para acceder al sistema.; components.general.Main.loginMessage = Iniciar sesión en el Sistema; components.general.Main.administrator = Administrador; components.general.Main.confirmPassword = Confirmación; components.general.Main.name = Nombre completo; components.general.Main.usernameRules = Mínimo 5 y Máximo 15 caracteres; components.general.Main.passwordRules = Mínimo 6 y Máximo 15 caracteres; components.general.Main.next = Continuar; } ../Resources/Spanish_MX.lproj/ValidationTemplate.strings contents { NullPropertyException = Favor de proporcionar @@displayNameForProperty@@.; } ../Resources/English_US.lproj/Localizable.strings contents { PropertyKey.usuario = Login ID; Usuario.usuario = Login ID; components.general.Main.username = Username; components.general.Main.password = Password; components.general.Main.message = Use a valid username and password to access.; components.general.Main.loginMessage = System Login; components.general.Main.administrator = Administrator; components.general.Main.confirmPassword = Confirm Password; components.general.Main.name = Name; components.general.Main.usernameRules = Min. 5 Max. 15 characteres; components.general.Main.passwordRules = Min. 6 Max. 15 characteres; components.general.Main.next = Next; } ../Resources/English_US.lproj/ValidationTemplate.strings contents { NullPropertyException = Please provide @@displayNameForProperty@@.; } All files are UTF-16 enconded and everything works great except for the validation message But I am still getting the same validation message: Screen Shot 2012-08-03 at 09.10.57.png Screen Shot 2012-08-03 at 09.10.24.png Am I doing something wrong? Migue Torres On 02/08/2012, at 19:29, Ramsey Gurley rgur...@smarthealth.com wrote: Try PropertyKey.usuario and Usuario.usuario D2W uses one, the validation system uses the other. Yes, that's confusing :-) Ramsey On Aug 2, 2012, at 4:53 PM, WebObjects TORAcom wrote: Thanks for your help. Now I am testing the localization of Validations In my ValidationTemplate.string I have this for Spanish_MX: { NullPropertyException = Favor de proporcionar @@displayNameForProperty@@.; } and for English_US: { NullPropertyException = Please provide a @@displayNameForProperty@@.; } I want to change the displayNameForProperty depending on the language. The entity's name I am testing is Usuario and the attributes name usuario I am declaring this in my Localizable.strings file: PropertyKey.usuario = Login ID; But I always get Favor de proporcionar Usuario Or Please provide a Usuario I think did that based on some e-mails I found searching in google, obviously I am doing something wrong. Thanks in advance. Miguel Torres On 02/08/2012, at 17:30, Amedeo Mantica amedeomant...@me.com wrote: You could put all languages you want in the array the key is the order Sent from my iPhone On 03/ago/2012, at 00:20, WebObjects TORAcom w...@toracom.net wrote: Thanks This did the trick public Session() { NSArrayString langs = new NSArrayString(Spanish_MX); setLanguages(langs); } On 02/08/2012, at 17:07, Ramsey Gurley rgur...@smarthealth.com wrote: If you want to default your localizer to spanish in all your sessions instead of using the value set by the browser, then in your ERXSession subclass constructor try adding: _localizer = ERXLocalizer.localizerForLanguage(Spanish) That should probably work. Ramsey On Aug 2, 2012, at 1:55 PM, WebObjects TORAcom wrote: Oh, Thanks. That makes sense, I have configured my browsers to use English as main language. ¿Is there a way to change this behavior? Just to know. Miguel Torres. On 02/08/2012, at 14:00, Ramsey Gurley rgur...@smarthealth.com wrote: I may be mistaken, but I believe it respects whatever default is set on the browser for each session. Ramsey On Aug 2, 2012, at 11:56 AM, WebObjects TORAcom wrote: Hi list, I am
Re: ERXLocalizer default language
Hi Ramsey, My App is not a D2W application. ¿Can I still dump my created keys? Thanks. Miguel Torres On 06/08/2012, at 15:20, Ramsey Gurley rgur...@smarthealth.com wrote: It's the link that says Created keys in your ERD2WDebugFlags component. Click it and it dumps all the created localizer keys to your console. Screen shot 2012-08-06 at 1.14.03 PM.png On Aug 6, 2012, at 11:35 AM, WebObjects TORAcom wrote: Hi Ramsey, I am not sure what to do in order to dump my created keys. Could you help me? Thanks. Miguel Torres On 03/08/2012, at 09:59, Ramsey Gurley ramseygur...@gmail.com wrote: Dump your created keys. The answer should be in them. Ramsey On Aug 3, 2012, at 7:11 AM, WebObjects TORAcom wrote: Hi Ramsey thanks for the answer. I tried it with no luck. This is my configuration on EOModeler: Screen Shot 2012-08-03 at 09.02.22.png Entity name: Usuario Attribute name: usuario ../Resources/Spanish_MX.lproj/Localizable.strings contents { PropertyKey.usuario = Login ID; Usuario.usuario = Login ID; components.general.Main.username = Usuario; components.general.Main.password = Contraseña; components.general.Main.message = Use un nombre de usuario y contraseñaa válidos para acceder al sistema.; components.general.Main.loginMessage = Iniciar sesión en el Sistema; components.general.Main.administrator = Administrador; components.general.Main.confirmPassword = Confirmación; components.general.Main.name = Nombre completo; components.general.Main.usernameRules = Mínimo 5 y Máximo 15 caracteres; components.general.Main.passwordRules = Mínimo 6 y Máximo 15 caracteres; components.general.Main.next = Continuar; } ../Resources/Spanish_MX.lproj/ValidationTemplate.strings contents { NullPropertyException = Favor de proporcionar @@displayNameForProperty@@.; } ../Resources/English_US.lproj/Localizable.strings contents { PropertyKey.usuario = Login ID; Usuario.usuario = Login ID; components.general.Main.username = Username; components.general.Main.password = Password; components.general.Main.message = Use a valid username and password to access.; components.general.Main.loginMessage = System Login; components.general.Main.administrator = Administrator; components.general.Main.confirmPassword = Confirm Password; components.general.Main.name = Name; components.general.Main.usernameRules = Min. 5 Max. 15 characteres; components.general.Main.passwordRules = Min. 6 Max. 15 characteres; components.general.Main.next = Next; } ../Resources/English_US.lproj/ValidationTemplate.strings contents { NullPropertyException = Please provide @@displayNameForProperty@@.; } All files are UTF-16 enconded and everything works great except for the validation message But I am still getting the same validation message: Screen Shot 2012-08-03 at 09.10.57.png Screen Shot 2012-08-03 at 09.10.24.png Am I doing something wrong? Migue Torres On 02/08/2012, at 19:29, Ramsey Gurley rgur...@smarthealth.com wrote: Try PropertyKey.usuario and Usuario.usuario D2W uses one, the validation system uses the other. Yes, that's confusing :-) Ramsey On Aug 2, 2012, at 4:53 PM, WebObjects TORAcom wrote: Thanks for your help. Now I am testing the localization of Validations In my ValidationTemplate.string I have this for Spanish_MX: { NullPropertyException = Favor de proporcionar @@displayNameForProperty@@.; } and for English_US: { NullPropertyException = Please provide a @@displayNameForProperty@@.; } I want to change the displayNameForProperty depending on the language. The entity's name I am testing is Usuario and the attributes name usuario I am declaring this in my Localizable.strings file: PropertyKey.usuario = Login ID; But I always get Favor de proporcionar Usuario Or Please provide a Usuario I think did that based on some e-mails I found searching in google, obviously I am doing something wrong. Thanks in advance. Miguel Torres On 02/08/2012, at 17:30, Amedeo Mantica amedeomant...@me.com wrote: You could put all languages you want in the array the key is the order Sent from my iPhone On 03/ago/2012, at 00:20, WebObjects TORAcom w...@toracom.net wrote: Thanks This did the trick public Session() { NSArrayString langs = new NSArrayString(Spanish_MX); setLanguages(langs); } On 02/08/2012, at 17:07, Ramsey Gurley rgur...@smarthealth.com wrote: If you want to default your localizer to spanish in all your sessions instead of using the value set by the browser, then in your ERXSession subclass constructor try adding: _localizer = ERXLocalizer.localizerForLanguage(Spanish) That should probably work. Ramsey On Aug 2, 2012, at 1:55 PM, WebObjects TORAcom wrote: Oh, Thanks.
Re: ERXLocalizer default language
Dump: WOHyperlink { actionClass = ERXDirectAction; directActionName = dumpCreatedKeys; } On Aug 6, 2012, at 1:39 PM, WebObjects TORAcom wrote: Hi Ramsey, My App is not a D2W application. ¿Can I still dump my created keys? Thanks. Miguel Torres On 06/08/2012, at 15:20, Ramsey Gurley rgur...@smarthealth.com wrote: It's the link that says Created keys in your ERD2WDebugFlags component. Click it and it dumps all the created localizer keys to your console. Screen shot 2012-08-06 at 1.14.03 PM.png On Aug 6, 2012, at 11:35 AM, WebObjects TORAcom wrote: Hi Ramsey, I am not sure what to do in order to dump my created keys. Could you help me? Thanks. Miguel Torres On 03/08/2012, at 09:59, Ramsey Gurley ramseygur...@gmail.com wrote: Dump your created keys. The answer should be in them. Ramsey On Aug 3, 2012, at 7:11 AM, WebObjects TORAcom wrote: Hi Ramsey thanks for the answer. I tried it with no luck. This is my configuration on EOModeler: Screen Shot 2012-08-03 at 09.02.22.png Entity name: Usuario Attribute name: usuario ../Resources/Spanish_MX.lproj/Localizable.strings contents { PropertyKey.usuario = Login ID; Usuario.usuario = Login ID; components.general.Main.username = Usuario; components.general.Main.password = Contraseña; components.general.Main.message = Use un nombre de usuario y contraseñaa válidos para acceder al sistema.; components.general.Main.loginMessage = Iniciar sesión en el Sistema; components.general.Main.administrator = Administrador; components.general.Main.confirmPassword = Confirmación; components.general.Main.name = Nombre completo; components.general.Main.usernameRules = Mínimo 5 y Máximo 15 caracteres; components.general.Main.passwordRules = Mínimo 6 y Máximo 15 caracteres; components.general.Main.next = Continuar; } ../Resources/Spanish_MX.lproj/ValidationTemplate.strings contents { NullPropertyException = Favor de proporcionar @@displayNameForProperty@@.; } ../Resources/English_US.lproj/Localizable.strings contents { PropertyKey.usuario = Login ID; Usuario.usuario = Login ID; components.general.Main.username = Username; components.general.Main.password = Password; components.general.Main.message = Use a valid username and password to access.; components.general.Main.loginMessage = System Login; components.general.Main.administrator = Administrator; components.general.Main.confirmPassword = Confirm Password; components.general.Main.name = Name; components.general.Main.usernameRules = Min. 5 Max. 15 characteres; components.general.Main.passwordRules = Min. 6 Max. 15 characteres; components.general.Main.next = Next; } ../Resources/English_US.lproj/ValidationTemplate.strings contents { NullPropertyException = Please provide @@displayNameForProperty@@.; } All files are UTF-16 enconded and everything works great except for the validation message But I am still getting the same validation message: Screen Shot 2012-08-03 at 09.10.57.png Screen Shot 2012-08-03 at 09.10.24.png Am I doing something wrong? Migue Torres On 02/08/2012, at 19:29, Ramsey Gurley rgur...@smarthealth.com wrote: Try PropertyKey.usuario and Usuario.usuario D2W uses one, the validation system uses the other. Yes, that's confusing :-) Ramsey On Aug 2, 2012, at 4:53 PM, WebObjects TORAcom wrote: Thanks for your help. Now I am testing the localization of Validations In my ValidationTemplate.string I have this for Spanish_MX: { NullPropertyException = Favor de proporcionar @@displayNameForProperty@@.; } and for English_US: { NullPropertyException = Please provide a @@displayNameForProperty@@.; } I want to change the displayNameForProperty depending on the language. The entity's name I am testing is Usuario and the attributes name usuario I am declaring this in my Localizable.strings file: PropertyKey.usuario = Login ID; But I always get Favor de proporcionar Usuario Or Please provide a Usuario I think did that based on some e-mails I found searching in google, obviously I am doing something wrong. Thanks in advance. Miguel Torres On 02/08/2012, at 17:30, Amedeo Mantica amedeomant...@me.com wrote: You could put all languages you want in the array the key is the order Sent from my iPhone On 03/ago/2012, at 00:20, WebObjects TORAcom w...@toracom.net wrote: Thanks This did the trick public Session() { NSArrayString langs = new NSArrayString(Spanish_MX); setLanguages(langs); } On 02/08/2012, at 17:07, Ramsey Gurley rgur...@smarthealth.com wrote: If you want to default your localizer to spanish in all your sessions instead of using the value set by the browser, then in your ERXSession subclass constructor
Re: Startup in deployment hangs
I would not use localhost for deployment. I agree with Pascal, something is wrong with your DNS setup. The name use MUST reverse resolve into the canonical IP of the machine. Chuck On 2012-08-06, at 11:17 AM, Pascal Robert wrote: Does the box have a real DNS name? In my experience, OS X Server is doing nasty things when DNS is not setup (OS X client is more tolerant). If the box is standalone, you could start the DNS service on OS X server, make a DNS zone for a dummy domain (my.dom or something) and use that DNS service as the DNS server for the box (e.g., in the network configuration of the box, specify that the DNS server is 127.0.0.1). More weirdness: Problem is clearly related to specifying WOHost: Adding string-WOHost/string stringlocalhost/string to WOTaskd and WOMonitor startup plist makes them hang, no matter what hostname I use (localhost, 127.0.0.1, FQDN. Bonjour Name). They do not respond to any connect request. They startup without a hick when I remove those params. Ok, I run without them. Next: The following is the command line WOMonitor uses to start the app (no WOHost now! that was a problem in my first posting): -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /Library/WebObjects/Logs/ImmoData-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName ImmoData -WOMonitorEnabled YES -WONoPause YES -Xmx256M -Duser.name=production Monitor is not able to bring up the app, starts reporting deaths. Using the very same command line from a terminal session starts the app and it works. And Monitor suddenly reports that the app is running (big power switch turns green). So monitor is not controlling the app but clearly sees it. For now (testing purposes) I can run the app manually from terminal. But need more ideas from the deployment gurus out there (and what's wrong with -WOHost) ? Thanks for any tips ---markus--- On 03.08.2012, at 12:55, Markus Ruggiero mailingli...@kataputt.com wrote: Hi, I have a simple ERD2W application that is in ongoing development. For the customer to be able to see progress I decided to set up an out-of-the-box Mac Mini with Lion Server 10.7.4 and make a preliminary version of the app available. Absolute minimum configured, installed wotaskd and womonitor with Ken Ishimotos script (thanks Ken, good thing). Monitor and Taskd seem to be fine, Monitor is reachable with Safari, added one Host (taskd is ok, can get config xml file). Built my application embedding everything (using build.xml in Eclipse). Application and instance configured properly in Monitor but instance does not start. Trying to start the app from terminal with all the command line args copied from Monitor brings the app halfway up, then it sits there and hangs. /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar /Library/WebObjects/Application/ImmoData.woa/Contents/Frameworks/JavaEOProject.framework/Resources/Java/javaeoproject.jar [2012-8-3 12:40:18 CEST] main Initialized : er.extensions.ERXExtensions [2012-8-3 12:40:19 CEST] main The bundle ImmoData has malformed version number: Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] INFO org.apache.log4j.Logger - Updated the logging configuration with the current system properties. Aug 03 12:40:20 N/A[N/A] WARN NSLog - Couldn't load properties file: /var/root/WebObjects.properties at path: /var/root Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.prototypes.ERPrototypes Aug 03 12:40:20 N/A[N/A] WARN NSLog - Principal class 'er.coolcomponents.ERCoolComponents' not found in bundle ERCoolComponents Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.directtoweb.ERDirectToWeb Aug 03 12:40:20 N/A[N/A] DEBUG NSLog - Initialized : er.ajax.Ajax Aug 03 12:40:20 N/A[N/A] DEBUG NSLog
Re: wounit: cannot load model
Hi Chuck I always get the same error, 2012/8/6 Chuck Hill ch...@global-village.net Hi Hafid, Try adding NSProjectBundleEnabled=true to the Program Arguments then. Does that make any difference? Chuck On 2012-08-05, at 8:33 PM, hafid ouazib wrote: Hi Henrique, Hi Chuck, I set the property NSProjectBundleEnabled to true in VM arguments, but I always get the same error, the only way to run my test: -- inside my framwork, I need to close all others Frameworks, only one must still open, -- inside my Application, I need to close all frameworks, only 2 Frameworks must still open, when my test is working, I print the value of the property NSProjectBundleEnabled and is null Cheers, 2012/8/5 Henrique Prange hpra...@gmail.com Hi Hafid, As Chuck said, the problem is probably related to the value of the NSProjectBundleEnabled property. By default, WOUnit sets this property to true as described in the issue [1]. However, it can somehow be changed in the testing process. Could you try to print the value of this property in your breaking test? Is it true or false? Anyway, WOUnit should require no additional configuration to be used. I really would like to know the structure/configuration of your project to provide a fix for this problem. [1]https://github.com/hprange/wounit/issues/13 Cheers, Henrique On 02/08/2012, at 16:38, Chuck Hill ch...@global-village.net wrote: Hi Hafid, Try adding -DNSProjectBundleEnabled=true to the VM Arguments in the launcher for you tests. Chuck On 2012-08-02, at 6:31 AM, hafid ouazib wrote: Hi Henrique, I have the same error message if I run test in my application or in my framework, but, when I close all my frameworks in Eclipse, the test is working fine, it is not a good solution because, it will be dificult to run tests if I need to close all my framworks every time:( Thanks, 2012/7/31 Henrique Prange hpra...@gmail.com Hi Hafid, It should have worked. WOUnit search for models in the classpath (inside or outside a Resources folder). I need more information to understand if it is a bug in WOUnit. Your project is an application or framework? The model ACAIQCore is in the same project of the test class? Have you tried to run the test from your build system? Did it work? I've also created the issue [1] #29 to improve the error message in case a model cannot be loaded properly. [1]https://github.com/hprange/wounit/issues/29 Cheers, Henrique On 30/07/2012, at 10:08, hafid ouazib houa...@gmail.com wrote: Hi, My model is in the folder Resources, the source of my test is: package com.acaiq.fondation.acaiqCore; import org.junit.Rule; import org.junit.Test; import com.wounit.annotations.UnderTest; import com.wounit.rules.MockEditingContext; public class ExempleTest { @Rule public MockEditingContextec= new MockEditingContext(ACAIQCore); @UnderTest Membretitulaire; @Test public void exempleUnitTest() { System.out.println(first test); } } stack trace: java.lang.IllegalArgumentException: Cannot load model named 'ACAIQCore' at com.wounit.rules.AbstractEditingContextRule.loadModel(AbstractEditingContextRule.java:186) at com.wounit.rules.AbstractEditingContextRule.init(AbstractEditingContextRule.java:94) at com.wounit.rules.MockEditingContext.init(MockEditingContext.java:113) at com.wounit.rules.MockEditingContext.init(MockEditingContext.java:124) at com.acaiq.fondation.acaiqCore.ExempleTest.init(ExempleTest.java:11) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:202) at org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:251) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:248) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)