WO Context() null in Session Constructor

2010-10-25 Thread Joe Moreno
Hi all,

I'm probably not remembering my WO request/response loop correctly.

When a WO Session is created I'd like to find out the host name of the 
request so I tried to log that info in the Session's constructor (see code 
snippet below). Unfortunately, the context() is null at this point.

Where's the best place to figure out the remote host that created a 
session if not in the session's constructor?

Thanks,
Joe


public Session()
{
super();
NSLog.debug.appendln("== Session Created ==");
this.setStoresIDsInCookies(true);
this.setStoresIDsInURLs(false);
this.setDefaultEditingContext( ERXEC.newEditingContext() );
String remoteHostName = 
this.context().request().headerForKey("remote_host");
NSLog.debug.appendln("Remote host name = " + remoteHostName);
}



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

CSV File Reader

2010-08-31 Thread Joe Moreno

Can anyone recommend a simple CSV file reader for WO?

It needs to be smart enough to escape commas inside quotes, i.e.:
Name, Location
John Smith, "Cupertino, CA"

I'm sure that this wouldn't be hard to write, but code I don't have to  
write is code that I don't have to debug. :^D


Many thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Reflexive relationship with same relationship name?

2010-07-11 Thread Joe Moreno

Chuck & Farrukh,

Thanks for the feedback - it's much appreciated!

- Joe
On Jul 11, 2010, at 11:33:06, Farrukh Ijaz wrote:

Very important point highlighted by Chuck. EOF is very efficient in  
maintaining all types of relations including recursive. You must  
becareful of cyclic reference as it may lead into stack overflow  
situation. Also make sure your model should care of the delete rule  
otherwise... I just deleted my account but the whole network is  
gone :)


I think wonder would have provided something to avoid cyclic fetch.

Farrukh

Sent from my iPad

On 11-Jul-2010, at 9:07 PM, Chuck Hill   
wrote:


I think that should be fine.  You might want to plan out how you  
are going to qualify this for fetches.




On Jul 10, 2010, at 2:25 PM, Joe Moreno wrote:

Is it possible for EOF to support a reflexive relationship back to  
the same Entity with the same relationship property name through a  
flattened many-to-many?


Think of a User entity in the case of LinkedIn where users are  
"linked" to other users:

User <>>Connection<<>User

Connection is the flattened (EOGenericRecord) m:n table with only  
the foreign keys as its two primary keys. User.connections simply  
returns all the connected users.


I'm imagining that you'd link them up like this:
userA.addObjectToBothSidesOfRelationshipWithKey(userB,  
"connection");


Any one with experience/gotchas doing this? (No inheritance  
involved.)


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com

This email sent to farrukh.i...@fuegodigitalmedia.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Reflexive relationship with same relationship name?

2010-07-10 Thread Joe Moreno
Is it possible for EOF to support a reflexive relationship back to the  
same Entity with the same relationship property name through a  
flattened many-to-many?


Think of a User entity in the case of LinkedIn where users are  
"linked" to other users:

User <>>Connection<<>User

Connection is the flattened (EOGenericRecord) m:n table with only the  
foreign keys as its two primary keys. User.connections simply returns  
all the connected users.


I'm imagining that you'd link them up like this:
userA.addObjectToBothSidesOfRelationshipWithKey(userB, "connection");

Any one with experience/gotchas doing this? (No inheritance involved.)

Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: OT: JPEG EXIF Image Orientation

2010-07-07 Thread Joe Moreno

Matt,

	BINGO! exiftool has a wealth of info; specifically it has the  
Orientation tag which is what I was looking for (not to mention access  
to all of the photo's GPS data too).


I don't know how I could have overlooked that before.

	We have WebObjects running on Mac OS X Server 10.4.11, which doesn't  
have the exiftool command, natively, but we fixed that by simply  
loading the stand along exiftool from here:

http://www.sno.phy.queensu.ca/~phil/exiftool/

Many thanks,
Joe

On Jul 6, 2010, at 15:54:04, Matthew Ness wrote:


We use MediaRich to do most of our heavy lifting.

exiftool should do what you want too.

Cheers,

Matt



On 6 Jul 2010 19:50, "Joe Moreno"  wrote:

*S**ummary*
Can anyone recommend either a Java library or command line app that  
can

look
into a JPEG's EXIF data in order to determine its orientation (i.e.  
which
way is up)? This seems like it should be an easy problem to solve,  
but I

haven't had any luck finding the answer.

**
*B**ackground*
Some of you may have noticed that photos taken with iOS 4 no longer
automatically rotate "right side up". Instead, the orientation is  
placed

in
the EXIF data. Software rendering the photo must look at the EXIF  
data in
order to correctly display the photo. This issue is easily  
demonstrated by

snapping a photo in landscape mode, with an iOS 4 iPhone, and then
e-mailing
it to yourself and viewing it in a version of Mail prior to Snow  
Leopard
where you'll see that the image is sideways. (See attached screen  
shot.)


*WebObjects & SIPS*
I have a WebObjects project which worked beautifully with the  
iPhone until
the release of iOS 4. The project uses Mac OS X's sips command line  
app to
resize photos (sips can also rotate images and it's highly  
optimized for

Mac
OS X – I have yet to find anything else that's faster

Sips only allows you to examine certain EXIF data tags; and JPEG
orientation
isn't one of them.

Any help is greatly appreciated.

Cheers,
Joe






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: OT: JPEG EXIF Image Orientation

2010-07-06 Thread Joe Moreno

Matt,

	BINGO! exiftool has a wealth of info; specifically it has the  
Orientation tag which is what I was looking for (not to mention access  
to all of the photo's GPS data too).


I don't know how I could have overlooked that before.

	Unfortunately, we have WebObjects running on Mac OS X Server 10.4.11,  
which doesn't have the exiftool command, but we can fix that.


Many thanks,
Joe

On Jul 6, 2010, at 15:54:04, Matthew Ness wrote:


We use MediaRich to do most of our heavy lifting.

exiftool should do what you want too.

Cheers,

Matt



On 6 Jul 2010 19:50, "Joe Moreno"  wrote:

*S**ummary*
Can anyone recommend either a Java library or command line app that  
can

look
into a JPEG's EXIF data in order to determine its orientation (i.e.  
which
way is up)? This seems like it should be an easy problem to solve,  
but I

haven't had any luck finding the answer.

**
*B**ackground*
Some of you may have noticed that photos taken with iOS 4 no longer
automatically rotate "right side up". Instead, the orientation is  
placed

in
the EXIF data. Software rendering the photo must look at the EXIF  
data in
order to correctly display the photo. This issue is easily  
demonstrated by

snapping a photo in landscape mode, with an iOS 4 iPhone, and then
e-mailing
it to yourself and viewing it in a version of Mail prior to Snow  
Leopard
where you'll see that the image is sideways. (See attached screen  
shot.)


*WebObjects & SIPS*
I have a WebObjects project which worked beautifully with the  
iPhone until
the release of iOS 4. The project uses Mac OS X's sips command line  
app to
resize photos (sips can also rotate images and it's highly  
optimized for

Mac
OS X – I have yet to find anything else that's faster

Sips only allows you to examine certain EXIF data tags; and JPEG
orientation
isn't one of them.

Any help is greatly appreciated.

Cheers,
Joe






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[Solved] Re: Eclipse 3.5 & WOLips Upgrade Problems

2010-06-20 Thread Joe Moreno
The framework has to be installed on the dev machine in order for the  
MacOS[Server]ClassPath.txt files pick up the correct class paths for  
the dist woa.


On Jun 19, 2010, at 12:41:27, Joe Moreno wrote:


Hi,

	I haven't upgraded my version of Eclipse and WOLips for a couple  
years. I finally decided to give it a try without much luck.


I'm running Mac OS X 10.5.8 with Eclipse 3.3.

I followed these instructions:
http://wiki.objectstyle.org/confluence/display/WOL/Install+WOLips+with+Eclipse+Update+Manager

	But I don't get very far in Eclipse 3.5 when I try to install  
WOLips (No repository found). (As a matter of fact, no repositories  
are found for Galileo or The Eclipse Project Updates either).




At this point, the only installed software is Eclipse.


Sometimes I get this error:



Any help is greatly appreciated,
Joe



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to joemor...@mac.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Eclipse 3.5 & WOLips Upgrade Problems

2010-06-20 Thread Joe Moreno
It looks like this was an Eclipse bug. Under preferences, you'll need  
to check the box to use the classic updater.


On Jun 19, 2010, at 12:41:27, Joe Moreno wrote:


Hi,

	I haven't upgraded my version of Eclipse and WOLips for a couple  
years. I finally decided to give it a try without much luck.


I'm running Mac OS X 10.5.8 with Eclipse 3.3.

I followed these instructions:
http://wiki.objectstyle.org/confluence/display/WOL/Install+WOLips+with+Eclipse+Update+Manager

	But I don't get very far in Eclipse 3.5 when I try to install  
WOLips (No repository found). (As a matter of fact, no repositories  
are found for Galileo or The Eclipse Project Updates either).




At this point, the only installed software is Eclipse.


Sometimes I get this error:



Any help is greatly appreciated,
Joe



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to joemor...@mac.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO MacOS[Server]ClassPath.txt settings?

2010-06-20 Thread Joe Moreno
Also, just to be clear, the class path files I'm looking to configure  
are placed here when building the dist with ant:

MyWOProject.woa/Contents/MacOS/



On Jun 20, 2010, at 10:42:17, Joe Moreno wrote:


Hi Chuck,

Thanks for your response.

	I probably should have mentioned that the WO app is deployed on Mac  
OS X Server 10.4.11 and the OS is using the  
MacOS[Server]ClassPath.txt files since everything runs fine when  
manually changing them.


I am pretty sure that MacOSServerClassPath.txt is obsolete and  
unused.


Do you know how Eclipse/WOLips/ant determines what to put into these  
two class path TXT files? It clearly varies from project to project  
so I'm guessing that it's a project setting which I can't find. I  
expected it to be in the build.xml.


On the dev machine I do not find:
~/Library/Application Support/WOLips/wolips.properties
/Library/Application Support/WOLips/wolips.properties


Thanks,
Joe

On Jun 19, 2010, at 21:41:05, Chuck Hill wrote:



On Jun 19, 2010, at 3:18 PM, Joe Moreno wrote:

Where are the configuration setting in Eclipse that determine the  
MacOS[Server]ClassPath.txt settings during an ant build?


That should come from
~/Library/Application Support/WOLips/wolips.properties

I am pretty sure that MacOSServerClassPath.txt is obsolete and  
unused.




When deployed on OS X Server, my MacOS[Server]ClassPath.txt  
settings are not complete and the WOA app throws a  
java.lang.NoClassDefFoundError.


But, if I manually edit MacOS[Server]ClassPath.txt files on the  
Mac OS X Server and enter the following then everything works fine:
LOCALROOT/Library/Frameworks/ProjectObjectModel.framework/ 
Resources/Java/projectobjectmodel.jar


I figured that the settings would be in the  
ant.frameworks.wo.wolocalroot file, but that doesn't seem to be  
working unless I'm doing something wrong.



Is this framework installed in /Library/Frameworks/ on the machine  
where you are building this?  The ant build does not know about  
what is in the Eclipse workspace.



Chuck


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to joemor...@mac.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WO MacOS[Server]ClassPath.txt settings?

2010-06-20 Thread Joe Moreno

Hi Chuck,

Thanks for your response.

	I probably should have mentioned that the WO app is deployed on Mac  
OS X Server 10.4.11 and the OS is using the MacOS[Server]ClassPath.txt  
files since everything runs fine when manually changing them.



I am pretty sure that MacOSServerClassPath.txt is obsolete and unused.


Do you know how Eclipse/WOLips/ant determines what to put into these  
two class path TXT files? It clearly varies from project to project so  
I'm guessing that it's a project setting which I can't find. I  
expected it to be in the build.xml.


On the dev machine I do not find:
~/Library/Application Support/WOLips/wolips.properties
/Library/Application Support/WOLips/wolips.properties


Thanks,
Joe

On Jun 19, 2010, at 21:41:05, Chuck Hill wrote:



On Jun 19, 2010, at 3:18 PM, Joe Moreno wrote:

Where are the configuration setting in Eclipse that determine the  
MacOS[Server]ClassPath.txt settings during an ant build?


That should come from
~/Library/Application Support/WOLips/wolips.properties

I am pretty sure that MacOSServerClassPath.txt is obsolete and unused.



When deployed on OS X Server, my MacOS[Server]ClassPath.txt  
settings are not complete and the WOA app throws a  
java.lang.NoClassDefFoundError.


But, if I manually edit MacOS[Server]ClassPath.txt files on the Mac  
OS X Server and enter the following then everything works fine:
LOCALROOT/Library/Frameworks/ProjectObjectModel.framework/Resources/ 
Java/projectobjectmodel.jar


I figured that the settings would be in the  
ant.frameworks.wo.wolocalroot file, but that doesn't seem to be  
working unless I'm doing something wrong.



Is this framework installed in /Library/Frameworks/ on the machine  
where you are building this?  The ant build does not know about what  
is in the Eclipse workspace.



Chuck


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

WO MacOS[Server]ClassPath.txt settings?

2010-06-19 Thread Joe Moreno
Where are the configuration setting in Eclipse that determine the  
MacOS[Server]ClassPath.txt settings during an ant build?


When deployed on OS X Server, my MacOS[Server]ClassPath.txt settings  
are not complete and the WOA app throws a  
java.lang.NoClassDefFoundError.


But, if I manually edit MacOS[Server]ClassPath.txt files on the Mac OS  
X Server and enter the following then everything works fine:
LOCALROOT/Library/Frameworks/ProjectObjectModel.framework/Resources/ 
Java/projectobjectmodel.jar


I figured that the settings would be in the  
ant.frameworks.wo.wolocalroot file, but that doesn't seem to be  
working unless I'm doing something wrong.


Thanks,
Joe

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Jar in WOA

2010-01-25 Thread Joe Moreno

Chuck,

	Thanks for the quick reply. What you're saying makes sense - so I'll  
try removing the jar from /Library/Java/Extensions and add it to each  
project.


Many thanks,
Joe

On Jan 24, 2010, at 20:15:50, Chuck Hill wrote:



On Jan 24, 2010, at 6:29 PM, Joe Moreno wrote:


Eclipse 3.3.2
WOLips 3.3.5047
WO 5.3
Deployed on OS X Server 10.4.11

	How can I get a WO app to use the jar that's inside the WOA  
(app.woa/Contents/Resources/Java) instead of the jar under /Library/ 
Java/Extensions?


AFAIK, you can't.  Jars in /Library/Java/Extensions are loaded first  
by JVM design.


Chuck



The build.xml seems to be configured correctly:






	Also, I see the correct jar inside the WOA, but, for some reason,  
during deployment, the app is picking up the jar under /Library/ 
Java/Extensions instead of the one inside the WOA. (In other words,  
it runs fine in Eclipse but not when it's deployed.)


Did I miss an Eclipse or ant setting?

Thanks,
Joe


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Jar in WOA

2010-01-24 Thread Joe Moreno

Eclipse 3.3.2
WOLips 3.3.5047
WO 5.3
Deployed on OS X Server 10.4.11

	How can I get a WO app to use the jar that's inside the WOA (app.woa/ 
Contents/Resources/Java) instead of the jar under /Library/Java/ 
Extensions?


The build.xml seems to be configured correctly:






	Also, I see the correct jar inside the WOA, but, for some reason,  
during deployment, the app is picking up the jar under /Library/Java/ 
Extensions instead of the one inside the WOA. (In other words, it runs  
fine in Eclipse but not when it's deployed.)


Did I miss an Eclipse or ant setting?

Thanks,
Joe


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-15 Thread Joe Moreno

Chuck,

 I think the "streamToFilePath" binding is what you need to use.   
What bindings are you using?


I'm not using a WODynamicElement (i.e. WOFileUpload). This is a direct  
action for third party APIs to call so there is no UI. Or, am I  
misunderstanding your question?


Thanks,
Joe



On Jan 14, 2010, at 21:47:45, Chuck Hill wrote:

It has been a while since I implemented this.  I think the  
"streamToFilePath" binding is what you need to use.  What bindings  
are you using?


Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:


Chuck,

	I hadn't considered that. I am using a direct action form post to  
handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are,  
there should not be any timeouts from the adaptor.  I've seen  
uploads of large files over slow connections to GVC.SiteMaker go  
on for a very, very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS- 
X to move video files around.  You could build something similar  
to this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file  
upload from say, an iPhone, to a WO app (direct action) that  
takes longer than the WO adaptor time out? Or, should I just  
set the WO adaptor timeout to something like five or ten  
minutes to handle slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects











--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Joe Moreno

Chuck,

	I hadn't considered that. I am using a direct action form post to  
handle the upload.


- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads?  If you are, there  
should not be any timeouts from the adaptor.  I've seen uploads of  
large files over slow connections to GVC.SiteMaker go on for a very,  
very long time with no timeout.



Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:


Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


In my case, I don't think upping the adaptor timeout will block  
since WOAllowsConcurrentRequestHandling is set to true. Does that  
sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS-X  
to move video files around.  You could build something similar to  
this.


I wouldn't up the time on the adaptor because other clients who  
are using that instance will get blocked and may reach their  
timeouts.


cheers.

Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes  
longer than the WO adaptor time out? Or, should I just set the WO  
adaptor timeout to something like five or ten minutes to handle  
slow/flaky EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects









___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO Long Response and iPhone

2010-01-14 Thread Joe Moreno

Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who are  
using that instance will get blocked and may reach their timeouts.


In my case, I don't think upping the adaptor timeout will block since  
WOAllowsConcurrentRequestHandling is set to true. Does that sound  
correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:


Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is  
broken up into little chunks and fired into a WOA bit by bit in  
sequence into a stream.  I haven't explicitly tested this from  
iPhoneOS, but it has been used in a production system from MacOS-X  
to move video files around.  You could build something similar to  
this.


I wouldn't up the time on the adaptor because other clients who are  
using that instance will get blocked and may reach their timeouts.


cheers.

Does anyone have a recommendation on how to manage a file upload  
from say, an iPhone, to a WO app (direct action) that takes longer  
than the WO adaptor time out? Or, should I just set the WO adaptor  
timeout to something like five or ten minutes to handle slow/flaky  
EDGE connections?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WO Long Response and iPhone

2010-01-14 Thread Joe Moreno


	Does anyone have a recommendation on how to manage a file upload from  
say, an iPhone, to a WO app (direct action) that takes longer than the  
WO adaptor time out? Or, should I just set the WO adaptor timeout to  
something like five or ten minutes to handle slow/flaky EDGE  
connections?


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: /wa/favicon.ico ?

2009-05-11 Thread Joe Moreno

Jeremy,

You could try my "solution" - I see the exception in the logs and,  
realizing it's just a call for the favicon.ico, just ignore it. Pretty  
lazy, eh?


I've been toying with the idea of creating a direct action with this  
name to return something.


- Joe

On May 11, 2009, at 13:25:51, Jeremy Rosenberg wrote:


Thanks cug

That makes perfect sense.  We haven't tracked down a rule that could  
have this effect yet but it makes sense.


Jeremy

On May 11, 2009, at 10:15 AM, Guido Neitzer wrote:


On 11. May. 2009, at 09:56 , Jeremy Rosenberg wrote:

I have recently started seeing these errors come through on one of  
my apps.  It appears from the WORequest that they are asking  
for .../wa/favicon.ico


The stack trace attached indicates that this DA doesn't seem to  
exist.  I'm using WO5.3. I am including enough Project Wonder to  
get at a couple of Ajax calls but I'm not extending ERXApplication  
or anything.


Has anyone else encountered this and do you know what is  
calling .../wa/favicon.ico ?


It's probably a browser trying to resolve a favicon (which is  
normally requested for any site, but from the root of the domain).  
Is there maybe a rewrite rule bringing that to the DA?


i have also sometimes seen those requests and have added a rewrite  
rule, that rewrites everything with favicon.ico to the root of the  
domain.


cug


= 
==

Jeremy Rosenberg
Application Developer
Institutional, Collaborative, and Academic Technologies
IT Services
Simon Fraser University
Burnaby, BC, Canada V5A 1S6

Email:  jeremy_rosenb...@sfu.ca

"ICAT: Of great importance to your academic success and SFU's global  
achievement"











___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to joemor...@mac.com


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERXEC Exception

2009-04-11 Thread Joe Moreno

Chuck, Ken, Guido, & Sharvan,

	Thanks for the advice - I'll check to make sure that EOs aren't being  
passed between threads (which may very well be happening).


Thanks,
Joe

On Apr 9, 2009, at 19:35:07, Ken Anderson wrote:

I never pass EOs between threads - always GlobalIDs...  saves LOTS  
of headaches!


On Apr 9, 2009, at 5:18 PM, Guido Neitzer wrote:


On 9. Apr. 2009, at 12:29 , Joe Moreno wrote:


Hi All,

	I'm not familiar with the details of ERXEC and I was wondering,  
when using it, if I should ever see the following exception?  
(Perhaps I have a buggy version - 5.0.0.8093?)


I can imagine stuff like that happening, when you do things in a  
separate thread (e.g. long response page) and pass an EO into that  
thread - with an attached editing context that is autolocking.


Not sure, whether this can still come from situations like that,  
but it's something I'd look into.


cug
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com

This email sent to kenli...@anderhome.com




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


ERXEC Exception

2009-04-09 Thread Joe Moreno

Hi All,

	I'm not familiar with the details of ERXEC and I was wondering, when  
using it, if I should ever see the following exception? (Perhaps I  
have a buggy version - 5.0.0.8093?)


Thanks,
Joe


[2009-04-09 12:24:57 PDT]  Unable to release locks held by  
a deallocated EOEditingContext.
[2009-04-09 12:24:56 PDT]  java.lang.IllegalStateException:  
Illegal Lock usage: unlocking thread not owner.
	at  
com.webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java: 
207)
	at  
