Re: Can I use WOMultipartIterator API in WOComponent action methods?

2008-08-06 Thread Shravan Kumar. M
Hello Lachlan, I would like iterate through this api, and retrieve form key-value pairs for my business logic processing. Basically I use a third party UI interface which obviously sends the data across to the server encoded in the HTTP Request and this data has file data to be uploaded. So,

Re: "old" dob

2008-08-06 Thread Art Isbell
On Aug 6, 2008, at 5:15 PM, Chuck Hill wrote: On Aug 6, 2008, at 8:10 PM, Dan Faber wrote: I am having trouble saving the date of birth of "old" people. There seems to be something wrong with any date before 4/1/1918. When we try to save a birthdate that is before that date, it is saved aft

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Jeff Schmitz
I added one of the inverse relationships back in, and using ERXEC to create the new editing context I do NOT get the error. Just to make sure everything else was the same, I changed back to using "new EOEditingContext" to create the editing context, and the error returns. So, whatever is c

Fw: Re: "old" dob

2008-08-06 Thread Mersida Kurti
--- On Wed, 8/6/08, Mersida Kurti <[EMAIL PROTECTED]> wrote: From: Mersida Kurti <[EMAIL PROTECTED]> Subject: Re: "old" dob To: "Chuck Hill" <[EMAIL PROTECTED]> Date: Wednesday, August 6, 2008, 11:20 PM Well...the daylight savings time was established on March 31, 1918 in the U.S.  Maybe the so

Re: "old" dob

2008-08-06 Thread Chuck Hill
On Aug 6, 2008, at 8:10 PM, Dan Faber wrote: I am having trouble saving the date of birth of "old" people. There seems to be something wrong with any date before 4/1/1918. When we try to save a birthdate that is before that date, it is saved after subtracting one day. If the DOB is 3/15/19

"old" dob

2008-08-06 Thread Dan Faber
I am having trouble saving the date of birth of "old" people. There seems to be something wrong with any date before 4/1/1918. When we try to save a birthdate that is before that date, it is saved after subtracting one day. If the DOB is 3/15/1918, it is saved in the DB as 3/14/1918. When i

WO 5.4.2 Prototypes and Manual Model Assembly

2008-08-06 Thread Andrew Lindesay
Hello; I am cloning and modifying the model in the application constructor to get a read-only model. This worked very well until I started to use WO 5.4.2 prototypes. Once I started to use prototypes, the prototypes' values are not being loaded in as the model is constructed. EO

Tiger/5.3 v Leopard/5.3

2008-08-06 Thread David Avendasora
Hi all, Okay, I've been battling this for nearly a week now and I just can't figure it out: On my Tiger/5.3 desktop, I can build and deploy to a Servlet and launch my Java WebStart app with no problem, but if I take the same project and build it on my Leopard/5.3 laptop, the server half o

Re: Microsoft SQL Helpppp!

2008-08-06 Thread David Avendasora
Maybe I missed it, but is there a reason you are not setting it in the .eomodel file? Dave On Aug 6, 2008, at 4:56 PM, Mersida Kurti wrote: Hi, I put a hack in the code for the name of the driver to be changed to com.microsoft.sqlserver.jdbc.SQLServerDriver but I don't know how to go to

Re: Microsoft SQL Helpppp!

2008-08-06 Thread Mersida Kurti
Hi, I put a hack in the code for the name of the driver to be changed to com.microsoft.sqlserver.jdbc.SQLServerDriver but I don't know how to go to the connection dictionary and change it. The hack in the code works, but I'd like to do this the right way. Please let me know how to change the

Re: Microsoft SQL Helpppp!

2008-08-06 Thread Chuck Hill
Also check the connection dictionary, the driver should be com.microsoft.sqlserver.jdbc.SQLServerDriver And the URL like jdbc:sqlserver://host:1433;databaseName=Database Chuck On Aug 6, 2008, at 1:29 PM, Greg Bartnick wrote: Hi Mersida, Where did you place the sqljdbc.jar file? I don't s

