Re: More WOWODC transcripts
Thanks Pascal. You are doing a great work thanks for you effort. I just download the .mp4 of WebObjects Quite Good Practices And I did a test in http://www.universalsubtitles.org. I added subtitles to the first 20 seconds of the video. You can see it here in action http://www.universalsubtitles.org/es/videos/FMCFA4ytcqWi/info/ The video file is in my office server just for testing and once you check it I will delete it. If you like you can publish URL's for the mp4 version of the podcasts and I can begin to subtitle them and translate them to spanish. Once I have the english version of the subtitle I can shre the URL of the subtitled video and every one can create an account at http://www.universalsubtitles.org and create subtitles on their own language. Saludos. Miguel Torres On 24/08/2012, at 08:01, Pascal Robert prob...@macti.ca wrote: You can find more transcripts here: http://wiki.wocommunity.org/display/documentation/Transcripts The transcripts who have been added are: - WebObjects Quite Good Practices - This Year's Model - Hidden Treasures in Project Wonder - Inside the Enterprise Objects Framework - Practical Wonder - What's new in Project Wonder ___ 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/wo%40toracom.net This email sent to w...@toracom.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
synchronizesVariablesWithBindings()
Hi List, I am trying to implement best practices in our applications, we want to take control of component's binding syncrhonization. First of all I understand that we should override the synchronizesVariablesWithBindings function like this: public boolean synchronizesVariablesWithBindings() { return false; } But where in the request - response loop should be the better place to synchronize our bindings, a lot of time ago (years) somewhere in the internet I found info that recommends Pull binding's values in the takeValuesFromRequest(WORequest r, WOContext c) method and Push binding's values in the appendToResponse(WOResponse r, WOContext c). I am not sure about that, so we have been working with the automatic synchronization of our bindings. Thanks in advance. Miguel Torres. ___ 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: synchronizesVariablesWithBindings()
Thanks Chuck and Jesse. I think I understand the term lazy synchronization and it makes totally sense. But, how to handle a case like this: Three entities and their relationships: User - Address Client - Address I create a reusable component named EditAddress and use it inside two other components: EditUser and EditClient. I would pass the Address object via a binding. In the EditAddress I would use WOTextFields connected to the address' parameters: address.country, address.state, etc. How could I do that with lazy synchronization? Thanks. Miguel Torres On 21/08/2012, at 14:22, Chuck Hill ch...@global-village.net wrote: Hi Miguel, On 2012-08-21, at 11:19 AM, WebObjects TORAcom wrote: Hi List, I am trying to implement best practices in our applications, we want to take control of component's binding syncrhonization. First of all I understand that we should override the synchronizesVariablesWithBindings function like this: public boolean synchronizesVariablesWithBindings() { return false; } But where in the request - response loop should be the better place to synchronize our bindings, a lot of time ago (years) somewhere in the internet I found info that recommends Pull binding's values in the takeValuesFromRequest(WORequest r, WOContext c) method and Push binding's values in the appendToResponse(WOResponse r, WOContext c). I am not sure about that, so we have been working with the automatic synchronization of our bindings. I usually do lazy synchronization, and only do what I need. Something like this: private String exampleValue; public void awake() { super.awake(); exampleValue = null; } public String exampleValue() { if (exampleValue == null) { exampleValue = stringValueForBinding(exampleValue); } return exampleValue; } public void setExampleValue(String newValue) { if (ERXExtensions.saveDifferent(exampleValue, newValue) { setValueForBinding(newValue, exampleValue); exampleValue = newValue; } } Chuck -- Chuck Hill Senior Consultant / VP Development 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/gvc/practical_webobjects ___ 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: synchronizesVariablesWithBindings()
Ohh! Of course. Thanks Chuck. Miguel Torres. On 21/08/2012, at 16:29, Chuck Hill ch...@global-village.net wrote: On 2012-08-21, at 1:59 PM, WebObjects TORAcom wrote: Thanks Chuck and Jesse. I think I understand the term lazy synchronization and it makes totally sense. But, how to handle a case like this: Three entities and their relationships: User - Address Client - Address I create a reusable component named EditAddress and use it inside two other components: EditUser and EditClient. I would pass the Address object via a binding. In the EditAddress I would use WOTextFields connected to the address' parameters: address.country, address.state, etc. How could I do that with lazy synchronization? The same way. Just put this in EditAddress: private Address address; public void awake() { super.awake(); address = null; } public Address exampleValue() { if (address == null) { address = (Address) valueForBinding(address); } return address; } public void setAddress(Address newValue) { if (ERXExtensions.saveDifferent(address(), newValue) { setValueForBinding(newValue, address); address = newValue; } } Then use WOTextFields connected to address.country, address.state, etc. Chuck On 21/08/2012, at 14:22, Chuck Hill ch...@global-village.net wrote: Hi Miguel, On 2012-08-21, at 11:19 AM, WebObjects TORAcom wrote: Hi List, I am trying to implement best practices in our applications, we want to take control of component's binding syncrhonization. First of all I understand that we should override the synchronizesVariablesWithBindings function like this: public boolean synchronizesVariablesWithBindings() { return false; } But where in the request - response loop should be the better place to synchronize our bindings, a lot of time ago (years) somewhere in the internet I found info that recommends Pull binding's values in the takeValuesFromRequest(WORequest r, WOContext c) method and Push binding's values in the appendToResponse(WOResponse r, WOContext c). I am not sure about that, so we have been working with the automatic synchronization of our bindings. I usually do lazy synchronization, and only do what I need. Something like this: private String exampleValue; public void awake() { super.awake(); exampleValue = null; } public String exampleValue() { if (exampleValue == null) { exampleValue = stringValueForBinding(exampleValue); } return exampleValue; } public void setExampleValue(String newValue) { if (ERXExtensions.saveDifferent(exampleValue, newValue) { setValueForBinding(newValue, exampleValue); exampleValue = newValue; } } Chuck -- Chuck Hill Senior Consultant / VP Development 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/gvc/practical_webobjects -- Chuck Hill Senior Consultant / VP Development 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/gvc/practical_webobjects ___ 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: WOLips 4.2
Hi Amedeo, What's the URL to download the WOLips version to test on eclipse Juno. Thanks. On 19/08/2012, at 17:19, Amedeo Mantica amedeomant...@me.com wrote: Btw... I had a bad surprise after a few days on wolips 4.2. I would suggest to backup your Eclipse workspace setting ( is an hidden folder inside the workspace ) and restore it in case of weird stuff happening ( I was no able to open any wocomponent (.wo) ). Regards. Amedeo Sent from my iPhone On 19/ago/2012, at 23:50, Jesse Tayler jtay...@oeinc.com wrote: software voodoo. believe in it. On Aug 19, 2012, at 1:38 PM, Ramsey Gurley ramseygur...@gmail.com wrote: So strange. I tried it again just now and it installed fine. Thanks Amedeo. Ramsey On Aug 19, 2012, at 1:07 AM, Amedeo Mantica wrote: Everything working fine here Sent from my iPhone On 19/ago/2012, at 04:49, Ramsey Gurley ramseygur...@gmail.com wrote: Has anyone been successful with installing WOLips on eclipse 4.2? I tried the wocommunity build but get: An error occurred while collecting items to be installed session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Error closing the output stream for org.eclipse.update.feature,org.objectstyle.wolips.feature,4.2.20120723.4 on repository file:/Applications/eclipse/. Error unzipping /var/folders/6n/ng19dp5s0tb56h859q_wnv7cgn/T/org.objectstyle.wolips.feature_4.2.20120723.45102344653222928192.jar: Invalid zip file format ___ 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/amedeomantica%40me.com This email sent to amedeomant...@me.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/ramseygurley%40gmail.com This email sent to ramseygur...@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/jtayler%40oeinc.com This email sent to jtay...@oeinc.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/wo%40toracom.net This email sent to w...@toracom.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: ERJGroupsSynchronizer How To - Avoid debug logs
Hi List, I have found how to change log level for jgroups. This is the name of the category log4j.logger.org.jgroups Just changed it in the log4j configuration file or in my case in my log4j initialization function. Properties properties = new Properties(); . . . . . . . properties.setProperty(log4j.logger.org.jgroups,WARN); PropertyConfigurator.configure(properties); Miguel Torres On 17/08/2012, at 19:19, WebObjects TORAcom w...@toracom.net wrote: Ok, It looks that it is working now. But how I avoid debug messages from jgroups: DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - message is [dst: null, src: 192.168.7.100:60596 (3 headers), size=0 bytes, flags=OOB], headers are STABLE: [STABILITY]: digest is 192.168.7.100:60596: [1 : 5 (6)], NAKACK: [MSG, seqno=8], UDP: [channel_name=aplicacionbase] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - [192.168.7.100:60596: received 192.168.7.100:60596#8 DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - received stability msg from 192.168.7.100:60596: [192.168.7.100:60596#5] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - resetting digest from NAKACK: [192.168.7.100:60596#7] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - received stable digest 192.168.7.100:60596: [1 : 5 (6)] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - deleting msgs = 5 from 192.168.7.100:60596 I use log4j and normally is set to INFO log level but when we deploy a new version of our application we turn on DEBUG level but I do not want to fill my log file with jgroups logs. Any ideas? Thanks in advance. Miguel Torres On 17/08/2012, at 18:52, WebObjects TORAcom w...@toracom.net wrote: I found the answer to avoid that error here http://www.outsystems.com/NetworkForums/ViewTopic.aspx?TopicId=5353Topic=IP_MULTICAST_IF-error-in-JBoss---OutSystems-AgilePlatform-for-Java I added this -Djava.net.preferIPv4Stack=true as an additional argument. Now I can test EOF Synchronization. Miguel Torres On 17/08/2012, at 18:48, WebObjects TORAcom w...@toracom.net wrote: I found this in google http://zavizionov.blogspot.mx/2010/11/problem-bad-argument-for-ipmulticastif.html It says the solution was to add jgroups-*jar I reviewed my UNIXClassPath.txt and I found this. APPROOT/Frameworks/ERJGroupsSynchronizer.framework/Resources/Java/jgroups-2.6.8.jar And the jar file is in that path so, I am not sure where to look at. Thanks. Miguel Torres. On 17/08/2012, at 18:35, WebObjects TORAcom w...@toracom.net wrote: Thanks for your help. I watched the podcast (great by the way) and simplified the properties: er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1 er.extensions.remoteSynchronizer.enabled=true er.extensions.remoteSynchronizer=er.jgroups.ERJGroupsSynchronizer I think it is the minimum necessary for EOF Synchronization. The application runs on development environment. Then I deployed my application but it can't run. This is the stackTrace: INFO 17-Aug-2012 18:30:14 [ProcessChangesQueue] - JGroups version: 2.6.8.GA DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - mapping is: 1: class org.jgroups.stack.IpAddress 2: class org.jgroups.protocols.CAUSAL$CausalHeader 3: class org.jgroups.protocols.FD$FdHeader 6: class org.jgroups.protocols.FD_SOCK$FdHeader 7: class org.jgroups.protocols.FragHeader 13:class org.jgroups.protocols.PingHeader 14:class org.jgroups.protocols.TcpHeader 19:class org.jgroups.protocols.TunnelHeader 20:class org.jgroups.protocols.UdpHeader 21:class org.jgroups.protocols.UNICAST$UnicastHeader 22:class org.jgroups.protocols.VERIFY_SUSPECT$VerifyHeader 24:class org.jgroups.protocols.pbcast.GMS$GmsHeader 25:class org.jgroups.protocols.pbcast.NakAckHeader 27:class org.jgroups.protocols.pbcast.STABLE$StableHeader 28:class org.jgroups.protocols.pbcast.STATE_TRANSFER$StateHeader 29:class org.jgroups.protocols.SMACK$SmackHeader 30:class org.jgroups.Message 31:class org.jgroups.View 32:class org.jgroups.ViewId 34:interface org.jgroups.Address 35:class org.jgroups.blocks.RequestCorrelator$Header 36:class org.jgroups.protocols.PingRsp 38:class java.util.Vector 39:class org.jgroups.protocols.pbcast.JoinRsp 40:class org.jgroups.util.Digest 41:class java.util.Hashtable 53:class org.jgroups.protocols.COMPRESS$CompressHeader 54:class org.jgroups.protocols.FC$FcHeader 56:class org.jgroups.protocols.TpHeader 57:class org.jgroups.protocols.ENCRYPT$EncryptHeader 58:class org.jgroups.protocols.SEQUENCER$SequencerHeader 59:class org.jgroups.protocols.FD_SIMPLE$FdHeader 60:class org.jgroups.protocols.VIEW_SYNC$ViewSyncHeader 61:class org.jgroups.protocols.FD_ALL$Header 62
Re: ERJGroupsSynchronizer How To
) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87) Caused by: org.jgroups.ChannelException: failed to start protocol stack at org.jgroups.JChannel.startStack(JChannel.java:1555) at org.jgroups.JChannel.connect(JChannel.java:365) at er.jgroups.ERJGroupsSynchronizer.join(ERJGroupsSynchronizer.java:88) at er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer.initializeRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.java:118) ... 19 more Caused by: java.lang.Exception: problem creating sockets (bind_addr=/127.0.1.1, mcast_addr=230.0.0.1:9753) at org.jgroups.protocols.UDP.start(UDP.java:389) at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:129) at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:410) at org.jgroups.JChannel.startStack(JChannel.java:1552) ... 22 more Caused by: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method) at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:309) at java.net.MulticastSocket.setInterface(MulticastSocket.java:424) at org.jgroups.protocols.UDP.createSockets(UDP.java:527) at org.jgroups.protocols.UDP.start(UDP.java:385) ... 25 more WARN 17-Aug-2012 18:30:14 [ProcessChangesQueue] - A fatal exception occurred: Failed to configure remote synchronization. Any hint? Miguel Torres. On 17/08/2012, at 06:31, Pascal Robert prob...@macti.ca wrote: Look like I forgot to add that one to the public podcasts feed and the screencasts page on wocommunity.org. I'm doing it right now. Mike S. does a wonderful job in his video: Project Wonder in Depth (WOWODC West 2009) I just viewed it and it really helps. Ted --- On Thu, 8/16/12, Johann Werner j...@oyosys.de wrote: From: Johann Werner j...@oyosys.de Subject: Re: ERJGroupsSynchronizer How To To: WebObjects TORAcom w...@toracom.net Cc: WebObjects Development webobjects-dev@lists.apple.com Date: Thursday, August 16, 2012, 3:01 AM Hi Miguel, Am 14.08.2012 um 19:13 schrieb WebObjects TORAcom: Hi List, I am new to ERJGroupsSynchronizer. I want to synchronize Enterprise Objects between Application's instances. I found the following info: http://web.archiveorange.com/archive/v/VpmAs9yFWUtMJyEvmKXQ I followed those instructions and added this to my Properties file: […] I am not sure what multicast means and also I don't know if I should create some class to catch the changes of the enterprise objects. Multicast is used to send a message not to a single IP address but to a range [1] of addresses. I just configured my Properties and deployed a test application but my tests didn't work. ¿Am I missing something? Just have a look at the properties file of ERExtensions. All the settings you need to set are there. You should check if it matches your configuration. When using those I had no problem with the sync process. ¿Is there a tutorial of how to use ERJGroupsSynchronizer? Don't know of any. Thanks in advance. Miguel Torres. [1] http://en.wikipedia.org/wiki/IP_multicast -Inline Attachment Follows- ___ 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/tedpet5%40yahoo.com This email sent to tedp...@yahoo.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/probert%40macti.ca This email sent to prob...@macti.ca ___ 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: ERJGroupsSynchronizer How To
I found this in google http://zavizionov.blogspot.mx/2010/11/problem-bad-argument-for-ipmulticastif.html It says the solution was to add jgroups-*jar I reviewed my UNIXClassPath.txt and I found this. APPROOT/Frameworks/ERJGroupsSynchronizer.framework/Resources/Java/jgroups-2.6.8.jar And the jar file is in that path so, I am not sure where to look at. Thanks. Miguel Torres. On 17/08/2012, at 18:35, WebObjects TORAcom w...@toracom.net wrote: Thanks for your help. I watched the podcast (great by the way) and simplified the properties: er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1 er.extensions.remoteSynchronizer.enabled=true er.extensions.remoteSynchronizer=er.jgroups.ERJGroupsSynchronizer I think it is the minimum necessary for EOF Synchronization. The application runs on development environment. Then I deployed my application but it can't run. This is the stackTrace: INFO 17-Aug-2012 18:30:14 [ProcessChangesQueue] - JGroups version: 2.6.8.GA DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - mapping is: 1:class org.jgroups.stack.IpAddress 2:class org.jgroups.protocols.CAUSAL$CausalHeader 3:class org.jgroups.protocols.FD$FdHeader 6:class org.jgroups.protocols.FD_SOCK$FdHeader 7:class org.jgroups.protocols.FragHeader 13: class org.jgroups.protocols.PingHeader 14: class org.jgroups.protocols.TcpHeader 19: class org.jgroups.protocols.TunnelHeader 20: class org.jgroups.protocols.UdpHeader 21: class org.jgroups.protocols.UNICAST$UnicastHeader 22: class org.jgroups.protocols.VERIFY_SUSPECT$VerifyHeader 24: class org.jgroups.protocols.pbcast.GMS$GmsHeader 25: class org.jgroups.protocols.pbcast.NakAckHeader 27: class org.jgroups.protocols.pbcast.STABLE$StableHeader 28: class org.jgroups.protocols.pbcast.STATE_TRANSFER$StateHeader 29: class org.jgroups.protocols.SMACK$SmackHeader 30: class org.jgroups.Message 31: class org.jgroups.View 32: class org.jgroups.ViewId 34: interface org.jgroups.Address 35: class org.jgroups.blocks.RequestCorrelator$Header 36: class org.jgroups.protocols.PingRsp 38: class java.util.Vector 39: class org.jgroups.protocols.pbcast.JoinRsp 40: class org.jgroups.util.Digest 41: class java.util.Hashtable 53: class org.jgroups.protocols.COMPRESS$CompressHeader 54: class org.jgroups.protocols.FC$FcHeader 56: class org.jgroups.protocols.TpHeader 57: class org.jgroups.protocols.ENCRYPT$EncryptHeader 58: class org.jgroups.protocols.SEQUENCER$SequencerHeader 59: class org.jgroups.protocols.FD_SIMPLE$FdHeader 60: class org.jgroups.protocols.VIEW_SYNC$ViewSyncHeader 61: class org.jgroups.protocols.FD_ALL$Header 62: class org.jgroups.protocols.SFC$Header 63: class org.jgroups.mux.MuxHeader 64: class org.jgroups.protocols.pbcast.FLUSH$FlushHeader 65: class org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$StateHeader 66: class org.jgroups.blocks.PullPushAdapter$PullHeader 67: class org.jgroups.protocols.AuthHeader DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - changed role to org.jgroups.protocols.pbcast.ClientGmsImpl DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - frag_size=6, overhead=200, new frag_size=59800 DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - received CONFIG event: {bind_addr=/127.0.1.1} DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - received CONFIG event: {bind_addr=/127.0.1.1} DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - stable task started DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - creating sockets and starting threads DEBUG 17-Aug-2012 18:30:14 [FD_SOCK server socket acceptor,null,null] - waiting for client connections on /127.0.1.1:59120 DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - sockets will use interface 127.0.1.1 ERROR 17-Aug-2012 18:30:14 [ProcessChangesQueue] - aplicacionbase failed to start. java.lang.RuntimeException: Failed to configure remote synchronization. at er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer.initializeRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.java:122) at er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer.startRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532
Re: ERJGroupsSynchronizer How To
I found the answer to avoid that error here http://www.outsystems.com/NetworkForums/ViewTopic.aspx?TopicId=5353Topic=IP_MULTICAST_IF-error-in-JBoss---OutSystems-AgilePlatform-for-Java I added this -Djava.net.preferIPv4Stack=true as an additional argument. Now I can test EOF Synchronization. Miguel Torres On 17/08/2012, at 18:48, WebObjects TORAcom w...@toracom.net wrote: I found this in google http://zavizionov.blogspot.mx/2010/11/problem-bad-argument-for-ipmulticastif.html It says the solution was to add jgroups-*jar I reviewed my UNIXClassPath.txt and I found this. APPROOT/Frameworks/ERJGroupsSynchronizer.framework/Resources/Java/jgroups-2.6.8.jar And the jar file is in that path so, I am not sure where to look at. Thanks. Miguel Torres. On 17/08/2012, at 18:35, WebObjects TORAcom w...@toracom.net wrote: Thanks for your help. I watched the podcast (great by the way) and simplified the properties: er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1 er.extensions.remoteSynchronizer.enabled=true er.extensions.remoteSynchronizer=er.jgroups.ERJGroupsSynchronizer I think it is the minimum necessary for EOF Synchronization. The application runs on development environment. Then I deployed my application but it can't run. This is the stackTrace: INFO 17-Aug-2012 18:30:14 [ProcessChangesQueue] - JGroups version: 2.6.8.GA DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - mapping is: 1: class org.jgroups.stack.IpAddress 2: class org.jgroups.protocols.CAUSAL$CausalHeader 3: class org.jgroups.protocols.FD$FdHeader 6: class org.jgroups.protocols.FD_SOCK$FdHeader 7: class org.jgroups.protocols.FragHeader 13: class org.jgroups.protocols.PingHeader 14: class org.jgroups.protocols.TcpHeader 19: class org.jgroups.protocols.TunnelHeader 20: class org.jgroups.protocols.UdpHeader 21: class org.jgroups.protocols.UNICAST$UnicastHeader 22: class org.jgroups.protocols.VERIFY_SUSPECT$VerifyHeader 24: class org.jgroups.protocols.pbcast.GMS$GmsHeader 25: class org.jgroups.protocols.pbcast.NakAckHeader 27: class org.jgroups.protocols.pbcast.STABLE$StableHeader 28: class org.jgroups.protocols.pbcast.STATE_TRANSFER$StateHeader 29: class org.jgroups.protocols.SMACK$SmackHeader 30: class org.jgroups.Message 31: class org.jgroups.View 32: class org.jgroups.ViewId 34: interface org.jgroups.Address 35: class org.jgroups.blocks.RequestCorrelator$Header 36: class org.jgroups.protocols.PingRsp 38: class java.util.Vector 39: class org.jgroups.protocols.pbcast.JoinRsp 40: class org.jgroups.util.Digest 41: class java.util.Hashtable 53: class org.jgroups.protocols.COMPRESS$CompressHeader 54: class org.jgroups.protocols.FC$FcHeader 56: class org.jgroups.protocols.TpHeader 57: class org.jgroups.protocols.ENCRYPT$EncryptHeader 58: class org.jgroups.protocols.SEQUENCER$SequencerHeader 59: class org.jgroups.protocols.FD_SIMPLE$FdHeader 60: class org.jgroups.protocols.VIEW_SYNC$ViewSyncHeader 61: class org.jgroups.protocols.FD_ALL$Header 62: class org.jgroups.protocols.SFC$Header 63: class org.jgroups.mux.MuxHeader 64: class org.jgroups.protocols.pbcast.FLUSH$FlushHeader 65: class org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$StateHeader 66: class org.jgroups.blocks.PullPushAdapter$PullHeader 67: class org.jgroups.protocols.AuthHeader DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - changed role to org.jgroups.protocols.pbcast.ClientGmsImpl DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - frag_size=6, overhead=200, new frag_size=59800 DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - received CONFIG event: {bind_addr=/127.0.1.1} DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - received CONFIG event: {bind_addr=/127.0.1.1} DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - stable task started DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - creating sockets and starting threads DEBUG 17-Aug-2012 18:30:14 [FD_SOCK server socket acceptor,null,null] - waiting for client connections on /127.0.1.1:59120 DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - sockets will use interface 127.0.1.1 ERROR 17-Aug-2012 18:30:14 [ProcessChangesQueue] - aplicacionbase failed to start. java.lang.RuntimeException: Failed to configure remote synchronization. at er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer.initializeRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.java:122) at er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer.startRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.java:128) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597
Re: ERJGroupsSynchronizer How To - Avoid debug logs
Ok, It looks that it is working now. But how I avoid debug messages from jgroups: DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - message is [dst: null, src: 192.168.7.100:60596 (3 headers), size=0 bytes, flags=OOB], headers are STABLE: [STABILITY]: digest is 192.168.7.100:60596: [1 : 5 (6)], NAKACK: [MSG, seqno=8], UDP: [channel_name=aplicacionbase] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - [192.168.7.100:60596: received 192.168.7.100:60596#8 DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - received stability msg from 192.168.7.100:60596: [192.168.7.100:60596#5] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - resetting digest from NAKACK: [192.168.7.100:60596#7] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - received stable digest 192.168.7.100:60596: [1 : 5 (6)] DEBUG [OOB-1,aplicacionbase,192.168.7.100:60596] - deleting msgs = 5 from 192.168.7.100:60596 I use log4j and normally is set to INFO log level but when we deploy a new version of our application we turn on DEBUG level but I do not want to fill my log file with jgroups logs. Any ideas? Thanks in advance. Miguel Torres On 17/08/2012, at 18:52, WebObjects TORAcom w...@toracom.net wrote: I found the answer to avoid that error here http://www.outsystems.com/NetworkForums/ViewTopic.aspx?TopicId=5353Topic=IP_MULTICAST_IF-error-in-JBoss---OutSystems-AgilePlatform-for-Java I added this -Djava.net.preferIPv4Stack=true as an additional argument. Now I can test EOF Synchronization. Miguel Torres On 17/08/2012, at 18:48, WebObjects TORAcom w...@toracom.net wrote: I found this in google http://zavizionov.blogspot.mx/2010/11/problem-bad-argument-for-ipmulticastif.html It says the solution was to add jgroups-*jar I reviewed my UNIXClassPath.txt and I found this. APPROOT/Frameworks/ERJGroupsSynchronizer.framework/Resources/Java/jgroups-2.6.8.jar And the jar file is in that path so, I am not sure where to look at. Thanks. Miguel Torres. On 17/08/2012, at 18:35, WebObjects TORAcom w...@toracom.net wrote: Thanks for your help. I watched the podcast (great by the way) and simplified the properties: er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1 er.extensions.remoteSynchronizer.enabled=true er.extensions.remoteSynchronizer=er.jgroups.ERJGroupsSynchronizer I think it is the minimum necessary for EOF Synchronization. The application runs on development environment. Then I deployed my application but it can't run. This is the stackTrace: INFO 17-Aug-2012 18:30:14 [ProcessChangesQueue] - JGroups version: 2.6.8.GA DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - mapping is: 1: class org.jgroups.stack.IpAddress 2: class org.jgroups.protocols.CAUSAL$CausalHeader 3: class org.jgroups.protocols.FD$FdHeader 6: class org.jgroups.protocols.FD_SOCK$FdHeader 7: class org.jgroups.protocols.FragHeader 13: class org.jgroups.protocols.PingHeader 14: class org.jgroups.protocols.TcpHeader 19: class org.jgroups.protocols.TunnelHeader 20: class org.jgroups.protocols.UdpHeader 21: class org.jgroups.protocols.UNICAST$UnicastHeader 22: class org.jgroups.protocols.VERIFY_SUSPECT$VerifyHeader 24: class org.jgroups.protocols.pbcast.GMS$GmsHeader 25: class org.jgroups.protocols.pbcast.NakAckHeader 27: class org.jgroups.protocols.pbcast.STABLE$StableHeader 28: class org.jgroups.protocols.pbcast.STATE_TRANSFER$StateHeader 29: class org.jgroups.protocols.SMACK$SmackHeader 30: class org.jgroups.Message 31: class org.jgroups.View 32: class org.jgroups.ViewId 34: interface org.jgroups.Address 35: class org.jgroups.blocks.RequestCorrelator$Header 36: class org.jgroups.protocols.PingRsp 38: class java.util.Vector 39: class org.jgroups.protocols.pbcast.JoinRsp 40: class org.jgroups.util.Digest 41: class java.util.Hashtable 53: class org.jgroups.protocols.COMPRESS$CompressHeader 54: class org.jgroups.protocols.FC$FcHeader 56: class org.jgroups.protocols.TpHeader 57: class org.jgroups.protocols.ENCRYPT$EncryptHeader 58: class org.jgroups.protocols.SEQUENCER$SequencerHeader 59: class org.jgroups.protocols.FD_SIMPLE$FdHeader 60: class org.jgroups.protocols.VIEW_SYNC$ViewSyncHeader 61: class org.jgroups.protocols.FD_ALL$Header 62: class org.jgroups.protocols.SFC$Header 63: class org.jgroups.mux.MuxHeader 64: class org.jgroups.protocols.pbcast.FLUSH$FlushHeader 65: class org.jgroups.protocols.pbcast.STREAMING_STATE_TRANSFER$StateHeader 66: class org.jgroups.blocks.PullPushAdapter$PullHeader 67: class org.jgroups.protocols.AuthHeader DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - changed role to org.jgroups.protocols.pbcast.ClientGmsImpl DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - frag_size=6, overhead=200, new frag_size=59800 DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - received CONFIG event: {bind_addr=/127.0.1.1} DEBUG 17-Aug-2012 18:30:14 [ProcessChangesQueue] - received CONFIG event
Re: useDaylightTime() ??
Hi Jesse, The date with the problem is stored in a database? We got some problems with Postgresql. Date and timezone on server was ok but not in postgres. We found this instruction: ALTER DATABASE postgres SET timezone to 'Mexico/General'; That made the trick. Hope this helps. Miguel Torres. On 14/08/2012, at 11:29, Jesse Tayler jtay...@oeinc.com wrote: My server time is off a suspicious negative one hour, which I presume to be a daylight savings problem. UNIX returns the date I expect. So, I'd guess this is a Java or WO settings issue? A long time ago, on a server far away, there were some issues with missing timezone files used by Java and installed by WO or vice versa? Does anyone know where best to find out what's responsible for the date being returned an hour off to my client? ___ 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/wo%40toracom.net This email sent to w...@toracom.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: ERJGroupsSynchronizer How To
Thanks, I will check it. Miguel Torres. On 16/08/2012, at 07:34, Theodore Petrosky tedp...@yahoo.com wrote: Mike S. does a wonderful job in his video: Project Wonder in Depth (WOWODC West 2009) I just viewed it and it really helps. Ted --- On Thu, 8/16/12, Johann Werner j...@oyosys.de wrote: From: Johann Werner j...@oyosys.de Subject: Re: ERJGroupsSynchronizer How To To: WebObjects TORAcom w...@toracom.net Cc: WebObjects Development webobjects-dev@lists.apple.com Date: Thursday, August 16, 2012, 3:01 AM Hi Miguel, Am 14.08.2012 um 19:13 schrieb WebObjects TORAcom: Hi List, I am new to ERJGroupsSynchronizer. I want to synchronize Enterprise Objects between Application's instances. I found the following info: http://web.archiveorange.com/archive/v/VpmAs9yFWUtMJyEvmKXQ I followed those instructions and added this to my Properties file: […] I am not sure what multicast means and also I don't know if I should create some class to catch the changes of the enterprise objects. Multicast is used to send a message not to a single IP address but to a range [1] of addresses. I just configured my Properties and deployed a test application but my tests didn't work. ¿Am I missing something? Just have a look at the properties file of ERExtensions. All the settings you need to set are there. You should check if it matches your configuration. When using those I had no problem with the sync process. ¿Is there a tutorial of how to use ERJGroupsSynchronizer? Don't know of any. Thanks in advance. Miguel Torres. [1] http://en.wikipedia.org/wiki/IP_multicast -Inline Attachment Follows- ___ 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/tedpet5%40yahoo.com This email sent to tedp...@yahoo.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: useDaylightTime() ??
Hi Jesse, The problem we got with postgresql was in the period of time day light time in U.S. begins because in Mexico begins later. We found the datetimes stored in our database with a one hour offset during that period, once daylight begins in Mexico everything gets normal . The server timezone was correct (America / Mexico City) but for one reason time zone in postgres was Chicago (or something else). I am not sure if this is your case. Hope this helps. On 16/08/2012, at 11:27, Jesse Tayler jtay...@oeinc.com wrote: If my app output logs report the correct time, which they do: Aug 16 12:21:17 WOMan[2002] DEBUG NSLog - === Commit Internal Transaction then, WO / Java have a correct timezone too. therefore, this must be mysql? On Aug 16, 2012, at 12:04 PM, Jesse Tayler jtay...@oeinc.com wrote: oh, that might be the trouble -- I didn't think about the database encoding. I'm using mysql, but I checked the db properties and found UTC? My server is EDT, or easter with daylight savings, for NYC. Unix reports Thu Aug 16 12:03:04 EDT 2012 Should this be set to EDT? UTC is GMT right? That would be more like 8 hours off, no? Anyone know how Mysql should get setup or if this is ok? thanks! Screen Shot 2012-08-16 at 11.59.39 AM.png On Aug 16, 2012, at 12:55 AM, WebObjects TORAcom w...@toracom.net wrote: Hi Jesse, The date with the problem is stored in a database? We got some problems with Postgresql. Date and timezone on server was ok but not in postgres. We found this instruction: ALTER DATABASE postgres SET timezone to 'Mexico/General'; That made the trick. Hope this helps. Miguel Torres. On 14/08/2012, at 11:29, Jesse Tayler jtay...@oeinc.com wrote: My server time is off a suspicious negative one hour, which I presume to be a daylight savings problem. UNIX returns the date I expect. So, I'd guess this is a Java or WO settings issue? A long time ago, on a server far away, there were some issues with missing timezone files used by Java and installed by WO or vice versa? Does anyone know where best to find out what's responsible for the date being returned an hour off to my client? ___ 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/wo%40toracom.net This email sent to w...@toracom.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/jtayler%40oeinc.com This email sent to jtay...@oeinc.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
ERJGroupsSynchronizer How To
Hi List, I am new to ERJGroupsSynchronizer. I want to synchronize Enterprise Objects between Application's instances. I found the following info: http://web.archiveorange.com/archive/v/VpmAs9yFWUtMJyEvmKXQ I followed those instructions and added this to my Properties file: ### Basic setup: # # ERX Remote Synchronizer # ## To use remote EOF synchronization, you must turn on the ## ERXObjectStoreCoordinatorPool. Just setting it to 1 is enough to ## allow things to work. er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators=1 ## Enables remote synchronization (required in addition to ERXObjectStoreCoordinatorPool). er.extensions.remoteSynchronizer.enabled=true # # ERJGroupsSynchronizer # This synchronizer is based on the JGroups clustering framework, which # is the clustering framework used inside of JBoss (among many other # applications). You must include the ERJGroupsSynchronizer framework # in your application for this to work properly. # er.extensions.remoteSynchronizer=er.jgroups.ERJGroupsSynchronizer ### The above is enough to get things going. Advanced Setup: ### AFAIK this didn't make a difference on OS X last time I checked, but it matters on e.g. Linux ## (Optional) the multicast address to use (defaults to 230.0.0.1, and only necessary if you are using multicast) er.extensions.jgroupsSynchronizer.multicastAddress=230.0.0.1 ### Change this to some unused port for the group when you get Discarded packet from... messages in the logs ## (Optional) the multicast port to use (defaults to 9753, and only necessaryif you are using multicast) er.extensions.jgroupsSynchronizer.multicastPort=9753 ### Limit to localhost when deploying all instances on the same server ## (Optional) The local bind address defines the network interface that will be used ## to transmit and receive multicast messages. If not set, multicast synchronizer ## will use WOApplication.application().hostAddress(). If you want to run outside ## of a WOApplication, you should set this value explicitly. er.extensions.jgroupsSynchronizer.localBindAddress=127.0.0.1 ### Set this if you have differently named apps that use the same ModelDB (e.g. MyFrontend.woa and MyBackend.woa) ## (Optional) the JGroups group name to use (defaults to WOApplication.application.name) #er.extensions.jgroupsSynchronizer.groupName=SomeGroupName ## (Optional) A comma separated list of entities to multicast synchronize. The ## default is to not set this, which translates into include all entities. #er.extensions.remoteSynchronizer.includeEntities= ## (Optional) A comma separated list of entities to NOT multicast synchronize. The ## default is to not set this, which translates into exclude no entities. #er.extensions.remoteSynchronizer.excludeEntities= I am not sure what multicast means and also I don't know if I should create some class to catch the changes of the enterprise objects. I just configured my Properties and deployed a test application but my tests didn't work. ¿Am I missing something? ¿Is there a tutorial of how to use ERJGroupsSynchronizer? Thanks in advance. Miguel Torres. ___ 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: ERXLocalizer default language
Oh, Thanks Ramsey. Now I understand, but I think I am doing something worng. I put a wohyperlink setting its bindings as you told me. The hyperlink is inside the user form. I ran the app and entered in the Users edit form, triggered the exception and then clicked on the DUMP link but nothing happened. Thanks for your time. Miguel Torres. On 07/08/2012, at 22:41, Ramsey Gurley ramseygur...@gmail.com wrote: Did you copy all of the dumped keys from your console to your Localizable.strings file and translate them appropriately? Clicking the link does nothing but dump the created keys to the console. Also, if you did not get the validation exception before you click the link, you will not have the created key you need in the dumped list. Ramsey On Aug 7, 2012, at 9:08 AM, WebObjects TORAcom wrote: Hi Ramsey, Thanks for the info. I created the link using your instructions, run the app and clicked on the link. After that, tried the validation string with no luck. ¿Anything else that I could read to understand the behavior of those keys? Thanks again for your time. Miguel Torres. On 06/08/2012, at 15:58, Ramsey Gurley rgur...@smarthealth.com wrote: 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
Re: ERXLocalizer default language
Hi Ramsey, Thanks for the info. I created the link using your instructions, run the app and clicked on the link. After that, tried the validation string with no luck. ¿Anything else that I could read to understand the behavior of those keys? Thanks again for your time. Miguel Torres. On 06/08/2012, at 15:58, Ramsey Gurley rgur...@smarthealth.com wrote: 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
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
ERXLocalizer default language
Hi list, I am testing ERXLocalizer, it seems very good. I want Spanish as the default language for my app, so I set the Properties file like this: er.extensions.ERXLocalizer.defaultLanguage=Spanish er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(Spanish, English) er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions) I also have the Spanish.lproj and English.lproj folders inside Resources directory and a Localizable.strings inside each one. This is the content of the English.lproj/Localizable.strings file: { login_username = Username; login_password = Password; } This is the content of the Spanish.lproj/Localizable.strings file: { login_username = Usuario; login_password = Contraseña; } I am testing with one wostring configured like this: wostrUserNameLabel : WOString { value = session.localizer.login_username; } I think every thing is well configured but when I run the App always shows the english label. Am I missing something? Thanks in advance. Miguel Torres. ___ 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: ERXLocalizer default language
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 testing ERXLocalizer, it seems very good. I want Spanish as the default language for my app, so I set the Properties file like this: er.extensions.ERXLocalizer.defaultLanguage=Spanish er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(Spanish, English) er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions) I also have the Spanish.lproj and English.lproj folders inside Resources directory and a Localizable.strings inside each one. This is the content of the English.lproj/Localizable.strings file: { login_username = Username; login_password = Password; } This is the content of the Spanish.lproj/Localizable.strings file: { login_username = Usuario; login_password = Contraseña; } I am testing with one wostring configured like this: wostrUserNameLabel : WOString { value = session.localizer.login_username; } I think every thing is well configured but when I run the App always shows the english label. Am I missing something? Thanks in advance. Miguel Torres. ___ 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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: ERXLocalizer default language
Ok, Thanks for the advise. On 02/08/2012, at 17:27, Ramsey Gurley rgur...@smarthealth.com wrote: As a general rule, I only call static methods in a constructor and do assignments to ivars directly. http://www.javapractices.com/topic/TopicAction.do?Id=215 Ramsey On Aug 2, 2012, at 3:20 PM, WebObjects TORAcom 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 testing ERXLocalizer, it seems very good. I want Spanish as the default language for my app, so I set the Properties file like this: er.extensions.ERXLocalizer.defaultLanguage=Spanish er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(Spanish, English) er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions) I also have the Spanish.lproj and English.lproj folders inside Resources directory and a Localizable.strings inside each one. This is the content of the English.lproj/Localizable.strings file: { login_username = Username; login_password = Password; } This is the content of the Spanish.lproj/Localizable.strings file: { login_username = Usuario; login_password = Contraseña; } I am testing with one wostring configured like this: wostrUserNameLabel : WOString { value = session.localizer.login_username; } I think every thing is well configured but when I run the App always shows the english label. Am I missing something? Thanks in advance. Miguel Torres. ___ 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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: ERXLocalizer default language
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 testing ERXLocalizer, it seems very good. I want Spanish as the default language for my app, so I set the Properties file like this: er.extensions.ERXLocalizer.defaultLanguage=Spanish er.extensions.ERXLocalizer.fileNamesToWatch=(Localizable.strings,ValidationTemplate.strings) er.extensions.ERXLocalizer.availableLanguages=(Spanish, English) er.extensions.ERXLocalizer.frameworkSearchPath=(app,ERDirectToWeb,ERExtensions) I also have the Spanish.lproj and English.lproj folders inside Resources directory and a Localizable.strings inside each one. This is the content of the English.lproj/Localizable.strings file: { login_username = Username; login_password = Password; } This is the content of the Spanish.lproj/Localizable.strings file: { login_username = Usuario; login_password = Contraseña; } I am testing with one wostring configured like this: wostrUserNameLabel : WOString { value = session.localizer.login_username; } I think every thing is well configured but when I run the App always shows the english label. Am I missing something? Thanks in advance. Miguel Torres. ___ 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.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/amedeomantica%40me.com This email sent to amedeomant...@me.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: JavaMonitor
Thanks, I will try and report the solution. Just wondering if the JavaMonitor.tar.gz was build without the embedded frameworks configuration. On 25/07/2012, at 00:56, Johann Werner wrote: That path should not be mysite.com/WebObjects/Frameworks/... but mysite.com/WebObjects/JavaMonitor.woa/Frameworks/... You could try to set -WOFrameworksBaseURL /WebObjects/JavaMonitor.woa/Frameworks explicitly at startup though it is strange that it is not set automatically to the correct value. To make your life easier: you need only to copy the webserver resources for the frameworks Ajax, ERExtensions and JavaWOExtensions to make everything work as expected. jw Am 24.07.2012 um 22:13 schrieb WebObjects TORAcom: You are right, I found this error. NetworkError: 404 Not Found - http://mysite.com/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js; The JavaMonitor application does not have the frameworks embedded? Should I copy the Framework's WebServerResources to the Web Server folder? Thanks. Miguel. On 24/07/2012, at 14:00, Pascal Robert wrote: Check the JavaScript console in your browser to see if any errors are there. Hi, I downloaded JavaMonitor from http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz I installed it. It looks great! thanks guys. I just have a problem, it seems that some div's don't work, I assume they should open. This is the image of the areas that don't open: Screen Shot 2012-07-24 at 13.08.01.png I click on HTTP Adaptor Settings and nothing happens. I tried with Safari, Chrome and Firefox, mac os X Lion. Does anybody have the same issue? Thanks in advance. Miguel Torres. ___ 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: JavaMonitor
I open the JavaMonitor.woa/JavaMonitor script and this is the final line eval exec ${JAVA_EXECUTABLE} ${JAVA_EXECUTABLE_ARGS} -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap ${COMMAND_LINE_ARGS} As you can see it is not defined the -WOFrameworksBaseURL parameter. I changed it to: eval exec ${JAVA_EXECUTABLE} ${JAVA_EXECUTABLE_ARGS} -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap ${COMMAND_LINE_ARGS} -WOFrameworksBaseURL /WebObjects/JavaMonitor.woa/Frameworks It still doesn't work because there is no /var/www/WebObjects/JavaMonitor.woa/Frameworks directory. Then I create a symbolic link to the JavaMonitor.woa/Contents/Frameworks and now it is working. I assume that the copy of JavaMonitor that I got from http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz wasn't build with embedded frameworks. If that's the way it has to be builded won't it be necessary to update the tutorial http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux? Just saying. Thanks. On 25/07/2012, at 13:59, WebObjects TORAcom wrote: Thanks, I will try and report the solution. Just wondering if the JavaMonitor.tar.gz was build without the embedded frameworks configuration. On 25/07/2012, at 00:56, Johann Werner wrote: That path should not be mysite.com/WebObjects/Frameworks/... but mysite.com/WebObjects/JavaMonitor.woa/Frameworks/... You could try to set -WOFrameworksBaseURL /WebObjects/JavaMonitor.woa/Frameworks explicitly at startup though it is strange that it is not set automatically to the correct value. To make your life easier: you need only to copy the webserver resources for the frameworks Ajax, ERExtensions and JavaWOExtensions to make everything work as expected. jw Am 24.07.2012 um 22:13 schrieb WebObjects TORAcom: You are right, I found this error. NetworkError: 404 Not Found - http://mysite.com/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js; The JavaMonitor application does not have the frameworks embedded? Should I copy the Framework's WebServerResources to the Web Server folder? Thanks. Miguel. On 24/07/2012, at 14:00, Pascal Robert wrote: Check the JavaScript console in your browser to see if any errors are there. Hi, I downloaded JavaMonitor from http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz I installed it. It looks great! thanks guys. I just have a problem, it seems that some div's don't work, I assume they should open. This is the image of the areas that don't open: Screen Shot 2012-07-24 at 13.08.01.png I click on HTTP Adaptor Settings and nothing happens. I tried with Safari, Chrome and Firefox, mac os X Lion. Does anybody have the same issue? Thanks in advance. Miguel Torres. ___ 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/wo%40toracom.net This email sent to w...@toracom.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: JavaMonitor
You are right, I found this error. NetworkError: 404 Not Found - http://mysite.com/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js; The JavaMonitor application does not have the frameworks embedded? Should I copy the Framework's WebServerResources to the Web Server folder? Thanks. Miguel. On 24/07/2012, at 14:00, Pascal Robert wrote: Check the JavaScript console in your browser to see if any errors are there. Hi, I downloaded JavaMonitor from http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz I installed it. It looks great! thanks guys. I just have a problem, it seems that some div's don't work, I assume they should open. This is the image of the areas that don't open: Screen Shot 2012-07-24 at 13.08.01.png I click on HTTP Adaptor Settings and nothing happens. I tried with Safari, Chrome and Firefox, mac os X Lion. Does anybody have the same issue? Thanks in advance. Miguel Torres. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca ___ 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: JavaMonitor
Maybe I did something wrong during the WebObjects deployment environment installation. I followed this tutorial http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux I copied the WebObjects folder to my webserver: cp -rp /opt/Local/Library/WebServer/Documents/WebObjects /var/www/htdocs But if I list the content of /opt/Local/Library/WebServer/Documents/WebObjects/Frameworks/ I get this: ls /opt/Local/Library/WebServer/Documents/WebObjects/Frameworks/ JavaEOApplication.framework JavaEOGeneration.framework JavaEOInterface.framework JavaEORuleSystem.framework There is no Ajax.framework Am I missing something? Thanks On 24/07/2012, at 15:13, WebObjects TORAcom wrote: You are right, I found this error. NetworkError: 404 Not Found - http://mysite.com/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js; The JavaMonitor application does not have the frameworks embedded? Should I copy the Framework's WebServerResources to the Web Server folder? Thanks. Miguel. On 24/07/2012, at 14:00, Pascal Robert wrote: Check the JavaScript console in your browser to see if any errors are there. Hi, I downloaded JavaMonitor from http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz I installed it. It looks great! thanks guys. I just have a problem, it seems that some div's don't work, I assume they should open. This is the image of the areas that don't open: Screen Shot 2012-07-24 at 13.08.01.png I click on HTTP Adaptor Settings and nothing happens. I tried with Safari, Chrome and Firefox, mac os X Lion. Does anybody have the same issue? Thanks in advance. Miguel Torres. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca ___ 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/wo%40toracom.net This email sent to w...@toracom.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: WOWODC-2012 Git presentations
Thanks On 13/07/2012, at 06:21, Kieran Kelleher wrote: FYI, If you are new to git. The first 3 parts of the 5-part series derived from the Understanding Using Git WOWODC2012 presentation is available in this iTunes feed: http://itunes.apple.com/us/podcast/webobjects-podcasts/id270165303 or at the bottom of this web page: http://www.wocommunity.org/webobjects_screencasts.html Parts 4 and 5 are slated to be published in next couple of weeks. Regards, Kieran ___ 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/wo%40toracom.net This email sent to w...@toracom.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: Application properties
Thanks Johann you are right we have an arbitrary number of instances. I think I will try ERJGroupsSynchronizer. On 20/04/2012, at 01:09, Johann Werner wrote: Hi Miguel, either you have • a fixed set of instances (not very probable) then whenever a change to that table is saved you could call a direct action on the other (known) instances to cause a refetch • an arbitrary number of instances (more probable) then you should have a look at the ERJGroupsSynchronizer in Wonder. There you can send notifications to any listening instances and trigger the refetch by that way. jw Am 20.04.2012 um 05:55 schrieb WebObjects TORAcom: Hi List, We have been using a table to store the application configuration parameters. In every application that table just have a record and we have a Configuration section in the app to modify those values. In the Application class we have methods to store an updated object with the configuration information. It works fine until we deploy the application and starts more than one instance in the JavaMonitor because if any value of the configuration changes the object in the Application object gets updated but the other instances don't receive any message to reload configuration info. We don't want to consult the data base any time we want a configuration parameter because we use them all over the application, we store number formats, reporter URL, date formats, etc. Is there any way to send a kind of message between different instances of the same application? I am thinking on changing our approach to use XML properties file, but I have the same problem, How to know when the properties file changes to load them in every instance of my application? Any help will be appreciated. Best regards. Miguel Torres ___ 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
Application properties
Hi List, We have been using a table to store the application configuration parameters. In every application that table just have a record and we have a Configuration section in the app to modify those values. In the Application class we have methods to store an updated object with the configuration information. It works fine until we deploy the application and starts more than one instance in the JavaMonitor because if any value of the configuration changes the object in the Application object gets updated but the other instances don't receive any message to reload configuration info. We don't want to consult the data base any time we want a configuration parameter because we use them all over the application, we store number formats, reporter URL, date formats, etc. Is there any way to send a kind of message between different instances of the same application? I am thinking on changing our approach to use XML properties file, but I have the same problem, How to know when the properties file changes to load them in every instance of my application? Any help will be appreciated. Best regards. Miguel Torres ___ 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