com.webobjects.eocontrol.EOEditingContext.unlock(EOEditingContext.java: 
4720)

at er.extensions.eof.ERXEC.unlock(ERXEC.java:498)
	at  
com 
.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java: 
1158)
	at  
com 
.webobjects.eocontrol.EOEditingContext.finalize(EOEditingContext.java: 
1178)

at er.extensions.eof.ERXEC.finalize(ERXEC.java:619)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


SimpleDB and EOF

2009-03-16 Thread Joe Moreno

Hi all,

	I'm just checking in to see what experiences anyone this list has had  
with EOF and Amazon's SimpleDB. I'd be happy to share the results of  
my experiments.


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Get keyPath of a WO Object

2009-03-12 Thread Joe Moreno

Rukmal,

Have you tried this?
http://developer.apple.com/documentation/InternetWeb/Reference/WO542Reference/com/webobjects/directtoweb/Assignment.html#keyPath()

- Joe



On Mar 12, 2009, at 01:00:14, Rukmal Dias wrote:


hi, how to get a keyPath of wo object ?

Thx

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to joemor...@mac.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

What's the safe way to round?

2009-03-01 Thread Joe Moreno

Hi all,

	I have set my database Scale on all floats to 7. Sometimes, due to  
match or rounding, the scale goes beyond that and I get the following  
exception:
[2009-03-01 13:26:28 PST]  :  
Exception in performActionNamed() on the action "testIt" with the  
message
: com.webobjects.eoaccess.EOGeneralAdaptorException: The attribute  
totalCost has a scale of 7, but the value 0.00728571 has a scale of 8:  
Rounding necessary
[2009-03-01 13:26:27 PST]   
com.webobjects.eoaccess.EOGeneralAdaptorException: The attribute  
totalCost has a scale of 7, but the value 0.00728571



	Is there a simple way to have a number automatically rounded in the  
EOModel to "fit" into database?


Thanks,
Joe












 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

SQL doesn't seem to match complex qualifiers

2009-02-06 Thread Joe Moreno

Hi all,

	It seems my graphical fetch spec is looking different when turned  
into SQL.


