Re: Migrations and ERAttachment error
That's a bug in the MySQL plugin bundled with WO 5.4. You need to use the plugin from Project Wonder (MySQLPlugIn) by adding it to the build path (right click on project - Configure Build Path - Libraries tab - Add Library - WebObjects Framework) and moving it in a hight priority (Order Export tab, move MySQLPlugIn to the top). Hi, This is my first attempt at using ERAttachment. I followed the screencast tutorial available in the Wiki and setup my application's properties according to the recommendations I found in the Wiki, but I ended up with an application that doesn't start anymore. The error is reported as a SQL error: Ago 02 20:09:57 Visiontur[58138] ERROR er.extensions.appserver.ERXApplication - Visiontur failed to start. MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'null available VARCHAR(5) NOT NULL' at line 1 Using the ERAttachment framework will make my life a lot easier and I would like very much to solve this problem, specially because I designing the application to be a DW-only back end application. Thanks, Angelo ___ 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
Startup in deployment hangs
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 (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: Migrations and ERAttachment error
Hi Pascal, I found an old post reporting this bug and the solution, but then I faced another problem with the attachment handling with D2W and made a followup with the screen capture. Thanks, Angelo Em 03/08/2012, às 06:33, Pascal Robert escreveu: That's a bug in the MySQL plugin bundled with WO 5.4. You need to use the plugin from Project Wonder (MySQLPlugIn) by adding it to the build path (right click on project - Configure Build Path - Libraries tab - Add Library - WebObjects Framework) and moving it in a hight priority (Order Export tab, move MySQLPlugIn to the top). ___ 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
I can't guess, the only thing I see is that I recall reading warnings about not using Bonjour names (the *.local addresses) but really dns names. HG On Aug 3, 2012, at 11:55 AM, Markus Ruggiero 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt This email sent to li...@farol.pt ___ 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: AjaxProxy doing page reload?
Le 2012-08-02 à 14:41, Pascal Robert a écrit : Well, it's quite rare that I ask question instead of answering questions, but anyway I have one. I just started using AjaxProxy because I need to take data coming from JavaScript and send that data to a NSDictionary. Problem is: when I call a method on the proxy, the whole page is reloaded, so every fetches to regenerate the page are done again. I was thinking it was because the original proxy was the parent page (e.g. wopage) so I moved the proxy to a separate class but it's the same behavior. If I remove the call to the proxy (but the proxy is still being create), page is generated only once. The method I call in the proxy returns void. Maybe the default ajax response when the return is null is to refresh the page? Try returning 0 or . What is the http response from the proxy request? The only way I can see this behavior happen, is if the server is returning the javascript instruction to refresh the page (or if you do it yourself). jfv ___ 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: Migrations and ERAttachment error followup
What does your model for ERAttachment to your entity look like? What have you created the relationship(s) on? d On 2012-08-03, at 4:52 AM, Sr. Ângelo Andrade Cirino aacir...@gmail.com wrote: Hi, By disabling the properties for migrations in my application's properties file I was able to launch the app, but I am getting an error trying to use ERAttachment with D2W and three properties bound to ERD2WDisplayAttachment for editing. The D2W interface presents the error shown in the following screen capture: Captura de Tela 2012-08-02 às 22.12.48.png and the console reports this (among similar messages): Ago 02 22:03:20 Visiontur[60741] DEBUG NSLog Page: er.modern.look.pages.ERMODTabInspectPage - Configuration: EditPacote - Updating primary key value for ERAttachment in PK table named: EO_PK_TABLE to seed value: 21 Ago 02 22:03:20 Visiontur[60741] DEBUG NSLog Page: er.modern.look.pages.ERMODTabInspectPage - Configuration: EditPacote - evaluateExpression: com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: UPDATE EO_PK_TABLE SET PK = 21 WHERE NAME = 'ERAttachment' AND PK = 20 withBindings: Ago 02 22:03:20 Visiontur[60741] DEBUG NSLog Page: er.modern.look.pages.ERMODTabInspectPage - Configuration: EditPacote - === Commit Internal Transaction Strangely, the bindings are missing. I am not sure what this means, but maybe the ERD2WDisplayAttachment component needs some tweaking through rules that I am missing. The specific rule I am using is this: 100 : ((task = 'edit' or task = 'create') and (propertyKey = 'miniatura' or propertyKey = 'imagemPequena' or propertyKey = 'imagemGrande')) = componentName = ERMD2WEditAttachment [com.webobjects.directtoweb.Assignment] Thanks, Angelo ___ 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/programmingosx%40mac.com This email sent to programming...@mac.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
isn't that where app output leaves off? I mean, do you know it is hung? seems like maybe you are not able to reach the port? On Aug 3, 2012, at 7:43 AM, Henrique Gomes li...@farol.pt wrote: I can't guess, the only thing I see is that I recall reading warnings about not using Bonjour names (the *.local addresses) but really dns names. HG On Aug 3, 2012, at 11:55 AM, Markus Ruggiero 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt This email sent to li...@farol.pt ___ 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
Re: Can not launch WOnder app / was: WOnder install fails
I allow me to complete this question; I have to the same problem and my complete stack trace are the same ... and not very expressive for me; Exception in thread main java.lang.AbstractMethodError: com.webobjects.foundation._NSWeakMutableArray.addReference(Ljava/lang/Object;)V at com.webobjects.foundation.NSNotificationCenter.addObserver(NSNotificationCenter.java:230) at com.webobjects.foundation.NSProperties.registerForNotifications(NSProperties.java:322) at com.webobjects.foundation.NSProperties.setSharedInstance(NSProperties.java:215) at com.webobjects.foundation.NSProperties.clinit(NSProperties.java:156) at com.webobjects.eocontrol.EOEventCenter.clinit(EOEventCenter.java:105) at com.webobjects.eocontrol.EOEditingContext.clinit(EOEditingContext.java:669) at com.webobjects.eocontrol.EOCustomObject.clinit(EOCustomObject.java:1894) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at com.webobjects.appserver.WOApplication.class$(WOApplication.java:185) at com.webobjects.appserver.WOApplication.clinit(WOApplication.java:185) To begin, i have used a very small WO application using maven to build and using the 5.3 version of WO (it's old biut my real application use this ... ) As i want to try to generalize the maven use case, and because we are migrating to wonder ... I want to use now an ERAjaxApplication and my previous Application stop to run; I have do just the following modification : modify the pom : add Wonder. Final version : -- project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdsymaris/groupId artifactIdminiCaria/artifactId packagingwoapplication/packaging version0.0.1-SNAPSHOT/version nameminiCaria WebObjects Application/name urlhttp://maven.apache.org/url properties !-- properties used for filtering and dependency management -- jvmtarget1.6/jvmtarget mainclasssymaris.miniCaria.app.Application/mainclass webobjects.groupIdcom.webobjects/webobjects.groupId webobjects.version5.3.3/webobjects.version wonder.core.groupIdwonder.core/wonder.core.groupId wonder.version5.6.0/wonder.version /properties build finalNameminiCaria/finalName plugins plugin groupIdorg.objectstyle.woproject.maven2/groupId artifactIdmaven-wolifecycle-plugin/artifactId version2.1/version extensionstrue/extensions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.3.2/version configuration source${jvmtarget}/source target${jvmtarget}/target /configuration /plugin /plugins pluginManagement plugins !--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -- plugin groupIdorg.eclipse.m2e/groupId artifactIdlifecycle-mapping/artifactId version1.0.0/version configuration lifecycleMappingMetadata pluginExecutions pluginExecution pluginExecutionFilter groupId org.objectstyle.woproject.maven2 /groupId artifactId maven-wolifecycle-plugin /artifactId versionRange [2.0.17,) /versionRange goals goal generate-test-resources /goal goalwoapplication/goal goal define-woapplication-resources /goal /goals /pluginExecutionFilter action ignore/ignore /action /pluginExecution
Re: ERXLocalizer default language
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 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
Re: Migrations and ERAttachment error followup
Hi David, At first sight the relationships look correct. I have an entity that can hold three different pictures, so I decided to use three attributes, one for each picture. The pictures are optional. The database is being updated to a certain level, since I can see that the private keys are being automatically incremented. As can be seen in the picture, there are three images and the component will complain that one of two is missing, either Small Picture or Big Picture. It doesn't matter if I try to insert just the thumbnail, leaving the other two attachments empty, the component will always complain that ERDatabaseAttachment must have one image, either one of the two mentioned. I used EOModeler to create the relationships, in my database table I just provided the columns to store the private keys for the images in ERAttachment. The relationship is modeled as optional one-to-one, for instance Pacote.imagemGrandeID = ERAttachment.id. This is the code generated by EOGenerate: public er.attachment.model.ERAttachment imagemGrande() { return (er.attachment.model.ERAttachment)storedValueForKey(_Pacote.IMAGEM_GRANDE_KEY); } public void setImagemGrande(er.attachment.model.ERAttachment value) { takeStoredValueForKey(value, _Pacote.IMAGEM_GRANDE_KEY); } public void setImagemGrandeRelationship(er.attachment.model.ERAttachment value) { if (_Pacote.LOG.isDebugEnabled()) { _Pacote.LOG.debug(updating imagemGrande from + imagemGrande() + to + value); } if (er.extensions.eof.ERXGenericRecord.InverseRelationshipUpdater.updateInverseRelationships()) { setImagemGrande(value); } else if (value == null) { er.attachment.model.ERAttachment oldValue = imagemGrande(); if (oldValue != null) { removeObjectFromBothSidesOfRelationshipWithKey(oldValue, _Pacote.IMAGEM_GRANDE_KEY); } } else { addObjectToBothSidesOfRelationshipWithKey(value, _Pacote.IMAGEM_GRANDE_KEY); } } Thanks for the help, Angelo Em 03/08/2012, às 11:06, David Holt escreveu: What does your model for ERAttachment to your entity look like? What have you created the relationship(s) on? d On 2012-08-03, at 4:52 AM, Sr. Ângelo Andrade Cirino aacir...@gmail.com wrote: Hi, By disabling the properties for migrations in my application's properties file I was able to launch the app, but I am getting an error trying to use ERAttachment with D2W and three properties bound to ERD2WDisplayAttachment for editing. The D2W interface presents the error shown in the following screen capture: Captura de Tela 2012-08-02 às 22.12.48.png and the console reports this (among similar messages): Ago 02 22:03:20 Visiontur[60741] DEBUG NSLog Page: er.modern.look.pages.ERMODTabInspectPage - Configuration: EditPacote - Updating primary key value for ERAttachment in PK table named: EO_PK_TABLE to seed value: 21 Ago 02 22:03:20 Visiontur[60741] DEBUG NSLog Page: er.modern.look.pages.ERMODTabInspectPage - Configuration: EditPacote - evaluateExpression: com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: UPDATE EO_PK_TABLE SET PK = 21 WHERE NAME = 'ERAttachment' AND PK = 20 withBindings: Ago 02 22:03:20 Visiontur[60741] DEBUG NSLog Page: er.modern.look.pages.ERMODTabInspectPage - Configuration: EditPacote - === Commit Internal Transaction Strangely, the bindings are missing. I am not sure what this means, but maybe the ERD2WDisplayAttachment component needs some tweaking through rules that I am missing. The specific rule I am using is this: 100 : ((task = 'edit' or task = 'create') and (propertyKey = 'miniatura' or propertyKey = 'imagemPequena' or propertyKey = 'imagemGrande')) = componentName = ERMD2WEditAttachment [com.webobjects.directtoweb.Assignment] Thanks, Angelo ___ 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/programmingosx%40mac.com This email sent to programming...@mac.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
Use jstack or kill -QUIT to get a thread dump and see where it it stuck. Chuck On 2012-08-03, at 4:43 AM, Henrique Gomes wrote: I can't guess, the only thing I see is that I recall reading warnings about not using Bonjour names (the *.local addresses) but really dns names. HG On Aug 3, 2012, at 11:55 AM, Markus Ruggiero 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt This email sent to li...@farol.pt ___ 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/chill%40global-village.net This email sent to ch...@global-village.net -- 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
Wonder WebObjects question
Dear Wonder Experts, for the Wonder project I can find only a handful source replacements of the JavaWebObjects Framework. I see much more changes for the woextensions, and certainly foundation replacements in Utilities/NSFoundation/*. I am interested which of the JavaWebObjects Framework classes getting replaced by Wonder. Pointing to the classnames would be of help for me. Thanks Helmut PS: I am new to Wonder, at present I start just browsing it. ___ 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
EmberJS with WO
Has anyone used EmberJS with webobjects? Is there an easy way to move EOEnterpriseObjects to ember? Maybe via JSON-RPC? Michael Kondratov Aspire Auctions, Inc. m. 216-544-8938 ___ 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: Wonder WebObjects question
Hi Helmut, I am not sure which replacements you are referring to. ERWebObjects.jar in ERJars/Library replaces these classes: com/webobjects/_ideservices/_IDEProject.class com/webobjects/_ideservices/_IDEProjectPB.class com com/webobjects/_ideservices/_IDEProjectPBX.class com/webobjects/_ideservices/_IDEProjectWOLips.class com/webobjects/_ideservices/_NSProjectBundleIDEProject$Resource.class com/webobjects/_ideservices/_NSProjectBundleIDEProject.class com/webobjects/_ideservices/_PBProject.class com/webobjects/_ideservices/_PBXProjectWatcher.class com/webobjects/_ideservices/_WOAntProject.class com/webobjects/_ideservices/_WOLaunchServices.class com/webobjects/_ideservices/_WOLipsProject.class com/webobjects/_ideservices/_WOProject.class com/webobjects/appserver/_private/WOBundle.class com/webobjects/appserver/_private/WODeployedBundle.class com/webobjects/appserver/_private/WOProjectBundle$PBWOProjectAndDirFilter.class com/webobjects/appserver/_private/WOProjectBundle.class ERXPatcher replaces these classes: public static synchronized void installPatches() { DynamicElementsPatches.cleanupXHTML = ERXValueUtilities.booleanValueWithDefault(System.getProperty(er.extensions.ERXPatcher.cleanupXHTML), false); DynamicElementsPatches.useButtonTag = ERXProperties.booleanForKeyWithDefault(er.extensions.foundation.ERXPatcher.DynamicElementsPatches.SubmitButton.useButtonTag, false); if (DynamicElementsPatches.useButtonTag) { ERXPatcher.setClassForName(ERXSubmitButton.class, WOSubmitButton); } else ERXPatcher.setClassForName(DynamicElementsPatches.SubmitButton.class, WOSubmitButton); ERXPatcher.setClassForName(DynamicElementsPatches.ResetButton.class, WOResetButton); ERXPatcher.setClassForName(DynamicElementsPatches.TextField.class, WOTextField); ERXPatcher.setClassForName(DynamicElementsPatches.GenericElement.class, WOGenericElement); // ERXPatcher.setClassForName(DynamicElementsPatches.GenericContainer.class, WOGenericContainer); ERXPatcher.setClassForName(DynamicElementsPatches.Image.class, WOImage); ERXPatcher.setClassForName(DynamicElementsPatches.ActiveImage.class, WOActiveImage); ERXPatcher.setClassForName(DynamicElementsPatches.Text.class, WOText); ERXPatcher.setClassForName(DynamicElementsPatches.PopUpButton.class, WOPopUpButton); ERXPatcher.setClassForName(DynamicElementsPatches.Browser.class, WOBrowser); ERXPatcher.setClassForName(DynamicElementsPatches.CheckBox.class, WOCheckBox); ERXPatcher.setClassForName(DynamicElementsPatches.CheckBoxList.class, WOCheckBoxList); ERXPatcher.setClassForName(DynamicElementsPatches.FileUpload.class, WOFileUpload); ERXPatcher.setClassForName(DynamicElementsPatches.HiddenField.class, WOHiddenField); ERXPatcher.setClassForName(DynamicElementsPatches.ImageButton.class, WOImageButton); ERXPatcher.setClassForName(DynamicElementsPatches.PasswordField.class, WOPasswordField); ERXPatcher.setClassForName(DynamicElementsPatches.RadioButton.class, WORadioButton); ERXPatcher.setClassForName(DynamicElementsPatches.RadioButtonList.class, WORadioButtonList); // AK This is needed so we get our versions of the WOToXXRelationships installed even if the // ones from WOExtensions are before us in the classpath ERXPatcher.setClassForName(WOToManyRelationship.class, WOToManyRelationship); ERXPatcher.setClassForName(WOToOneRelationship.class, WOToOneRelationship); ERXPatcher.setClassForName(ERXHyperlink.class, WOHyperlink); if (ERXProperties.booleanForKeyWithDefault(er.extensions.WOSwitchComponent.patch, true)) { ERXPatcher.setClassForName(ERXSwitchComponent.class, WOSwitchComponent); } if (!ERXApplication.isWO54() || ERXProperties.booleanForKey(er.extensions.WOConditional.patch)) { ERXPatcher.setClassForName(ERXWOConditional.class, WOConditional); } // RM XHTML strict compliance ERXPatcher.setClassForName(DynamicElementsPatches.JavaScript.class, WOJavaScript); } Does that answer your question? Chuck On 2012-08-03, at 11:58 AM, Helmut Tschemernjak wrote: Dear Wonder Experts, for the Wonder project I can find only a handful source replacements of the JavaWebObjects Framework. I see much more changes for the woextensions, and certainly foundation replacements in Utilities/NSFoundation/*. I am interested which of the JavaWebObjects Framework classes getting replaced by Wonder. Pointing to the classnames would be of help
Re: EmberJS with WO
ERRest is probably your best option. Has anyone used EmberJS with webobjects? Is there an easy way to move EOEnterpriseObjects to ember? Maybe via JSON-RPC? Michael Kondratov Aspire Auctions, Inc. m. 216-544-8938 ___ 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: Can not launch WOnder app / was: WOnder install fails
This problem is caused by deploying with a version of Wonder that was either not built with, or is not compatible with WO 5.3. On 04/08/2012, at 12:40 AM, SAUGET Marc sauget.m...@gmail.com wrote: I allow me to complete this question; I have to the same problem and my complete stack trace are the same ... and not very expressive for me; Exception in thread main java.lang.AbstractMethodError: com.webobjects.foundation._NSWeakMutableArray.addReference(Ljava/lang/Object;)V at com.webobjects.foundation.NSNotificationCenter.addObserver(NSNotificationCenter.java:230) at com.webobjects.foundation.NSProperties.registerForNotifications(NSProperties.java:322) at com.webobjects.foundation.NSProperties.setSharedInstance(NSProperties.java:215) at com.webobjects.foundation.NSProperties.clinit(NSProperties.java:156) at com.webobjects.eocontrol.EOEventCenter.clinit(EOEventCenter.java:105) at com.webobjects.eocontrol.EOEditingContext.clinit(EOEditingContext.java:669) at com.webobjects.eocontrol.EOCustomObject.clinit(EOCustomObject.java:1894) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at com.webobjects.appserver.WOApplication.class$(WOApplication.java:185) at com.webobjects.appserver.WOApplication.clinit(WOApplication.java:185) To begin, i have used a very small WO application using maven to build and using the 5.3 version of WO (it's old biut my real application use this ... ) As i want to try to generalize the maven use case, and because we are migrating to wonder ... I want to use now an ERAjaxApplication and my previous Application stop to run; I have do just the following modification : modify the pom : add Wonder. Final version : -- project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion groupIdsymaris/groupId artifactIdminiCaria/artifactId packagingwoapplication/packaging version0.0.1-SNAPSHOT/version nameminiCaria WebObjects Application/name urlhttp://maven.apache.org/url properties !-- properties used for filtering and dependency management -- jvmtarget1.6/jvmtarget mainclasssymaris.miniCaria.app.Application/mainclass webobjects.groupIdcom.webobjects/webobjects.groupId webobjects.version5.3.3/webobjects.version wonder.core.groupIdwonder.core/wonder.core.groupId wonder.version5.6.0/wonder.version /properties build finalNameminiCaria/finalName plugins plugin groupIdorg.objectstyle.woproject.maven2/groupId artifactIdmaven-wolifecycle-plugin/artifactId version2.1/version extensionstrue/extensions /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.3.2/version configuration source${jvmtarget}/source target${jvmtarget}/target /configuration /plugin /plugins pluginManagement plugins !--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -- plugin groupIdorg.eclipse.m2e/groupId artifactIdlifecycle-mapping/artifactId version1.0.0/version configuration lifecycleMappingMetadata pluginExecutions pluginExecution pluginExecutionFilter groupId org.objectstyle.woproject.maven2 /groupId artifactId maven-wolifecycle-plugin /artifactId versionRange [2.0.17,) /versionRange goals goal generate-test-resources /goal goalwoapplication/goal goal