From dandrews at mediaspansoftware.com Tue May 1 21:18:24 2007 From: dandrews at mediaspansoftware.com (Doug Andrews) Date: Tue May 1 22:18:46 2007 Subject: Odd MacOSClassPath.txt In-Reply-To: <88744C68-CFB2-40F8-9E6A-3BEAB4B3D9F5@mac.com> References: <53795e1f0704291242o27d6915dq3150af06ae5efc4a@mail.gmail.com> <88744C68-CFB2-40F8-9E6A-3BEAB4B3D9F5@mac.com> Message-ID: <0674439E-2E9E-4D6D-AE44-2F750D2C8899@mediaspansoftware.com> I am using xcode 2.4.1 to build my project. I recently started using a different machine to build. I've look and cannot find why it generates the following for the MacOSClassPath file: # JVM == java # JVMOptions == # JDB == jdb # JDBOptions == # ApplicationClass == Application HOMEROOT/ApplicationsHOMEROOT/APPROOT/Resources/Java/CircWeb.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaFoundation.framework/Resources/Java/javafoundation.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaEOControl.framework/Resources/Java/javaeocontrol.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaEOAccess.framework/Resources/Java/javaeoaccess.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaWebObjects.framework/Resources/Java/javawebobjects.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaXML.framework/Resources/Java/javaxml.jar HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/Frameworks/ FrontBasePlugIn.framework/Resources/Java/frontbaseplugin.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaDirectToWeb.framework/Resources/Java/javadirecttoweb.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaDTWGeneration.framework/Resources/Java/javadtwgeneration.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaEOProject.framework/Resources/Java/javaeoproject.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaWebServicesSupport.framework/Resources/Java/ javawebservicessupport.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaWebServicesClient.framework/Resources/Java/javawebservicesclient.jar HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/WebServer/Documents/ WebObjects/Java/com/webobjects HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/Java HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/Java HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Java HOMEROOT/ApplicationsHOMEROOT/Network/Library/Java HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaVM.framework/Classes/classes.jar HOMEROOT/ApplicationsHOMEROOT/WOROOT/Library/Frameworks/ JavaVM.framework/Classes/ui.jar HOMEROOT/ApplicationsHOMEROOT/LOCALROOT/Library/WebServer/Documents/ WebObjects/Java/com/webobjects This app won't launch because each line of the class path file is prefaced with "HOMEROOT/ApplicationsHOMEROOT". I've searched and have seen that this has happened to others before, but could not find the solution. Does this look familiar to anyone? From Serethos at web.de Wed May 2 03:15:34 2007 From: Serethos at web.de (Serethos@web.de) Date: Wed May 2 03:16:07 2007 Subject: WOLongResponsePage: odd wishes / false usage? Message-ID: <1062398820@web.de> I want to use the WOLongResponsePage and have successfully worked through the examples from apple. Now I thought that I could do something slight different from the examples, but there appear problems. My minimum example contains the classes Application, Main, WaitPage and in one case, Subcomponent. My first problem occurs, when I try to use the class Subcomponent as WOLong- ResponsePage but return a different WOComponent as waiting page to display during the long calculations: class Subcomponent extends WOLongResponsePage { ... public WOComponent refreshPageForStatus(Object o) { return pageWithName(WaitPage.class.getName()); } ... } The problem is that the refresh of the WOLongResponsePage seems to be interrupted: refreshPageForStatus(..) gets only called once and pageForResult(..) is never called. So question No1: How is it possible to use another waiting page as the WOLongResponsePage-class? Another problem occured when I tried to realize the WOLongResponsePage (LRP) as a local, inner class. Something like that: public class Main() { public WOComponent startLongQuery() { WOLongResponsePage query = new WOLongResponsePage(this.context()) { public Object performAction() { try { System.out.println("pausing .."); Thread.sleep(5000); } catch(InterruptedException e) { e.printStackTrace(); } return new Integer(5); } public WOComponent refreshPageForStatus( Object status ) { System.out.println("activating WaitPage "+status); return pageWithName(WaitPage.class.getName()); } public WOComponent pageForResult(Object v) { System.out.println("activating result page "+v); return pageWithName(NextPage.class.getName()); } }; query.setRefreshInterval(1); return query; } } There I get the error, that the backtrack-cache exceeded, no matter how big its size was chosen. I know that every refresh fills the cache with a whole site (plus every internal frame) but in my example this would be only one cache slot per refresh. The only thing I could image to cause problems is that the inner class is not a full component because it lacks a html and wod-file. My thought is that the displayed pages are WaitPage or as result NextPage. I'm looking forward for some explanations! Thx in advance _______________________________________________________________ SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 From deninger at avalon.net Wed May 2 20:18:23 2007 From: deninger at avalon.net (Michael Deninger) Date: Wed May 2 20:25:50 2007 Subject: Fetching in a thread Message-ID: <8290B78D-857A-400F-B9CA-B3A1053CFAAD@avalon.net> Hi everyone! I am working on optimizing an application I work with and wanted to know if anyone has successfully done the following: 1) Given that knowing which records the user is currently working with I can predict which records they will soon want and 2) Fetching and sorting those records can take several (2-10) seconds and otherwise interrupts their workflow Can I create a separate java thread to fetch those records to the default editing context and sort them so that when the user requests them, they appear almost instantly? If so, would anyone share some sample code? Regards, Mike Michael Deninger RPh. Ph.D. Partner, Towncrest Pharmacy 2306 Muscatine Ave. Iowa City, IA 52240 Ph: 319 337-3526 Fax: 319 337-5271 deninger@towncrest.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070502/034b11f2/attachment.html From lachlan.deck at gmail.com Wed May 2 21:52:06 2007 From: lachlan.deck at gmail.com (Lachlan Deck) Date: Wed May 2 21:52:15 2007 Subject: Fetching in a thread In-Reply-To: <8290B78D-857A-400F-B9CA-B3A1053CFAAD@avalon.net> References: <8290B78D-857A-400F-B9CA-B3A1053CFAAD@avalon.net> Message-ID: <20345583-23E4-4BE8-B255-F1EFFD9F9FD8@gmail.com> Hi Michael, On 03/05/2007, at 1:18 PM, Michael Deninger wrote: > I am working on optimizing an application I work with and wanted to > know if anyone has successfully done the following: > > 1) Given that knowing which records the user is currently working > with I can predict which records they will soon want and > 2) Fetching and sorting those records can take several (2-10) > seconds and otherwise interrupts their workflow > > Can I create a separate java thread to fetch those records to the > default editing context and sort them so that when the user > requests them, they appear almost instantly? Sure. As long as you use appropriate locking... but perhaps it'd make sense to use child editing contexts per page and, as such, per prediction [i.e., available component actions]. Each of these child ecs can have the default ec as their parent. This way your predictive ec is virtually ready to use by the time your component action is hit - being passed to the page prior to return such as: WOComponent nextPage = ( WOComponent )pageWithName ( SomePage.class.getName() ); nextPage.takeValueForKey( predictedEc, "workingContext" ); Or something along those lines. Perhaps if you had a PredictiveEditingContext subclass of EOEditingContext (which was instantiated with appropriate prediction info) then it wouldn't matter if its predictive worker thread had completed or not prior to the component action being called. Just my first impressions... with regards, -- Lachlan Deck From kieran_lists at mac.com Thu May 3 03:56:24 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Thu May 3 03:56:32 2007 Subject: Fetching in a thread In-Reply-To: <8290B78D-857A-400F-B9CA-B3A1053CFAAD@avalon.net> References: <8290B78D-857A-400F-B9CA-B3A1053CFAAD@avalon.net> Message-ID: Some alternative options might be worth considering (1 or more may just solve the fetch speed issue into the < 0.5ms range)..... 1) Have you looked at the actual slow queries hitting the db and looked at table index or indices to speed up those fetches? 2) "Fetching and sorting" .... are you using a FetchSpec that includes EOSortOrderings so the data comes back sorted from the fetch? 3) Is the table underlying the entity optimally designed .... no blobs, excessive attributes/fields that are only required when editing or viewing the single EO? 4) Fetching raw-rows for display lists and hydrating those into EOs as the user selects them individually for viewing/editing can be effective in large row fetches 5) If the SQL is just not optimal, then are you able to produce hand- written SQL that selects the records faster than the SQL produced by EOF? If so, that can be used in the FetchSpec hints. HTH, Kieran On May 2, 2007, at 11:18 PM, Michael Deninger wrote: > Fetching and sorting those records can take several (2-10) seconds > and otherwise interrupts their workflow -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070503/724c458f/attachment.html From ben at scheduleworks.com Fri May 4 04:52:51 2007 From: ben at scheduleworks.com (Smith Ben) Date: Fri May 4 04:52:56 2007 Subject: Developer Needed Message-ID: <1AA91F4D-8C7B-495D-8CF8-7CC2185ED50A@scheduleworks.com> Hello, My startup company, ScheduleWorks, is currently in need of a WebObjects programmer. We have won several high-profile business plan contests, and were recently selected for Lightspeed Venture Partners' Summer Grant Program. Among other awards, the program will fund a developer "internship" that will hopefully turn into a permanent team member position at the conclusion of the summer. The requirements for the program are that the developer can work from our interim location at Lightspeed's offices in Menlo Park, California from June 11 through August 17, and that the candidate be either a student or will graduate this spring. The rest of our team members participating in the program are currently Stanford MBA students. The ideal candidate would have experience with: - WebObjects - MySQL - OS X Server - AJAX development Additional information about ScheduleWorks and Lightspeed Venture Partners can be found here: http://www.scheduleworks.com http://www.lightspeedvp.com Please call or email me if you have any questions or may be interested in the position. Best, Ben Smith (801) 367-4177 ben@scheduleworks.com From gauravsunil at gmail.com Fri May 4 05:57:56 2007 From: gauravsunil at gmail.com (sunil gaurav) Date: Fri May 4 05:57:59 2007 Subject: database connection problem Message-ID: Hello frnds; I m very new to webobjects... i m trying to retrive data throgh erModeler from x-code in a table. i m geting no error but not getting any data from database too. i m not getting any data in dictionary.. can any one send me the whole code to me ..considering me as a layman...??? iff anyone has any e-book on webobject then plz forward that 2 me. From jerrywwalker at gmail.com Fri May 4 07:32:31 2007 From: jerrywwalker at gmail.com (Jerry W. Walker) Date: Fri May 4 07:32:39 2007 Subject: database connection problem In-Reply-To: References: Message-ID: <432B9F15-4F8A-46C8-B77C-5D4F3AAA7932@gmail.com> Hi, Sunil, Be sure that you're opening your EOModel in the EOModeler application rather than in Xcode's ER modeling editor. The former will provide you a view of your data, the latter will not (and will mess up your model for you as well). The easiest way to be sure of this is to start up EOModeler on its own, then open your EOModel from within it, or by dropping your model on its icon in the dock. Regards, Jerry On May 4, 2007, at 8:57 AM, sunil gaurav wrote: > Hello frnds; > I m very new to webobjects... i m trying to retrive data throgh > erModeler from x-code in a table. > i m geting no error but not getting any data from database too. > i m not getting any data in dictionary.. > can any one send me the whole code to me ..considering me as a > layman...??? > iff anyone has any e-book on webobject then plz forward that 2 me. > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- __ Jerry W. Walker, WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems jerrywwalker@gee-em-aye-eye-ell.com 203 278-4085 office From lachlan.deck at gmail.com Fri May 4 13:44:34 2007 From: lachlan.deck at gmail.com (Lachlan Deck) Date: Fri May 4 13:44:44 2007 Subject: database connection problem In-Reply-To: <432B9F15-4F8A-46C8-B77C-5D4F3AAA7932@gmail.com> References: <432B9F15-4F8A-46C8-B77C-5D4F3AAA7932@gmail.com> Message-ID: <02A1F357-2B4C-41B2-879A-ABD6320BBF5B@gmail.com> Hi there, On 05/05/2007, at 12:32 AM, Jerry W. Walker wrote: > Be sure that you're opening your EOModel in the EOModeler > application rather than in Xcode's ER modeling editor. The former > will provide you a view of your data, the latter will not (and will > mess up your model for you as well). > > The easiest way to be sure of this is to start up EOModeler on its > own, then open your EOModel from within it, or by dropping your > model on its icon in the dock. and to be on the safe-side (for future clicks on the model from within Xcode) go to Xcode > Preferences... > File Types Change the following to use /Developer/Applications/WebObjects/ EOModeler[.app] as an external editor folder > wrapper > wrapper.eomodeld with regards, -- Lachlan Deck From bob at apple.com Fri May 4 23:19:09 2007 From: bob at apple.com (Bob Frank) Date: Fri May 4 23:19:17 2007 Subject: MEETING: Chicago CocoaHeads / CAWUG Tuesday May 8th - Input Fuzzing Message-ID: <587DE7E8-B457-44C8-8BE4-2A4BADE4626A@apple.com> Hi all, This Tuesday will be our next meeting. I will be talking about input fuzzing. The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting this coming Tuesday, May 8th, at 6:00 PM at the Apple Store on Michigan Ave. PLEASE NOTE: We have a special treat this month, we get to use the Apple Store Studio space upstairs. If you don't see us, just ask any Apple Store person how to get upstairs to the Studio. Agenda: - Introductions & Announcements - Bob Frank on input fuzzing - Q & A - adjournment to O'Toole's When: Tuesday, May 8th, 6:00 PM Where: Apple Store Michigan Avenue 679 North Michigan Ave. (at the corner of Huron & Michigan Ave.) Chicago, IL 60611 http://maps.yahoo.com/maps_result? ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611 - Bob on Input Fuzzing Input fuzzing is a technique to send semi-random bad data to your application to find security vulnerabilities and crashers. I will talk about what it is and how you can fuzz your own programs to strengthen them against attacks. - O'Tooles We will continue the discussion at our local watering hold Timothy O'Toole's at 622 Fairbanks (2 blocks east of the store). We also wish to thank the folks who run the theater space at the Apple store for letting us have our meetings there, and Jonathan 'Wolf' Rentzsch for hosting the CAWUG web site and our listserve. Thanks all. Also, if you are working on a project and would like to talk about it briefly / promote it, I think it would be fun for people to hear about other people's projects. Please email me off line and you can talk at a future meeting or would like a book to review. Future meetings dates: no June Meeting due to WWDC, July 10th CAWUG Resources Web Site: http://www.cawug.org/ RSS feed: http://www.cawug.org/rss.xml Mail list: http://redshed.net/mailman/listinfo/cawug-announce iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG (view on the web) iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads-CAWUG.ics (subscribe to in iCal) Cocoa Heads web site: http://cocoaheads.org/us/ChicagoIllinois/index.html Hope to see you at the meeting. -Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070505/f10120b4/attachment.html From bob at apple.com Tue May 8 13:17:09 2007 From: bob at apple.com (Bob Frank) Date: Tue May 8 13:17:16 2007 Subject: MEETING: Chicago CocoaHeads / CAWUG Tuesday May 8th - Input Fuzzing In-Reply-To: <587DE7E8-B457-44C8-8BE4-2A4BADE4626A@apple.com> References: <587DE7E8-B457-44C8-8BE4-2A4BADE4626A@apple.com> Message-ID: <888942A7-4E66-4168-AFA7-ED8F96A32791@apple.com> Hi All, It turns out that we'll be in the Theater tonight after all, so don't go up to the studio. See you there tonight. -Bob On May 5, 2007, at 1:19 AM, Bob Frank wrote: > Hi all, > > This Tuesday will be our next meeting. I will be talking about > input fuzzing. The Chicago CocoaHeads / Chicago Cocoa and > WebObjects User Group (CAWUG) is holding our next meeting this > coming Tuesday, May 8th, at 6:00 PM at the Apple Store on Michigan > Ave. > > > PLEASE NOTE: > > We have a special treat this month, we get to use the > Apple Store Studio space upstairs. > If you don't see us, just ask any Apple Store person how > to get upstairs to the Studio. > > > Agenda: > - Introductions & Announcements > - Bob Frank on input fuzzing > - Q & A > - adjournment to O'Toole's > > When: > Tuesday, May 8th, 6:00 PM > > Where: > Apple Store Michigan Avenue > 679 North Michigan Ave. (at the corner of Huron & Michigan Ave.) > Chicago, IL 60611 > http://maps.yahoo.com/maps_result? > ed=gYbE5Op_0Tokf_p7h61dwjbWtjC2r1YehzWw&csz=60611 > > > > > - Bob on Input Fuzzing > > Input fuzzing is a technique to send semi-random bad data to your > application to find security vulnerabilities and crashers. I will > talk about what it is and how you can fuzz your own programs to > strengthen them against attacks. > > > - O'Tooles > We will continue the discussion at our local watering hold Timothy > O'Toole's at 622 Fairbanks (2 blocks east of the store). > > > We also wish to thank the folks who run the theater space at the > Apple store for letting us have our meetings there, and Jonathan > 'Wolf' Rentzsch for hosting the CAWUG web site and our listserve. > Thanks all. > > Also, if you are working on a project and would like to talk about > it briefly / promote it, I think it would be fun for people to > hear about other people's projects. Please email me off line and > you can talk at a future meeting or would like a book to review. > > Future meetings dates: no June Meeting due to WWDC, July 10th > > > > CAWUG Resources > > Web Site: http://www.cawug.org/ > RSS feed: http://www.cawug.org/rss.xml > Mail list: http://redshed.net/mailman/listinfo/cawug-announce > iCal: http://ical.mac.com/chicagobob/ Chicago-CocoaHeads-CAWUG > (view on the web) > iCal: webcal://ical.mac.com/chicagobob/Chicago-CocoaHeads- > CAWUG.ics (subscribe to in iCal) > > Cocoa Heads web site: > http://cocoaheads.org/us/ChicagoIllinois/index.html > > Hope to see you at the meeting. > > -Bob > --- Bob Frank (312) 961 - 0509 [cell] bob@apple.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070508/f90e33fc/attachment.html From gauravsunil at gmail.com Tue May 8 22:02:30 2007 From: gauravsunil at gmail.com (sunil gaurav) Date: Tue May 8 22:02:34 2007 Subject: database connection problem In-Reply-To: References: Message-ID: can we work on x-code in windows environment..??? ..how we can install x-code in windows??? -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070509/3ceab076/attachment.html From lachlan.deck at gmail.com Tue May 8 22:23:01 2007 From: lachlan.deck at gmail.com (Lachlan Deck) Date: Tue May 8 22:23:13 2007 Subject: database connection problem In-Reply-To: References: Message-ID: Hi Sunil, On 09/05/2007, at 3:02 PM, sunil gaurav wrote: > can we work on x-code in windows environment..??? Xcode is a Mac application. It requires a mac environment just as windows executables require a windows environment (and particular version). > ..how we can install x-code in windows??? In short: Never the twain shall meet. Now really, what is it you're needing to do? Are you using Eclipse/ WOLips? with regards, -- Lachlan Deck From cheonghee at datasonic.com.my Wed May 9 03:12:10 2007 From: cheonghee at datasonic.com.my (Cheong Hee (Datasonic)) Date: Wed May 9 03:13:03 2007 Subject: database connection problem References: Message-ID: <005601c79222$88553f60$0901a8c0@CHNGXP> I supposed working if you will to work on windows, you will need WO5.2.4. It comes with Windows installation, and the ProjectBuilder is similar to the one in Xcode. However, the WO5.3 onwards does not support Windows platform, and you could only use Xcode or Elipse/WOLips. Cheers Cheong Hee ----- Original Message ----- From: sunil gaurav To: webobjects-dev@omnigroup.com Sent: Wednesday, May 09, 2007 1:02 PM Subject: Re: database connection problem can we work on x-code in windows environment..??? ..how we can install x-code in windows??? ------------------------------------------------------------------------------ _______________________________________________ WebObjects-dev mailing list WebObjects-dev@omnigroup.com http://www.omnigroup.com/mailman/listinfo/webobjects-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: /mailman/archive/webobjects-dev/attachments/20070509/8b4d3419/attachment.html From payroll at payonline.com Thu May 10 06:23:39 2007 From: payroll at payonline.com (Ed Herd) Date: Thu May 10 06:29:47 2007 Subject: no application available Message-ID: <2372622B-839D-4445-92BA-390CD55F13B9@payonline.com> I just upgraded to 10.4.x on my Xserve. My wo application will not start with the monitor. In order to make it start I must stop wotaskd and stop womonitor. Did anybody come up with an automated solution? From kieran_lists at mac.com Thu May 10 07:02:24 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Thu May 10 07:02:34 2007 Subject: no application available In-Reply-To: <2372622B-839D-4445-92BA-390CD55F13B9@payonline.com> References: <2372622B-839D-4445-92BA-390CD55F13B9@payonline.com> Message-ID: Just guessing Check ownership = chown -R appserver:appserverusr .... on your app and check permissions. On May 10, 2007, at 9:23 AM, Ed Herd wrote: > I just upgraded to 10.4.x on my Xserve. > My wo application will not start with the monitor. > In order to make it start I must stop wotaskd and stop womonitor. > Did anybody come up with an automated solution? > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From bgarnett at blueyonder.co.uk Tue May 15 06:24:34 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Tue May 15 06:28:32 2007 Subject: Off-line Message-ID: <4649B492.00000F.05108@BILL> Hello every one; I have a WO Application that runs on a server and uses MySQL for the data. There is a requirement to make the app available off-line and to be able to synchronise the 2 versions. Has anybody done something like this? Waht is the best approach? Thank you. Cheers, Bill. From ray at ganymede.org Tue May 15 08:55:32 2007 From: ray at ganymede.org (Ray Kiddy) Date: Tue May 15 09:02:18 2007 Subject: Off-line In-Reply-To: <4649B492.00000F.05108@BILL> References: <4649B492.00000F.05108@BILL> Message-ID: <3E383C33-8B00-4D95-B491-6CFFC4A64C68@ganymede.org> On May 15, 2007, at 6:24 AM, WILLIAM GARNETT wrote: > Hello every one; > > I have a WO Application that runs on a server and uses MySQL for > the data. > > There is a requirement to make the app available off-line and to be > able to > synchronise the 2 versions. > > Has anybody done something like this? Waht is the best approach? > > Thank you. > > Cheers, > > Bill. MySQL replication is quite capable. You may want to do this at that level, rather than in your application. If you are not allowing off-line editing (an interesting but complicated thing to provide), database-level replication should do for you. - ray From kieran_lists at mac.com Tue May 15 09:42:14 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Tue May 15 09:42:26 2007 Subject: Off-line In-Reply-To: <3E383C33-8B00-4D95-B491-6CFFC4A64C68@ganymede.org> References: <4649B492.00000F.05108@BILL> <3E383C33-8B00-4D95-B491-6CFFC4A64C68@ganymede.org> Message-ID: <28B1306E-9684-4D2A-B4AE-AE3E148FB773@mac.com> >> Hello every one; >> >> I have a WO Application that runs on a server and uses MySQL for >> the data. >> >> There is a requirement to make the app available off-line and to >> be able to >> synchronise the 2 versions. >> >> Has anybody done something like this? Waht is the best approach? >> >> Thank you. >> >> Cheers, >> >> Bill. > > MySQL replication is quite capable. .... and very easy to set up. It is reliable in a subnet, however I find that it can error out and stop too easily when a remote slave is replicating over SSL > You may want to do this at that level, rather than in your > application. > > If you are not allowing off-line editing (an interesting but > complicated thing to provide), database-level replication should do > for you. I think he wants to do offline editing ......... scary requirement for a web-app/central database paradigm. Perhaps the requirement could be achieved using broadband PC card slot wireless modem. > > - ray > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From zdbwo at Dartmouth.EDU Tue May 22 13:21:27 2007 From: zdbwo at Dartmouth.EDU (Zak Burke) Date: Tue May 22 13:21:50 2007 Subject: wocode.com contact info Message-ID: <465350C7.9060209@dartmouth.edu> Does anybody have contact info for somebody at wocode.com? The file-upload tool is broken (form submission appears to succeed, but results in a 0-byte file). I couldn't find contact details anywhere on the site, and email to webmaster@wocode.com bounced. zak. From JBrook at chellomedia.com Thu May 24 09:04:47 2007 From: JBrook at chellomedia.com (Brook, James) Date: Thu May 24 09:17:57 2007 Subject: Job Opportunities in Amsterdam Message-ID: <12172D48C46ABC4CB8B8E45A258D78EE1B480A@nlcmbhpms01.chello.com> All, We have openings for WebObjects developers in Amsterdam. Chellomedia is looking for people to join a growing development team. We publish broadband portals across Europe using a WebObjects content management system, offer Web-based video on demand through a WebObjects video shop and live TV over the Web through a WebObjects 'ticket office'. We have developed an advanced online television guide using WebObjects and there are many other exciting projects already under way, or coming up soon, so the team needs to grow. We are looking for motivated and intelligent people. You should enjoy and take pride in your work and should be capable of getting into complex problems quickly. We will consider everyone from trainees to experienced senior developers. Experience in the technologies we use would be beneficial, but is not essential: * WebObjects * HTML and CSS * JavaScript including Ajax * Eclipse * Oracle * Design Patterns * Ruby and PHP We are looking for people who are willing to come to Amsterdam and work for us on a long term basis. We offer competitive salaries and relocation packages. There are excellent tax benefits for skilled workers who relocate to the Netherlands. Amsterdam is a lovely city and an exciting and comfortable place to live. If you or someone you know might be interested, please contact me via email. Thanks James From anders_peterson at optimatika.se Fri May 25 09:44:55 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Fri May 25 09:45:36 2007 Subject: Deployment problem on OS X Server Message-ID: Hi, I have brand new installation of OS X Server and WO, and I'm trying to move an application that was previously deployed on Win2k. The application wont start in Monitor. Starting it from the command line is no problem - it starts and functions as I expect. With Monitor it dies very early. I can't get any kind of log output. Found a message on this list that suggests it is a java version problem. I'd like to test this possibility. When Monitor starts my application; which jvm is it using, and how can I control this? I develop and build using Java 1.5, and when I start the app from the command line it's using java 1.5. What does Monitor use? /Anders From anders_peterson at optimatika.se Fri May 25 09:55:56 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Fri May 25 09:56:30 2007 Subject: Deployment problem on OS X Server In-Reply-To: References: Message-ID: <4657151C.6010505@optimatika.se> Anders Peterson wrote: > Hi, > > I have brand new installation of OS X Server and WO, and I'm trying to > move an application that was previously deployed on Win2k. The > application wont start in Monitor. Starting it from the command line is > no problem - it starts and functions as I expect. With Monitor it dies > very early. I can't get any kind of log output. > > Found a message on this list that suggests it is a java version problem. > I'd like to test this possibility. When Monitor starts my application; > which jvm is it using, and how can I control this? > > I develop and build using Java 1.5, and when I start the app from the > command line it's using java 1.5. What does Monitor use? > > /Anders Ok, Monitor doesn't really do anything... and it's in the **ClassPath.txt file. What else could it be? /Anders From kieran_lists at mac.com Fri May 25 09:56:44 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Fri May 25 09:56:52 2007 Subject: Deployment problem on OS X Server In-Reply-To: References: Message-ID: java -version .... you are probably on 1.5 which is default and Monitor launches using default vm. Probably your problem is permissions since you are now using Unix and not Windoze. do sudo chown -R appserver:appserveradm myApp.woa and sudo chmod -R 550 myApp.woa When you deploy, you *should always* set ownership and permissions on the deployed app correctly. Monitor launches apps "as user appserver", so if appserver user does not have permissions to read all the files, then it is going to fail. On May 25, 2007, at 12:44 PM, Anders Peterson wrote: > Hi, > > I have brand new installation of OS X Server and WO, and I'm trying > to move an application that was previously deployed on Win2k. The > application wont start in Monitor. Starting it from the command > line is no problem - it starts and functions as I expect. With > Monitor it dies very early. I can't get any kind of log output. > > Found a message on this list that suggests it is a java version > problem. I'd like to test this possibility. When Monitor starts my > application; which jvm is it using, and how can I control this? > > I develop and build using Java 1.5, and when I start the app from > the command line it's using java 1.5. What does Monitor use? > > /Anders > > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From kieran_lists at mac.com Fri May 25 09:58:49 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Fri May 25 09:59:11 2007 Subject: Deployment problem on OS X Server In-Reply-To: References: Message-ID: <9A50FA77-2281-4565-99C5-22579B047D26@mac.com> Correcting myself ...... it is launched using the java bin defined in the bundle ClassPath file, however that is usually defaulting to just "java" which means the system default is used. On May 25, 2007, at 12:56 PM, Kieran Kelleher wrote: > Monitor launches using default vm. From anders_peterson at optimatika.se Fri May 25 10:08:10 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Fri May 25 10:35:13 2007 Subject: Deployment problem on OS X Server In-Reply-To: <9A50FA77-2281-4565-99C5-22579B047D26@mac.com> References: <9A50FA77-2281-4565-99C5-22579B047D26@mac.com> Message-ID: <465717FA.7020907@optimatika.se> I also corrected myself, or realized I didn't have to ask anything about the jvm stuff. You were right about the permissions. The app is now running. Silly of me not to think about this. It's always permission problems on unix systems. Is this something everyone always have to do when they deploy on Mac. This particular application was developed and built on Mac using WOLips, but moved to a different machine. (First I tried just copying the app from the Windows server. When that didn't work i built a new version/copy.) Thanks! /Anders Kieran Kelleher wrote: > Correcting myself ...... it is launched using the java bin defined in > the bundle ClassPath file, however that is usually defaulting to just > "java" which means the system default is used. > > On May 25, 2007, at 12:56 PM, Kieran Kelleher wrote: > >> Monitor launches using default vm. From kieran_lists at mac.com Fri May 25 11:46:19 2007 From: kieran_lists at mac.com (Kieran Kelleher) Date: Fri May 25 11:46:27 2007 Subject: Deployment problem on OS X Server In-Reply-To: <465717FA.7020907@optimatika.se> References: <9A50FA77-2281-4565-99C5-22579B047D26@mac.com> <465717FA.7020907@optimatika.se> Message-ID: <6FD71E05-522C-4E15-923E-C481FC734C27@mac.com> *Always* set permissions/ownership when you deploy on Mac/Linux/ Unix..... it is a fact of (secure) unix life. Think about it. WOLips built it and you were the user on your own machine. If you just copy over, how can you be sure that deployment server magically knows the user permissions needed for these files that will be used by some process to be launched by some other process on the server? In my case, and I am sure many have this, I have a short deployment script that copies the app over to my dest host and sets the permissions. If you have SSH set up to log in using keys and not passwords, this is fully automatable. Others probably have ant scripts that deploy.... perhaps someone can post an ant deployment script example. For example, here is a generic script that simply copies an app and sets permissions. This is usually called from other project specific scripts with the correct args supplied. (Again all assumes you have ssh key pair authorization between your machine and the server requiring no interaction from you) #!/bin/bash ## This app simply copies a webobjects app to a remote server and sets the permissions. ## It only copies the app to WebObjects apps dir and does not consider web server split install # Argument passed in ## Example /Library/WebObjects/Applications/MyApp.woa WOA_BUNDLE="$1" ## Example xmain2.remote (a ssh config alias in .ssh/config with key authentication) ## This ssh alias must have root access!! SSH_CONFIG="$2" ## Example /Library/WebObjects/Applications REMOTE_TARGET_DIR="$3" ## Target CHOWN, for example appserver:appserveradm TARGET_CHOWN="$4" ## Target CHMOD, for example 550 TARGET_CHMOD="$5" USAGE="Usage: $0 /path-to-woa/myapp.woa root@ssh-alias /app/dir/on/ remote appserver:appserverusr 550" # The root user on this machine needs to have dsa key access to root on target # and the ssh configuration named here must be defined in root's .ssh/ config file #TARGET_PERMISSIONS="appserver:appserveradm" # If arg not supplied, then error if [ "$WOA_BUNDLE" = "" ]; then echo $USAGE exit 1 fi # If arg not supplied, then error if [ "$SSH_CONFIG" = "" ]; then echo $USAGE exit 1 fi # If arg not supplied, then error if [ "$REMOTE_TARGET_DIR" = "" ]; then echo $USAGE exit 1 fi if [ ! -d $WOA_BUNDLE ]; then echo "$WOA_BUNDLE does not exist!" exit 3 fi ## Get bundle name itself WOA_NAME=${WOA_BUNDLE##/*/} echo WOA_NAME is $WOA_NAME # ALL SYSTEMS GO... # ==================================================================== # Copy deployment bundle to wo-app host and set ownership permissions # SSH_CONFIG host echo "scp -r $WOA_BUNDLE root@$SSH_CONFIG:$REMOTE_TARGET_DIR/" scp -r $WOA_BUNDLE root@$SSH_CONFIG:$REMOTE_TARGET_DIR/ echo "$SSH_CONFIG chown -R $TARGET_CHOWN $REMOTE_TARGET_DIR/$WOA_NAME" ssh root@$SSH_CONFIG "chown -R $TARGET_CHOWN $REMOTE_TARGET_DIR/ $WOA_NAME" echo "$SSH_CONFIG chmod -R $TARGET_CHMOD $REMOTE_TARGET_DIR/$WOA_NAME" ssh root@$SSH_CONFIG "chmod -R $TARGET_CHMOD $REMOTE_TARGET_DIR/ $WOA_NAME" echo "Done deploying $WOA_NAME" On May 25, 2007, at 1:08 PM, Anders Peterson wrote: > Is this something everyone always have to do when they deploy on Mac. From anders_peterson at optimatika.se Mon May 28 01:43:19 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Mon May 28 01:43:50 2007 Subject: prefetching and derived attributes - wrong SQL Message-ID: Hi, I have a FetchSpecification (built in code) that fetches "transactions". The entity TransactionRow has a derived attribute defined as price*quantity. To speed things up I have set the FetchSpecification to prefetch on the reference to "TransactionHead". Fetching the TransactionRows works, but when (pre)fetching the TransactionHeads we get an exception caused by trying to query price*quantity on TransactionHead. EOF has generated incorrect SQL. If I do not prefetch on the reference to TransactionHead or if don't qualify on price*quantity everything works fine. If I do both of those things I get incorrect SQL. I qualify on many different attributes in both TransactionRow and TransactionHead. Everything works just fine except the combination with a derived attribute and prefetching. /Anders From shiv.kumar at apple.com Mon May 28 06:28:49 2007 From: shiv.kumar at apple.com (Shiv Kumar) Date: Mon May 28 06:33:15 2007 Subject: Problem while using enctype = "multipart/form-data" Message-ID: Hi All, I have a WOFileUpload component in my Form. So used the enctype = "multipart/form-data", now after using other form fields are getting submitted. (What ever I set in the hidden field returns null). Can any one help me out. Thanks, - Shiv. From webobjects at anazys.com Mon May 28 07:04:20 2007 From: webobjects at anazys.com (WO Dev) Date: Mon May 28 07:33:54 2007 Subject: Problem while using enctype = "multipart/form-data" In-Reply-To: References: Message-ID: Hello Shiv, I've been experiencing the same thing on a project with or without linking onto Wonder. Please try to put your WOFileUpload as the first thing in the form to see if it works and let me know. Xavier > Hi All, > > I have a WOFileUpload component in my Form. So used the > enctype = > "multipart/form-data", now after using other form fields are getting > submitted. (What ever I set in the hidden field returns null). > > Can any one help me out. > > Thanks, > - Shiv. > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev > From programmingosx at mac.com Mon May 28 09:41:29 2007 From: programmingosx at mac.com (David Holt) Date: Mon May 28 09:41:37 2007 Subject: Problem while using enctype = "multipart/form-data" In-Reply-To: References: Message-ID: <88A00DF0-17B0-4FE6-976A-E902D3FEB5CC@mac.com> I hate to say this, but I forgot to do this on a new form last week and spent an hour banging my head against the monitor: Multiple submit binding on your form is set to "true"? David On 28 May 2007, at 6:28 AM, Shiv Kumar wrote: > Hi All, > > I have a WOFileUpload component in my Form. So used the > enctype = > "multipart/form-data", now after using other form fields are getting > submitted. (What ever I set in the hidden field returns null). > > Can any one help me out. > > Thanks, > - Shiv. > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev From shiv.kumar at apple.com Mon May 28 09:48:20 2007 From: shiv.kumar at apple.com (Shiv Kumar) Date: Mon May 28 09:52:57 2007 Subject: Problem while using enctype = "multipart/form-data" In-Reply-To: <88A00DF0-17B0-4FE6-976A-E902D3FEB5CC@mac.com> Message-ID: Yes. It is set to true. Thanks, - Shiv. On 5/28/07 10:11 PM, "David Holt" wrote: > I hate to say this, but I forgot to do this on a new form last week > and spent an hour banging my head against the monitor: Multiple > submit binding on your form is set to "true"? > > David > > On 28 May 2007, at 6:28 AM, Shiv Kumar wrote: > >> Hi All, >> >> I have a WOFileUpload component in my Form. So used the >> enctype = >> "multipart/form-data", now after using other form fields are getting >> submitted. (What ever I set in the hidden field returns null). >> >> Can any one help me out. >> >> Thanks, >> - Shiv. >> >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev > From wodeveloper at latinmail.com Mon May 28 12:17:39 2007 From: wodeveloper at latinmail.com (Dave E) Date: Mon May 28 12:23:43 2007 Subject: Starting apps port problem Message-ID: <20070528191739.B4961C9647B@smtp.latinmail.com> Hello list, I have installed a Mac OS X Server v10.4.8. The WebObjects services are running as well the java monitor on port 56789. When I add a new app trought the JavaMonitor the apps just die and never starts. If I kill the WOServices process and the process the app just started I can start the app trought the JavaMonitor. What seems to be the problem from my investigation is that for some unkown reason the wotask is starting but it doesn't let other proceses start. If I reboot the server and tried to start the apps I get the same problem. But if after the wotask starts I kill the process it restarts and all the apps are working fine. What can be the problem? So it seems that the first time wotask start is starting wrong. How can I check how is the process starting. If I were in Solarias I know that I can do it in the rc.d start up scripts, but I am not too familiar with MacOS X Server. Any pointers would be apreciated. Regards, Dave ?Miles de amigos con tus mismas aficiones! http://www.latinchat.com From anders_peterson at optimatika.se Tue May 29 06:24:54 2007 From: anders_peterson at optimatika.se (Anders Peterson) Date: Tue May 29 06:25:49 2007 Subject: prefetching and derived attributes - wrong SQL Message-ID: <465C29A6.4070308@optimatika.se> Filed a bug report. Problem ID: 5233495 Do Apple fix WO bugs these days? /Anders Anders Peterson wrote: > Hi, > > I have a FetchSpecification (built in code) that fetches > "transactions". The entity TransactionRow has a derived attribute > defined as price*quantity. To speed things up I have set the > FetchSpecification to prefetch on the reference to "TransactionHead". > > Fetching the TransactionRows works, but when (pre)fetching the > TransactionHeads we get an exception caused by trying to query > price*quantity on TransactionHead. EOF has generated incorrect SQL. > > If I do not prefetch on the reference to TransactionHead or if don't > qualify on price*quantity everything works fine. If I do both of those > things I get incorrect SQL. > > I qualify on many different attributes in both TransactionRow and > TransactionHead. Everything works just fine except the combination > with a derived attribute and prefetching. > > /Anders > From Susanne.Schneider at interActive-Systems.de Tue May 29 09:28:38 2007 From: Susanne.Schneider at interActive-Systems.de (Susanne Schneider) Date: Tue May 29 09:49:56 2007 Subject: Sorting of a to-many relation by eo? Message-ID: <465C54B6.4060207@interActive-Systems.de> Hi guys, I hope this is easy to answer, but I need to get certainty about this: This is my scenario: Entity A <-->> Entity B --> Entity C, with the relations "toBs" (A-->>B) and "toC" (B-->C). All primary and foreign keys are no class properties. As I have allready tested it is possible to implement a sorted array for the to-many relation from A to B like this: public NSArray sortedToBs() { EOSortOrdering sortB = new EOSortOrdering("toC", EOSortOrdering.CompareAscending); return EOSortOrdering.sortedArrayUsingKeyOrderArray(toBs(), new NSArray(sortB); } What does EOF do with this kind of sorting? Does that mean that the array of Bs is sorted by the foreign keys of C? That would match my requirements, otherwise I have to make the foreign key a class property to sort by. Or is that the better way anyway? Thanks in advance, Susanne -- Susanne Schneider Coordinator secuSuite Development iAS interActive Systems GmbH Dieffenbachstra?e 33 c, D-10967 Berlin fon +49(0)30 69 00 42 - 05 fax +49(0)30 69 00 42 - 10 mail susanne.schneider@interActive-Systems.de web http://www.interActive-Systems.de ---------------------------------------------------- Gesch?ftsf?hrer: Dr. Marko Reschke, Thomas Fritzsche Sitz der Gesellschaft: Berlin Amtsgericht Berlin Charlottenburg, HRB 106103B ----------------------------------------------------