I'm using the following graphical fetch spec:
(includeExcludeType = "0")
or
((includeExcludeType = "1" and ((not (excludeList like $lastName)) or  
(not (excludeList like $firstName) or
((includeExcludeType = "2" and (includeList like $lastName or  
includeList like $firstName)))



But, for some reason, the order of importance (i.e. parenthesis) in  
the SQL seems to be getting messed up. Here's what I'm seeing being  
sent to the database:


(
t0.INCLUDE_EXCLUDE_TYPE = ? OR
(
t0.INCLUDE_EXCLUDE_TYPE = ? AND
(
not
(
t0.EXCLUDE_LIST like ?
)
OR not
(
t0.EXCLUDE_LIST like ?
)
OR
(
t0.INCLUDE_EXCLUDE_TYPE = ? AND
(
t0.INCLUDE_LIST like ? OR 
t0.INCLUDE_LIST like ?
)
)
)
)
)



	I'm not sure what I'm doing wrong. The last OR should not be  
"indented".


Thanks,
Joe
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: OpenBase & WebObjects for scaling

2009-01-13 Thread Joe Moreno

Andrew,

	Another thing that's impressed me with OpenBase is the clustering  
failover. I doubt many people have used this feature.


	Any SQL written to any database in the cluster is automatically  
propagated to other OpenBase databases in that cluster within five  
seconds without any primary key collisions.


	Additionally, if the master database fails your WebObjects app will  
automatically begin using another database in the cluster (no code  
needed to handle this case). Once the master database recovers, its  
SQL, from the other databases, is updated and it resumes handling the  
WO app's SQL.


Ciao,
Joe

On Dec 30, 2008, at 00:39:27, Andrew Lindesay wrote:


Hello Joe;

I think this problem may be slightly different as it is not  
necessarily to do with PK's.  My understanding is that  
"OpenBasePKPlugIn" is there to get EOF to use the OPENBASE PK- 
generation scheme rather than EO_PK_TABLE.


cheers.

I think I ran into the exact problem you mentioned about the  
deadlock in OpenBase 10 using the default primary key generation.
Scott Keith advised me to compile the WO apps against the  
OpenBasePKPlugin.framework which uses the OpenBaseJDBC.jar and,  
even under heavy load, I've never had a problem using OB 10 with  
the plugin. I just had to add a single line to my Application.java:
JDBCPlugIn 
.setPlugInNameForSubprotocol 
("com.webobjects.jdbcadaptor.OpenBasePKPlugIn", "openbase");


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: EO Not deleting

2009-01-06 Thread Joe Moreno

I've made this mistake before and I keep forgetting...

I forgot to remove the EO from it's relationship before deleting it.  
Once I did that, the EOs were deleted as expected.


I'm not sure why EOF would sometimes delete the EO and sometimes it  
didn't - but, unhooking it before the delete solved the problem is all  
cases.


Cheers,
Joe

On Dec 31, 2008, at 17:33:12, Joe Moreno wrote:


Happy New Year!

I believe I've seen this issue before, but I don't recall what I'm  
doing wrong...


I have an EO deleting itself from an editing context, but,  
sometimes, only the EO's foreign key is getting set to NULL, which  
has the same effect of deleting the EO. Other times, the row in the  
database actually gets deleted.


The SQL going to the database sometimes is DELETE and sometimes it's:
UPDATE DEPARTMENT SET OID_EMPOYEE = NULL WHERE OID = ?...

Did I cross EC or something else bad?

Thanks,
Joe


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


EO Not deleting

2008-12-31 Thread Joe Moreno

Happy New Year!

I believe I've seen this issue before, but I don't recall what I'm  
doing wrong...


I have an EO deleting itself from an editing context, but, sometimes,  
only the EO's foreign key is getting set to NULL, which has the same  
effect of deleting the EO. Other times, the row in the database  
actually gets deleted.


The SQL going to the database sometimes is DELETE and sometimes it's:
UPDATE DEPARTMENT SET OID_EMPOYEE = NULL WHERE OID = ?...

Did I cross EC or something else bad?

Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: OpenBase & WebObjects for scaling

2008-12-29 Thread Joe Moreno

Hi Andrew,

	I think I ran into the exact problem you mentioned about the deadlock  
in OpenBase 10 using the default primary key generation.


	Scott Keith advised me to compile the WO apps against the  
OpenBasePKPlugin.framework which uses the OpenBaseJDBC.jar and, even  
under heavy load, I've never had a problem using OB 10 with the  
plugin. I just had to add a single line to my Application.java:


JDBCPlugIn 
.setPlugInNameForSubprotocol 
("com.webobjects.jdbcadaptor.OpenBasePKPlugIn", "openbase");


Many thanks for the feedback.

Cheers,
Joe

On Dec 29, 2008, at 13:14:31, Andrew Lindesay wrote:


Hello Joe;

In high-volume concurrent situations, there is an issue with EOF  
together with OPENBASE where concurrent transactions can get into a  
deadlock when writing into the same series of tables. Let me be very  
clear; not a problem with OPENBASE per se, but a specific problem  
with EOF and OPENBASE.  To avoid this, I have created a simple  
subclass of the JDBC Adaptor (distributed in a self-contained  
Framework jar) specifically to address this issue.  To find out more  
about this read the LEWOStuff PDF under;


9) OPENBASE JDBC Adaptor

cheers.

Does anyone have any real world, recent, experience with OpenBase  
on a large scale?


___
Andrew Lindesay
www.lindesay.co.nz



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


OpenBase & WebObjects for scaling

2008-12-29 Thread Joe Moreno

Hi all,

Does anyone have any real world, recent, experience with OpenBase on a  
large scale?


I've been using OpenBase for more than 10 years. During that time,  
I've also used Oracle, Sybase, FrontBase, and MySQL, to name a few.


I've been extremely impressed with OpenBase's support of WebObjects -  
more so than any other database that I know of.
Additionally, OpenBase supports bidirectional clustering with up to  
100 computers and the latest release supports incremental backups.  
These certainly seem like high end features to me.


Most recently, I've been using OpenBase to run in parallel with  
Amazon's SimpleDB. So far, both have written millions of rows of data  
to both database systems without any issues. But, SimpleDB is not a  
RDBMS; also SimpleDB has some other limitations.


Your experiences are greatly appreciated.

Cheers,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Long response web service

2008-12-15 Thread Joe Moreno


	What's a good way to handle a WO request, from a third party API call  
(web service), that generates a long response?


	For example, a web service call comes into a WO app whose response  
takes 60 seconds (i.e. a large database fetch and data aggregation).  
Normally, a WO long response page could handle this in the web  
browser, but, this doesn't really work with a web service and if the  
response time is longer than the WO adaptor timeout the request will  
fail.


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Amazon's SimpleDB & WO

2008-12-06 Thread Joe Moreno
Hi all,For anyone interested in experimenting with Amazon's SimpleDB and EOF...I've attached a very simple Java thread I've been using to copy EOs from RDBMS database tables into SimpleDB. Eventually, an ideal solution would be an EOF adaptor for SimpleDB. The attached code, which I manually edited for this e-mail to remove some dependencies (so it might not compile), relies on my own Timer class and Typica which can be found in Google Code:http://code.google.com/p/typica/I have been testing out Amazon's SimpleDB as an off site backup for local database rows that don't change (i.e. history events). This week, Amazon made SimpleDB tinkering even more appealing when they lowered the price to:1. Free for the first 25 machine hours2. Free for the first GB of transfer in and out3. Free for the first GB of storage.Prior to this month, my bills for SimpleDB have been less than $3/month for more than 1 million monthly database transactions.If you're not familiar with SimpleDB then the simplest analogy between SimpleDB, which is not a RDMS, and a RDBMS is:RDBMS		SimpleDBTable		DomainRow		ItemColumn		AttributeThey key difference between SimpleDB and a RDBMS is that SimpleDB does not have an ER model. Details about SimpleDB can be found here:http://aws.amazon.com/simpledbIn PracticeIn my environment, it takes about a 400 ms to write an Item to SimpleDB with a dozen Attributes. Your time will vary depending on your upstream bandwidth. Since this network latency is a significant amount of time for a single database transaction, the attached Java class was designed to run in its own thread.The following code snippet copies all of a table's columns to SimpleDB:EOEnterpriseObject transaction;CopyEOAttributesToSimpleDBThread copyEOToSimpleDBThread = new CopyEOAttributesToSimpleDBThread(transaction, false);copyHitToSimpleDBThread.start(); Your feedback is welcomed,Joe

CopyEOAttributesToSimpleDBThread.java
Description: Binary data

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WO in the cloud (again)

2008-11-25 Thread Joe Moreno

Anjo,

No, I haven't looked at CouchDB until now (on Wikipedia).

The limits you mentioned on SimpleDB are interesting:
http://ad.vu/9vg

	If I'm reading the 250M attribute name-value pair limit correctly,  
that means a domain (table) with 10 attributes (columns) could only  
hold 25M rows of data provided the total for the domain was less than  
10 GB.


	While this sounds small, I'm speculating that if a SimpleDB customer  
was close to that limit Amazon could increase the limit on a case-by- 
case basis.


Cheers,
Joe


On Nov 25, 2008, at 17:43:14, Anjo Krank wrote:



Am 25.11.2008 um 23:37 schrieb Joe Moreno:

- ever used anything that is not a RDMS? Like SimpleDB or CouchDB?  
One would think that the REST adaptor in Wonder might help here
I've been backing up some historical data that doesn't change to  
SimpleDB. It doesn't seem like the pricing is bad at all - I've put  
more than a million rows into a SimpleDB domain without any  
problems. Each SimpleDB write is done in a separate thread since it  
takes about one third of a second to complete the write (S3 writes  
typically take between 1-5 seconds to drop an object in a bucket).



But it got some limits like the number of fields*rows < 200 million  
or sth... you ever looked at couchdb or some other column storages  
or map/reduce based things?


Cheers, Anjo


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: WO in the cloud (again)

2008-11-25 Thread Joe Moreno

Anjo,

- ever used anything that is not a RDMS? Like SimpleDB or CouchDB?  
One would think that the REST adaptor in Wonder might help here
I've been backing up some historical data that doesn't change to  
SimpleDB. It doesn't seem like the pricing is bad at all - I've put  
more than a million rows into a SimpleDB domain without any problems.  
Each SimpleDB write is done in a separate thread since it takes about  
one third of a second to complete the write (S3 writes typically take  
between 1-5 seconds to drop an object in a bucket).


I believe that each SimpleDB domain is single threaded, though (I  
could be wrong).


I'd love to try out an EOF to SimpleDB adaptor.

- Joe

On Nov 25, 2008, at 15:33:05, Anjo Krank wrote:


Hi,

I'm currently investigating EC2 as a viable means to deploy WO apps.  
Previous discussion has been here:


http://lists.apple.com/archives/webobjects-deploy/2008/Apr/msg00050.html

I found some maven tools here:

http://code.google.com/p/cloudtools/

and there is also support for capistrano available

Things that may have changed since then are:

- you can now attach storage to instances. Instances can still die,  
but you can reboot and still have the last state
- you now have some sort of mini-akamai, which is nice to have in  
some cases...


Some of the questions I still have are:

- what sort of DB would you use? MySQL? PG? FB?
- would it make sense to create an EC2Monitor app that would take  
care of starting/stopping on demand. This app would use the ec2 API  
for this (probably some sort of enhanced JavaMonitor)
- anyone tried to simply use these things for strictly app-serving?  
I.E. run the DB and web servers at your machines, run the apps on EC2?
- ever used anything that is not a RDMS? Like SimpleDB or CouchDB?  
One would think that the REST adaptor in Wonder might help here
- is this cost-efficient? I.E. isn't the overhead of managing the  
cloud vs the cost of a few machines that you manage too high? And  
you get 2Gig for a small instance for ~70$/month... which is about  
what I get with my hosting provider. Of course, I can't start and  
stop or reimage as easily there... so is the whole thing worth it?


Cheers, Anjo
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Programmatic URL are Problematic

2008-11-19 Thread Joe Moreno

Thanks, Chuck and cug. WOHost was the problem.

- Joe

On Nov 18, 2008, at 21:00:06, Chuck Hill wrote:



On Nov 18, 2008, at 8:27 PM, Joe Moreno wrote:


Hi All,

	Is there a way for context().completeURLWithRequestHandlerKey() to  
return 127.0.0.1?


	I'm running WO 5.3.x in dev on 10.5.5 with Eclipse 3.3.2 & WOLips  
3.3.5047.


	I ran several OS X updates on the dev machine and now it seems  
that context().completeURLWithRequestHandlerKey(), which returns  
the BonJour host name, hangs. I have to manually replace the  
BonJour host name with 127.0.0.1 to continue to the next page on  
the dev machine.


	The app launches from Eclipse just fine with 127.0.0.1. In dev,  
the SSL links need to be http so the code checks to see if it's in  
dev or deployment mode by checking if  
Application.isDirectConnectEnabled() (bound to isSecure and  
negated). This has worked fine in the past - the URL to the WO app  
simply changed from 127.0.0.1 to the BonJour.local host name when  
returning http (non secure) dev links instead of https, but now,  
for some reason, the BonJour host name hangs in the web browser.


Try launching with
-WOHost localhost
or
-DWOHost=localhost

Chuck


--
Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects








___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Programmatic URL are Problematic

2008-11-18 Thread Joe Moreno

Hi All,

	Is there a way for context().completeURLWithRequestHandlerKey() to  
return 127.0.0.1?


	I'm running WO 5.3.x in dev on 10.5.5 with Eclipse 3.3.2 & WOLips  
3.3.5047.


	I ran several OS X updates on the dev machine and now it seems that  
context().completeURLWithRequestHandlerKey(), which returns the  
BonJour host name, hangs. I have to manually replace the BonJour host  
name with 127.0.0.1 to continue to the next page on the dev machine.


	The app launches from Eclipse just fine with 127.0.0.1. In dev, the  
SSL links need to be http so the code checks to see if it's in dev or  
deployment mode by checking if Application.isDirectConnectEnabled()  
(bound to isSecure and negated). This has worked fine in the past -  
the URL to the WO app simply changed from 127.0.0.1 to the  
BonJour.local host name when returning http (non secure) dev links  
instead of https, but now, for some reason, the BonJour host name  
hangs in the web browser.


Thanks,
Joe



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Incorrectly Parsed Form Values in WOContext

2008-10-06 Thread Joe Moreno

Q,

Thanks. That did the trick.

- Joe

On Oct 5, 2008, at 22:23:49, Q wrote:

If you want to supply a URL as a value like this you will need to  
URL escape it in your javascript first and then decode it in your  
code.


On 06/10/2008, at 3:08 PM, Joe Moreno <[EMAIL PROTECTED]> wrote:


Hi all,

	I have a WOContext that seems to be incorrectly parsing a form  
value sent back from a web browser. The behavior is consistent,  
regardless of the browser.



Mac OS X 10.5.5
WebObjects 5.3.3
Eclipse 3.3.2
WOLips 3.3.5047
Browser: Safari, Firefox, and IE 6 on XP



Details:
	The following JavaScript [slightly redacted] is making a web  
services call from a web browser back to a WO app:
javascript:void(location.href='http://www.woextras.com/cgi-bin/WebObjects/Services.woa/wa/services?url='+location.href) 
;


This JavaScript is called from the following page:
http://maps.google.com/maps?f=d&saddr=21412&daddr=swi&hl=en&geocode=&mra=ls&sll=38.978603,-76.492803&sspn=0.006155,0.007178&ie=UTF8&ll=39.168932,-76.568527&spn=0.405115,0.459366&t=h&z=11

For some reason, the URL (boldfaced, below) key/value is incomplete  
- it appears that WO is trying to parse out the contents of the URL  
value. (There's only one form value in the JavaScript call but WO  
is parsing out the value into separate form values.)




Here's are the form values, headers, and URL from the WO app's  
context object:


Form values
[2008-10-05 21:31:11 PDT]  Form values = {ll =  
("39.084238,-76.58844"); saddr = ("21412"); hl = ("en"); mr
a = ("ls"); url = ("http://maps.google.com/maps?fd";); spn =  
("0.405602,0.459366"); sll = ("39.162544,-76.568527"); t = ("h");  
daddr = ("bwi"); z
 = ("11"); ie = ("UTF8"); geocode = (""); sspn =  
("0.405151,0.459366"); }


Headers
[2008-10-05 21:31:11 PDT]  Headers = {user-agent =  
(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1));   
__utma 
=266294495.2633809517203011000.1215279762.1223260134.1223264920.5;  
__utmz=266222495.126279762.1.1.utmcsr=(direct)|utmccn=(direct)| 
utmcmd=(none); __ut
mb=266293495.4.10.1323264920; __utmc=266292435"); accept = (image/ 
gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x- 
shockwave-flash, application/vnd.
ms-excel, application/msword, application/vnd.ms-powerpoint, */*);  
accept-encoding = (gzip, deflate); host = (www.woextras.com);  
accept-language = ("en-us"); co

nnection = (Keep-Alive); }

URI
[2008-10-05 21:31:13 PDT]  URI = /cgi-bin/WebObjects/ 
Services.woa/wa/services?url=http://maps.google.com/maps?f=d&saddr=21412&daddr
= 
bwi 
&hl 
= 
en 
&geocode 
= 
&mra 
= 
ls 
&sll 
= 
39.162544 
,-76.568527 
&sspn 
= 
0.405151,0.459366 
&ie=UTF8&ll=39.084238,-76.58844&spn=0.405602,0.459366&t=h&z=11

06079458

Does anyone have any suggestions as to how to parse out the URL  
form value? There will be more form values passed along making  
manually parsing non-trivial (last resort).


Many Thanks,
Joe Moreno

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com

This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Incorrectly Parsed Form Values in WOContext

2008-10-05 Thread Joe Moreno

Hi all,

	I have a WOContext that seems to be incorrectly parsing a form value  
sent back from a web browser. The behavior is consistent, regardless  
of the browser.



Mac OS X 10.5.5
WebObjects 5.3.3
Eclipse 3.3.2
WOLips 3.3.5047
Browser: Safari, Firefox, and IE 6 on XP



Details:
	The following JavaScript [slightly redacted] is making a web services  
call from a web browser back to a WO app:
javascript:void(location.href='http://www.woextras.com/cgi-bin/WebObjects/Services.woa/wa/services?url='+location.href) 
;


This JavaScript is called from the following page:
http://maps.google.com/maps?f=d&saddr=21412&daddr=swi&hl=en&geocode=&mra=ls&sll=38.978603,-76.492803&sspn=0.006155,0.007178&ie=UTF8&ll=39.168932,-76.568527&spn=0.405115,0.459366&t=h&z=11

For some reason, the URL (boldfaced, below) key/value is incomplete -  
it appears that WO is trying to parse out the contents of the URL  
value. (There's only one form value in the JavaScript call but WO is  
parsing out the value into separate form values.)




Here's are the form values, headers, and URL from the WO app's context  
object:


Form values
[2008-10-05 21:31:11 PDT]  Form values = {ll =  
("39.084238,-76.58844"); saddr = ("21412"); hl = ("en"); mr
a = ("ls"); url = ("http://maps.google.com/maps?fd";); spn =  
("0.405602,0.459366"); sll = ("39.162544,-76.568527"); t = ("h");  
daddr = ("bwi"); z
 = ("11"); ie = ("UTF8"); geocode = (""); sspn =  
("0.405151,0.459366"); }


Headers
[2008-10-05 21:31:11 PDT]  Headers = {user-agent =  
(Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1));   
__utma 
=266294495.2633809517203011000.1215279762.1223260134.1223264920.5;  
__utmz=266222495.126279762.1.1.utmcsr=(direct)|utmccn=(direct)| 
utmcmd=(none); __ut
mb=266293495.4.10.1323264920; __utmc=266292435"); accept = (image/gif,  
image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave- 
flash, application/vnd.
ms-excel, application/msword, application/vnd.ms-powerpoint, */*);  
accept-encoding = (gzip, deflate); host = (www.woextras.com); accept- 
language = ("en-us"); co

nnection = (Keep-Alive); }

URI
[2008-10-05 21:31:13 PDT]  URI = /cgi-bin/WebObjects/ 
Services.woa/wa/services?url=http://maps.google.com/maps?f=d&saddr=21412&daddr
= 
bwi 
&hl 
= 
en 
&geocode 
= 
&mra 
= 
ls 
&sll 
= 
39.162544 
,-76.568527 
&sspn 
= 
0.405151,0.459366 
&ie=UTF8&ll=39.084238,-76.58844&spn=0.405602,0.459366&t=h&z=11

06079458

Does anyone have any suggestions as to how to parse out the URL form  
value? There will be more form values passed along making manually  
parsing non-trivial (last resort).


Many Thanks,
Joe Moreno

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: JavaWOExtensions Red Dots

2008-07-29 Thread Joe Moreno

Lachlan,

Thanks. So, I have a follow up question...

	Since there are two JavaWOExtensions when configuring the Eclipse  
build path, one under Local and one under System, should I uncheck the  
one under System (WO framework) and only check the on under Local  
(WOnder framework)? Or, do I need both?


Thanks,
Joe

On Jul 29, 2008, at 05:09:58, Lachlan Deck wrote:


On 29/07/2008, at 4:35 PM, Joe Moreno wrote:


Hi,

Why does JavaWOExtensions have two red dots at 11 o'clock and 5  
o'clock (see screenshot below)?


These are the hours of the day (5am to 11pm) which Mike is typing  
away ;-)


Seriously, all the standard frameworks that you would usually link  
to your project have this symbolism. If you're using WOnder then  
you'll want the WOnder version with the same name.


with regards,
--

Lachlan Deck



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Unable to release locks held by deallocated EOEditingContext

2008-07-29 Thread Joe Moreno

Mike & cug,

	What are the gotchas when setting it to automatically lock &  
unlock? Performance? It seems to be working like a charm.
I need to add this to the same Properties file ... Ditch all those  
individual locking settings and just set:


er.extensions.ERXEC.safeLocking=true


	Thanks for pointing that out – it's working fine when I launch my  
apps in Eclipse (3.3.2 w/ WOLips 3.3.5047). But, it fails to launch  
when it's deployed on Tiger Server. I'm only looking to use ERXEC.


I followed these instructions:
http://wiki.objectstyle.org/confluence/display/WONDER/Integrate+Wonder+Into+an+Existing+Application

I've pasted a couple logs, below.

	It seems to have a problem when I put the three Wonder jars (ERJars,  
ERExtensions and JavaWOExtensions) in the project or in /Library/Java/ 
Extensions. I also tried using the Wonder frameworks without any luck.


	It seems, with the jars present, that it can't find some basic WO  
classes.


Both dev and deploy are WO 5.3.x.

Any tips would be greatly appreciated.

- Joe



Reading MacOSClassPath.txt ...
Launching Adjix.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" - 
DWOLocalRootDirectory="" -DWOUserDirectory="/var/log/webobjects/Adjix"  
-DWOEnvClassPath="" -DWOApplicationClass=com.adjix.app.Application - 
DWOPlatform=MacOS -Dcom.webobjects.pid=2239 -classpath WOBootstrap.jar  
com.webobjects._bootstrap.WOBootstrap
Loading /Library/WebObjects/Applications/Adjix.woa/Contents/MacOS/ 
MacOSClassPath.txt

Generated classpath:
  /Library/WebObjects/Applications/Adjix.woa/Contents/Resources/Java/
  /Library/WebObjects/Applications/Adjix.woa/Contents/Resources/Java/ 
adjix.jar
  /Library/WebObjects/Applications/Adjix.woa/Contents/Resources/Java/ 
commons-codec-1.3.jar
  /Library/WebObjects/Applications/Adjix.woa/Contents/Resources/Java/ 
commons-httpclient-3.1.jar
  /Library/WebObjects/Applications/Adjix.woa/Contents/Resources/Java/ 
commons-logging-1.1.1.jar
  /Library/Frameworks/AdjixObjectModel.framework/Resources/Java/ 
adjixobjectmodel.jar

  /Library/Frameworks/WOExtras.framework/Resources/Java/activation.jar
  /Library/Frameworks/WOExtras.framework/Resources/Java/commons- 
