WebObjects Apache Connection Problems

2006-05-18 Thread Tokalak, Ahmet. D-IT2
Hi, If i start my small test application on my development machine i get the following error: The requested application was not found on this server. I have disabled direct connection (-DWODirectConnectEnabled=false), so the requests to my application have to be forwarded by apache. I think th

Catch "Internal Server Error"

2006-05-18 Thread François Reboursier
Hi list, As all developers knows, in a perfect world, an app wouldn't crash, everything would go smooth, but hey, s**t happens. So sometimes, I get the dreaded and ugly "An Internal Server Error Has Occurred." page (most of the time I forget to update the DB to match my EOModel, ea

RE: Catch "Internal Server Error"

2006-05-18 Thread apl
Hello François Is there any way to catch this do display a "better" error page, or to customise this page ? http://homepage.mac.com/andrewlindesay/le/articles/ wo_errorreporting_article.pdf cheers. ___ Andrew Lindesay www.lindesay.co.nz ___ D

Re: WebObjects Apache Connection Problems

2006-05-18 Thread Dev WO
Hi, on a "client" OS X, wotaskd isn't started by default on startup. You need to edit: /System/Library/StartupItems/WebObjects/WebObjects and uncomment: "$WOSERVICE" -appPath "$WOTASKD" >/var/log/webobjects.log 2>&1 & you don't need to uncomment the other lines, you don't need JavaMonitor on a

Re: Catch "Internal Server Error"

2006-05-18 Thread François Reboursier
On May 18, 2006, at 11:12, [EMAIL PROTECTED] wrote: Hello François Is there any way to catch this do display a "better" error page, or to customise this page ? http://homepage.mac.com/andrewlindesay/le/articles/ wo_errorreporting_article.pdf I know this, and it works great to c

AJAX WebObjects Integration

2006-05-18 Thread Tokalak, Ahmet. D-IT2
Hi, I want integrate AJAX in my WO apps, but i'm facing big problems. The biggest problems i see is the stucture of a WO application. Has anybody gained experience of WO-AJAX integration ? (I wanna work with the DOJO Toolkit, but the tookit is not important) Cheers __

Re: AJAX WebObjects Integration

2006-05-18 Thread David LeBer
On 18-May-06, at 8:23 AM, Tokalak, Ahmet. D-IT2 wrote: Hi, I want integrate AJAX in my WO apps, but i'm facing big problems. The biggest problems i see is the stucture of a WO application. Has anybody gained experience of WO-AJAX integration ? (I wanna work with the DOJO Toolkit, but the

Problem with EOModeler JDBC connection on Windows XP

2006-05-18 Thread Sigurður Anton Ólafsson
Hi, I have a problem when running EOModeler on Windows XP, using EOModeler from WebObjects 5.2.4: It comes when I create a new JDBC connection: JDBC connection failed for driver: 'oracle.jdbc.driver.OracleDriver'. Driver not found in Java Runtime! Please verify your CLASSPATH environment vari

Problem with EOModeler JDBC connection on Windows XP (updated)

2006-05-18 Thread Sigurður Anton Ólafsson
Hi, I have a problem when running EOModeler on Windows XP, using:   EOModeler from WebObjects 5.2.4, Oracle database 9.2, java sdk 1.4.2:   It comes when I create a new JDBC connection:   JDBC connection failed for driver: 'oracle.jdbc.driver.OracleDriver'. Driver not found in J

Re: AJAX WebObjects Integration

2006-05-18 Thread Wolfram Stebel
Am 18.05.2006 14:23 Uhr schrieb "Tokalak, Ahmet. D-IT2" unter <[EMAIL PROTECTED]>: > Hi, > > I want integrate AJAX in my WO apps, but i'm facing big problems. The > biggest problems i see is the stucture of a WO application. > > Has anybody gained experience of WO-AJAX integration ? (I wanna w

Re: AJAX WebObjects Integration

2006-05-18 Thread David LeBer
On 18-May-06, at 9:36 AM, Wolfram Stebel wrote: Am 18.05.2006 14:23 Uhr schrieb "Tokalak, Ahmet. D-IT2" unter <[EMAIL PROTECTED]>: Hi, I want integrate AJAX in my WO apps, but i'm facing big problems. The biggest problems i see is the stucture of a WO application. Has anybody gained experien

Re: Most EOF-like FOSS?