Re: Microsoft SQL Helpppp!

2008-08-06 Thread Greg Bartnick
Hi Mersida, Where did you place the sqljdbc.jar file? I don't see it being included in the classpath that was printed out. If you put it in /Library/WebObjects/Extensions/ or /Library/Java/Extensions/ it should get added to the classpage automatically. Regards, Greg On Wed, Aug 6, 2008 at 1:14

Microsoft SQL Helpppp!

2008-08-06 Thread Mersida Kurti
Hi everyone, Seems like our sql database that one of our apps connects to has changed from sql 2000 to 2005 (yay!) Well not good news for us, because apparently it won't connect anymore.  I added the new jar file in there sqljdbc.jar and changed the url to reflect the change; therefore from jdb

Re: identified : Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Lachlan Deck
On 07/08/2008, at 12:30 AM, Philippe Roud wrote: Ok I found the problem, A whole bunch of shared data were fetched during launch by the didFinishLaunching() method of my application.java, and this method is not called when deployed as servlet... This was discussed on the list before, but

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Mike Schrag
Yep, that's what I did, as well as removing the offending "inverse" relationships. I changed to the ERXEC.newEditingContext originally to get rid of the "you don't have a delegate" error. What I didn't try was adding the "inverse" relationships back in while using ERXEC to create the new

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread netBrackets
Yep, that's what I did, as well as removing the offending "inverse" relationships. I changed to the ERXEC.newEditingContext originally to get rid of the "you don't have a delegate" error. What I didn't try was adding the "inverse" relationships back in while using ERXEC to create the new editi

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Mike Schrag
Actually, I was using: EOObjectStoreCoordinator parentObjectStore = new EOObjectStoreCoordinator(); EOEditingContext threadEditingContext = new EOEditingContext(parentObjectStore); You're using Wonder, right? I just setup a test case of this and it worked fine, except that you

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-06 Thread Chuck Hill
Hi Aaron, On Aug 6, 2008, at 8:24 AM, [EMAIL PROTECTED] wrote: Thank you Chuck and Mike for your thoughts on this rather scary issue. I will try to free up some cycles to build a "reduction" or "test case", but probably not today. Assuming I could make a reproducible and simple reduction

Re: Deployment Error

2008-08-06 Thread Thierry Kramis
thanks so much, totally missed that point, it starts now. Am 06.08.2008 um 18:45 schrieb Chuck Hill: http://www.gvcsitemaker.com/gvc.webobjects/faq&mode=single&recordID=19193 On Aug 6, 2008, at 9:43 AM, Thierry Kramis wrote: ok, so now i can start the app from the terminal but not from the

Re: Deployment Error

2008-08-06 Thread Chuck Hill
http://www.gvcsitemaker.com/gvc.webobjects/faq&mode=single&recordID=19193 On Aug 6, 2008, at 9:43 AM, Thierry Kramis wrote: ok, so now i can start the app from the terminal but not from the monitor. how can i see the details of the monitor startup process? Am 06.08.2008 um 18:08 schrieb Gu

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Chuck Hill
On Aug 6, 2008, at 12:10 AM, Philippe Roud wrote: Thanks for the hint, I'm back to the code and hit by something totally unrelated but somewhat annoying when building/cleaning: my webobjects "Properties" file, under Resources is not copied to the build/.woa/Content/Resources I can see i

Re: Deployment Error

2008-08-06 Thread Thierry Kramis
ok, so now i can start the app from the terminal but not from the monitor. how can i see the details of the monitor startup process? Am 06.08.2008 um 18:08 schrieb Guido Neitzer: On 06.08.2008, at 09:52, Thierry Kramis wrote: doubt that, I can ping the db host which is on the same subnet.

Re: Deployment Error

2008-08-06 Thread Guido Neitzer
On 06.08.2008, at 09:52, Thierry Kramis wrote: doubt that, I can ping the db host which is on the same subnet. Can you also connect to the right port? cug -- http://www.event-s.net ___ Do not post admin requests to the list. They will be ignored.