codec-1.3.jar
  /Library/Frameworks/WOExtras.framework/Resources/Java/commons- 
httpclient-3.1.jar
  /Library/Frameworks/WOExtras.framework/Resources/Java/commons- 
logging-1.1.1.jar
  /Library/Frameworks/WOExtras.framework/Resources/Java/ 
jets3t-0.5.0.jar

  /Library/Frameworks/WOExtras.framework/Resources/Java/mail.jar
  /Library/Frameworks/WOExtras.framework/Resources/Java/payflow.jar
  /Library/Frameworks/WOExtras.framework/Resources/Java/woextras.jar
  /System/Library/Frameworks/JavaEOAccess.framework/Resources/Java/ 
javaeoaccess.jar
  /System/Library/Frameworks/JavaEOControl.framework/Resources/Java/ 
javaeocontrol.jar
  /System/Library/Frameworks/JavaFoundation.framework/Resources/Java/ 
javafoundation.jar
  /System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/ 
javajdbcadaptor.jar
  /System/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ 
javawebobjects.jar
  /System/Library/Frameworks/JavaXML.framework/Resources/Java/ 
javaxml.jar

  /Library/WebObjects/Extensions/axis-ant.jar
  /Library/WebObjects/Extensions/axis.jar
  /Library/WebObjects/Extensions/commons-discovery.jar
  /Library/WebObjects/Extensions/commons-logging.jar
  /Library/WebObjects/Extensions/jaxrpc.jar
  /Library/WebObjects/Extensions/log4j-1.2.8.jar
  /Library/WebObjects/Extensions/saaj.jar
  /Library/WebObjects/Extensions/wsdl4j.jar
  /Library/WebObjects/Extensions/
java.lang.NoClassDefFoundError: com/webobjects/foundation/NSCoding
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
at java.lang.Class.getMethod0(Class.java:2642)
at java.lang.Class.getMethod(Class.java:1579)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:86)
Nairobi:/var/log/webobjects/Adjix jmo

JavaWOExtensions Red Dots

2008-07-28 Thread Joe Moreno

Hi,

	Why does JavaWOExtensions have two red dots at 11 o'clock and 5  
o'clock (see screenshot below)?


Thanks,
Joe

<>

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Unable to release locks held by deallocated EOEditingContext

2008-07-28 Thread Joe Moreno

cug,

Thanks, again, for pointing me to the Properties config for the ERXEC.

	In the comments, it says, "Use with care..." when setting to lock/ 
unlock automatically.


	What are the gotchas when setting it to automatically lock & unlock?  
Performance? It seems to be working like a charm.


Thanks,
Joe

## Specifies if new ECs should lock/unlock automatically. Use with  
care...

# er.extensions.ERXEC.defaultAutomaticLockUnlock = true


On Jul 28, 2008, at 19:51:16, Guido Neitzer wrote:


On 28.07.2008, at 20:12, Joe Moreno wrote:

	Thanks. I see the API references – is there any other  
documentation for Wonder (i.e. examples)?


There are some tutorials on the Objectstyle wiki. Haven't really  
checked in a long time. For me it was:


- Inherit from ERXApplication (there are two occurrences in the  
Application file!)


- Inherit from ERXSession & ERXDirectAction

- Read the properties and set values for the ones that seem useful  
to me.


- Use ERXEC.newEditingContext() whenever I need a new editing context.

That's it.

cug

--
http://www.event-s.net



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Unable to release locks held by deallocated EOEditingContext

2008-07-28 Thread Joe Moreno

cug,

	I dropped in the er.extensions.eof package for WO 5.3.x to test it  
out in place of a peer EC I'm using inside a session based WO component.


	I only installed what I thought would be the minimum to get ERXEC to  
work - specifically, I added the ERExtensions-5.0.0.8093.jar to my  
project.


Is this the correct way to create a peer EC?
EOEditingContext _editingContext = ERXEC.newEditingContext();

I'm getting a bunch of warning stack traces, pasted below.

Thanks,
Joe



[2008-07-28 15:06:08 PDT]  *** EOEditingContext: access  
with no lock: _eoForGID()!
[2008-07-28 15:06:08 PDT]  java.lang.Exception: This is  
not a real exception, just a stack trace of the location of the  
missing lock:
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedAccess(EOEditingContext.java:5173)
	at  
com 
.webobjects 
.eocontrol 
.EOEditingContext 
._EOAssertSafeMultiThreadedReadAccess(EOEditingContext.java:5156)
	at  
com 
.webobjects.eocontrol.EOEditingContext._eoForGID(EOEditingContext.java: 
2636)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3635)

at er.extensions.eof.ERXEC.faultForGlobalID(ERXEC.java:1013)
	at  
com 
.webobjects 
.eoaccess.EOUtilities.localInstanceOfObject(EOUtilities.java:942)
	at  
com.sms.app.AdvertiserAddFundsPage.init(AdvertiserAddFundsPage.java:53)
	at  
com 
.sms.app.WOSMSComponent.gotoAdvertiserAddFundsPage(WOSMSComponent.java: 
163)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)

at java.lang.reflect.Method.invoke(Method.java:585)
	at com.webobjects.foundation.NSKeyValueCoding$ValueAccessor 
$1.methodValue(NSKeyValueCoding.java:684)
	at com.webobjects.foundation.NSKeyValueCoding 
$_MethodBinding.valueInObject(NSKeyValueCoding.java:1160)
	at com.webobjects.foundation.NSKeyValueCoding 
$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268)
	at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java: 
1539)
	at com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(NSKeyValueCoding.java:498)
	at com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
212)
	at  
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java: 
1600)
	at  
com 
.webobjects 
.appserver 
._private 
.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:46)
	at  
com 
.webobjects 
.appserver._private.WOHyperlink.invokeAction(WOHyperlink.java:76)
	at  
com 
.webobjects 
.appserver 
._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101)
	at  
com 
.webobjects 
.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110)
	at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945)

at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1168)
	at  
com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 
1375)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedPage(WOComponentRequestHandler.java:196)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:358)
	at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:435)
	at  
com 
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 
1306)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
	at  
com 
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 
254)

at java.lang.Thread.run(Thread.java:613)




On Jul 27, 2008, at 11:48:36, Guido Neitzer wrote:

Is there no chance of using Wonder and the ERXEC autolocking? It  
solves MANY problems and not only problems that are locking related.


cug

On 27.07.2008, at 12:11, Joe Moreno wrote:


Art,

	I tracked down my editing context bug using the  
LockErrorScreamerEditingContext (LESEC).


	Every place I created an EOEdtingContext, in my app and the  
supporting frameworks, I changed it to the LESEC which made it easy  
to balance out my EC locks and unlocks. It seems to be working well.


Thanks,
Joe

On Jul 26, 2008, at 10:50:50, Joe Moreno wrote:


Art,

	Thanks for pointing me toward MultiECLockManager. I will take a  
look at that.


I used the LockErrorScreamerEditingContext found here:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF

Re: Unable to release locks held by deallocated EOEditingContext

2008-07-28 Thread Joe Moreno

cug,

	Yes, I need to look at that – I've been dragging my feet about  
integrating Wonder. Thanks for the nudge.


- Joe

On Jul 27, 2008, at 11:48:36, Guido Neitzer wrote:

Is there no chance of using Wonder and the ERXEC autolocking? It  
solves MANY problems and not only problems that are locking related.


cug

On 27.07.2008, at 12:11, Joe Moreno wrote:


Art,

	I tracked down my editing context bug using the  
LockErrorScreamerEditingContext (LESEC).


	Every place I created an EOEdtingContext, in my app and the  
supporting frameworks, I changed it to the LESEC which made it easy  
to balance out my EC locks and unlocks. It seems to be working well.


Thanks,
Joe

On Jul 26, 2008, at 10:50:50, Joe Moreno wrote:


Art,

	Thanks for pointing me toward MultiECLockManager. I will take a  
look at that.


I used the LockErrorScreamerEditingContext found here:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/Context_and_Database_Locking

	That was a big help and I was able to correct most of the lock/ 
unlock EC issues except in a couple places where I still get the  
following exception. These exceptions are reproducible, but I  
haven't been able to pinpoint the problem.

[2008-07-25 23:54:21 PDT]  1 row(s) processed
[2008-07-25 23:54:21 PDT]   === Commit Internal  
Transaction
[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (1 remaining)
[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (0 remaining)
[2008-07-25 23:54:21 PDT]  Unable to release locks held  
by a deallocated EOEditingContext.
[2008-07-25 23:54:21 PDT]   
java.lang.IllegalStateException: Illegal Lock usage: unlocking  
thread not owner.
	at  
com 
.webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java: 
207)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.unlock(EOEditingContext.java:4720)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1158)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.finalize(EOEditingContext.java:1178)

at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (0 remaining)
[2008-07-25 23:54:33 PDT]  +++ Lock number (1) in  
WorkerThread14
[2008-07-25 23:54:33 PDT]   === Begin Internal  
Transaction


Thanks,
Joe

On Jul 25, 2008, at 22:59:22, Art Isbell wrote:


On Jul 25, 2008, at 4:41 PM, Joe Moreno wrote:

I'm not quite sure what is causing these exceptions which I  
cannot consistently reproduce.


[2008-07-22 14:47:10 PDT]  Unable to release locks  
held by a deallocated EOEditingContext.
[2008-07-22 14:47:10 PDT]   
java.lang.IllegalStateException: Illegal Lock usage: unlocking  
thread not owner.


	The Finalizer thread is trying to unlock an EOEditingContext  
that a different thread locked which is not allowed.  So your  
code is not unlocking an EOEditingContext that it locked.  Look  
for unbalanced lock()/unlock() pairs.


	If you're attempting to manage EOEditingContext locking  
manually, you might want to consider using MultiECLockManager  
(source available by searching Google) to manage EOEditingContext  
locking for you automatically and flawlessly.


Aloha,
Art

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists%40event-s.net

This email sent to [EMAIL PROTECTED]


--
http://www.event-s.net



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Unable to release locks held by deallocated EOEditingContext

2008-07-27 Thread Joe Moreno

Art,

	I tracked down my editing context bug using the  
LockErrorScreamerEditingContext (LESEC).


	Every place I created an EOEdtingContext, in my app and the  
supporting frameworks, I changed it to the LESEC which made it easy to  
balance out my EC locks and unlocks. It seems to be working well.


Thanks,
Joe

On Jul 26, 2008, at 10:50:50, Joe Moreno wrote:


Art,

	Thanks for pointing me toward MultiECLockManager. I will take a  
look at that.


I used the LockErrorScreamerEditingContext found here:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/Context_and_Database_Locking

	That was a big help and I was able to correct most of the lock/ 
unlock EC issues except in a couple places where I still get the  
following exception. These exceptions are reproducible, but I  
haven't been able to pinpoint the problem.

[2008-07-25 23:54:21 PDT]  1 row(s) processed
[2008-07-25 23:54:21 PDT]   === Commit Internal  
Transaction
[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (1 remaining)
[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (0 remaining)
[2008-07-25 23:54:21 PDT]  Unable to release locks held  
by a deallocated EOEditingContext.
[2008-07-25 23:54:21 PDT]   
java.lang.IllegalStateException: Illegal Lock usage: unlocking  
thread not owner.
	at  
com 
.webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java: 
207)
	at  
com 
.webobjects.eocontrol.EOEditingContext.unlock(EOEditingContext.java: 
4720)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1158)
	at  
com 
.webobjects 
.eocontrol.EOEditingContext.finalize(EOEditingContext.java:1178)

at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (0 remaining)
[2008-07-25 23:54:33 PDT]  +++ Lock number (1) in  
WorkerThread14
[2008-07-25 23:54:33 PDT]   === Begin Internal  
Transaction


Thanks,
Joe

On Jul 25, 2008, at 22:59:22, Art Isbell wrote:


On Jul 25, 2008, at 4:41 PM, Joe Moreno wrote:

I'm not quite sure what is causing these exceptions which I cannot  
consistently reproduce.


[2008-07-22 14:47:10 PDT]  Unable to release locks held  
by a deallocated EOEditingContext.
[2008-07-22 14:47:10 PDT]   
java.lang.IllegalStateException: Illegal Lock usage: unlocking  
thread not owner.


	The Finalizer thread is trying to unlock an EOEditingContext that  
a different thread locked which is not allowed.  So your code is  
not unlocking an EOEditingContext that it locked.  Look for  
unbalanced lock()/unlock() pairs.


	If you're attempting to manage EOEditingContext locking manually,  
you might want to consider using MultiECLockManager (source  
available by searching Google) to manage EOEditingContext locking  
for you automatically and flawlessly.


Aloha,
Art

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Unable to release locks held by deallocated EOEditingContext

2008-07-26 Thread Joe Moreno

Art,

	Thanks for pointing me toward MultiECLockManager. I will take a look  
at that.


I used the LockErrorScreamerEditingContext found here:
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/Context_and_Database_Locking

	That was a big help and I was able to correct most of the lock/unlock  
EC issues except in a couple places where I still get the following  
exception. These exceptions are reproducible, but I haven't been able  
to pinpoint the problem.

[2008-07-25 23:54:21 PDT]  1 row(s) processed
[2008-07-25 23:54:21 PDT]   === Commit Internal  
Transaction
[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (1 remaining)
[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (0 remaining)
[2008-07-25 23:54:21 PDT]  Unable to release locks held by  
a deallocated EOEditingContext.
[2008-07-25 23:54:21 PDT]  java.lang.IllegalStateException:  
Illegal Lock usage: unlocking thread not owner.
	at  
com.webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java: 
207)
	at  
com.webobjects.eocontrol.EOEditingContext.unlock(EOEditingContext.java: 
4720)
	at  
com 
.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java: 
1158)
	at  
com 
.webobjects.eocontrol.EOEditingContext.finalize(EOEditingContext.java: 
1178)

at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

[2008-07-25 23:54:21 PDT]  --- Unlocked in  
WorkerThread13 (0 remaining)
[2008-07-25 23:54:33 PDT]  +++ Lock number (1) in  
WorkerThread14
[2008-07-25 23:54:33 PDT]   === Begin Internal  
Transaction


Thanks,
Joe

On Jul 25, 2008, at 22:59:22, Art Isbell wrote:


On Jul 25, 2008, at 4:41 PM, Joe Moreno wrote:

I'm not quite sure what is causing these exceptions which I cannot  
consistently reproduce.


[2008-07-22 14:47:10 PDT]  Unable to release locks held  
by a deallocated EOEditingContext.
[2008-07-22 14:47:10 PDT]   
java.lang.IllegalStateException: Illegal Lock usage: unlocking  
thread not owner.


	The Finalizer thread is trying to unlock an EOEditingContext that a  
different thread locked which is not allowed.  So your code is not  
unlocking an EOEditingContext that it locked.  Look for unbalanced  
lock()/unlock() pairs.


	If you're attempting to manage EOEditingContext locking manually,  
you might want to consider using MultiECLockManager (source  
available by searching Google) to manage EOEditingContext locking  
for you automatically and flawlessly.


Aloha,
Art

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Unable to release locks held by deallocated EOEditingContext

2008-07-25 Thread Joe Moreno

WebObjects 5.3.3 on:

ProductName:Mac OS X Server
ProductVersion: 10.4.11
BuildVersion:   8S2169

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- 
b05-241)

Java HotSpot(TM) Server VM (build 1.5.0_13-121, mixed mode)



In the WO app instance logs I'm getting seemingly random "Unable to  
release locks held by deallocated EOEditingContext." exceptions.


I'm not quite sure what is causing these exceptions which I cannot  
consistently reproduce.


The following is a sample app instance logs with both  
EOAdaptorDebugEnabled & WODebuggingEnabled set to true right after the  
app instance was launched.




[2008-07-22 14:46:29 PDT]  The URL for webserver connect is:
http://www.example.com/WebObjects/MyApp.woa/-21001
[2008-07-22 14:46:29 PDT]  null
[2008-07-22 14:46:29 PDT]  Waiting for requests...
[2008-07-22 14:47:10 PDT]  Unable to release locks held by  
a deallocated EOEditingContext.
[2008-07-22 14:47:10 PDT]  java.lang.IllegalStateException:  
Illegal Lock usage: unlocking thread not owner.
	at  
