From pgilquin at hotmail.com Mon Jul 2 21:37:51 2007 From: pgilquin at hotmail.com (Pierre Gilquin) Date: Mon Jul 2 21:38:14 2007 Subject: D2W newbie question Message-ID: Hi all, I try a simple thing with D2W and doesnot seem to work : On a query page of my entity, I had a simple query on the name (String) using D2WQueryStringOperator but this is not taken into account. The select generated by EOF has no clause and the whole table is retrived. Am I doing something wrong ? Thanks for you help. Pierre The rule : { "class" = "com.webobjects.directtoweb.Rule"; "author" = "100"; "rhs" = { "class" = "com.webobjects.directtoweb.Assignment"; "value" = "Nom Local"; "keyPath" = "displayNameForProperty"; }; "lhs" = { "class" = "com.webobjects.eocontrol.EOAndQualifier"; "qualifiers" = ( { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "query"; "selectorName" = "isEqualTo"; "key" = "task"; }, { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "SubstanceActive"; "selectorName" = "isEqualTo"; "key" = "entity.name"; }, { "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; "value" = "nomLocal"; "selectorName" = "isEqualTo"; "key" = "propertyKey"; } ); }; } From pgilquin at hotmail.com Wed Jul 4 01:09:58 2007 From: pgilquin at hotmail.com (Pierre Gilquin) Date: Wed Jul 4 01:10:06 2007 Subject: D2W newbie question References: Message-ID: It seems that everything works for simple entity but for unherited entity the user restriction is not used. The Sql generated contains only where clause for unheritage. Any workaround ? Thanks Pierre ----- Original Message ----- From: "Pierre Gilquin" To: Sent: Tuesday, July 03, 2007 6:37 AM Subject: D2W newbie question > Hi all, > > I try a simple thing with D2W and doesnot seem to work : > On a query page of my entity, I had a simple query on the name (String) using D2WQueryStringOperator but this is not taken into > account. > The select generated by EOF has no clause and the whole table is retrived. > Am I doing something wrong ? > Thanks for you help. > Pierre > > The rule : > > { > "class" = "com.webobjects.directtoweb.Rule"; > "author" = "100"; > "rhs" = { > "class" = "com.webobjects.directtoweb.Assignment"; > "value" = "Nom Local"; > "keyPath" = "displayNameForProperty"; > }; > "lhs" = { > "class" = "com.webobjects.eocontrol.EOAndQualifier"; > "qualifiers" = ( > { > "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; > "value" = "query"; > "selectorName" = "isEqualTo"; > "key" = "task"; > }, > { > "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; > "value" = "SubstanceActive"; > "selectorName" = "isEqualTo"; > "key" = "entity.name"; > }, > { > "class" = "com.webobjects.eocontrol.EOKeyValueQualifier"; > "value" = "nomLocal"; > "selectorName" = "isEqualTo"; > "key" = "propertyKey"; > } > ); > }; > } > > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev > From rminers at ipv.com Wed Jul 4 03:05:28 2007 From: rminers at ipv.com (minimum) Date: Wed Jul 4 03:05:38 2007 Subject: Trouble with WOWebServiceClient invoke In-Reply-To: <11007168.post@talk.nabble.com> References: <11007168.post@talk.nabble.com> Message-ID: <11428240.post@talk.nabble.com> These are steps I went through to get a WebObjects application to consume an ASP.net Web Service that has methods with 'out' parameters. 1. Use WSDL2Java to produce the necessary java files. Important thing to note is that classpath must be set, the syntax is java org.apache.axis.wsdl.WSDL2Java -cp The jar files I included were axis.jar commons_discovery.jar commons_logging.jar jaxrpc.jar log4j-1.2.8.jar saaj.jar wsdl4j.jar The WSDL-URL was the URL for my WebService. WSDL2Java produced a directory tree to match the Web Service and placed a bunch of java files in the tree. 2. Use NetBeans to produce a jar file. I used NetBeans 5.5.1. The project would not compile because the 'enum' keyword was introduced with JDK 1.5 and that was the default platform used and some of the java files use org.apache.axis.enum... This can be changed by right clicking on Libraries and selecting 'Properties - Manage Platforms - Add Platform', I selected 1.4.2 and then the home directory because it was marked with the 'contains JDK' icon. This is explained via the Help button. The build created a bunch of class files in the 'build/classes' directory and a jar file in the 'dist' directory. 3. Copy jar file to correct directory There must be a way of telling XCode where to look for packages referenced by 'import' directives, however I couldn't find one, I'd admit that I didn't try very hard to find one, so I just copied the jar file to '/Libraries/WebObjects/Extensions'. 4. Modify WebObject code These changes were derived from information in http://ws.apache.org/axis/java/user-guide.html#WSDL2JavaBuildingStubsSkeletonsAndDataTypesFromWSDL section 'WSDL2Java: Building stubs, skeletons, and data types from WSDL'. I added the import directives for the jar file. import com.ipv.WebService1; ... Service1 = service1 = new Service1Locator(); service1Soap soap = service1.getService1Soap(); IntHolder result = new IntHolder(); IntHolder arg1 = new IntHolder(); soap.getResultViaOutParam( result, arg1); And bingo it worked! NOTE - A few 'try' and 'catch' statements are needed but I omitted these for the sake of clarity. minimum wrote: > > I'm consuming a WebService written with ASP.net that has a method that > uses an 'out' parameter, i.e. of this form. > > [WebMethod] > int GetResultViaOutParam(out int out_param) > > I have no problems if the method has no 'out' parameters, i.e. of the > form. > > [WebMethod] > int GetResultWith2InParams(int param1, int param2) > > The WebObject code for the 'no out params' method is > > int arg1 = 3; > int arg2 = 4; > Object[] arguments = { new Integer(arg1), new Integer(arg2) }; > String operation = new String("GetResultWith2InParams"); > Object res = serviceClient().invoke(serviceName(), operation, arguments); > > The WebObject code for the 'out param' method is > > int arg1 = 0; > Object[] arguments = { new Integer(arg1) }; > String operation = new String("GetResultViaOutParam"); > Object res = serviceClient().invoke(serviceName(), operation, arguments); > > The exception that is raised by the attempt to invoke > 'WebMethodWithOutParam' is > > Error: Error invoking operation: javax.xml.rpc.JAXRPCException: Number of > parameters passed in (1) does not match the > number of IN/OUT parameters (0) from the addParameter() calls. > > How can I consume the 'GetResultViaOutParam' method? > -- View this message in context: http://www.nabble.com/Trouble-with-WOWebServiceClient-invoke-tf3883627.html#a11428240 Sent from the WebObjects-Dev mailing list archive at Nabble.com. From bob at apple.com Mon Jul 9 06:33:37 2007 From: bob at apple.com (Bob Frank) Date: Mon Jul 9 06:33:55 2007 Subject: MEETING: Chicago CocoaHeads / CAWUG Tuesday July 10th - iPhone & WWDC Recap In-Reply-To: <587DE7E8-B457-44C8-8BE4-2A4BADE4626A@apple.com> References: <587DE7E8-B457-44C8-8BE4-2A4BADE4626A@apple.com> Message-ID: <8059666F-DC0D-4941-941C-2791CA61DAF3@apple.com> Hi all, This Tuesday will be our next meeting. I will be talking about the public announcements from WWDC and about designing web content for the iPhone. The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting this coming Tuesday, July 10th, at 6:00 PM at the Apple Store on Michigan Ave. http://developer.apple.com/iphone/designingcontent.html Agenda: - Introductions & Announcements - Bob Frank on WWDC Recap - Bob on web development for the iPhone - Q & A - adjournment to O'Toole's When: Tuesday, July 10th, 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 WWDC Wrapup Lots was discussed at WWDC, even in the public keynote. The overall theme was get your apps ready for Leopard. I will discuss several of the points highlighted in the public keynote. - Bob on web development for the iPhone. The iPhone is here. I know some of our regulars already have them (if you already have an iPhone, I doubt I need to ask you to bring it to the meeting :-). Apple has just published this excellent guide about developing for the iPhone. I will discuss iPhone development issues. http://developer.apple.com/iphone/designingcontent.html - 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: July 10th, Aug. 14th (post C40 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/20070709/1ac2ca5f/attachment.html From jdunnett at math.uwaterloo.ca Mon Jul 9 08:37:15 2007 From: jdunnett at math.uwaterloo.ca (Jeff Dunnett) Date: Mon Jul 9 08:37:28 2007 Subject: Fetch Specifications and Regular Expressions Message-ID: <5EBC7334-DF0D-4EA4-A23D-FBAB1A7420B1@math.uwaterloo.ca> Hello Everyone, I have been searching through my various WebObjects books, the archives for this list and the web for a solution to my problem but I can't find it. I have a fetch specification: ((contest.contestEvent like $contest) and (processed = $processed) and (schoolNumber like $schoolNumber)) For the value of $schoolNumber I want to pass in a regular expression like ^05(69|70|71|72). For some reason when try to fetch objects (after having passed in that string) it returns no objects (even though I know there are some in the test database. I have tried a few variations on the regex such as ^05(69|70|71|72)????? etc. Can anyone point out what i am doing wrong? Can I even use regular expressions with a fetch specification? Regards, Jeff From jmarker at pgp.com Mon Jul 9 10:42:04 2007 From: jmarker at pgp.com (Joshua Marker) Date: Mon Jul 9 11:05:28 2007 Subject: Fetch Specifications and Regular Expressions In-Reply-To: <5EBC7334-DF0D-4EA4-A23D-FBAB1A7420B1@math.uwaterloo.ca> References: <5EBC7334-DF0D-4EA4-A23D-FBAB1A7420B1@math.uwaterloo.ca> Message-ID: Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 476 bytes Desc: not available Url : /mailman/archive/webobjects-dev/attachments/20070709/a4539e8b/PGP.bin From mschrag at mdimension.com Mon Jul 9 11:11:40 2007 From: mschrag at mdimension.com (Mike Schrag) Date: Mon Jul 9 11:12:05 2007 Subject: Fetch Specifications and Regular Expressions In-Reply-To: References: <5EBC7334-DF0D-4EA4-A23D-FBAB1A7420B1@math.uwaterloo.ca> Message-ID: <24F10990-56B4-45EF-8198-29C1D3B68033@mdimension.com> ERXRegExQualifier in Wonder supports in-memory, Oracle, MySQL, and Postgres. ms On Jul 9, 2007, at 1:42 PM, Joshua Marker wrote: > No, you can't use regular expressions with a fetch specification. > SQL has its own pattern matching Add multiple terms to the FS > dynamically, or use the SQL/EO pattern matching. Looks like the > first, based on what you're trying to do. > > > On 9 Jul 2007, at 8:37, Jeff Dunnett wrote: > >> Hello Everyone, >> >> I have been searching through my various WebObjects books, the >> archives for this list and the web for a solution to my problem but I >> can't find it. >> >> I have a fetch specification: >> >> ((contest.contestEvent like $contest) and (processed = $processed) >> and (schoolNumber like $schoolNumber)) >> >> For the value of $schoolNumber I want to pass in a regular expression >> like ^05(69|70|71|72). For some reason when try to fetch objects >> (after having passed in that string) it returns no objects (even >> though I know there are some in the test database. I have tried a >> few variations on the regex such as ^05(69|70|71|72)????? etc. Can >> anyone point out what i am doing wrong? Can I even use regular >> expressions with a fetch specification? >> >> Regards, >> Jeff >> >> _______________________________________________ >> WebObjects-dev mailing list >> WebObjects-dev@omnigroup.com >> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >> > > -- > Joshua Marker > Corporate Applications Manager > PGP Corporation - Rest Secured (TM) > > Tel: + 1 650 319 9357 | Fax 1 650 319 9001 > > This email and any attachments thereto may contain private, > confidential, and privileged material for the sole use of the > intended recipient. Any review, copying, or distribution of this > email (or any attachments thereto) by others is strictly > prohibited. If you are not the intended recipient, please contact > the sender immediately and permanently delete the original and any > copies of this email and any attachments thereto. > > > > _______________________________________________ > 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/20070709/e9a800dc/attachment.html From cawineguy at gmail.com Thu Jul 12 15:59:38 2007 From: cawineguy at gmail.com (Randy Wigginton) Date: Thu Jul 12 16:00:02 2007 Subject: Building as a WAR file Message-ID: <37E5BD69-D48C-4C25-9ABE-FB77342FEC78@gmail.com> Hello, haven't seen much activity here, even though I'm still using webobjects... The lack of activity is a bit worrisome. Anyway, I am trying to deploy a .war file to a linux machine; I've puzzled through a lot of it, but there are a few oddities, and I seem to be blocked from going any further. I edited my xcode build settings for deployment to be: SERVLET_COPY_JARS = YES; SERVLET_DEPLOY_LICENSE = "blah"; SERVLET_SINGLE_DIR_DEPLOY = YES; SERVLET_TRUE_WAR = YES; SERVLET_WEBAPPS_DIR = /Library/ WebObjects/WARFiles; SPLIT_INSTALL = NO; Then I do an xcodebuild -configuration Deployment. This creates a directory structure under /Library/WebObjects/WARFiles; it does NOT create the actual War file. Scratching my head, I created a 19M war file, upload it, and expand it under my tomcat directory. When I bring up the main page, everything works fine; of course, it is merely a list of links to other pages. When I go to another page, I get the following output in my catalina.out file: - An exception occurred while trying to open a channel: com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot create JDBC driver of class '' for connect URL 'null' - : Exception occurred while handling request: java.lang.IllegalStateException: _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext com.webobjects.eoaccess.EODatabaseContext@c063ad: failed to open database channel. Check your connection dictionary, and ensure your database is correctly configured. Any guesses what I need to do? The eomodel is out there, in the directory: appname/WEB-INF/appname.woa/Contents/Resources/mono2.eomodeld It is intended to connect to Oracle, but I have to guess that it is not finding the eomodel for some reason. From pyu at mac.com Fri Jul 13 12:09:12 2007 From: pyu at mac.com (Paul Yu) Date: Fri Jul 13 12:09:29 2007 Subject: Building as a WAR file In-Reply-To: <20070713190017.335B91960AD@forums.omnigroup.com> References: <20070713190017.335B91960AD@forums.omnigroup.com> Message-ID: > Randy I see much more activity on the Apple WebObjects-dev, Wonder, and WOLips lists at this point. So I think you should not worry. With regards to your tomcat issues. I think you need help EOF set the connection dictionary. I think you do that either in one of the xml config files or what we've done is set the connection dictionary at runtime by reading them in from a properties file. Paul > Message: 1 > Date: Thu, 12 Jul 2007 15:59:38 -0700 > From: Randy Wigginton > Subject: Building as a WAR file > To: webobjects-dev@omnigroup.com > Message-ID: <37E5BD69-D48C-4C25-9ABE-FB77342FEC78@gmail.com> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Hello, haven't seen much activity here, even though I'm still using > webobjects... The lack of activity is a bit worrisome. > > Anyway, I am trying to deploy a .war file to a linux machine; I've > puzzled through a lot of it, but there are a few oddities, and I seem > to be blocked from going any further. I edited my xcode build > settings for deployment to be: > SERVLET_COPY_JARS = YES; > SERVLET_DEPLOY_LICENSE = "blah"; > SERVLET_SINGLE_DIR_DEPLOY = YES; > SERVLET_TRUE_WAR = YES; > SERVLET_WEBAPPS_DIR = /Library/ > WebObjects/WARFiles; > SPLIT_INSTALL = NO; > > Then I do an xcodebuild -configuration Deployment. This creates a > directory structure under /Library/WebObjects/WARFiles; it does NOT > create the actual War file. Scratching my head, I created a 19M war > file, upload it, and expand it under my tomcat directory. When I > bring up the main page, everything works fine; of course, it is > merely a list of links to other pages. When I go to another page, I > get the following output in my catalina.out file: > - An exception occurred while trying to open a channel: > com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot create JDBC > driver of class '' for connect URL 'null' > - : > Exception occurred while handling request: > java.lang.IllegalStateException: _obtainOpenChannel -- > com.webobjects.eoaccess.EODatabaseContext > com.webobjects.eoaccess.EODatabaseContext@c063ad: failed to open > database channel. Check your connection dictionary, and ensure your > database is correctly configured. > > Any guesses what I need to do? The eomodel is out there, in the > directory: > appname/WEB-INF/appname.woa/Contents/Resources/mono2.eomodeld > > It is intended to connect to Oracle, but I have to guess that it is > not finding the eomodel for some reason. > > > > ------------------------------ > > _______________________________________________ > WebObjects-dev mailing list > WebObjects-dev@omnigroup.com > http://www.omnigroup.com/mailman/listinfo/webobjects-dev > > > End of WebObjects-dev Digest, Vol 26, Issue 4 > ********************************************* From bgarnett at blueyonder.co.uk Mon Jul 23 05:05:49 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Mon Jul 23 05:04:27 2007 Subject: File Download Message-ID: <46A4999D.00000F.04416@BILL> Hello everyone; I need to make an XML file from my online database and be able to download it and have it saved on the user's disk. Can anyone tell me how this can be done please? Cheers, Bill. From paul at plsys.co.uk Mon Jul 23 05:35:49 2007 From: paul at plsys.co.uk (Paul Lynch) Date: Mon Jul 23 05:36:29 2007 Subject: File Download In-Reply-To: <46A4999D.00000F.04416@BILL> References: <46A4999D.00000F.04416@BILL> Message-ID: On 23 Jul 2007, at 13:05, WILLIAM GARNETT wrote: > I need to make an XML file from my online database and be able to > download it and have it saved on the user's disk. Can anyone tell > me how this can be done please? Override appendToResponse, and use setContent() using your XML file. You probably want to set the mime type header as well. For further header values that might help, depending on what you want the users browser to do with the XML file, see Chuck's book. Paul From bgarnett at blueyonder.co.uk Wed Jul 25 05:52:07 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Wed Jul 25 05:50:43 2007 Subject: EOF Null Date Message-ID: <46A74777.000009.04028@BILL> Hello all; I am having a problem when trying to save a row with a Date column set to NULL in MySQL. Apparently MySQL has a problem with accepting NULL for a Date value. Does anyone know of a work-around to make EOF pass a value acceptable to MYSQL? Cheers, Bill. From ahorovitz at k12.com Wed Jul 25 07:05:09 2007 From: ahorovitz at k12.com (Alex Horovitz) Date: Wed Jul 25 07:23:06 2007 Subject: EOF Null Date In-Reply-To: <46A74777.000009.04028@BILL> References: <46A74777.000009.04028@BILL> Message-ID: <22E908D2-A068-4E76-A3C9-D5B28698FC5F@k12.com> On Jul 25, 2007, at 8:52 AM, WILLIAM GARNETT wrote: > I am having a problem when trying to save a row with a Date column > set to > NULL in MySQL. > > Apparently MySQL has a problem with accepting NULL for a Date value. > > Does anyone know of a work-around to make EOF pass a value > acceptable to > MYSQL? Hi Bill, Try passing in NSKeyValueCoding.NullValue for the date value... -Alex ? Alex Horovitz Senior Director of Enterprise Architecture & Standards Systems and Technology 2300 Corporate Park Dr. Herndon, VA 20171 office 703.483.7323 fax 703.483.7330 cell 978.808.0808 email ahorovitz@k12.com -------------- next part -------------- Skipped content of type multipart/related From bgarnett at blueyonder.co.uk Thu Jul 26 02:56:42 2007 From: bgarnett at blueyonder.co.uk (WILLIAM GARNETT) Date: Thu Jul 26 02:55:10 2007 Subject: EOF Null Date FIXED Message-ID: <46A86FDA.000011.04028@BILL> Hello everyone; and thanks for your replies. I must apologise as it turns out the error was not to to with the date. It was an error with another field - unfortunately I went off on a tangent as docs said that there was a problem in MySql with null dates. But it actually works fine. (For those curious about what my error was: I had a field called 'order' in MySQL and it is a reserved word - so that was what was flagging the error) Thanks again. Cheers, Bill.