Re: WOCommunity Apple Developer Account
Absolutely! Actually, I was even thinking about putting a link in my email signature. Something along the lines of: Did you find this question, answer or pathetic attempt at humor helpful? Maybe it saved you some time? If so, please consider donating to the community. It will help keep Pascal sane. It might not help at all, we all know Pascal is probably beyond help, but I think it could generate some revenue. Dave On Mar 12, 2012, at 1:26 AM, Pascal Robert wrote: perhaps a donate button on the wocommunity website would add to this if it doesn't take much effort Donation in addition to the membership program? ___ 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
Many-To-Many Relationship across DB
Hello everyone, I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having a simple insert problem. My DB is Oracle and I have 2 Models(different User) . My EOModel would look like this: *Model1* URL: jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnect *Model2* URL: jdbc:oracle:thin:@db.test:1521:oracletest user:Oracle Now I have a Many-To-Many Relationship *Teacher(Model1) - Student(Model2)*. My Code would look like this: *public void save() { EOEditingContext ec = (ERXEC) ERXEC.newEditingContext(); Teacher teacher = new Teacher(); ec.insertObject(teacher); teacher.setName(teacherName); Student student1 = new Student(); Student student2 = new Student(); ec.insertObject(student1); ec.insertObject(student2); student1.setName(studentName1); student2.setName(studentName2); teacher.addToStudentsRelationship(student1); teacher.addToStudentsRelationship(student2); ec.saveChanges(); }* I got this NPE everytime: NullPointerException at com.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67) Looks pretty simple but I'm stuck. Thank you in advance! Regards, Troy ___ 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: WOCommunity Apple Developer Account
Le 2012-03-12 à 03:18, David Avendasora a écrit : Absolutely! Actually, I was even thinking about putting a link in my email signature. Something along the lines of: Did you find this question, answer or pathetic attempt at humor helpful? Maybe it saved you some time? If so, please consider donating to the community. It will help keep Pascal sane. It might not help at all, we all know Pascal is probably beyond help, but I think it could generate some revenue. To put things straight, I do love making for the community. In fact, if I could do it full time, I would, and I have to restraint myself to not to do more. Problems is that it doesn't pay the bill. I will come clean: last year I got $1681 for WOWODC, $1681 for one full month of work on 3 presentations + organizing the event, plus all of other stuff I did for the community in 2011 (like writing the new tutorials, who took me 12 hours). Every time I ask for help, people tell me that they are busy. So if people are busy and can't help, we have to find a solution. Dave On Mar 12, 2012, at 1:26 AM, Pascal Robert wrote: perhaps a donate button on the wocommunity website would add to this if it doesn't take much effort Donation in addition to the membership program? ___ 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: Many-To-Many Relationship across DB
Hello Troy,Am 12.03.2012 um 10:58 schrieb Troy Lumasag:Hello everyone,I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having asimple insert problem.Welcome!My DB is Oracle and I have 2 Models(different User) .My EOModel would look like this:Model1 URL:jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnectModel2 URL:jdbc:oracle:thin:@db.test:1521:oracletest user:OracleNow I have a Many-To-Many RelationshipTeacher(Model1) -Student(Model2).My Code would look like this: public void save() {EOEditingContext ec = (ERXEC) ERXEC.newEditingContext();Teacher teacher = new Teacher();ec.insertObject(teacher);teacher.setName(teacherName);Student student1 = new Student();Student student2 = new Student();ec.insertObject(student1);ec.insertObject(student2);student1.setName(studentName1);student2.setName(studentName2);teacher.addToStudentsRelationship(student1);teacher.addToStudentsRelationship(student2);ec.saveChanges(); }I got this NPE everytime:NullPointerException atcom.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) atcom.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) atcom.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67)I've never used Oracle but the problem seems to be related to PK generation. I guess the first thing to check would be whether you set the "OraclePlugIn". You can set it in entity modeler (just put "OraclePlugIn" where I have "PostgresqlPlugIn"):cheers, FabianLooks pretty simple but I'm stuck. Thank you in advance!Regards,Troy___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.fabian%40e-lumo.comThis email sent to lists.fab...@e-lumo.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
git error on a pull
maybe I am doing this wrong. in eGit, i see my wonder repository. I right click and select Pull. I am getting this error: Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js I don't understand what I have to do to get the most up-to-date wonder with eGit.. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: git error on a pull
Call git revert on those files before doing the pull. wondaculous-min.js is rebuilt by the Ant tasks when you build Wonder so the file was locally modified, hence the conflict. maybe I am doing this wrong. in eGit, i see my wonder repository. I right click and select Pull. I am getting this error: Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js I don't understand what I have to do to get the most up-to-date wonder with eGit.. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/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
Inappropriate OGNL expression
Hi list, I was calling a method by OGNL inside a component to fetch an array inside a WORepetition, and it worked well. Now, I moved some code to a sub-component and I have to pass the array I get from the method to the component. So I did: wo:BuildManifest transactions=$~transactionsForSpec(revisionItem) / But I'm getting: ognl.InappropriateExpressionException: Inappropriate OGNL expression: transactionsForSpec(revisionItem) Funny thing is that it does work even if I'm getting this, the sub-component is called and the array have the right objects. So I'm curious of finding out why I'm getting this exception even if it works as expected. ___ 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: git error on a pull
As long as you have no modifications that you have made to Wonder yourself and you just want to clean the build artifacts, just do $ git reset --hard which will clear all local modifications (unintentional or otherwise) HTH, Kieran On Mar 12, 2012, at 10:04 AM, Theodore Petrosky wrote: maybe I am doing this wrong. in eGit, i see my wonder repository. I right click and select Pull. I am getting this error: Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js I don't understand what I have to do to get the most up-to-date wonder with eGit.. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: git error on a pull
Of course it always a good idea to do 'git status' first to see what actual modifications exist in your working copy. On Mar 12, 2012, at 12:07 PM, Kieran Kelleher wrote: As long as you have no modifications that you have made to Wonder yourself and you just want to clean the build artifacts, just do $ git reset --hard which will clear all local modifications (unintentional or otherwise) HTH, Kieran On Mar 12, 2012, at 10:04 AM, Theodore Petrosky wrote: maybe I am doing this wrong. in eGit, i see my wonder repository. I right click and select Pull. I am getting this error: Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js Checkout conflict with files: Frameworks/Ajax/Ajax/WebServerResources/wondaculous-min.js Frameworks/Ajax/Ajax/WebServerResources/wondaculous.js I don't understand what I have to do to get the most up-to-date wonder with eGit.. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com This email sent to kelleh...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: SQL RTRIM
Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: SQL RTRIM
No link to the wikibooks.org site please :-) http://wiki.wocommunity.org/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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/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: SQL RTRIM
I HATE wikibooks. But Google loves them. On 2012-03-12, at 10:34 AM, Pascal Robert wrote: No link to the wikibooks.org site please :-) http://wiki.wocommunity.org/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca -- 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: SQL RTRIM
Google's search seems to work better than ours too :-/ If I search for debugger on the wiki, I can't find: http://wiki.wocommunity.org/display/WOL/Using+the+debugger But if I search google for debugger site:wocommunity.org it's the first result. Ramsey On Mar 12, 2012, at 10:36 AM, Chuck Hill wrote: I HATE wikibooks. But Google loves them. On 2012-03-12, at 10:34 AM, Pascal Robert wrote: No link to the wikibooks.org site please :-) http://wiki.wocommunity.org/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca -- 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/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: SQL RTRIM
Maybe it's time to index everything with Elastic Search... Google's search seems to work better than ours too :-/ If I search for debugger on the wiki, I can't find: http://wiki.wocommunity.org/display/WOL/Using+the+debugger But if I search google for debugger site:wocommunity.org it's the first result. Ramsey On Mar 12, 2012, at 10:36 AM, Chuck Hill wrote: I HATE wikibooks. But Google loves them. On 2012-03-12, at 10:34 AM, Pascal Robert wrote: No link to the wikibooks.org site please :-) http://wiki.wocommunity.org/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca -- 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/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: SQL RTRIM
On 2012-03-12, at 11:24 AM, Ramsey Gurley wrote: Google's search seems to work better than ours too :-/ If I search for debugger on the wiki, I can't find: http://wiki.wocommunity.org/display/WOL/Using+the+debugger But if I search google for debugger site:wocommunity.org it's the first result. And if you google debugger WebObjects WikiBooks is the fourth link. :-P Even if we use Elastic Search, I'd guess TFWS* will use Google not the WOCommunity site. * Those Few Who Search On Mar 12, 2012, at 10:36 AM, Chuck Hill wrote: I HATE wikibooks. But Google loves them. On 2012-03-12, at 10:34 AM, Pascal Robert wrote: No link to the wikibooks.org site please :-) http://wiki.wocommunity.org/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca -- 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com -- 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: SQL RTRIM
Le 2012-03-12 à 14:55, Chuck Hill a écrit : On 2012-03-12, at 11:24 AM, Ramsey Gurley wrote: Google's search seems to work better than ours too :-/ If I search for debugger on the wiki, I can't find: http://wiki.wocommunity.org/display/WOL/Using+the+debugger But if I search google for debugger site:wocommunity.org it's the first result. And if you google debugger WebObjects WikiBooks is the fourth link. :-P Even if we use Elastic Search, I'd guess TFWS* will use Google not the WOCommunity site. * Those Few Who Search 71.23% Search Traffic 6,439 Visits 15.12% Referral Traffic1,367 Visits 13.65% Direct Traffic 1,234 Visits Visits With Site Search 360 Visits 3.30% So 6439 visits coming from Google searches, and 360 visits who did a search inside the wiki. Hence the importance of finding and replacing old links to the new ones... On Mar 12, 2012, at 10:36 AM, Chuck Hill wrote: I HATE wikibooks. But Google loves them. On 2012-03-12, at 10:34 AM, Pascal Robert wrote: No link to the wikibooks.org site please :-) http://wiki.wocommunity.org/display/WO/EOF-Modeling-Common+Pitfalls+and+Troubleshooting Hi Ron, What is the Value Type in the EOModel? See http://en.wikibooks.org/wiki/WebObjects/EOF/Modeling/Common_Pitfalls_and_Troubleshooting Which database? Chuck On 2012-03-12, at 3:38 AM, Ron X wrote: hi everybody is it possible to impact to the framework (EOF) to avoid RTRIM in sql-queries? the problem is that i have normal string values in database. for example - name or serial number. this fields have values without spaces. but framework does trim anyway: RTRIM(t0.serialNumber), ... etc. thank you. ___ 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/probert%40macti.ca This email sent to prob...@macti.ca -- 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/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com -- 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: SQL RTRIM
Le 2012-03-12 à 15:06, Pascal Robert a écrit : Le 2012-03-12 à 14:55, Chuck Hill a écrit : On 2012-03-12, at 11:24 AM, Ramsey Gurley wrote: Google's search seems to work better than ours too :-/ If I search for debugger on the wiki, I can't find: http://wiki.wocommunity.org/display/WOL/Using+the+debugger But if I search google for debugger site:wocommunity.org it's the first result. And if you google debugger WebObjects WikiBooks is the fourth link. :-P Even if we use Elastic Search, I'd guess TFWS* will use Google not the WOCommunity site. * Those Few Who Search 71.23% Search Traffic6,439 Visits 15.12% Referral Traffic 1,367 Visits 13.65% Direct Traffic1,234 Visits Visits With Site Search 360 Visits 3.30% So 6439 visits coming from Google searches, and 360 visits who did a search inside the wiki. Hence the importance of finding and replacing old links to the new ones... While we are at it: Google Search: Top 1,000 daily queries. wiki.wocommunity.org Query Impressions Clicks Average PositionCTR 1. wolips 1,000 170 2.0 18.24% 2. eclipse encoding320 70 3.0 19.70% 3. eclipse default encoding90 60 1.5 55.67% 4. eclipse character encoding 70 50 1.1 63.24% 5. webobjects 1,600 50 13 3.07% 6. eclipse change encoding 60 35 1.0 54.10% 7. selenium commands 170 35 4.3 24.24% 8. project wonder 200 30 1.6 15.50% 9. selenium examples 320 30 5.5 9.45% 10. webobjects tutorial 150 30 12 19.08% So the wiki is more useful for people looking at how to change the encoding in Eclipse than with WebObjects information! I'm wondering why we have more than 1000 search for wolips on Google in the last 30 days. For wocommunity.org: Query Impressions Clicks Average PositionCTR 1. webobjects 1,600 110 3.5 8.04% 2. web objects 400 22 3.2 6.25% 3. wocommunity 35 22 1.0 72.73% 4. wowodc 30 22 1.0 66.67% 9. apple store wo 10 10 0.00% 10. apple web objects 16 108.5 0.00% 11. apple webobjects60 108.3 0.00% ___ 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: D2W Exception Handling
Hi all, I'm trying to handle validation of a mandatory to-one relationship using modern look. The relationship has to be set on a tab of a wizard creation page and I want to show an error right away instead of when the user has reached the final page and validateForSave is getting called. I'm surprised I couldn't find any references to how others handle this. Since no validation seems to occur by default when changing tabs, I set up a rule to force validation: 333 : (pageConfiguration = 'CreateCourse' and tabKey = 'Location') = validationKeys = (validateLocation) This calls my validateLocation() method and I can throw an exception. As mentioned by Ramsey in this old message I'm replying to, it gets swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting the propertyKey from the exception resolves this: if (d2wContext().propertyKey() == null erv.propertyKey() != null) { d2wContext().setPropertyKey(erv.propertyKey()); } Maybe this (or some better solution) should be added to ERD2W? It seems to me that the whole validationKeys approach is unusable otherwise? Any input appreciated! cheers, Fabian Am 26.08.2011 um 17:51 schrieb Ramsey Gurley: On Aug 26, 2011, at 2:05 AM, David Avendasora wrote: Hey D2Wers, So, I have business logic that executes in the setter of one of my attributes. In the setter? Any reason why you don't use validateKey() or maybe validateFor*()? I've learned the hard way that business logic in a setter is a sign of bad things to come. It's like exposing PKs and FKs. It works… sorta, for a while… but sooner or later… BLAM! It's checking to make sure that at least one of a set of objects has a flag set. If you try to remove the flag off the last object it should not allow it and throw and exception. All that works just fine. Now I want to catch that exception and display it to the user in a friendly way. Ideally basically the same as how standard validation exceptions are displayed in red at the top of the page in ERModernLook. I've tried throwing a ValidationException and also tried other exceptions, and either it is ignored with no user feedback (ValidationException), or I get the standard, completely disruptive exception page (for all others). I've tried to find the extension point to put in my own exception handling, but it's apparently not where I thought it was - ERD2WInspectPage#tryToSaveChanges. Am I doing it wrong, or just looking in the wrong place? Dave I suspect your validation exception may be getting swallowed in ERD2WPage's validationFailedWithException method. Put a breakpoint in there and follow the execution. If you throw an ERXValidationException and the d2wContext().propertyKey() is null, then the exception never makes it into the error messages dictionary. I've planned on fixing this, but I want to make the validation handling use a plugable delegate with a default similar to the one now. That way, I hope to build a new implementation so that I can provide enhanced validation on something like an editable list page where you may have multiple objects with different validation exceptions related to them. Ramsey ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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: Inappropriate OGNL expression
should it not just be wo:BuildManifest transactions=~transactionsForSpec(revisionItem) / ? simon On 12 March 2012 14:30, Pascal Robert prob...@macti.ca wrote: Hi list, I was calling a method by OGNL inside a component to fetch an array inside a WORepetition, and it worked well. Now, I moved some code to a sub-component and I have to pass the array I get from the method to the component. So I did: wo:BuildManifest transactions=$~transactionsForSpec(revisionItem) / But I'm getting: ognl.InappropriateExpressionException: Inappropriate OGNL expression: transactionsForSpec(revisionItem) Funny thing is that it does work even if I'm getting this, the sub-component is called and the array have the right objects. So I'm curious of finding out why I'm getting this exception even if it works as expected. ___ 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/simon%40potwells.co.uk This email sent to si...@potwells.co.uk ___ 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: D2W Exception Handling
On Mar 12, 2012, at 1:00 PM, Fabian Peters wrote: Hi all, I'm trying to handle validation of a mandatory to-one relationship using modern look. The relationship has to be set on a tab of a wizard creation page and I want to show an error right away instead of when the user has reached the final page and validateForSave is getting called. I'm surprised I couldn't find any references to how others handle this. Since no validation seems to occur by default when changing tabs, I set up a rule to force validation: 333 : (pageConfiguration = 'CreateCourse' and tabKey = 'Location') = validationKeys = (validateLocation) This calls my validateLocation() method and I can throw an exception. As mentioned by Ramsey in this old message I'm replying to, it gets swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting the propertyKey from the exception resolves this: if (d2wContext().propertyKey() == null erv.propertyKey() != null) { d2wContext().setPropertyKey(erv.propertyKey()); } Maybe this (or some better solution) should be added to ERD2W? I don't remember exactly why I didn't do this, but I think it broke query validation. Hence why I wanted to make a pluggable validation delegate. The logic in there has become so overloaded, it's difficult to make changes without breaking something for someone, somewhere :-) It seems to me that the whole validationKeys approach is unusable otherwise? Using validateKeys would be the correct approach. But were you actually able to display the error with validateKeys on an ERMODWizard page? Last time I tried that, it didn't work... https://github.com/projectwonder/wonder/issues/97 Ramsey Any input appreciated! cheers, Fabian Am 26.08.2011 um 17:51 schrieb Ramsey Gurley: On Aug 26, 2011, at 2:05 AM, David Avendasora wrote: Hey D2Wers, So, I have business logic that executes in the setter of one of my attributes. In the setter? Any reason why you don't use validateKey() or maybe validateFor*()? I've learned the hard way that business logic in a setter is a sign of bad things to come. It's like exposing PKs and FKs. It works… sorta, for a while… but sooner or later… BLAM! It's checking to make sure that at least one of a set of objects has a flag set. If you try to remove the flag off the last object it should not allow it and throw and exception. All that works just fine. Now I want to catch that exception and display it to the user in a friendly way. Ideally basically the same as how standard validation exceptions are displayed in red at the top of the page in ERModernLook. I've tried throwing a ValidationException and also tried other exceptions, and either it is ignored with no user feedback (ValidationException), or I get the standard, completely disruptive exception page (for all others). I've tried to find the extension point to put in my own exception handling, but it's apparently not where I thought it was - ERD2WInspectPage#tryToSaveChanges. Am I doing it wrong, or just looking in the wrong place? Dave I suspect your validation exception may be getting swallowed in ERD2WPage's validationFailedWithException method. Put a breakpoint in there and follow the execution. If you throw an ERXValidationException and the d2wContext().propertyKey() is null, then the exception never makes it into the error messages dictionary. I've planned on fixing this, but I want to make the validation handling use a plugable delegate with a default similar to the one now. That way, I hope to build a new implementation so that I can provide enhanced validation on something like an editable list page where you may have multiple objects with different validation exceptions related to them. Ramsey ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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: Many-To-Many Relationship across DB
Hi, cross models flattened many-to-many relationships with differents users are buggy in my experience. You should use the same user in all your connection dictionnaries, easely done with Wonder in your Properties : dbConnectURLGLOBAL = jdbc:oracle:thin:@db.test:1521:oracletest dbConnectUserGLOBAL = Oracle dbConnectPasswordGLOBAL = 1234 At the db level you should make sure the Oracle user has the needed rights on OracleConnect user. Good luck Alex 2012/3/12 Fabian Peters lists.fab...@e-lumo.com Hello Troy, Am 12.03.2012 um 10:58 schrieb Troy Lumasag: Hello everyone, I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having a simple insert problem. Welcome! My DB is Oracle and I have 2 Models(different User) . My EOModel would look like this: Model1 URL: jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnect Model2 URL: jdbc:oracle:thin:@db.test:1521:oracletest user:Oracle Now I have a Many-To-Many Relationship Teacher(Model1) - Student(Model2). My Code would look like this: public void save() { EOEditingContext ec = (ERXEC) ERXEC.newEditingContext(); Teacher teacher = new Teacher(); ec.insertObject(teacher); teacher.setName(teacherName); Student student1 = new Student(); Student student2 = new Student(); ec.insertObject(student1); ec.insertObject(student2); student1.setName(studentName1); student2.setName(studentName2); teacher.addToStudentsRelationship(student1); teacher.addToStudentsRelationship(student2); ec.saveChanges(); } I got this NPE everytime: NullPointerException at com.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67) I've never used Oracle but the problem seems to be related to PK generation. I guess the first thing to check would be whether you set the OraclePlugIn. You can set it in entity modeler (just put OraclePlugIn where I have PostgresqlPlugIn): cheers, Fabian Looks pretty simple but I'm stuck. Thank you in advance! Regards, Troy ___ 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.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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/alexis.tual%40gmail.com This email sent to alexis.t...@gmail.com attachment: PastedGraphic-3.png ___ 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: Many-To-Many Relationship across DB
Hello Fabian, Many thanks for your quick reply but I already had the Plugin specified in my Model. On 3/12/2012 6:37 PM, Fabian Peters wrote: Hello Troy, Am 12.03.2012 um 10:58 schrieb Troy Lumasag: Hello everyone, I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having asimple insert problem. Welcome! My DB is Oracle and I have 2 Models(different User) . My EOModel would look like this: Model1 URL:jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnect Model2 URL:jdbc:oracle:thin:@db.test:1521:oracletest user:Oracle Now I have a Many-To-Many RelationshipTeacher(Model1) -Student(Model2). My Code would look like this: public void save() { EOEditingContext ec = (ERXEC) ERXEC.newEditingContext(); Teacher teacher = new Teacher(); ec.insertObject(teacher); teacher.setName(teacherName); Student student1 = new Student(); Student student2 = new Student(); ec.insertObject(student1); ec.insertObject(student2); student1.setName(studentName1); student2.setName(studentName2); teacher.addToStudentsRelationship(student1); teacher.addToStudentsRelationship(student2); ec.saveChanges(); } I got this NPE everytime: NullPointerException atcom.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) atcom.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) atcom.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67) I've never used Oracle but the problem seems to be related to PK generation. I guess the first thing to check would be whether you set the "OraclePlugIn". You can set it in entity modeler (just put "OraclePlugIn" where I have "PostgresqlPlugIn"): cheers, Fabian Looks pretty simple but I'm stuck. Thank you in advance! Regards, Troy ___ 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.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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: mootools question
Hi Tim, I updated the framework to include a default styling for the modal container. I believe those changes are now in the integration branch of Wonder. I also added a MooTools version of Ajax Ping. Best, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Mar 10, 2012, at 2:27 PM, Tim Worman wrote: I'm loving the new MooTools examples in Wonder. Thanks Johnny Miller for contributing the MooTools framework. I was messing with the MTAjaxModalContainer in a test project and noticed it wouldn't render properly w/o this css loaded in the MooTools example's Main.html. All my exposure to Ajax so far is through Wonder and the components have always had a default built-in style. I'm not familiar with MooTools but will it be generally accepted that someone that uses the MooTools framework will have to style the components themselves? Or maybe I just did something wrong when I tried to embed them? T ___ 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/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.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: mootools question
Thanks so much, that is really great. I am definitely poking around MooTools and will let you know what I find. I'll contribute whatever I can as well. I also found that if I invoke a MTAjaxModalContainer from my pure css drop menus, the dialog is automatically dismissed as soon as I move my mouse pointer off the menu. It's probably just a css conflict that I'll have to ferret out. thanks, Tim On Mar 12, 2012, at 3:57 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Tim, I updated the framework to include a default styling for the modal container. I believe those changes are now in the integration branch of Wonder. I also added a MooTools version of Ajax Ping. Best, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Mar 10, 2012, at 2:27 PM, Tim Worman wrote: I'm loving the new MooTools examples in Wonder. Thanks Johnny Miller for contributing the MooTools framework. I was messing with the MTAjaxModalContainer in a test project and noticed it wouldn't render properly w/o this css loaded in the MooTools example's Main.html. All my exposure to Ajax so far is through Wonder and the components have always had a default built-in style. I'm not familiar with MooTools but will it be generally accepted that someone that uses the MooTools framework will have to style the components themselves? Or maybe I just did something wrong when I tried to embed them? T ___ 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/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.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: Timestamps and Oracle
Thanks for your answer, that eases things with this setup. But in our case, we should store dates in our timezone because DB is accessed by other means and I found the problem ! The timezone was specified in litteral Pacific/Noumea which seems to confuse Java, by changing it to GMT+11, all is sweet : - dates are saved in GMT+11 representation - dates are read as GMT+11 without any conversion Cheers, Alex 2012/2/26 Alexander Spohr a...@freeport.de We always store times without any time zone in the database. WO and Java use UTC and the client then converts that to local time (whatever that is). Just works (for us). atze Am 23.02.2012 um 02:32 schrieb Alexis Tual: Hi list, looks like moving to GMT+11 timezone gives you a nice sun in february but also headache with oracle and timezones. The application, the db and the users are in the same timezone (GMT+11), we set this in the Application constructor with the NSTimeZone.setDefault, TimeZone.setDefault, even -Duser.timezone= Now here's the problem : - the user enters a date, for example 21/02/2012 23h59 which is stored in Java as 21/02/2012 12h59 (GMT). - the jdbc driver (ojdbc5.jar Oracle JDBC Driver version - 11.1.0.7.0-Production) converts the date to 21/02/2012 23h59 - the db sets the column (of type DATE) : set my_date = '21/02/2012 23h59' UPDATE IP_DATES_OUVERTURE_DOM SET IP_DATES_FIN_DOM = ? WHERE (...) withBindings: 1:2012-02-21 23:59:00(ipDatesFinDom) - the user request the same date - the jdbc driver fetch the date as 21/02/2012 23h59 (no tz info at this level) - the adaptor creates a NSTimestamp with 21/02/2012 23h59 (GMT) - the formatter (configured with tz = GMT+11) shows : 22/02/2012 10h59 ... Something is obviously wrong with this setup, either : - the jdbc driver should not convert to GMT+11 when inserting, the db then stores only GMT dates - the jdbc driver or the adaptor should convert back to GMT when reading the date from the DB Any hint is welcomed, Thanks ! Alex ___ 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/atze%40freeport.de This email sent to a...@freeport.de ___ 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: mootools question
I appreciate that. I'm almost done with a project that has a couple of components I'd like to add to the framework Rotating billboard and a search suggestion box like on Apple.com. If you have any components that you'd like to see please let me know. Thanks, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Mar 12, 2012, at 1:08 PM, Tim Worman wrote: Thanks so much, that is really great. I am definitely poking around MooTools and will let you know what I find. I'll contribute whatever I can as well. I also found that if I invoke a MTAjaxModalContainer from my pure css drop menus, the dialog is automatically dismissed as soon as I move my mouse pointer off the menu. It's probably just a css conflict that I'll have to ferret out. thanks, Tim On Mar 12, 2012, at 3:57 PM, Johnny Miller jlmil...@kahalawai.com wrote: Hi Tim, I updated the framework to include a default styling for the modal container. I believe those changes are now in the integration branch of Wonder. I also added a MooTools version of Ajax Ping. Best, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Mar 10, 2012, at 2:27 PM, Tim Worman wrote: I'm loving the new MooTools examples in Wonder. Thanks Johnny Miller for contributing the MooTools framework. I was messing with the MTAjaxModalContainer in a test project and noticed it wouldn't render properly w/o this css loaded in the MooTools example's Main.html. All my exposure to Ajax so far is through Wonder and the components have always had a default built-in style. I'm not familiar with MooTools but will it be generally accepted that someone that uses the MooTools framework will have to style the components themselves? Or maybe I just did something wrong when I tried to embed them? T ___ 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/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.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: D2W Exception Handling
Hi Ramsey, swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting the propertyKey from the exception resolves this: if (d2wContext().propertyKey() == null erv.propertyKey() != null) { d2wContext().setPropertyKey(erv.propertyKey()); } Maybe this (or some better solution) should be added to ERD2W? I don't remember exactly why I didn't do this, but I think it broke query validation. Hence why I wanted to make a pluggable validation delegate. The logic in there has become so overloaded, it's difficult to make changes without breaking something for someone, somewhere :-) I haven't yet looked into query validation. How could I test this? It seems to me that the whole validationKeys approach is unusable otherwise? Using validateKeys would be the correct approach. But were you actually able to display the error with validateKeys on an ERMODWizard page? Last time I tried that, it didn't work... https://github.com/projectwonder/wonder/issues/97 Well, with the modification above it works for me. That's the only thing I had to change for it to work. I still wonder why this missing validation seems not to bother anybody. I'd expect validation of mandatory to-ones to just work. It's no fun if you edit something and on the 7th step you're told you forgot to set a property on the 1st step. Or is there something I'm overlooking? cheers, Fabian Ramsey Any input appreciated! cheers, Fabian Am 26.08.2011 um 17:51 schrieb Ramsey Gurley: On Aug 26, 2011, at 2:05 AM, David Avendasora wrote: Hey D2Wers, So, I have business logic that executes in the setter of one of my attributes. In the setter? Any reason why you don't use validateKey() or maybe validateFor*()? I've learned the hard way that business logic in a setter is a sign of bad things to come. It's like exposing PKs and FKs. It works… sorta, for a while… but sooner or later… BLAM! It's checking to make sure that at least one of a set of objects has a flag set. If you try to remove the flag off the last object it should not allow it and throw and exception. All that works just fine. Now I want to catch that exception and display it to the user in a friendly way. Ideally basically the same as how standard validation exceptions are displayed in red at the top of the page in ERModernLook. I've tried throwing a ValidationException and also tried other exceptions, and either it is ignored with no user feedback (ValidationException), or I get the standard, completely disruptive exception page (for all others). I've tried to find the extension point to put in my own exception handling, but it's apparently not where I thought it was - ERD2WInspectPage#tryToSaveChanges. Am I doing it wrong, or just looking in the wrong place? Dave I suspect your validation exception may be getting swallowed in ERD2WPage's validationFailedWithException method. Put a breakpoint in there and follow the execution. If you throw an ERXValidationException and the d2wContext().propertyKey() is null, then the exception never makes it into the error messages dictionary. I've planned on fixing this, but I want to make the validation handling use a plugable delegate with a default similar to the one now. That way, I hope to build a new implementation so that I can provide enhanced validation on something like an editable list page where you may have multiple objects with different validation exceptions related to them. Ramsey ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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: Many-To-Many Relationship across DB with different users
Hello Alexis, Thank you. cross models flattened many-to-many relationships with differents users are buggy in my experience. You should use the same user in all your connection dictionnaries, easely done with Wonder in your Properties : It needs to use different users :-P It looks like since the JDBC URL is the same, WebObjects is assuming that the two databases are the same, even though Oracle treats them differently since the user names are different. At the db level you should make sure the "Oracle" user has the needed rights on "OracleConnect" user. I'll check if the needed rights are set. Good luck Alex 2012/3/12 Fabian Peters lists.fab...@e-lumo.com Hello Troy, Am 12.03.2012 um 10:58 schrieb Troy Lumasag: Hello everyone, I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having asimple insert problem. Welcome! My DB is Oracle and I have 2 Models(different User) . My EOModel would look like this: Model1 URL:jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnect Model2 URL:jdbc:oracle:thin:@db.test:1521:oracletest user:Oracle Now I have a Many-To-Many RelationshipTeacher(Model1) -Student(Model2). My Code would look like this: public void save() { EOEditingContext ec = (ERXEC) ERXEC.newEditingContext(); Teacher teacher = new Teacher(); ec.insertObject(teacher); teacher.setName(teacherName); Student student1 = new Student(); Student student2 = new Student(); ec.insertObject(student1); ec.insertObject(student2); student1.setName(studentName1); student2.setName(studentName2); teacher.addToStudentsRelationship(student1); teacher.addToStudentsRelationship(student2); ec.saveChanges(); } I got this NPE everytime: NullPointerException atcom.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) atcom.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) atcom.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67) I've never used Oracle but the problem seems to be related to PK generation. I guess the first thing to check would be whether you set the "OraclePlugIn". You can set it in entity modeler (just put "OraclePlugIn" where I have "PostgresqlPlugIn"): cheers, Fabian Looks pretty simple but I'm stuck. Thank you in advance! Regards, Troy ___ 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.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.com ___ Do not post admin
Re: Many-To-Many Relationship across DB with different users
It looks like the problem is the join table. Where does that sit? I suspect that Propogate Primary Key is not going to work across databases. You might have to manage that manually. Chuck On 2012-03-12, at 4:56 PM, Troy Lumasag wrote: Hello Alexis, Thank you. cross models flattened many-to-many relationships with differents users are buggy in my experience. You should use the same user in all your connection dictionnaries, easely done with Wonder in your Properties : It needs to use different users :-P It looks like since the JDBC URL is the same, WebObjects is assuming that the two databases are the same, even though Oracle treats them differently since the user names are different. At the db level you should make sure the Oracle user has the needed rights on OracleConnect user. I'll check if the needed rights are set. Good luck Alex 2012/3/12 Fabian Peters lists.fab...@e-lumo.com Hello Troy, Am 12.03.2012 um 10:58 schrieb Troy Lumasag: Hello everyone, I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having a simple insert problem. Welcome! My DB is Oracle and I have 2 Models(different User) . My EOModel would look like this: Model1 URL: jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnect Model2 URL: jdbc:oracle:thin:@db.test:1521:oracletest user:Oracle Now I have a Many-To-Many Relationship Teacher(Model1) - Student(Model2). My Code would look like this: public void save() { EOEditingContext ec = (ERXEC) ERXEC.newEditingContext(); Teacher teacher = new Teacher(); ec.insertObject(teacher); teacher.setName(teacherName); Student student1 = new Student(); Student student2 = new Student(); ec.insertObject(student1); ec.insertObject(student2); student1.setName(studentName1); student2.setName(studentName2); teacher.addToStudentsRelationship(student1); teacher.addToStudentsRelationship(student2); ec.saveChanges(); } I got this NPE everytime: NullPointerException at com.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67) I've never used Oracle but the problem seems to be related to PK generation. I guess the first thing to check would be whether you set the OraclePlugIn. You can set it in entity modeler (just put OraclePlugIn where I have PostgresqlPlugIn): Mail Attachment.png cheers, Fabian Looks pretty simple but I'm stuck. Thank you in advance! Regards, Troy ___ 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.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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/alexis.tual%40gmail.com This email sent to alexis.t...@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/tlumasag%40gmail.com This email sent to tluma...@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/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 smime.p7s Description: S/MIME cryptographic signature ___ 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:
Re: Many-To-Many Relationship across DB with different users
2012/3/13 Troy Lumasag tluma...@gmail.com Hello Alexis, Thank you. cross models flattened many-to-many relationships with differents users are buggy in my experience. You should use the same user in all your connection dictionnaries, easely done with Wonder in your Properties : It needs to use different users :-P Yes you can use different users to organize your data, but WO should use only one user to connect It looks like since the JDBC URL is the same, WebObjects is assuming that the two databases are the same, even though Oracle treats them differently since the user names are different. In fact it's the opposite, WebObjects creates one db connection per distinct connection dictionnary, in your case the user name differs so it creates 2 db connections. The Wonder properties overrides all the connection dictionnaries so your app will use only one connection. At the db level you should make sure the Oracle user has the needed rights on OracleConnect user. I'll check if the needed rights are set. In the eomodel you must alseo prefix the table names by the user. (ie : OracleConnect.TEACHER, Oracle.STUDENT) Alex Good luck Alex 2012/3/12 Fabian Peters lists.fab...@e-lumo.com Hello Troy, Am 12.03.2012 um 10:58 schrieb Troy Lumasag: Hello everyone, I'm new to Webobjects and Wonder and I enjoy it a lot. I'm having a simple insert problem. Welcome! My DB is Oracle and I have 2 Models(different User) . My EOModel would look like this: Model1 URL: jdbc:oracle:thin:@db.test:1521:oracletest user:OracleConnect Model2 URL: jdbc:oracle:thin:@db.test:1521:oracletest user:Oracle Now I have a Many-To-Many Relationship Teacher(Model1) - Student(Model2). My Code would look like this: public void save() { EOEditingContext ec = (ERXEC) ERXEC.newEditingContext(); Teacher teacher = new Teacher(); ec.insertObject(teacher); teacher.setName(teacherName); Student student1 = new Student(); Student student2 = new Student(); ec.insertObject(student1); ec.insertObject(student2); student1.setName(studentName1); student2.setName(studentName2); teacher.addToStudentsRelationship(student1); teacher.addToStudentsRelationship(student2); ec.saveChanges(); } I got this NPE everytime: NullPointerException at com.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845) at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373) at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1094) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1016) at your.app.components.Main.save(Main.java:67) I've never used Oracle but the problem seems to be related to PK generation. I guess the first thing to check would be whether you set the OraclePlugIn. You can set it in entity modeler (just put OraclePlugIn where I have PostgresqlPlugIn): cheers, Fabian Looks pretty simple but I'm stuck. Thank you in advance! Regards, Troy ___ 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.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.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/alexis.tual%40gmail.com This email sent to alexis.t...@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/tlumasag%40gmail.com This email sent to tluma...@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/alexis.tual%40gmail.com This email sent to alexis.t...@gmail.com image/png ___ 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
where should I look for missing velocity/eogen?
I've just made a new developer setup )go-golipse!) I noticed that when I added a property to the model file, the velocity eogen didn't run and generate a new _EO file with my added property whereas before this was automatic. Where should I look about that? I see my eogen config and all the files seem ok to me -- do I need to tell eclipse something? anyone have hints about that? ___ 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: D2W Exception Handling
On Mar 12, 2012, at 4:21 PM, Fabian Peters wrote: Hi Ramsey, swallowed in ERD2WPage since d2wContext().propertyKey() is null. Setting the propertyKey from the exception resolves this: if (d2wContext().propertyKey() == null erv.propertyKey() != null) { d2wContext().setPropertyKey(erv.propertyKey()); } Maybe this (or some better solution) should be added to ERD2W? I don't remember exactly why I didn't do this, but I think it broke query validation. Hence why I wanted to make a pluggable validation delegate. The logic in there has become so overloaded, it's difficult to make changes without breaking something for someone, somewhere :-) I haven't yet looked into query validation. How could I test this? I don't remember what broke or how I broke it. It was quite a while ago. Pushing the propertyKey into the d2wContext there will have other consequences though. Taking a second look at the code, it looks like you'll get errors if you try this in a nested page that propogates exceptions. It seems to me that the whole validationKeys approach is unusable otherwise? Using validateKeys would be the correct approach. But were you actually able to display the error with validateKeys on an ERMODWizard page? Last time I tried that, it didn't work... https://github.com/projectwonder/wonder/issues/97 Well, with the modification above it works for me. That's the only thing I had to change for it to work. Good to know. If no one else is having the issue, I can close it. I still wonder why this missing validation seems not to bother anybody. I think it's more complicated than that. The property key is not guaranteed to be an attribute or relationship. But if you'd like to try something different, you can always clone the wizard page template and create your own logic. I'd expect validation of mandatory to-ones to just work. It's no fun if you edit something and on the 7th step you're told you forgot to set a property on the 1st step. Or is there something I'm overlooking? It would also be no fun if a validation error from step four showed up in step one :-) The EO can't be validated until the last step when creating. If you want to validate parts of the EO before leaving a step, then validateKeys is currently the place to do it. cheers, Fabian Ramsey Any input appreciated! cheers, Fabian Am 26.08.2011 um 17:51 schrieb Ramsey Gurley: On Aug 26, 2011, at 2:05 AM, David Avendasora wrote: Hey D2Wers, So, I have business logic that executes in the setter of one of my attributes. In the setter? Any reason why you don't use validateKey() or maybe validateFor*()? I've learned the hard way that business logic in a setter is a sign of bad things to come. It's like exposing PKs and FKs. It works… sorta, for a while… but sooner or later… BLAM! It's checking to make sure that at least one of a set of objects has a flag set. If you try to remove the flag off the last object it should not allow it and throw and exception. All that works just fine. Now I want to catch that exception and display it to the user in a friendly way. Ideally basically the same as how standard validation exceptions are displayed in red at the top of the page in ERModernLook. I've tried throwing a ValidationException and also tried other exceptions, and either it is ignored with no user feedback (ValidationException), or I get the standard, completely disruptive exception page (for all others). I've tried to find the extension point to put in my own exception handling, but it's apparently not where I thought it was - ERD2WInspectPage#tryToSaveChanges. Am I doing it wrong, or just looking in the wrong place? Dave I suspect your validation exception may be getting swallowed in ERD2WPage's validationFailedWithException method. Put a breakpoint in there and follow the execution. If you throw an ERXValidationException and the d2wContext().propertyKey() is null, then the exception never makes it into the error messages dictionary. I've planned on fixing this, but I want to make the validation handling use a plugable delegate with a default similar to the one now. That way, I hope to build a new implementation so that I can provide enhanced validation on something like an editable list page where you may have multiple objects with different validation exceptions related to them. Ramsey ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com This email sent to lists.fab...@e-lumo.com ___ Do not post admin requests to the list.
Re: git error on a pull
On Mar 13, 2012, at 12:09 AM, Kieran Kelleher wrote: Of course it always a good idea to do 'git status' first to see what actual modifications exist in your working copy. Is it just me that finds great irony in the Irish guy being the voice of reason?? :-P (still getting payback for the It's so easy that even Dave Avendasora can do it!) Dave ___ 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: git error on a pull
On 2012-03-12, at 6:06 PM, David Avendasora wrote: On Mar 13, 2012, at 12:09 AM, Kieran Kelleher wrote: Of course it always a good idea to do 'git status' first to see what actual modifications exist in your working copy. Is it just me that finds great irony in the Irish guy being the voice of reason?? LOL! Maybe... :-P (still getting payback for the It's so easy that even Dave Avendasora can do it!) I think we should make that the 2012 WOWODC T-Shirt: WebObjects - so easy that even Dave Avendasora can do it! -- 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: where should I look for missing velocity/eogen?
Jesse: In your WOLips Build preferences, make sure Automatically Run EOGenerator is checked. (just in case) Also, after you run Golipse, in the lower right-hand corner of Eclipse will be where Workspace Mechanic lives (there's an icon). I think if you run it once it may fix this setting automatically? Tim On Mar 12, 2012, at 5:36 PM, Jesse Tayler jtay...@oeinc.com wrote: I've just made a new developer setup )go-golipse!) I noticed that when I added a property to the model file, the velocity eogen didn't run and generate a new _EO file with my added property whereas before this was automatic. Where should I look about that? I see my eogen config and all the files seem ok to me -- do I need to tell eclipse something? anyone have hints about that? ___ 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%40thetimmy.com This email sent to li...@thetimmy.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: where should I look for missing velocity/eogen?
On Mar 12, 2012, at 9:29 PM, Tim Worman li...@thetimmy.com wrote: Also, after you run Golipse, in the lower right-hand corner of Eclipse will be where Workspace Mechanic lives (there's an icon). I think if you run it once it may fix this setting automatically? ah, that may be it -- I did note that and fixed a long list of useful looking things... I'll report if that does not fix. thanks! ___ 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: git error on a pull
+1 :-p On Mar 12, 2012, at 9:08 PM, Chuck Hill ch...@global-village.net wrote: I think we should make that the 2012 WOWODC T-Shirt: WebObjects - so easy that even Dave Avendasora can do 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
Deployment Issue on Linux - Help Troubleshooting PLEASE
Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:636) Mar 13 02:40:43 Jaboo[2002] WARN NSLog - WOWorkerThread id=14 socket=null Workerthread exiting due to error, respawning with ID 10014... Exception in thread WorkerThread14 com.webobjects.foundation.NSForwardException [java.lang.InstantiationError] jaboo.proto.websvc.Application: Unable to create ERXWOContext54:java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I've bypassed Apache and wotaskd and am just doing a DirectConnection (which I've enabled) to the application I would really appreciate any help of guidance on how to troubleshoot further.. as I'm about to lose what little hair I've got left - my time is running out Warmest regards and a big hug to anyone who can help (please..) Rich ___ 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: Deployment Issue on Linux - Help Troubleshooting PLEASE
Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is freaking obscure) that the version of Wonder that is on your dev machine is much older than what is on the server. Check the size/date of ERExtensions.framework/Resources/Java/erextensions.jar Also check your app for code like: setContextClassName(ERXWOContext54); Chuck at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:636) Mar 13 02:40:43 Jaboo[2002] WARN NSLog - WOWorkerThread id=14 socket=null Workerthread exiting due to error, respawning with ID 10014... Exception in thread WorkerThread14 com.webobjects.foundation.NSForwardException [java.lang.InstantiationError] jaboo.proto.websvc.Application: Unable to create ERXWOContext54:java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I've bypassed Apache and wotaskd and am just doing a
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
Hi Pascal Chuck, Thanks so much for your response, I'm using WebObjects 5.4.3 on my dev mac and the Wonder source from December time (I installed via Eclipse - How do I find out exactly which version I've have?). I'm convinced I would have used the same version on the Deployment machine as I built it at the same time as my Dev environment... This sounds really Noobish, but how do I find the installed version on my Deployment machine? I thought I had done an embeded install (the frameworks appear to be in the Frameworks directory under AppName.woa/Contents/Frameworks) Warm regards, Rich On 13/03/2012, at 4:32 PM, Pascal Robert wrote: Le 2012-03-12 à 23:09, Rich a écrit : Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) JSON is a representation, you do need a HTTP transport! Ok, you can use Direct Connect, which have its own mini Web server integrated, but by using Direct Connect, you can't use Apache caching, mod_rewrite, so yes you should use Apache in deployment. I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 Ok, so you get requests, but it fails. Which version of WebObjects are you running, and how did you install the Wonder frameworks? at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:636) Mar 13 02:40:43 Jaboo[2002] WARN NSLog - WOWorkerThread id=14 socket=null Workerthread exiting due to error, respawning with ID 10014... Exception in thread WorkerThread14 com.webobjects.foundation.NSForwardException [java.lang.InstantiationError] jaboo.proto.websvc.Application: Unable to create ERXWOContext54:java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I've bypassed Apache and wotaskd and am just doing a DirectConnection (which I've enabled) to the application I would really appreciate any help of guidance on how to troubleshoot further.. as
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
Hi Rich, On 2012-03-12, at 8:57 PM, Rich wrote: Hi Pascal Chuck, Thanks so much for your response, I'm using WebObjects 5.4.3 on my dev mac and the Wonder source from December time (I installed via Eclipse - How do I find out exactly which version I've have?). It is less straightforward now that it is on git. Wonder changes so fast that there are not really any versions. You have to manage that yourself. I'm convinced I would have used the same version on the Deployment machine as I built it at the same time as my Dev environment... This sounds really Noobish, but how do I find the installed version on my Deployment machine? I thought I had done an embeded install (the frameworks appear to be in the Frameworks directory under AppName.woa/Contents/Frameworks) If that is where the framework are, then that should be considered the installed version. You can confirm by looking at the classpath file at AppName.woa/Contents/UNIX/UNIXClassPath.txt You should see lines like this: APPROOT/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar Chuck On 13/03/2012, at 4:32 PM, Pascal Robert wrote: Le 2012-03-12 à 23:09, Rich a écrit : Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) JSON is a representation, you do need a HTTP transport! Ok, you can use Direct Connect, which have its own mini Web server integrated, but by using Direct Connect, you can't use Apache caching, mod_rewrite, so yes you should use Apache in deployment. I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 Ok, so you get requests, but it fails. Which version of WebObjects are you running, and how did you install the Wonder frameworks? at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:636) Mar 13 02:40:43 Jaboo[2002] WARN NSLog - WOWorkerThread id=14 socket=null Workerthread exiting due to error, respawning with ID
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
When you say Embed the Framework (All of them) you mean only the ones relevant to my App right? - or do you mean ALL of the Wonder frameworks On 13/03/2012, at 4:48 PM, Pascal Robert wrote: Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is freaking obscure) that the version of Wonder that is on your dev machine is much older than what is on the server. Check the size/date of ERExtensions.framework/Resources/Java/erextensions.jar Also check your app for code like: setContextClassName(ERXWOContext54); Chuck at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021) at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986) at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:636) Mar 13 02:40:43 Jaboo[2002] WARN NSLog - WOWorkerThread id=14 socket=null Workerthread exiting due to error, respawning with ID 10014... Exception in thread WorkerThread14 com.webobjects.foundation.NSForwardException [java.lang.InstantiationError] jaboo.proto.websvc.Application: Unable to
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
OK, I'll give that a try now, I didn't have all the check ticked. Also my Unix ClassPath (from you previous message) was showing a mix of locations for the frameworks, so hopefully this will sort that out. On 13/03/2012, at 5:19 PM, Chuck Hill wrote: I meant all of the ones that your app is using, including the WebObjects frameworks that it is using. The goal is one self contained directory. There are not transitive dependancies between frameworks so if a framework is NOT included in your application project, then you don't need it. This should take care of it automatically: PastedGraphic-9.pdf Chuck On 2012-03-12, at 9:15 PM, Rich wrote: When you say Embed the Framework (All of them) you mean only the ones relevant to my App right? - or do you mean ALL of the Wonder frameworks On 13/03/2012, at 4:48 PM, Pascal Robert wrote: Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is freaking obscure) that the version of Wonder that is on your dev machine is much older than what is on the server. Check the size/date of ERExtensions.framework/Resources/Java/erextensions.jar Also check your app for code like: setContextClassName(ERXWOContext54); Chuck at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:126) at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
On 2012-03-12, at 9:24 PM, Rich wrote: OK, I'll give that a try now, I didn't have all the check ticked. Also my Unix ClassPath (from you previous message) was showing a mix of locations for the frameworks, so hopefully this will sort that out. The ERExtensions one is the most critical right now. On 13/03/2012, at 5:19 PM, Chuck Hill wrote: I meant all of the ones that your app is using, including the WebObjects frameworks that it is using. The goal is one self contained directory. There are not transitive dependancies between frameworks so if a framework is NOT included in your application project, then you don't need it. This should take care of it automatically: PastedGraphic-9.pdf Chuck On 2012-03-12, at 9:15 PM, Rich wrote: When you say Embed the Framework (All of them) you mean only the ones relevant to my App right? - or do you mean ALL of the Wonder frameworks On 13/03/2012, at 4:48 PM, Pascal Robert wrote: Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is freaking obscure) that the version of Wonder that is on your dev machine is much older than what is on the server. Check the size/date of ERExtensions.framework/Resources/Java/erextensions.jar Also check your app for code like: setContextClassName(ERXWOContext54); Chuck at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at er.extensions.appserver.ERXApplication.handleActionRequestError(ERXApplication.java:1735) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:245) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
Mmm, OK I've rebuilt and my Unix classPath is showing all APPROOT/xxx for the frameworks, however it DOESNT have an entry for the ERXExtension framework in there - Should it? I've defiantly got an ERXExtension.framework folder in my APPROOT/Frameworks folder Just finishing fixing up the permissions and about to try and run it up again to see what happens On 13/03/2012, at 5:27 PM, Chuck Hill wrote: On 2012-03-12, at 9:24 PM, Rich wrote: OK, I'll give that a try now, I didn't have all the check ticked. Also my Unix ClassPath (from you previous message) was showing a mix of locations for the frameworks, so hopefully this will sort that out. The ERExtensions one is the most critical right now. On 13/03/2012, at 5:19 PM, Chuck Hill wrote: I meant all of the ones that your app is using, including the WebObjects frameworks that it is using. The goal is one self contained directory. There are not transitive dependancies between frameworks so if a framework is NOT included in your application project, then you don't need it. This should take care of it automatically: PastedGraphic-9.pdf Chuck On 2012-03-12, at 9:15 PM, Rich wrote: When you say Embed the Framework (All of them) you mean only the ones relevant to my App right? - or do you mean ALL of the Wonder frameworks On 13/03/2012, at 4:48 PM, Pascal Robert wrote: Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is freaking obscure) that the version of Wonder that is on your dev machine is much older than what is on the server. Check the size/date of ERExtensions.framework/Resources/Java/erextensions.jar Also check your app for code like: setContextClassName(ERXWOContext54); Chuck at com.webobjects.appserver.WOApplication.createContextForRequest(WOApplication.java:2039) at er.extensions.appserver.ERXApplication.createContextForRequest(ERXApplication.java:2083) at
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
On 2012-03-12, at 9:50 PM, Rich wrote: Mmm, OK I've rebuilt and my Unix classPath is showing all APPROOT/xxx for the frameworks, however it DOESNT have an entry for the ERXExtension framework in there - Should it? I'd hope so, that is where the ERXContext* classes live! I've defiantly got an ERXExtension.framework folder in my APPROOT/Frameworks folder EXExtensions with an S on the end, right? What is under that? Is there a Resources/Java/ERXExtensions.jar file? Just finishing fixing up the permissions and about to try and run it up again to see what happens Here is hoping... On 13/03/2012, at 5:27 PM, Chuck Hill wrote: On 2012-03-12, at 9:24 PM, Rich wrote: OK, I'll give that a try now, I didn't have all the check ticked. Also my Unix ClassPath (from you previous message) was showing a mix of locations for the frameworks, so hopefully this will sort that out. The ERExtensions one is the most critical right now. On 13/03/2012, at 5:19 PM, Chuck Hill wrote: I meant all of the ones that your app is using, including the WebObjects frameworks that it is using. The goal is one self contained directory. There are not transitive dependancies between frameworks so if a framework is NOT included in your application project, then you don't need it. This should take care of it automatically: PastedGraphic-9.pdf Chuck On 2012-03-12, at 9:15 PM, Rich wrote: When you say Embed the Framework (All of them) you mean only the ones relevant to my App right? - or do you mean ALL of the Wonder frameworks On 13/03/2012, at 4:48 PM, Pascal Robert wrote: Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is freaking obscure) that the version of Wonder that is on your dev machine is much older than what is on the server. Check the size/date of ERExtensions.framework/Resources/Java/erextensions.jar Also check your app for code like: setContextClassName(ERXWOContext54);
Re: Deployment Issue on Linux - Help Troubleshooting PLEASE
Hi Chuck, I think I've found the issue with my class path and ERExtensions framework, so just rebuilding again and re-deploying Really, really appreciate your help, and I'l let you know how I go Cheers, Rich On 13/03/2012, at 5:59 PM, Chuck Hill wrote: On 2012-03-12, at 9:50 PM, Rich wrote: Mmm, OK I've rebuilt and my Unix classPath is showing all APPROOT/xxx for the frameworks, however it DOESNT have an entry for the ERXExtension framework in there - Should it? I'd hope so, that is where the ERXContext* classes live! I've defiantly got an ERXExtension.framework folder in my APPROOT/Frameworks folder EXExtensions with an S on the end, right? What is under that? Is there a Resources/Java/ERXExtensions.jar file? Just finishing fixing up the permissions and about to try and run it up again to see what happens Here is hoping... On 13/03/2012, at 5:27 PM, Chuck Hill wrote: On 2012-03-12, at 9:24 PM, Rich wrote: OK, I'll give that a try now, I didn't have all the check ticked. Also my Unix ClassPath (from you previous message) was showing a mix of locations for the frameworks, so hopefully this will sort that out. The ERExtensions one is the most critical right now. On 13/03/2012, at 5:19 PM, Chuck Hill wrote: I meant all of the ones that your app is using, including the WebObjects frameworks that it is using. The goal is one self contained directory. There are not transitive dependancies between frameworks so if a framework is NOT included in your application project, then you don't need it. This should take care of it automatically: PastedGraphic-9.pdf Chuck On 2012-03-12, at 9:15 PM, Rich wrote: When you say Embed the Framework (All of them) you mean only the ones relevant to my App right? - or do you mean ALL of the Wonder frameworks On 13/03/2012, at 4:48 PM, Pascal Robert wrote: Le 2012-03-12 à 23:29, Chuck Hill a écrit : Hi Rich, On 2012-03-12, at 8:09 PM, Rich wrote: Hi, This is my first post to this list, so apologies if my protocol is not correct, or I miss something. Not much of a worry about that around here, we don't bite. This is not your average place on the Internet. I've been pulling my hair out for nearly a week now as I can't get my WO application running on my Linux server. Deployment is almost always a source of frustration and anguish. You are not alone. I am a Noobie to WebObjects (1st project), and developed a back end web-service for an iPhone / iPad application prototype project I was contracted to do. The project is at the point of completion, and I've been trying to make the WO application (Which runs just fine in Eclipse), work on the deployment server so I can hand it over (The Linux machine is running in VMWare). So, I have followed (several times), the 'Setup' and 'Deployment' instructions on http://wiki.wocommunity.org/display/WO/Deploying+on+Linux and think that I have everything deployed OK (Application and frameworks). I will gently suggest that this is your first and root problem. Embedding the frameworks (all of them!) in the Application can avoid so very many headaches. And who likes a painful deployment? +1 ! When I start up the WO application instance from the Java Monitor it seems to launch OK - The application log seems to have no issues and states the URL and Waiting for requests..., it's just when I make a request (GET) just using a browser, I don't get any response data - No error at all in the browser, just an empty / blank page - I know I should be getting some data back as there's data to serve for the request. You should be getting something back, even if just a short error message. The WO application is a fairly simple and has been based upon the ERRestRouteExample included with the ProjectWonder sources, but as I said I know the application runs just fine if launched form Eclipse (with the Eclipse http engine). I've got a suspicion it's something in my Apache setup, but I can't for the life of me think / see what it is - I'm not even use I need Apache as I don't need to serve any HTTP pages, just JSON response data (Please correct me if I'm wrong) It is not your Apache config. For a small site you don't strictly need Apache. But when you get larger and want to run multiple instances of your application to scale up, then you want Apache (or something that helps to distribute the load, Apache is probably the easy, cheap option here). I know requests are getting through to the Linux server (checked with tcpdump), and I can see the request in the WO application log with the following error, which I can't see to find anywhere on the net. [2012-3-13 2:40:43 GMT+00:00] WorkerThread14 java.lang.InstantiationError: jaboo.proto.websvc.Application: Unable to create ERXWOContext54 I think that means (and yeah, it is