com.webobjects.foundation.NSRecursiveLock.unlock(NSRecursiveLock.java: 
207)
	at  
com.webobjects.eocontrol.EOEditingContext.unlock(EOEditingContext.java: 
4720)
	at  
com 
.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java: 
1158)
	at  
com 
.webobjects.eocontrol.EOEditingContext.finalize(EOEditingContext.java: 
1178)

at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

[2008-07-22 14:47:10 PDT]   === Begin Internal  
Transaction
[2008-07-22 14:47:10 PDT]   evaluateExpression:  
<"SELECT t0.ACCOUNT_BALANCE, t0.CITY, t0.COMPANY_NAME, t0.COUNTRY,  
t0.CREATION_TIMESTAMP, t0.EMAIL_ADDRESS, t0.FAX_NUMBER, t0.FIRST_NAME,  
t0.IS_ACTIVE_INTEGER, t0.LAST_LOGIN_TIMESTAMP, t0.LAST_NAME,  
t0.LOGIN_COUNT, t0.OID, t0.PARTNER_ID, t0.PASSWORD, t0.PHONE_NUMBER,  
t0.STATE, t0.STREET_ADDRESS_1, t0.STREET_ADDRESS_2, t0.ZIP FROM USER  
t0 WHERE (t0.IS_ACTIVE_INTEGER = ? AND t0.EMAIL_ADDRESS like ? AND  
t0.PASSWORD = ?)" withBindings: 1:1(isActiveInteger),  
2:"[EMAIL PROTECTED]"(emailAddress), 3:"lauren"(password)>

[2008-07-22 14:47:10 PDT]  0 row(s) processed
[2008-07-22 14:47:10 PDT]   === Commit Internal  
Transaction
[2008-07-22 14:47:17 PDT]   === Begin Internal  
Transaction



I'm not sure where to begin looking for the cause of this exception.

Can anyone point me in the right direction?

Thanks,
Joe

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Backtracking and Safari

2008-06-06 Thread Joe Moreno

Chuck,

	When I start wondering if Safari is caching a page or if it's my own  
bug I add something useless to the end of the URL (i.e. either server  
side or client side via JavaScript). Usually, I'll just tag on a key/ 
value pair such as ?t=1212726377311 which is simply the time. To  
Safari, and any proxy servers, this appears as a new request.


- Joe


On Jun 3, 2008, at 17:24:12, Chuck Hill wrote:


Hi,

Safari, at least as of version 3.1.1 (5525.20) does not seem to  
respect the headers that control local page caching.  The Safari FAQ  
claims to show how to do this:

http://developer.apple.com/internet/safari/faq.html#anchor5

Returning
last-modified = ("Wed, 04-Jun-2008 00:10:53 GMT");
cache-control = ("no-store, no-cache, must-revalidate, max-age=0,  
post-check=0, pre-check=0");

expires = ("Mon, 26 Jul 1997 05:00:00 GMT");
date = ("Wed, 04-Jun-2008 00:10:53 GMT");
pragma = ("no-cache");

still results in Safari using the local cache instead of making a  
trip back to the server.  The Web Inspector in Safari show that it  
is getting these headers, but it seems to ignore them. I have  
reported this to Apple.


Obviously, this has rather serious implications for those of use  
deploying dynamic web applications.  The back button is hard enough  
to deal with when the browser works correctly!


Any suggestions for work arounds gratefully attempted.

Chuck

--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


WO 5.3.x & workaround?

2008-04-21 Thread Joe Moreno

Hi all,

	Does anyone have a generic workaround for WO 5.3.x to prevent  
ampersands from getting escaped on R/R loop  direct actionURLs?


	I have a page which is sometimes returned as a session-less based  
direct action and sometimes it's returned as a session based direct  
action with a wosid on the URL.


In the latter case, the URL looks like this:
MyWOApp.woa/wa/loginPage? 
wosid=V7HO3tAja0qE0HYoDyxZiw&errorMessage=Invalid+login+or+password


	Obviously, I'd like to change the & to just &. My current  
workaround is:
String errorMessage1 = (String)  
this.context().request().formValueForKey("errorMessage");
String errorMessage2 = (String)  
this.context().request().formValueForKey("amp;errorMessage");


Thanks,
Joe ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Local Instance of EO Problem

2008-04-15 Thread Joe Moreno

Chuck,

	Thanks. It looks like it turned out to be my bug. I "crossed my  
streams" (editing contexts).


- Joe

On Apr 15, 2008, at 14:03:30, Chuck Hill wrote:



On Apr 15, 2008, at 1:09 PM, Joe Moreno wrote:


Chuck,

	Upon closer examination, I am seeing that if an EO field was null,  
then updated, but not saved, it seems that the unsaved, previously  
null value, gets pushed into the snapshot 'cause I see the new,  
unsaved value, appear when getting a local instance from a peer EC.


Peer or nested?  You will see the unsaved value if doing  
localInstance on a child EC.




Does that make sense, or, am I'm overlooking a bug in my code?


It does not make sense for a peer EC.


Chuck



On Apr 13, 2008, at 20:31:25, Joe Moreno wrote:


Chuck,

	Yup, Sally is the new, unsaved, value. Somehow, I missed the fact  
that localInstance only uses the snapshot values.


Thanks for pointing that out – it's a big help.

- Joe

On Apr 13, 2008, at 20:25:55, Chuck Hill wrote:

Is "Sally" a new (unsaved) value?  localInstance uses the last  
saved/fetched values from the snapshot, NOT the values in the EO.


Chuck


On Apr 13, 2008, at 8:18 PM, Joe Moreno wrote:

Hi All,

Eclipse 3.3.2
WOLips 3.3.5047
Mac OS X 10.5.2
WO 5.3.3
Not using WOnder

In the process of moving an EO from one EC to another it seems  
to get changed.

Am I overlooking something obvious, here?

The following code:

public void setPerson(Person newPerson)
{
	NSLog.debug.appendln("1. First name newPerson = " +  
newPerson.firstName());

if (newPerson != null)
{
NSLog.debug.appendln("About to get local instance.");
		newPerson = (Person)  
EOUtilities.localInstanceOfObject(_pageEditingContext, newPerson);

}
	NSLog.debug.appendln("2. First name newPerson = " +  
newPerson.firstName());

_person = newPerson;
	NSLog.debug.appendln("3. First name _person = " +  
newPerson.firstName());

}



Products this output:

[2008-04-13 20:12:10 PDT]  1. First name  
newPerson = Sally
[2008-04-13 20:12:10 PDT]  About to get local  
instance.
[2008-04-13 20:12:10 PDT]  2. First name  
newPerson = Joey
[2008-04-13 20:12:10 PDT]  3. First name _person  
= Joey



Thanks,
Joe



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]





--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Local Instance of EO Problem

2008-04-15 Thread Joe Moreno

Chuck,

	Upon closer examination, I am seeing that if an EO field was null,  
then updated, but not saved, it seems that the unsaved, previously  
null value, gets pushed into the snapshot 'cause I see the new,  
unsaved value, appear when getting a local instance from a peer EC.


Does that make sense, or, am I'm overlooking a bug in my code?

Thanks,
Joe


On Apr 13, 2008, at 20:31:25, Joe Moreno wrote:


Chuck,

	Yup, Sally is the new, unsaved, value. Somehow, I missed the fact  
that localInstance only uses the snapshot values.


Thanks for pointing that out – it's a big help.

- Joe

On Apr 13, 2008, at 20:25:55, Chuck Hill wrote:

Is "Sally" a new (unsaved) value?  localInstance uses the last  
saved/fetched values from the snapshot, NOT the values in the EO.


Chuck


On Apr 13, 2008, at 8:18 PM, Joe Moreno wrote:

Hi All,

Eclipse 3.3.2
WOLips 3.3.5047
Mac OS X 10.5.2
WO 5.3.3
Not using WOnder

In the process of moving an EO from one EC to another it seems to  
get changed.

Am I overlooking something obvious, here?

The following code:

public void setPerson(Person newPerson)
{
	NSLog.debug.appendln("1. First name newPerson = " +  
newPerson.firstName());

if (newPerson != null)
{
NSLog.debug.appendln("About to get local instance.");
		newPerson = (Person)  
EOUtilities.localInstanceOfObject(_pageEditingContext, newPerson);

}
	NSLog.debug.appendln("2. First name newPerson = " +  
newPerson.firstName());

_person = newPerson;
	NSLog.debug.appendln("3. First name _person = " +  
newPerson.firstName());

}



Products this output:

[2008-04-13 20:12:10 PDT]  1. First name newPerson  
= Sally
[2008-04-13 20:12:10 PDT]  About to get local  
instance.
[2008-04-13 20:12:10 PDT]  2. First name newPerson  
= Joey
[2008-04-13 20:12:10 PDT]  3. First name _person =  
Joey



Thanks,
Joe



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Local Instance of EO Problem

2008-04-13 Thread Joe Moreno

Chuck,

	Yup, Sally is the new, unsaved, value. Somehow, I missed the fact  
that localInstance only uses the snapshot values.


Thanks for pointing that out – it's a big help.

- Joe

On Apr 13, 2008, at 20:25:55, Chuck Hill wrote:

Is "Sally" a new (unsaved) value?  localInstance uses the last saved/ 
fetched values from the snapshot, NOT the values in the EO.


Chuck


On Apr 13, 2008, at 8:18 PM, Joe Moreno wrote:

Hi All,

Eclipse 3.3.2
WOLips 3.3.5047
Mac OS X 10.5.2
WO 5.3.3
Not using WOnder

In the process of moving an EO from one EC to another it seems to  
get changed.

Am I overlooking something obvious, here?

The following code:

public void setPerson(Person newPerson)
{
	NSLog.debug.appendln("1. First name newPerson = " +  
newPerson.firstName());

if (newPerson != null)
{
NSLog.debug.appendln("About to get local instance.");
		newPerson = (Person)  
EOUtilities.localInstanceOfObject(_pageEditingContext, newPerson);

}
	NSLog.debug.appendln("2. First name newPerson = " +  
newPerson.firstName());

_person = newPerson;
	NSLog.debug.appendln("3. First name _person = " +  
newPerson.firstName());

}



Products this output:

[2008-04-13 20:12:10 PDT]  1. First name newPerson =  
Sally
[2008-04-13 20:12:10 PDT]  About to get local  
instance.
[2008-04-13 20:12:10 PDT]  2. First name newPerson =  
Joey
[2008-04-13 20:12:10 PDT]  3. First name _person =  
Joey



Thanks,
Joe



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Local Instance of EO Problem

2008-04-13 Thread Joe Moreno

Hi All,

Eclipse 3.3.2
WOLips 3.3.5047
Mac OS X 10.5.2
WO 5.3.3
Not using WOnder

In the process of moving an EO from one EC to another it seems to get  
changed.

Am I overlooking something obvious, here?

The following code:

public void setPerson(Person newPerson)
{
	NSLog.debug.appendln("1. First name newPerson = " +  
newPerson.firstName());

if (newPerson != null)
{
NSLog.debug.appendln("About to get local instance.");
		newPerson = (Person)  
EOUtilities.localInstanceOfObject(_pageEditingContext, newPerson);

}
	NSLog.debug.appendln("2. First name newPerson = " +  
newPerson.firstName());

_person = newPerson;
	NSLog.debug.appendln("3. First name _person = " +  
newPerson.firstName());

}



Products this output:

[2008-04-13 20:12:10 PDT]  1. First name newPerson =  
Sally

[2008-04-13 20:12:10 PDT]  About to get local instance.
[2008-04-13 20:12:10 PDT]  2. First name newPerson = Joey
[2008-04-13 20:12:10 PDT]  3. First name _person = Joey


Thanks,
Joe



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

.classpath ignored?

2008-03-08 Thread Joe Moreno

WO 10.5.2, most recent Eclipse with stable WOLips. Running WO 5.3.3

I renamed a WO project in Eclipse in three steps:
1. File –> Rename
2. Changed the project name in build.xml
3. Changed the project name in build.properties

All seems well except when I build and run inside Eclipse.

	Building from the command line, using ant, works too, but the class  
path in the dist is incomplete.
	Even though my .classpath is correct, the resulting  
MacOSXServerClassPath.txt and MacOSXClassPath.txt do not have all of  
the dependent frameworks.


	If I manually add the frameworks to those two txt files, the app  
deploys fine.


What am I missing?

Thanks,
Joe ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: SMTP Authentication for WO

2008-02-29 Thread Joe Moreno

Mike,

Thanks for pointing me to JavaMail – that worked like a champ.

- Joe

On Feb 29, 2008, at 07:51:15, Mike Schrag wrote:

JavaMail supports SMTPS + SMTP authentication.  ERJavaMail provides  
WOish wrappers and support for Component-based emails (if you use  
Project Wonder).


ms

On Feb 29, 2008, at 8:57 AM, Joe Moreno wrote:


Hi all,

	Can someone recommend a light weight Java SMTP authentication  
(password & SSL) package that works well with WO?


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


SMTP Authentication for WO

2008-02-29 Thread Joe Moreno

Hi all,

	Can someone recommend a light weight Java SMTP authentication  
(password & SSL) package that works well with WO?


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Double Click Link Freezes Deploy WO App

2008-02-24 Thread Joe Moreno
I probably should have added that the WOHyperlink is wired up to a  
WODisplayGroup's  displayNextBatch & displayPreviousBatch.


- Joe

On Feb 24, 2008, at 14:55:10, Joe Moreno wrote:


Hi,

	Has anyone seen a problem where, if you click too quickly (double  
click) on a WO hyperlink it freezes the deployed WO instance?


	I have a single 5.3.3 WO app deployed on Tiger Server under no  
load. When I click quickly through many pages the app will just  
freeze, and, repeated requests return No Instance Available.


	I have to Force Quit the app through Monitor and restart it.  
Turning on and off WOAllowsConcurrentRequestHandling makes no  
difference.


Any help is greatly appreciated.

Thanks,
Joe

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Double Click Link Freezes Deploy WO App

2008-02-24 Thread Joe Moreno

Hi,

	Has anyone seen a problem where, if you click too quickly (double  
click) on a WO hyperlink it freezes the deployed WO instance?


	I have a single 5.3.3 WO app deployed on Tiger Server under no load.  
When I click quickly through many pages the app will just freeze, and,  
repeated requests return No Instance Available.


	I have to Force Quit the app through Monitor and restart it. Turning  
on and off WOAllowsConcurrentRequestHandling makes no difference.


Any help is greatly appreciated.

Thanks,
Joe

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Ant class path deployment issue

2008-02-18 Thread Joe Moreno

Hi,

	I had a problem deploying a WO app, built with ant. EOs, in another  
framework, couldn't be found at runtime due to a NoClassDefFoundError.  
But, all was well when running in Eclipse.


	After digging around for a while I noticed that the a framework class  
path was missing on in the WOA under dist on the deployment machine. I  
added it manually and all was well.


	I don't understand the details of the relationship between ant and  
Eclipse/WOLips, but, once I changed the WO app's Java Build Path's  
Order and Export, by moving the EO framework to the top of the list,  
all was well with my ant builds.


	Can someone explain the significance of the Eclipse's Java Build  
Path's Order and Export and it's relationship with ant's build.xml (if  
any)?


Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Velocity generator template reference available

2008-01-29 Thread Joe Moreno

Thanks, John, that's very much appreciated.

- Joe

On Jan 29, 2008, at 11:39:06, John Huss wrote:

There is now a velocity generator template reference page on the  
wiki that shows all the bindings available for use in your velocity  
templates.   So if you've been wondering how to make better use of  
the velocity eogenerator, check it out.


John
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

WO & Amazon Web Services

2008-01-27 Thread Joe Moreno

Hi All,

	Before I roll my own, I thought I check to see if anyone knows of a  
standalone WO framework that implements Amazon's Web Services?


Specifically, I'm looking for typica and JetS3t or something similar.

Many Thanks,
Joe ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: EOGenerator Almost Working

2008-01-27 Thread Joe Moreno
Thanks, all. I upgraded to the latest WOLips build and, with some  
helpful hints from cug (Guido Neitzer) I got it working.