Re: Deployment Error

2008-08-06 Thread Thierry Kramis
doubt that, I can ping the db host which is on the same subnet. Am 06.08.2008 um 17:50 schrieb Guido Neitzer: On 06.08.2008, at 09:41, Thierry Kramis wrote: It always hangs after Openbase Plugin loades. What could this be? Network problem connecting to the OpenBase database? cug -- http:/

Deployment Error

2008-08-06 Thread Thierry Kramis
Hi all We're having trouble deploying a 5.4 app on a leopard server We're having: - Leopard 10.5.4 Server - Webobjects 5.4.1 - Exactly the same jar files and frameworks as on the dev machine, where it works It always hangs after Openbase Plugin loades. What could this be? Regards Thierry _

Re: Objects marked for delete fall into the updated objects bucket in processRecentChanges

2008-08-06 Thread arosenzweig
Thank you Chuck and Mike for your thoughts on this rather scary issue. I will try to free up some cycles to build a "reduction" or "test case", but probably not today. Assuming I could make a reproducible and simple reduction, anyone know what Database Apple would most likely like to see? I'm a

Re: WOLongResponsePage and sessions

2008-08-06 Thread Guido Neitzer
On 06.08.2008, at 07:20, Pascal Robert wrote: public Object performAction() throws Exception{ try{ os = new EOObjectStoreCoordinator(); os.lock(); ctx = ne

Re: Build Error

2008-08-06 Thread Thierry Kramis
No, it wasn't in there, I've no copied into the Resources directory. And now it works. Thanks for your kind help. Am 06.08.2008 um 16:57 schrieb David Avendasora: I assume it's in the project's Resources directory? If so, there is something horribly wrong with everyone's favorite woprojec

Re: Build Error

2008-08-06 Thread Mike Schrag
If you're using fluffy bunny layout (/Components, /Resources, / WebServerResources) you shouldn't be setting ANYTHING explicitly to be a resource, you should just drop it into the Resources folder and let it do its thing. If you're not using fluffy bunny layout, you should be. Make a new p

Re: Relationships across frameworks

2008-08-06 Thread Florijan Stamenkovic
Arrrgh, I knew when I was writing this that there was some reason I didn't do this in the first place, and why JBND uses generated setters to fire events... I just forgot what it was, in the meanwhile. takeStoredValues... is used to initialize EOs. Not a good place to place change

Re: Build Error

2008-08-06 Thread Thierry Kramis
Ok, now the build seems to work. But the eomodel file isnt included into the build. I've explicitely marked it as resource. Still no success. Any ideas? Thierry Am 06.08.2008 um 16:28 schrieb Mike Schrag: if yours work, don't mess with them ... many of mine still use javac because they wo

WebObjects developers wanted

2008-08-06 Thread Alex Horovitz
Hi Folks, Looking for WO folks in the Boston area. Please shoot me an email if you would be interested in talking about FTE work. Thanks! Alex Alexander J. Horovitz Chief Technology Officer The Brookeside Group, Inc. 524 Main Street, Acton MA 01720 978.266.9876 ext. 225 978.808.0808 (c)

identified : Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Philippe Roud
Ok I found the problem, A whole bunch of shared data were fetched during launch by the didFinishLaunching() method of my application.java, and this method is not called when deployed as servlet... This was discussed on the list before, but not solved...: http://www.mail-archive.com/webobjec

Re: Build Error

2008-08-06 Thread Mike Schrag
if yours work, don't mess with them ... many of mine still use javac because they work, i hate build systems, and the thought of messing with them makes me grumpy. On Aug 6, 2008, at 10:27 AM, David Avendasora wrote: On Aug 6, 2008, at 10:15 AM, Mike Schrag wrote: This is the line 229:

Re: Build Error

2008-08-06 Thread David Avendasora
On Aug 6, 2008, at 10:15 AM, Mike Schrag wrote: This is the line 229: You want wocompile rather than javac ... I don't know if this is an ant bug or just some way that our build files abuse something, but ant has this asinine behavior where it tries to traverse the entire directory s

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread David Avendasora
On Aug 6, 2008, at 10:06 AM, Lachlan Deck wrote: On 06/08/2008, at 9:42 PM, David Avendasora wrote: On Aug 6, 2008, at 7:21 AM, Philippe Roud wrote: Following Chuck advice I found the cause of the NPE: extraQualifierList = (NSArray) EOSharedEditingContext .defaultSharedEditingContext (

Re: Relationships across frameworks

2008-08-06 Thread Florijan Stamenkovic
Why? No one keeps you from adding the methods to your classes? You just shouldn't call them when you don't actually have the relationship... I was also thinking yesterday evening that I could easily define a class that would encapsulate relationship information, use that info during runti

Re: Build Error

2008-08-06 Thread Mike Schrag
This is the line 229: You want wocompile rather than javac ... I don't know if this is an ant bug or just some way that our build files abuse something, but ant has this asinine behavior where it tries to traverse the entire directory structure to find files that match the given pattern

Re: Problem with migration to 10.5.4

2008-08-06 Thread WIESEN Bruno
I don't embed frameworks and the frameworks installed on the server are 4.0.0.516 Le 6 août 08 à 15:27, David Avendasora a écrit : Bruno, Are you embedding the frameworks in the application? If not, what version of the Wonder frameworks are installed on the server? Dave On Aug 6, 2008,

Re: Problem with migration to 10.5.4

2008-08-06 Thread Mike Schrag
I saw this thread too but it didn't help me...I downloaded the latest frameworks from the site and no changes. But I found that if my Application class extends WOApplication instead of ERXApplication it works. This essentially makes you NOT a wonder application Fix committed. ms ___

Re: Build Error

2008-08-06 Thread David Avendasora
On Aug 6, 2008, at 10:02 AM, Thierry Kramis wrote: This is the line 229: Where did this build.xml file come from? Is it the one that was automatically created for you when you createed the project? I believe the problem is that new WO and Wonder projects don't store their source fi

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Lachlan Deck
On 06/08/2008, at 9:42 PM, David Avendasora wrote: On Aug 6, 2008, at 7:21 AM, Philippe Roud wrote: Following Chuck advice I found the cause of the NPE: extraQualifierList = (NSArray) EOSharedEditingContext .defaultSharedEditingContext ().objectsByEntityNameAndFetchSpecificationName ().v

Re: Build Error

2008-08-06 Thread Thierry Kramis
This is the line 229:     srcdir = "src" destdir = "bin">Here is the whole build file:

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread David Avendasora
On Aug 6, 2008, at 9:45 AM, Philippe Roud wrote: David Avendasora a écrit : Can you log out the SQL that is being generated by the fetch and see if it is fetching what you are expecting? Here we are approaching... I tried to log the sql just before the "offending" code in the dev envi

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Philippe Roud
David Avendasora a écrit : Can you log out the SQL that is being generated by the fetch and see if it is fetching what you are expecting? Here we are approaching... I tried to log the sql just before the "offending" code in the dev environement, but I saw nothing... Then I activated the

Re: Build Error

2008-08-06 Thread David Avendasora
What is at line 229 of your build.xml file? If you don't see it at the root of your project, you'll need to turn off the filtering in Eclipse. See: http://wiki.objectstyle.org/confluence/display/WOL/WOLips-Eclipse+beginner+mistakes+and+questions#WOLips-Eclipsebeginnermistakesandquestions-Whydon

Re: Problem with migration to 10.5.4

2008-08-06 Thread David Avendasora
Bruno, Are you embedding the frameworks in the application? If not, what version of the Wonder frameworks are installed on the server? Dave On Aug 6, 2008, at 9:18 AM, WIESEN Bruno wrote: Thanks for your advice. I saw this thread too but it didn't help me...I downloaded the latest frame

WOLongResponsePage and sessions

2008-08-06 Thread Pascal Robert
Hello, I'm having a strange problem here. I have to modify an app that generate stats, and those stats are generated by a WOLongResponsePage, and the content is generated this way : public Object performAction() throws Exception{ try{

Re: Problem with migration to 10.5.4

2008-08-06 Thread WIESEN Bruno
Thanks for your advice. I saw this thread too but it didn't help me...I downloaded the latest frameworks from the site and no changes. But I found that if my Application class extends WOApplication instead of ERXApplication it works. Bruno Le 6 août 08 à 13:48, David Avendasora a écrit :

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Guido Neitzer
On 06.08.2008, at 03:19, Jeff Schmitz wrote: and with that, I still was getting the error until I removed a couple of the inverse relationships. Note that I didn't have to remove them all of them, just a couple of them. Not sure what made those cause trouble. Is it possible that EOF is

Build Error

2008-08-06 Thread Thierry Kramis
Hi all We're trying to build our new 5.4 project on Leopard and get the following error: BUILD FAILED /Volumes/harddisk/workspace/appname/build.xml:229: IO error scanning directory '/.fseventsd' has anyone had the same? Regards Thierry ___ Do n

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread David Avendasora
On Aug 6, 2008, at 7:51 AM, Philippe Roud wrote: David Avendasora a écrit : On Aug 6, 2008, at 7:21 AM, Philippe Roud wrote: Hi, Following Chuck advice I found the cause of the NPE: extraQualifierList = (NSArray) EOSharedEditingContext .defaultSharedEditingContext ().objectsByEntityNa

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Philippe Roud
David Avendasora a écrit : On Aug 6, 2008, at 7:21 AM, Philippe Roud wrote: Hi, Following Chuck advice I found the cause of the NPE: extraQualifierList = (NSArray) EOSharedEditingContext.defaultSharedEditingContext().objectsByEntityNameAndFetchSpecificationName().valueForKeyPath(extraQualif

Re: Problem with migration to 10.5.4

2008-08-06 Thread David Avendasora
Hi Bruno, Just a few days ago someone else had a _very_ similar issue. http://lists.apple.com/archives/webobjects-dev/2008/Jul/msg00631.html Mike responded stating that he thought they weren't using an up-to- date version of Wonder (there are 5.3- and 5.4-specific frameworks). Are you using

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread David Avendasora
On Aug 6, 2008, at 7:21 AM, Philippe Roud wrote: Hi, Following Chuck advice I found the cause of the NPE: extraQualifierList = (NSArray) EOSharedEditingContext .defaultSharedEditingContext ().objectsByEntityNameAndFetchSpecificationName ().valueForKeyPath(extraQualifierFetchSpecName());

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Philippe Roud
Hi, Following Chuck advice I found the cause of the NPE: extraQualifierList = (NSArray) EOSharedEditingContext.defaultSharedEditingContext().objectsByEntityNameAndFetchSpecificationName().valueForKeyPath(extraQualifierFetchSpecName()); with extraQualifierFetchSpecName() returning : UExtraQ

Re: Creating new EOObjectStoreCoordinator for thread

2008-08-06 Thread Jeff Schmitz
Actually, I was using: EOObjectStoreCoordinator parentObjectStore = new EOObjectStoreCoordinator(); EOEditingContext threadEditingContext = new EOEditingContext(parentObjectStore); and with that, I still was getting the error until I removed a couple of the inverse relat

Problem with migration to 10.5.4

2008-08-06 Thread WIESEN Bruno
Hello, Here is our problem : Our applications are developped under Leopard 10.5.4 with XCode, while developping there is no problem... We are using WebObjects 5.4.2 + Project Wonder. But when we try deploying these applications, apps launch in JavaMonitor but when we try to access them he

Re: work almost good on a leopard server with WO5.4, but fails as war on tomcat

2008-08-06 Thread Philippe Roud
Thanks for the hint, I'm back to the code and hit by something totally unrelated but somewhat annoying when building/cleaning: my webobjects "Properties" file, under Resources is not copied to the build/.woa/Content/Resources I can see it in WOLips perspective so it shouldn't be filtered out