2006-05-18 Thread Arturo Perez
Pierce T. Wetter III wrote: On May 17, 2006, at 6:41 AM, Arturo Perez wrote: Going back and reading the question after all the follow ups out of curiosity, I thought I'd ask a followup question. 1. If your database is so tiny/simple, why its Torque inadequate? (I admit, it reminds me of

Re: AJAX WebObjects Integration

2006-05-18 Thread Mike Schrag
I have been looking at Dojo and actually have a couple Dojo things wrapped (the rich text component, for instance) in my local Ajax.framework to try them out. I have not been as impressed with Dojo when I compare its cross-browser support to, say, Scriptaculous, but they have a HUGE set of

Re: Most EOF-like FOSS?

2006-05-18 Thread Pierce T. Wetter III
On May 17, 2006, at 6:41 AM, Arturo Perez wrote: Hi all, As many know I'm a great partisan of WebObjects. Unfortunately my current position makes using it out of the question. I'm wondering what FOSS software is most like EOF out there? I have an application using a really horrid ORMS ca

xml data update and its derived data synchronization problem

2006-05-18 Thread YL
I have an Entity with an attribute customData storing dynamic information of unpredictable structure in XML text format. The instances of the Entity cache their customData in the converted type of NSDictonary for better performance. If somehow the customData of an instance been changed by (anothe

Re: Catch "Internal Server Error"

2006-05-18 Thread Chuck Hill
Hi François, Yes, you can handle these sorts of errors. They happen either very early or very late in the request - response loop and WebObjects is not setup to handle them properly. Unfortunately, this is left up to you. Here is how to do this: 1. Once source of this error is in the a

Re: xml data update and its derived data synchronization problem

2006-05-18 Thread Chuck Hill
On May 18, 2006, at 8:32 AM, YL wrote: I have an Entity with an attribute customData storing dynamic information of unpredictable structure in XML text format. The instances of the Entity cache their customData in the converted type of NSDictonary for better performance. If somehow the c

Re: Problem with EOModeler JDBC connection on Windows XP (updated)

2006-05-18 Thread Chuck Hill
The driver needs to go in C:\Apple\Library\Java. That is for JDK 1.1 which is only used by EOModeller. For you application to run, you also need to put the JDBC driver in the jre\lib\ext directory of the JVM being used to launch the app. Chuck On May 18, 2006, at 6:22 AM, Sigurður Anton Ó

Setting a Default toOne Relationship

2006-05-18 Thread David Avendasora
Hi all, I know this has to be an incredibly simple thing to do, but I can't seem to figure out how. All I want to do is defaults so that when an object is instantiated, it automatically has some of it's relationships defined. It is VERY easy to do this for an attribute, but I just can't g

Re: Setting a Default toOne Relationship

2006-05-18 Thread Chuck Hill
On May 18, 2006, at 10:12 AM, David Avendasora wrote: Hi all, I know this has to be an incredibly simple thing to do, but I can't seem to figure out how. All I want to do is defaults so that when an object is instantiated, it automatically has some of it's relationships defined. It is

Re: Setting a Default toOne Relationship

2006-05-18 Thread Ken Anderson
David, Besides calling the set method in awakeFromInsertion(), I can't imagine what else there is to do. Of course, you need to get the EO in the correct editing context. Since the EC is passed into the awakeFromInsertion() method, you could: public void awakeFromInsertion(EOEditingCont

Re: Setting a Default toOne Relationship

2006-05-18 Thread Ken Anderson
As Chuck mentioned, don't forget to call super() like I did below. And using addObjectToBothSidesOfRelationshipWithKey may be necessary also, depends on your model. Ken On May 18, 2006, at 1:25 PM, Ken Anderson wrote: David, Besides calling the set method in awakeFromInsertion(), I can'

Re: Setting a Default toOne Relationship

2006-05-18 Thread David Holt
Here's the code I use to attribute a comment to a user (following a user's relationship to the comment) when it is initialized:    public Comment aComment()    {        Comment aComment = (Comment) commentDisplayGroup.selectedObject(); // create a new comment on demand if (aComment == null) { /

PK Generation in MySQL

2006-05-18 Thread Randy Wigginton
This seems like a surprisingly obvious bug, so I figured I’d better ask what I’m doing wrong.   I have some code that writes records to a MySQL DB.  The PK is a simple INT, and the field is the only one the record locks on.  Everything works fine in a single thread… but when I start a sec

Re: Setting a Default toOne Relationship

2006-05-18 Thread David Avendasora
"// However you are creating or fetching the EO" Yeah, this is the problem area I'm running into. I'm having a hard time creating an EOEditingContext. This is my first real customization of a class and I've never had to reference the editing context before... Maybe the question should be

Re: Setting a Default toOne Relationship

2006-05-18 Thread Chuck Hill
Not sure about client side, but the EC is a parameter to the awakeFromInsertion method: public void awakeFromInsertion(EOEditingContext ec) { Chuck On May 18, 2006, at 11:16 AM, David Avendasora wrote: "// However you are creating or fetching the EO" Yeah, this is the problem area I'm r

Re: Catch "Internal Server Error"

2006-05-18 Thread Guido Neitzer
On 18.05.2006, at 18:55 Uhr, Chuck Hill wrote: 1. Once source of this error is in the appendToResponse phase of pages/components returned from direct actions. WO is not prepared to catch that exception. To fix this, we can force the rendering to happen earlier. Add / edit this method in

Re: PK Generation in MySQL

2006-05-18 Thread Robert Walker
Randy,Generally PK generation is a function EOF not MySQL.  There are plug-ins that support database native PK generation, as is the case with "OpenBasePKPlugIn." but I'm not aware of anything similar for MySQL.In any case, unless you're using something special, this problem likely has nothing to d

RE: PK Generation in MySQL

2006-05-18 Thread Randy Wigginton
Thanks.  The issue is not MySQL speed.  I’m extremely happy with the performance of MySQL.  I am gathering information from a webservice; thus, it is the gating operation.  If I have two separate threads querying the webservice, I get the results twice as fast.  During all of this my load g

DB connection failing.

2006-05-18 Thread James Stead
I'm blanking on this one.I have what appears to be a perfectly set up eomodel which happily connects to its database from within EOModeler, fetches data, all that good stuff. When I drag that *identical* eomodel into an app and try to fetch through a display group I get the "failed to open database

Re: WebObjects Apache Connection Problems

2006-05-18 Thread Art Isbell
On May 17, 2006, at 11:16 PM, Dev WO wrote: Then you should either start wotaskd, but I'm not sure it would work: SystemStarter start WebObjects Try: sudo SystemStarter start WebObjects Aloha, Art ___ Do not post admin requests to the list. They w

Re: DB connection failing.

2006-05-18 Thread David Holt
which database?if it's FrontBase, make sure you have the FrontBase framework installed in your project.David -- It's like driving a car at night. You never see further than your headlights, but you can make the whole trip that way. E. L. Doctorowfrom Sunbeams: http://www.thesunmagazine.org  On 18 M

Re: DB connection failing.

2006-05-18 Thread James Stead
Thanks, David, good catch. Openbase has a framework for generating pkeys I had neglected.JimOn May 18, 2006, at 11:44 AM, David Holt wrote:which database?if it's FrontBase, make sure you have the FrontBase framework installed in your project.David -- It's like driving a car at night. You never see

Re: PK Generation in MySQL

2006-05-18 Thread Robert Walker
Understood,  I'm doing something very similar to that in that same project.  For us, unfortunately, we brought MySQL to it's knees with the shear number and frequency of insert/update calls to the database.  After switching to InnoDB  (which performed better than MyISAM in our case) and a lot of da

Re: PK Generation in MySQL

2006-05-18 Thread Chuck Hill
On May 18, 2006, at 11:58 AM, Robert Walker wrote: Understood, I'm doing something very similar to that in that same project. For us, unfortunately, we brought MySQL to it's knees with the shear number and frequency of insert/update calls to the database. After switching to InnoDB (whi

Re: PK Generation in MySQL

2006-05-18 Thread Anjo Krank
Am 18.05.2006 um 20:24 schrieb Robert Walker: Generally PK generation is a function EOF not MySQL. There are plug-ins that support database native PK generation, as is the case with "OpenBasePKPlugIn." but I'm not aware of anything similar for MySQL. In any case, unless you're using some

Re: Problem with EOModeler JDBC connection on Windows XP (updated)

2006-05-18 Thread logan . allred
Chuck wrote on 05/18/2006 11:12:07 AM: > The driver needs to go in C:\Apple\Library\Java. That is for JDK 1.1   > which is only used by EOModeller.  For you application to run, you   > also need to put the JDBC driver in the jre\lib\ext directory of the   > JVM being used to launch the app. Foll

RE: PK Generation in MySQL

2006-05-18 Thread Randy Wigginton
Can you give any hints about how you wrapped the PK Gen? The easiest way I see is to let MySQL generate the keys itself. How could I go about that? Ie, create table myTable (id int not null auto_increment, other cols) and then turn off EOF PK generation. Does that seem like a good alternative,

Re: Setting a Default toOne Relationship

2006-05-18 Thread David Avendasora
You see, I knew I was missing something obvious. And here I was trying to override the setter for the relationship. Nothing like trying to do it the hard way. On May 18, 2006, at 7:20 PM, Chuck Hill wrote: Not sure about client side, but the EC is a parameter to the awakeFromInsertion meth

RE: PK Generation in MySQL

2006-05-18 Thread Randy Wigginton
I have another question. It seems there is a problem with the multi-threaded aspects of the standard database context delegate and the databaseContextNewPrimaryKey method. Is there a way for me to somehow synchronize that method? Or do I need to implement it all over? -Original Message-

Re: Setting a Default toOne Relationship

2006-05-18 Thread David Avendasora
Hmmm... When I try to import the eoaccess package, I get this error at compile-time: src/com/bestmaid/erp/client/Routing.java:10: package com.webobjects.eoaccess does not exist import com.webobjects.eoaccess.*; The JavaEOAccess.framework is part of the project and part of the Web Server

Re: PK Generation in MySQL

2006-05-18 Thread Robert Walker
The easiest way I see is to let MySQL generate the keys itself. How could I As far as I know you cannot let MySQL generate the keys itself, at least not in the way you're probably thinking. I really don't think EOF has any support for native PK generation with MySQL. On May 18, 2006, at

Re: PK Generation in MySQL

2006-05-18 Thread Robert Walker
PostgreSQL or FrontBase would be better choices for cost reasons. And performance and conformance to standards. Yes, FrontBase is now free. Thanks Chuck. This all happened before FrontBase was free. I haven't tried using PostreSQL in quite a while. I'm sure it's fine now, but I had a

Re: Setting a Default toOne Relationship

2006-05-18 Thread Chuck Hill
IIRC, EOAccess is not available client side. On May 18, 2006, at 2:49 PM, David Avendasora wrote: Hmmm... When I try to import the eoaccess package, I get this error at compile-time: src/com/bestmaid/erp/client/Routing.java:10: package com.webobjects.eoaccess does not exist import com.w

Re: Setting a Default toOne Relationship

2006-05-18 Thread Wolfram Stebel
Am 18.05.2006 23:06 Uhr schrieb "David Avendasora" unter <[EMAIL PROTECTED]>: > You see, I knew I was missing something obvious. And here I was > trying to override the setter for the relationship. Nothing like > trying to do it the hard way. And after all this good tips, you might think about fac

Re: Setting a Default toOne Relationship

2006-05-18 Thread David Avendasora
Okay, Here's my code: public void awakeFromInsertion (EOEditingContext ec) { super.awakeFromInsertion(ec); EOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed("Task","RoutingType"); NSArray routingTypes = ec.objectsWithFetchSpecifica

Re: Setting a Default toOne Relationship

2006-05-18 Thread Chuck Hill
When you create a new Routing, is it getting inserted into an EC? This method is not called until that is done. On May 18, 2006, at 3:40 PM, David Avendasora wrote: Okay, Here's my code: public void awakeFromInsertion (EOEditingContext ec) { super.awakeFromInsertion

Re: PK Generation in MySQL

2006-05-18 Thread Kieran Kelleher
FYI, All that is required for EO PK to be a transactional table is to "alter table mytable engine=innobd;" or something like that. See ALTER TABLE syntax. Also Innodb can be set as the default table type for the server in the /etc/my.cnf properties file. -Kieran On May 18, 2006, at 3:03 PM

WO 5.3 and Tomcat property files?

2006-05-18 Thread Dave Elsner
Hi, What the best approach to use property files from development in and for deployment within tomcat? Because it seems they are not being read in at run time System.getProperty("foo") always returns null under tomcat, but works perfectly in development in Xcode. I tried printing out Sy