- Joe

On Jan 27, 2008, at 07:54:18, Mike Schrag wrote:

I just tested this now with totally stock templates (I only use the  
built-in ones) and it's working fine for me both with  
_WonderEntity.java/WonderEntity.java (defaults to ERXGenericRecord)  
and _Entity.java/Entity.java (defaults to EOGenericRecord).


Are you sure you're not accidentally overriding the default  
templates with ones of the same names?  At the top of your  
_UnderscoreFile, the version should be:

// $LastChangedRevision: 4733 $ ...

ms

On Jan 27, 2008, at 10:25 AM, Mr. Pierre Frisch wrote:


Mike,

I have build my own templates but I tried the default ones, they do  
not work if you do not define the $EOGenericRecord variable. The  
test to check if it is defined does not work.


Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Jan 27, 2008, at 7:01, Mike Schrag wrote:

Please try updating WOLips to the current nightly and try again.  
You can do that on a different Eclipse install if you are afraid  
of breaking something else.
Yes, there have been a significant number of updates to the  
default eogen templates ...


ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pierre%40apple.com

This email sent to [EMAIL PROTECTED]





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: EOGenerator Almost Working

2008-01-26 Thread Joe Moreno

Guido,

	Thanks for your tips. I know that putting the EOs in the default  
package is dirty, but I'm trying to simplify the problem. I've tried  
putting the EOs in a package and in the default package with the same  
problems.



Which version of WOLips are you using?


3.3.4574

Here's the strange part – I've removed all references to the template  
files in my project and Eclipse but WOLips is still picking up the  
template files from somewhere.
I then edited the template files and I don't see the edits in my  
generated EOs. Very odd.


I would have thought that the following eogen file would have failed,  
but WOLips is picking up the template files from somewhere:
 -destination src -model MyEOModel.eomodeld -subclassDestination src - 
verbose -define-EOGenericRecord EOGenericRecord


- Joe




On Jan 26, 2008, at 23:39:27, Guido Neitzer wrote:


On 27.01.2008, at 00:22, Joe Moreno wrote:

I can't figure out where EOGenerator is picking up its template  
files.


That is configured in the eogen file that is named like your model.


Oh, that helps! Thanks. I'm getting closer.


Interesting enough - I didn't have to do that.


So, I'm very close. But, I still get this as my first line:
package ${entity.packageName};

Perhaps I'm not setting the package or variable correctly?


Which version of WOLips are you using?

cug


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: EOGenerator Almost Working

2008-01-26 Thread Joe Moreno

Hi Pierre,

Thanks for your help.

1- I would really suggest that you place you code in a package, this  
is very strongly recommended by the Java language.


No problem. I did that and it still shows up in my generated EOs:
package ${entity.packageName};

Here's the strange part, I've edited the _Entity.java and removed the  
following line but the package still shows up.

package ${entity.packageName};
I can't figure out where EOGenerator is picking up its template files.

2- I have fond that problem too in the default templates open you  
eogen file and at the bottom define a variable EOGenericRecord with  
value EOGenericRecord. This looks silly but it is done so that you  
can have you own sub class of EOGenericRecord.


Oh, that helps! Thanks. I'm getting closer.

3- Which version of WebObjects are you using? You need WebObjects  
5.4 or better for generics to work.


Ok, right – I forgot that. I've been using a script to switch between  
WO 5.3 & WO 5.4. Using 5.4, this problem goes away.


So, I'm very close. But, I still get this as my first line:
package ${entity.packageName};

Perhaps I'm not setting the package or variable correctly?

- Joe

On Jan 26, 2008, at 22:35:22, Mr. Pierre Frisch wrote:


Hi Joe,

1- I would really suggest that you place you code in a package, this  
is very strongly recommended by the Java language.
2- I have fond that problem too in the default templates open you  
eogen file and at the bottom define a variable EOGenericRecord with  
value EOGenericRecord. This looks silly but it is done so that you  
can have you own sub class of EOGenericRecord.
3- Which version of WebObjects are you using? You need WebObjects  
5.4 or better for generics to work.


Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Jan 26, 2008, at 21:05, Joe Moreno wrote:


Hi All,

	I've followed the instructions here, but my generated files need  
some clean up to compile:

http://wiki.objectstyle.org/confluence/display/WOL/Velocity+EOGenerator+(Veogen)


Specifically, my generated _EO files have three errors that I can  
see:


1.
package ${entity.packageName};
I'd like the entities in the default package or at least not $ 
{entity.packageName}


2.
public abstract class _Customer extends ${EOGenericRecord} {
This should be EOGenericRecord not ${EOGenericRecord}

3.
For some reason, the compiler doesn't think that NSArray can be a  
generic (screen shot):



My EO file has one error:
package $entity.packageName;

Any help is greatly appreciated.

Thanks,
Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pierre%40apple.com

This email sent to [EMAIL PROTECTED]




 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

EOGenerator Almost Working

2008-01-26 Thread Joe Moreno
Hi All,	I've followed the instructions here, but my generated files need some clean up to compile:http://wiki.objectstyle.org/confluence/display/WOL/Velocity+EOGenerator+(Veogen)Specifically, my generated _EO files have three errors that I can see:1.package ${entity.packageName};I'd like the entities in the default package or at least not ${entity.packageName}2.public abstract class _Customer extends ${EOGenericRecord} {This should be EOGenericRecord not ${EOGenericRecord}3.For some reason, the compiler doesn't think that NSArray can be a generic (screen shot):My EO file has one error:package $entity.packageName;Any help is greatly appreciated.Thanks,Joe ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Can't set frameworks with latest nightly

2008-01-17 Thread Joe Moreno

Ken,

After you ran the script did you relaunch Eclipse?

- Joe


On Jan 17, 2008, at 18:53:09, Ken Anderson wrote:


Anyone have any comments or similar experiences?

Begin forwarded message:


From: Ken Anderson <[EMAIL PROTECTED]>
Date: January 17, 2008 1:37:22 PM EST
To: webobjects-dev@lists.apple.com
Subject: Can't set frameworks with latest nightly

Mike or anyone else,

I'm trying to migrate over to Leopard and the latest WOLips, but  
having some problems.  I followed Mike's suggestion of setting up  
the frameworks with WebObjects53 and WebObjects54 directories and a  
WebObjects symlink - not sure if that's the problem or not:





I've tried importing an existing project, as well as creating a new  
project in the same directory as the existing framework, and both  
have the same problem - I can't get the WO Frameworks item to  
appear.  I tried messing around with the Libraries tab when setting  
the projects build path, but the dialog looks incomplete:





The version I downloaded today is : 3.3.4763

Any thoughts?

Thanks,
Ken



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Ant Build Problem

2008-01-16 Thread Joe Moreno

Hi all:

	I've been having a problem with ant builds from the command line in  
Eclipse 3.3.1.1 with WOLips 3.3.4574.


	To isolate the problem, I created a Dummy project and when I run an  
ant build from the command line and then launch the app I still get  
the same error:


BUILD SUCCESSFUL
Total time: 0 seconds

[Macintosh:~/Projects/EclipseWorkspace/Dummy] % ./dist/Dummy.woa/Dummy
Reading MacOSClassPath.txt ...
Launching Dummy.woa ...
${jvm} -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" - 
DWOLocalRootDirectory="" -DWOUserDirectory="/Users/jmoreno/Projects/ 
EclipseWorkspace/Dummy" -DWOEnvClassPath="" - 
DWOApplicationClass=Application -DWOPlatform=MacOS - 
Dcom.webobjects.pid=1943 -classpath WOBootstrap.jar  
com.webobjects._bootstrap.WOBootstrap

./dist/Dummy.woa/Dummy: line 301: exec: -X: invalid option
exec: usage: exec [-cl] [-a name] file [redirection ...]


Any help is greatly appreciated.

- Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Unable to locate WOOpenURL on your computer

2008-01-15 Thread Joe Moreno
Are there any issues with simply coping WOOpenURL from Tiger into / 
System/Library/WebObjects/Executables?


I'm thinking it was left out for a good reason - but I'm not sure why.

- Joe

On Dec 19, 2007, at 10:10:51, Guido Neitzer wrote:


On 19.12.2007, at 10:52, Ricardo Parada wrote:

[2007-12-19 10:39:22 MST]  Unable to locate WOOpenURL on your  
computer, AutoOpen launch will not work


Any ideas where I went wrong?  :-)



WOOpenURL is not included in Leopard anymore.

Hint from David LeBer:

sudo mkdir /System/Library/WebObjects/Executables // I think you  
need to do this
sudo ln -s /usr/bin/open /System/Library/WebObjects/Executables/ 
WOOpenURL


cug

--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Cheat: Run EOModeler on Leopard

2008-01-15 Thread Joe Moreno
Now, I only need to use EOModeler 4.5.1 to view (read only) the  
models graphically (in diagram mode)
... also coming ... (held up by a bug in the scalable graphics  
context with bezier curves in SWT)


Fantastic.


and occasional data browsing.

... MMAAAYYBE coming ...lower priority.


Ok, no worries.

On Jan 15, 2008, at 07:10:17, Mike Schrag wrote:

Now, I only need to use EOModeler 4.5.1 to view (read only) the  
models graphically (in diagram mode)
... also coming ... (held up by a bug in the scalable graphics  
context with bezier curves in SWT)



and occasional data browsing.

... MMAAAYYBE coming ...lower priority.

ms

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.com

This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Cheat: Run EOModeler on Leopard

2008-01-14 Thread Joe Moreno

Mike and Pierre,

Thanks for pointing out the Relationship Wizard – that's a huge help.

	Now, I only need to use EOModeler 4.5.1 to view (read only) the  
models graphically (in diagram mode) and occasional data browsing.


Thanks for all the support,
Joe


On Jan 14, 2008, at 09:10:12, Mr. Pierre Frisch wrote:

I would very strongly advise you against doing that. There are new  
construct in the model for WO 5.4 that are supported by Entity  
Modeler that EOModeler does not know about and will very happily  
destroy. This is likely to lead to major disappointment, EOModeler  
check for a minimum version of the model but not a maximum so it  
will remove all the construct it does not know about. EOModeler save  
the model by doing a copy therefore anything it does not know about  
is forgotten and if my memory serves right WO 4.5.1 version does not  
know among other things about subversion.


You are only one key stroke away from disaster.

Cheers

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Jan 13, 2008, at 19:45, Joe Moreno wrote:


Hi all:

	I've used WO for 10 years and I was reluctant to give up Xcode,  
EOModeler and WOBuilder. But, there's no better Java IDE for WO  
than Eclipse with WOLips and Entity Modeler. I should have switched  
over earlier than I did.


	Sometimes, though, I really miss the ctrl-drag between primary- 
keys and foreign-keys in the EOModeler's diagram view to create a  
one-to-many relationship plus some other features.


	Since EOModeler doesn't run on Leopard I broke out my old WO 4.5.1  
discs and installed them in Parallels.


	Of course you'll need the database client library since it doesn't  
support JDBC, but it's a simple crutch I can use every now and them.


- Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pierre%40apple.com

This email sent to [EMAIL PROTECTED]




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Cheat: Run EOModeler on Leopard

2008-01-13 Thread Joe Moreno

Hi all:

	I've used WO for 10 years and I was reluctant to give up Xcode,  
EOModeler and WOBuilder. But, there's no better Java IDE for WO than  
Eclipse with WOLips and Entity Modeler. I should have switched over  
earlier than I did.


	Sometimes, though, I really miss the ctrl-drag between primary-keys  
and foreign-keys in the EOModeler's diagram view to create a one-to- 
many relationship plus some other features.


	Since EOModeler doesn't run on Leopard I broke out my old WO 4.5.1  
discs and installed them in Parallels.


	Of course you'll need the database client library since it doesn't  
support JDBC, but it's a simple crutch I can use every now and them.


- Joe
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: WOCookie Issue & WOLips Timezone

2008-01-11 Thread Joe Moreno

Pierre,

Thanks for clearing up the cookie and time zone issue.
	I didn't know the problem with the time zone was a WO bug, I thought  
it was an Eclipse bug.


	Also, I've tried several different ways to delete the wosid cookie  
when I'm terminating a session without any luck.
	Can you recommend a good way to clear out or remove the wosid cookie?  
It seems like the WO R/R is overriding my settings.


Thanks,
Joe


On Jan 11, 2008, at 06:32:52, Mr. Pierre Frisch wrote:


Hi Joe,

Both are known bugs.

The GMT/PST bug will be fixed in the next update of WO.

The cookie issue unfortunately missed that update and will have to  
wait for the next one. The issue is that the cookie parsing is too  
strict and consider the empty value as a mistake so it trips on  
wosid=;. I have not developed a workaround yet except fixing your  
cookies.


Cheers

Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Jan 10, 2008, at 22:35, Joe Moreno wrote:


Hi All,

	I just upgraded from Tiger client to Leopard and I've noticed two  
issues.


	First, the Eclipse Console correctly reports the time zone as PST,  
but the actual time digits are GMT. Am I missing something? I'm  
running Eclipse 3.3.1.1 and WOLips 3.3.4574.


	Second, I keep getting An Internal Server Error Has Occurred due  
to a cookie parsing error. Is this a WO bug? It was never an issue  
on Tiger.
	The wosid cookie is empty in Safari, but, obviously, WO's having a  
problem parsing it. It seems that the WO request/response loop is  
inserting null and I can't seem to override it. I have wosid's  
stored in cookies.


Any help is greatly appreciated.

Thanks,
Joe


[2008-1-11 5:38:58 PST]  CookieParser: Found a null  
cookie value in: 'wosid=; woinst=-1;  
__utmz=96992031.1185309238.1.1.utmccn=(direct)|utmcsr=(d
irect)|utmcmd=(none); For_Hire_Page=1; Help_Wanted_Page=1;  
__utma=96992031.406217258.1185309238.1199862120.1200029832.46;  
__utmc=96992031; For_Sale_Page=1; curr
entView=For_Sale; __utmb=96992031; loggedIn=n;  
__utma=96992031.406217258.1185309238.1199833485.1199862120.45'.  
Will continue by setting value to the empty string.
[2008-1-11 5:38:58 PST]   
:  
Exception while handling action named "page" on action
 class "null" :com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
[2008-1-11 5:38:58 PST]  CookieParser: Found a null  
cookie value in: 'wosid=; woinst=-1;  
__utmz=96992031.1185309238.1.1.utmccn=(direct)|utmcsr=(d
irect)|utmcmd=(none); For_Hire_Page=1; Help_Wanted_Page=1;  
__utma=96992031.406217258.1185309238.1199862120.1200029832.46;  
__utmc=96992031; For_Sale_Page=1; curr
entView=For_Sale; __utmb=96992031; loggedIn=n;  
__utma=96992031.406217258.1185309238.1199833485.1199862120.45'.  
Will continue by setting value to the empty strin

g.
[2008-1-11 5:38:58 PST]  socket=Socket[addr=/127.0.0.1,port=49208,localport=12001]>  
Exception occurred while responding to c
lient: com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:andler>: Exception while trying to generate an error response:  
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException] null:j

ava.lang.reflect.InvocationTargetException
[2008-1-11 5:38:58 PST]   
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:r._private.WODirectActionRequestHandler>: Exception while trying to  
generate an error response:  
com.webobjects.foundation.NSForwardException [java.lang.reflect.
InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java: 
320)
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java: 
158)
	at  
com 
.webobjects 
.appserver.WOApplication.dispatchRequest(WOApplication.java:1678)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)

at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
Method)
	at  
sun 
.reflect 
.NativeConstructorAccessorImpl 
.newInstance(NativeConstructorAccessorImpl.java:39)
	at  
sun 
.reflect 
.DelegatingConstructorAccessorImpl 
.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at  
com 
.webobjects 
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:614)
	at  
com 
.webobjects 
.appserver.WOApplication.createContextForRequest(WOApplication.java: 
2026)
	at  
com 
.webobjects 
.appserver 
._private 
.WOA

WOCookie Issue & WOLips Timezone

2008-01-10 Thread Joe Moreno

Hi All,

	I just upgraded from Tiger client to Leopard and I've noticed two  
issues.


	First, the Eclipse Console correctly reports the time zone as PST,  
but the actual time digits are GMT. Am I missing something? I'm  
running Eclipse 3.3.1.1 and WOLips 3.3.4574.


	Second, I keep getting An Internal Server Error Has Occurred due to a  
cookie parsing error. Is this a WO bug? It was never an issue on Tiger.
	The wosid cookie is empty in Safari, but, obviously, WO's having a  
problem parsing it. It seems that the WO request/response loop is  
inserting null and I can't seem to override it. I have wosid's stored  
in cookies.


Any help is greatly appreciated.

Thanks,
Joe


[2008-1-11 5:38:58 PST]  CookieParser: Found a null  
cookie value in: 'wosid=; woinst=-1;  
__utmz=96992031.1185309238.1.1.utmccn=(direct)|utmcsr=(d
irect)|utmcmd=(none); For_Hire_Page=1; Help_Wanted_Page=1;  
__utma=96992031.406217258.1185309238.1199862120.1200029832.46;  
__utmc=96992031; For_Sale_Page=1; curr
entView=For_Sale; __utmb=96992031; loggedIn=n;  
__utma=96992031.406217258.1185309238.1199833485.1199862120.45'. Will  
continue by setting value to the empty string.
[2008-1-11 5:38:58 PST]   
:  
Exception while handling action named "page" on action
 class "null" :com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
[2008-1-11 5:38:58 PST]  CookieParser: Found a null  
cookie value in: 'wosid=; woinst=-1;  
__utmz=96992031.1185309238.1.1.utmccn=(direct)|utmcsr=(d
irect)|utmcmd=(none); For_Hire_Page=1; Help_Wanted_Page=1;  
__utma=96992031.406217258.1185309238.1199862120.1200029832.46;  
__utmc=96992031; For_Sale_Page=1; curr
entView=For_Sale; __utmb=96992031; loggedIn=n;  
__utma=96992031.406217258.1185309238.1199833485.1199862120.45'. Will  
continue by setting value to the empty strin

g.
[2008-1-11 5:38:58 PST]  socket=Socket[addr=/127.0.0.1,port=49208,localport=12001]> Exception  
occurred while responding to c
lient: com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:andler>: Exception while trying to generate an error response:  
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException] null:j

ava.lang.reflect.InvocationTargetException
[2008-1-11 5:38:58 PST]   
com.webobjects.foundation.NSForwardException  
[java.lang.reflect.InvocationTargetException]  
null:r._private.WODirectActionRequestHandler>: Exception while trying to  
generate an error response:  
com.webobjects.foundation.NSForwardException [java.lang.reflect.
InvocationTargetException]  
null:java.lang.reflect.InvocationTargetException
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:320)
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
	at  
com 
.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 
1678)
	at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
	at  
com 
.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 
226)

at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
Method)
	at  
sun 
.reflect 
.NativeConstructorAccessorImpl 
.newInstance(NativeConstructorAccessorImpl.java:39)
	at  
sun 
.reflect 
.DelegatingConstructorAccessorImpl 
.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
	at  
com 
.webobjects 
.foundation._NSUtilities.instantiateObject(_NSUtilities.java:614)
	at  
com 
.webobjects 
.appserver.WOApplication.createContextForRequest(WOApplication.java: 
2026)
	at  
com 
.webobjects 
.appserver 
._private 
.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:310)

... 5 more
Caused by: java.lang.IllegalStateException: Malformed cookie  
content:"wosid=; woinst=-1;  
__utmz=96992031.1185309238.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(
none); For_Hire_Page=1; Help_Wanted_Page=1;  
__utma=96992031.406217258.1185309238.1199862120.1200029832.46;  
__utmc=96992031; For_Sale_Page=1; currentView=For_Sal
e; __utmb=96992031; loggedIn=n;  
__utma=96992031.406217258.1185309238.1199833485.1199862120.45"

at com.webobjects.appserver._CookieParser._parse(_CookieParser.java:59)
at com.webobjects.appserver._CookieParser.parse(_CookieParser.java:166)
	at  
com.webobjects.appserver.WORequest._cookieDictionary(WORequest.java: 
1005)

at com.webobjects.appserver.WORequest.cookieValues(WORequest.java:1059)
	at  
com.webobjects.appserver.WORequest.cookieValueForKey(WORequest.java: 
1040)
	at  
com 
.webobjects 
.appserver.WORequest._getSessionIDFromValuesOrCookie(WORequest.java: 
1557)
	at  
com 
.webobjects 
.appserver

Re: PDF engine, that handles tables well

2007-12-17 Thread Joe Moreno

For simple PDF creation in WO, I'm real cheap...

I create a TXT files, and make a couple calls to the command line:  
ENSCRIPT to convert the TXT file to PS and then PS2PDF for the final  
PDF which I end up queueing in the LPR queue to fax out. It works  
surprisingly well for simple stuff.


- Joe


On Dec 17, 2007, at 09:13:02, Don Lindsay wrote:


Hello;

I use JPDF and it works well.

Don
On Dec 16, 2007, at 11:59 PM, Gaastra Dennis - WO Lists wrote:


Our PDFkit does this very well;
 please have a look at our website + ignore the prices.

We will make available soon for free to the WebObjects community.
It looks like we will go the Frontbase route; only charge for  
support.


With Kind Regards,

Dennis Gaastra, M.B.A.[sfu.ca], B.Sc.[ubc.ca]
Chief Technology Officer,

WEBAPPZ Systems, Inc.


On 16-Dec-07, at 8:36 PM, Guido Neitzer wrote:


Hi.

Which PDF creation tool handles long page spanning tables really  
well?


I have to build a PDF file with one big table that spans over a  
couple of pages. The information is tabular data, so something  
that can handle this automatically would be nice.


cug

--
http://www.event-s.net

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/ 
webobjects_lists%40webappz.com


This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/pccdonl% 
40mac.com


This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno% 
40mac.com


This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Java Release 6 issues?

2007-12-16 Thread Joe Moreno


This tricked me, I thought Apple had released Java 1.6.

	Anyway, is there any good reason not to upgrade on either Tiger or  
Leopard to the latest Java update?


Thanks,
Joe

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: What happened to my WebObects option when creating a new project in Xcode 3.0?

2007-12-15 Thread Joe Moreno
I haven't upgraded to Leopard, yet, and I know all the WO tools have  
been deprecated on Leopard.
But, does Xcode still have the EOModel plug in? I know Xcode's  
rendering of EO Models wasn't that hot, but I just wanted to check.


On Dec 15, 2007, at 06:07:46, Tobias Crawley wrote:


read: http://wocommunity.org/webobjects_faq.html#xcode3

On Dec 15, 2007, at 8:33 AM, Peter D Simonson wrote:



 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/tcrawley% 
40gmail.com


This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno% 
40mac.com


This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: EOF Adaptor for Amazon's SimpleDB?

2007-12-14 Thread Joe Moreno

Well, since it's the Holiday Season, let me add this to my Wish List:

I'd also love a simple Amazon EC2 instance running WebObjects (WO  
frameworks and WO adaptor) that can be configured with JavaMonitor.


Or, even better, how about Amazon's EC2 running OS X Server (or at  
least Darwin)?


Ok, I'm back from fantasy land,
Joe Moreno


On Dec 14, 2007, at 09:15:03, Chuck Hill wrote:

I was going to reply to Joe with "Show it to Mike and bet him that  
he can't do it in a weekend."  :-P  Looks like he does not even  
need to do that.


Chuck


On Dec 14, 2007, at 9:09 AM, Mike Schrag wrote:


fancy .. i think i've found my weekend challenge :)

On Dec 14, 2007, at 12:03 PM, Joe Moreno wrote:

An EOF adaptor for Amazon's SimpleDB Web service seems like it  
could be promising (limited, but promising):

http://www.amazon.com/gp/browse.html?node=342335011

Does anyone have any thoughts on this?

- Joe Moreno


--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects





___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno% 
40mac.com


This email sent to [EMAIL PROTECTED]


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


EOF Adaptor for Amazon's SimpleDB?

2007-12-14 Thread Joe Moreno
An EOF adaptor for Amazon's SimpleDB Web service seems like it could  
be promising (limited, but promising):

http://www.amazon.com/gp/browse.html?node=342335011

Does anyone have any thoughts on this?

- Joe Moreno
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: Fat relationships: i.e. user <--->> transactions

2007-12-05 Thread Joe Moreno

My 2¢:

The following code snippet works for me in most cases, but, it  
doesn't work if the app tries to access the to-many relationship  
prior to saving the changes to the database.  Such access would fire  
the fault which would not contain the added object because it hadn't  
been saved to the DB, yet it should be in the to-many relationship in  
the app's object graph because it had been added.


public void holdFaultWhenAdding(EOEnterpriseObject eo, NSArray  
toManyArray) {

if(!EOFaultHandler.isFault(toManyArray)) {
 NSMutableArray array = (NSMutableArray) toManyArray;
 this.willChange();
array.addObject(eo);
}
}

When using the above method to hold faults, you’ll need to replace  
addToRelationship in your EO’s

custom class.

public void addToProducts(Product product) {
 this.holdFaultWhenAdding(product, this.products());
}


Does anyone have any experience with modeling the relationship both  
ways and simply turning off the to-many side as a class property for  
the _user_ side of a Web site but leaving the relationship as a class  
property for the_admin_ side?
I'm just thinking out loud, but it seems that both the _user_ and  
_admin_ apps could use the same EO Model but the _user_ app could  
load the model and then dynamically turn off the to-many relationship  
as a class property during run time.


- Joe


On Dec 5, 2007, at 09:53:22, Patrick Middleton wrote:



On 5 Dec 2007, at 17:17, Pierce T. Wetter III wrote:



...

 "addToBothSidesOfRelationship"

...





It turns out to be almost never the case that you want to fetch  
all "Open Tasks".  It tends to be the case for us that you  
almost always want to have additional qualifiers on those  
searches, which ends up that you fault a HUGE (many thousands)  
of EO's in just to turn back around and filter them down in  
memory.  Instead, I can remove that relationship completely and  
provide just the variant of the to-many that takes a qualifier.


Of course not and I agree 100%. But the example was user <- 
>>transactions which *I* would not fetch manually unless I had  
problems with multiple instances.


And the case above would normally be in an SEC which would have  
no outgoing relations anyway.


  Well, it was my example, so I'll chime in (and change the subject)

...


  The _admin_ side often does. So I'm glad to hear there's a fix  
for the NSArray O(N^2) issue, that was in old Obj-C EOF as well.


  So removing the inverse relationship from a fat to-many isn't  
always an option if you need one in one place, and another in a  
different place.


  A pure EOF solution would be to dynamically define the to many  
side of
 user ->>transactions relationship at runtime, based on the  
particular application's needs.


  That was one of the nice things about Obj-C categories...I could  
load certain code in only certain places.

...

Suddenly I am reminded of some ObjC code I posted to this list on  
Apr 19 ("Re: AddObjectToBothSidesOfRelationshipWithkey") -- how to  
manipulate relationships in a clean(ish) fully EOF 4.5.1 way that  
avoids unnecessary firing of array faults.


--
Patrick Middleton
OneStep Solutions plc
351 London Road Phone: +44 (0)1702 426400
HadleighFax:   +44 (0)1702 556855
Essex. SS7 2BT  Email: [EMAIL PROTECTED]
England(MIME welcome)

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/joemoreno% 
40mac.com


This email sent to [EMAIL PROTECTED]


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

OT: Exactly How Popular is WO?

2007-11-14 Thread Joe Moreno

It looks like WWDC 2005 put a little zip into WebObjects:
http://www.google.com/trends?q=webobjects

Obviously, the iPhone spiked in Jan and early summer of this year -  
and, as we head into the Holiday shopping season:

http://www.google.com/trends?q=iphone

And, finally, Xcode has been holding steady:
http://www.google.com/trends?q=xcode

(Eclipse is too generic of a term to see its trends and WOLips  
doesn't have enough volume.)


- Joe Moreno
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Component Actions: & encoding bug

2007-08-22 Thread Joe Moreno
Hi,	I was just recently bitten by WOContext's directActionURLForActionNamed bug:  The key/value pairs generated by this method are joined by & instead of just &. Obviously, that was a simple bug to work around (just replace & with & as Jeff Schmitz suggested).But, now for a tougher problem.	I have a component based hyperlink action - but, if the session has timed out I want to keep some state on the URL so I added the state into the WOHyperlink bindings in the same fashion as a direct action:ProfileHyperlink: WOHyperlink {	action = "">	?pageNumber = currentPage;	?wasLoggedIn = "y";	?wosid = wosid;}Guess what it does? It encodes the & as &When you mouse over the hyperlink it looks like this:If this image is stripped out by the discussion list then you can find the screen shot here:http://homepage.mac.com/jmoreno/.Public/WOAmpersandBug.png And the underlying HREF URL, generated by WebObjects, looks like this:/cgi-bin/WebObjects/MyWOApp.woa/wo/1dRbs2gZTtHj8lXzV8m3pg/0.5.3.0.0.1?pageNumber=5&wosid=1dRbs2gZTtHj8lXzV8m3pg&wasLoggedIn=yDoes anyone know a workaround for putting state on the URL when dealing with component based actions so that the ampersands aren't encoded?- Joe
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Re: Keep WebObjects, Remove cgi-bin

2007-06-25 Thread Joe Moreno

Check,

Did you change the WOCGIAdaptorURL command line argument?   
WOApplicationBaseURL?


See http://developer.apple.com/documentation/WebObjects/ 
WOAppProperties/AppProperties/chapter_1_section_1.html


Chuck

Good point.


Did you change the WOCGIAdaptorURL command line argument?
Yes. But it didn't make a difference. I tried it several different  
ways, then, after checking the docs, I saw that WOCGIAdaptorURL  
doesn't make a difference: "This URL is used by the direct connect  
feature only."



Did you change the ...  WOApplicationBaseURL?
No. It is set to /WebObjects, which is the default. But, I did change  
it, after reading your comment, to workaround the problem...


Workaround
Here's what I did as a partial solution. I added a folder under  
Apache's doc root named WebResources. The WebResources folder is at  
the same level and has the same contents as the WebObjects folder  
with its app's Web server resources (same permissions too). I then  
changed WOApplicationBaseURL from /WebObjects to /WebResources and  
everything works fine. Of course, the engineer inside of me wants to  
know why it won't work with /WebObjects???


So, my workaround seems to work after an "extensive" 10 minutes worth  
of testing. I'm wondering if it'll have any future side effects when  
I need complete URLs for SSL/TLS, etc???


If you can recommend anything else I should look at then please let  
me know.


Thanks,
Joe


On Jun 25, 2007, at 12:00:19, Chuck Hill wrote:



On Jun 24, 2007, at 6:50 PM, Joe Moreno wrote:


Hi,

Summary
	I changed the apache.conf WebObjectsAlias from /cgi-bin/ 
WebObjects to /WebObjects to shorten the URL but the images broke  
when the app was deployed.


Details
	I looked through the WO archive to figure out how to remove cgi- 
bin from the WO URL while keeping WebObjects, but I didn't find  
anything to fix the broken images. I'm looking for a WebObjects  
solution (vice an apache mod rewrite solution).


	I'm close, though, when I changed the following apache.conf line  
from:


WebObjectsAlias /cgi-bin/WebObjects

to:

WebObjectsAlias /WebObjects

This works great, but this also breaks the images in deployment.  
The URL for the images doesn't change (Web server resources  
usually aren't preceded with cgi-bin), here's a sample image URL  
for the deployed app:
http://www.example.com/WebObjects/WoApp.woa/Contents/ 
WebServerResources/Go-Button.gif


After carefully clearing the browsers cache, I can see that the WO  
app is generating the same image URL for both the cgi-bin/ 
WebObjects and /WebObjects configurations.


I have a test image (cnn.gif) here: docroot/WebObjects/cnn.gif
When I set the WebObjectsAlias to /cgi-bin/WebObjects, the Web  
server has no problem serving up the image.
When I change the WebObjectsAlias to /WebObjects, the Web server  
can't find the image.
It would seem that the WebObjects adaptor is intercepting the  
request, since WebObjects is in the URL, but I don't know where  
it's looking for the Web server resources. Permissions on the  
WebObjects folder don't seem to be an issue.


Did I miss something when changing the WebObjectsAlias? (I also  
changed the apache.conf's WebObjectsDocumentRoot )


Did you change the WOCGIAdaptorURL command line argument?   
WOApplicationBaseURL?


See http://developer.apple.com/documentation/WebObjects/ 
WOAppProperties/AppProperties/chapter_1_section_1.html


Chuck






Miguel Arroz wrote:


Hi!

On 2006/10/10, at 21:50, Chuck Hill wrote:


Interesting  I never tried that.  Thanks for the tip!  You  
just  have this then?


WebObjectsAlias /WebObjects




  Yap! :) Taking the cgi-bin part out makes the URL look much  
better!


  Yours


Cool. Thanks for that info. I think that is definitely Wiki worthy 
(if its not there already).




Sweet, it works like a charm !

Thanks for all.



Thanks Chuck you saved the day yet again.
I took a look at  http://www.jewelryluv.com/fashion/pageWithName/ 
ModRewrite/ but didn'tknow how to make it work with dynamic URLs  
so I changed applications dispatchRequest as below.


However it doesn't seem to return the correct response.content()   
the second  System.out.println I do shows that it has been replace  
but the generated page still contains the cgi-bin references?


public WOResponse dispatchRequest(WORequest request) {
if ("/favicon.ico".equals(request.uri())) {
return new WOResponse();
}
WOResponse response = super.dispatchRequest(request);
String contentType = response.headerForKey("content-type");

		if ((contentType == null) || (contentType.toLowerCase().indexOf 
("text/html") > - 1)) {
			response.setContent( response.contentString().replaceAll( "/cgi- 
bin/WebObj

Keep WebObjects, Remove cgi-bin

2007-06-25 Thread Joe Moreno

Hi,

Summary
	I changed the apache.conf WebObjectsAlias from /cgi-bin/WebObjects  
to /WebObjects to shorten the URL but the images broke when the app  
was deployed.


Details
	I looked through the WO archive to figure out how to remove cgi-bin  
from the WO URL while keeping WebObjects, but I didn't find anything  
to fix the broken images. I'm looking for a WebObjects solution (vice  
an apache mod rewrite solution).


I'm close, though - I changed the following apache.conf line from:

WebObjectsAlias /cgi-bin/WebObjects

to:

WebObjectsAlias /WebObjects

This works great, but this also breaks the images in deployment. The  
URL for the images doesn't change (Web server resources usually  
aren't preceded with cgi-bin), here's a sample image URL for the  
deployed app:
http://www.example.com/WebObjects/WoApp.woa/Contents/ 
WebServerResources/Go-Button.gif


After carefully clearing the browser's cache, I can see that the WO  
app is generating the same image URL for both the cgi-bin/WebObjects  
and /WebObjects configurations.


I have a test image (cnn.gif) here: docroot/WebObjects/cnn.gif
When I set the WebObjectsAlias to /cgi-bin/WebObjects, the Web server  
has no problem serving up the test image.
When I change the WebObjectsAlias to /WebObjects, the Web server  
can't find the test image.


It would seem that the WebObjects adaptor is intercepting the  
request, since WebObjects is in the URL, but I don't know where it's  
looking for the Web server resources. Permissions, on the WebObjects  
folder, don't seem to be an issue.


Did I miss something when changing the WebObjectsAlias? (I also tried  
changing the apache.conf's WebObjectsDocumentRoot )


- Joe





shaun wrote:

Miguel Arroz wrote:

Hi!

On 2006/10/10, at 21:50, Chuck Hill wrote:


Interesting  I never tried that.  Thanks for the tip!  You just  have  
this then?


WebObjectsAlias /WebObjects



  Yap! :) Taking the cgi-bin part out makes the URL look much better!

  Yours


Cool. Thanks for that info. I think that is definitely Wiki worthy(if  
its not there already).



Sweet, it works like a charm !

Thanks for all.



Thanks Chuck you saved the day yet again.
I took a look at  http://www.jewelryluv.com/fashion/pageWithName/ 
ModRewrite/ but didn'tknow how to make it work with dynamic URLs so I  
changed applications dispatchRequest as below.


However it doesn't seem to return the correct response.content()  the  
second  System.out.println I do shows that it has been replace but  
the generated page still contains the cgi-bin references?


public WOResponse dispatchRequest(WORequest request) {
if ("/favicon.ico".equals(request.uri())) {
return new WOResponse();
}
WOResponse response = super.dispatchRequest(request);
String contentType = response.headerForKey("content-type");

		if ((contentType == null) || (contentType.toLowerCase().indexOf 
("text/html") > - 1)) {
			response.setContent( response.contentString().replaceAll( "/cgi- 
bin/WebObjects/", "" ) );

System.out.println("WOResponse = " + 
response.contentString() );

return response;
}
return super.dispatchRequest(request);

}


Regards
David Elsner
Ph  61+02 42214251

On 09/03/2006, at 3:01 PM, Chuck Hill wrote:
Hi Dave,


On Mar 8, 2006, at 7:56 PM, Dave Elsner wrote:

I know this issue has been covered many times before but I still  
can't seem to find a solution to:


How to remove the "cgi-bin/WebObjects/appName.woa" from the URL  
permanently   ?


I have set up Apaches modRewrite so I can navigate to the Domain  
name, but as soon as I navigate from the front page the site the URL  
goes back to using " cgi-bin/WebObjects/appName.woa" How came I  
change the application so that all hyperlinks and form submit return  
a URL like:


http://mydomain/appname.woa/blahblah that will be translated by  
apache to http://mydomain/cgi-bin/WebObjects/appname.woa/blahblah


My  rewrite rule would look some thing like:  RewriteRule ^/ 
appname.woa.* /cgi-bin/WebObjects/appname.woa$1 [L,PT]


Can I do this in appendToResponce ?  pageWithName?  or changing the  
Monitors path to the WO Adaptor?


In a nutshell, you have to generate the URLs yourself.  There are  
many ways of doing this:


1. Create a class that generates the URL and use this with the href  
bindings on the components

2. Create a custom WOContext subclass to generate the URLS you need
3. Use regex to find and change the URLs in dispatchRequest in  
Application (probably the best place)
4. Do something like this: http://www.jewelryluv.com/fashion/ 
pageWithName/ModRewrite/



Chuck

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
He

Keep WebObjects, Remove cgi-bin

2007-06-25 Thread Joe Moreno

Hi,

Summary
	I changed the apache.conf WebObjectsAlias from /cgi-bin/WebObjects  
to /WebObjects to shorten the URL but the images broke when the app  
was deployed.


Details
	I looked through the WO archive to figure out how to remove cgi-bin  
from the WO URL while keeping WebObjects, but I didn't find anything  
to fix the broken images. I'm looking for a WebObjects solution (vice  
an apache mod rewrite solution).


I'm close, though, when I changed the following apache.conf line from:

WebObjectsAlias /cgi-bin/WebObjects

to:

WebObjectsAlias /WebObjects

This works great, but this also breaks the images in deployment. The  
URL for the images doesn't change (Web server resources usually  
aren't preceded with cgi-bin), here's a sample image URL for the  
deployed app:
http://www.example.com/WebObjects/WoApp.woa/Contents/ 
WebServerResources/Go-Button.gif


After carefully clearing the browsers cache, I can see that the WO  
app is generating the same image URL for both the cgi-bin/WebObjects  
and /WebObjects configurations.


I have a test image (cnn.gif) here: docroot/WebObjects/cnn.gif
When I set the WebObjectsAlias to /cgi-bin/WebObjects, the Web server  
has no problem serving up the image.
When I change the WebObjectsAlias to /WebObjects, the Web server  
can't find the image.
It would seem that the WebObjects adaptor is intercepting the  
request, since WebObjects is in the URL, but I don't know where it's  
looking for the Web server resources. Permissions on the WebObjects  
folder don't seem to be an issue.


Did I miss something when changing the WebObjectsAlias? (I also  
changed the apache.conf's WebObjectsDocumentRoot )


- Joe





shaun wrote:


Miguel Arroz wrote:


Hi!

On 2006/10/10, at 21:50, Chuck Hill wrote:


Interesting  I never tried that.  Thanks for the tip!  You just   
have this then?


WebObjectsAlias /WebObjects




  Yap! :) Taking the cgi-bin part out makes the URL look much better!

  Yours


Cool. Thanks for that info. I think that is definitely Wiki worthy 
(if its not there already).




Sweet, it works like a charm !

Thanks for all.



Thanks Chuck you saved the day yet again.
I took a look at  http://www.jewelryluv.com/fashion/pageWithName/ 
ModRewrite/ but didn'tknow how to make it work with dynamic URLs so I  
changed applications dispatchRequest as below.


However it doesn't seem to return the correct response.content()  the  
second  System.out.println I do shows that it has been replace but  
the generated page still contains the cgi-bin references?


public WOResponse dispatchRequest(WORequest request) {
if ("/favicon.ico".equals(request.uri())) {
return new WOResponse();
}
WOResponse response = super.dispatchRequest(request);
String contentType = response.headerForKey("content-type");

		if ((contentType == null) || (contentType.toLowerCase().indexOf 
("text/html") > - 1)) {
			response.setContent( response.contentString().replaceAll( "/cgi- 
bin/WebObjects/", "" ) );

System.out.println("WOResponse = " + 
response.contentString() );

return response;
}
return super.dispatchRequest(request);

}


Regards
David Elsner
Ph  61+02 42214251

On 09/03/2006, at 3:01 PM, Chuck Hill wrote:
Hi Dave,


On Mar 8, 2006, at 7:56 PM, Dave Elsner wrote:

I know this issue has been covered many times before but I still  
can't seem to find a solution to:


How to remove the "cgi-bin/WebObjects/appName.woa" from the URL  
permanently   ?


I have set up Apaches modRewrite so I can navigate to the Domain  
name, but as soon as I navigate from the front page the site the URL  
goes back to using " cgi-bin/WebObjects/appName.woa" How came I  
change the application so that all hyperlinks and form submit return  
a URL like:


http://mydomain/appname.woa/blahblah that will be translated by  
apache to http://mydomain/cgi-bin/WebObjects/appname.woa/blahblah


My  rewrite rule would look some thing like:  RewriteRule ^/ 
appname.woa.* /cgi-bin/WebObjects/appname.woa$1 [L,PT]


Can I do this in appendToResponce ?  pageWithName?  or changing the  
Monitors path to the WO Adaptor?


In a nutshell, you have to generate the URLs yourself.  There are  
many ways of doing this:


1. Create a class that generates the URL and use this with the href  
bindings on the components

2. Create a custom WOContext subclass to generate the URLS you need
3. Use regex to find and change the URLs in dispatchRequest in  
Application (probably the best place)
4. Do something like this: http://www.jewelryluv.com/fashion/ 
pageWithName/ModRewrite/



Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects  
and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their

Xcode: Two Classes with same name, different package.

2007-06-08 Thread Joe Moreno


	Is there a trick to adding two classes, with the same name but in  
different packages, to a WebObjects Xcode project?


	For example, what's the best way to add the following two classes  
to  a single Xcode project:

com.abc.Customer.java (in package com.abc)
com.xyz.Customer.java (in package com.xyz)

Thanks,
Joe


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: setting up SSL and certs

2006-03-08 Thread Joe Moreno
Gino,Does anyone know if it is possible to host more than 1 domain under https for name based hosting?If you're asking if you can host multiple SSL sites on the same server (machine) with different domain names then the answer is Yes. But, you'll need a separate public IP address for each SSL host. The reason is when a client and server communicate over SSL all their information is encrypted (except the source and destination IPs) including the headers (one of which contains the host name your connecting to - this is virtual hosting: multiple domain names on the same server with the same public IP address).So, the key is to assign multiple public IPs to the SSL server, one for each SSL certificate.Here's a sample (fictional) http  connection in the clear. Notice that the Host header is apparent.:010.000.001.101.52349-017.121.212.059.00080: GET /cgi-bin/WebObjects/AppleStore.woa/1/wo/PndTr0TlZKpi9GFdIoSwi0/2.17.13.0.1.0.1.1.1.1.0.4.1 HTTP/1.1Accept: */*Accept-Language: enAccept-Encoding: gzip, deflateCookie: CNNid=Gaa5116-192592657-1061949753118-1Referer: http://www.apple.com/cgi-bin/WebObjects/AppleStore.woa/1/wo/PmdTr0TlZKpi9GFdIoSwi0/0.15.0User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/417.9 (KHTML, like Gecko) Safari/417.8Connection: keep-aliveHost: www.mac.com017.121.212.059.00080-010.000.001.101.52349: HTTP/1.1 200 AppleDate: Wed, 08 Mar 2006 16:56:30 GMTServer: Apache/1.3.33 (Darwin) mod_ssl/2.8.24 OpenSSL/0.9.7iCache-Control: max-age=60Expires: Wed, 08 Mar 2006 16:57:30 GMTconnection: closecontent-length: 22009Content-Type: text/html.My Mac Web Site...Here's a sample SSL connection. The Host header is encrypted so the Web server wouldn't know which SSL certificate to use for decryption. (The info you see in the clear is who issued the certificate and who the certificate was issued to.)010.000.001.101.52361-017.121.212.059.00443: .mT[EMAIL PROTECTED]|.:DK.A.qY017.121.212.059.00443-010.000.001.101.52361: J...F..D.S..mT..yM ..0Z1.0...UUS1.0...U..}."TVv..lw.|0..x0.0070205063414Z0..1.0...UUS1.0...U.ax Secure Global eBusiness CA-10www.mac.com1<0:..U...3https://services.choicepoint.net/get.jsp?GT041781331'0%..USee www.rapidssl.com/cps (c)051/0-..U...).V)./:..'p.E.quc~..c...y..F.;y..ux.s.8i..#..M..q.-!.)oD0.>.%.&4T#.g0..0...U...0...U...7..>.S.~...w..Zc'.L'B...t...0..rh..FUVC.;.a...gwigjm...+ ...7..og.\I...pL'i<.iZ.l.fO.010.000.001.101.52361-017.121.212.059.00443: ..010.000.001.101.52361-017.121.212.059.00443: $.;.Y.L.A>...T!.3.An}c...^,d..K.{017.121.212.059.00443-010.000.001.101.52361: ..$5#...q...L.5.. O4B.F.6.:.._~Make Sense?- JoeOn Mar 8, 2006, at 04:52:51, Gino Pacitti wrote:Hi AllI have several domains being hosted on a OSX server and it is named based hosting.Most domain use port 80 but I have one using 443 with cert installed.Does anyone know if it is possible to host more than 1 domain under https for name based hosting?Gino ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Re: Sorting objects using my own criteria

2006-02-17 Thread Joe Moreno
Miguel,	What type of criteria are you trying to sort by?	Here's a code snippet if you wanted to sort a relationship.	In this example there's a relationship between Cafe <--->> Menu	public NSArray orderedMenus() {		EOSortOrdering sortOrdering =			new EOSortOrdering("ordering", EOSortOrdering.CompareCaseInsensitiveAscending);		NSMutableArray sortOrderings = new NSMutableArray(sortOrdering);		NSArray orderedMenus =			EOSortOrdering.sortedArrayUsingKeyOrderArray(this.menus(), sortOrderings);		return orderedMenus;	}	But, since you're saying that alphabetic sorting isn't enough, then you might have to do what was done in the above example, which is add a field to your EO that is used specifically for sorting.	If you're trying to sort numerically, then you'll want to make sure that the database field is a number and not a string.- JoeOn Feb 17, 2006, at 11:08:29, Miguel Arroz wrote:Hi!  This is probably a simple question, but I'm not finding an answer... how can I sort objects in memory using my own criteria? The alphabetic ordering is not enough... :)  YoursMiguel Arroz      "GUERRA E' PAZ       LIBERDADE E' ESCRAVIDAO       IGNORANCIA E' FORCA"       -- 1984Miguel Arrozhttp://www.ipragma.com___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/joemoreno%40mac.comThis email sent to [EMAIL PROTECTED]  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com