Re: [Wonder-disc] new wolips and wonder --

2010-11-24 Thread Travis Britt
Have you tried an embedded build? That will likely make your life easier in the 
future anyway.

http://wiki.objectstyle.org/confluence/display/WOL/Embedding+WOFrameworks

tb


On Nov 24, 2010, at 10:35 PM, Chuck Hill wrote:

> That all looks OK.  Some cruft in Java/Extensions on that machine?
> 
> 
> On Nov 24, 2010, at 7:31 PM, Jesse Tayler wrote:
> 
>> ERJars anymore than usual? They are checked off, and it all runs fine at my 
>> desk-connects to the database etc.
>> 
>> I use the Install tool for WOLips and then I get the .woa out of the install 
>> folder and push to the wolastic server.
>> 
>> Basic wo app worked and I had some ER apps running earlier...
>> 
>> The ERJars and ogle stuff seems there on the server -- I didn't set any path 
>> on the commandline, just ran the app.
>> 
>> Here's the out-
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 10:27pm appser...@ip-10-112-118-173:/home/appserver/Applications% 
>> WOMan.woa/WOMan 
>> Reading UNIXClassPath.txt ...
>> Launching WOMan.woa ...
>> java -DWORootDirectory="/opt" -DWOLocalRootDirectory="/opt/Local" 
>> -DWOUserDirectory="/home/appserver/Applications" -DWOEnvClassPath="" 
>> -DWOApplicationClass=wo.man.Application -DWOPlatform=UNIX 
>> -Dcom.webobjects.pid=15424 -classpath WOBootstrap.jar 
>> com.webobjects._bootstrap.WOBootstrap -WOFrameworksBaseURL 
>> /WebObjects/WOMan.woa/Frameworks
>> Loading 
>> /opt/Local/Library/WebObjects/Applications/WOMan.woa/Contents/UNIX/UNIXClassPath.txt
>> Generated classpath: 
>> /opt/Local/Library/WebObjects/Applications/WOMan.woa/Contents/Resources/Java/
>> /opt/Local/Library/WebObjects/Applications/WOMan.woa/Contents/Resources/Java/woman.jar
>> /opt/Local/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar
>> /opt/Local/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar
>> /opt/Local/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
>> /opt/Local/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
>> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
>> /opt/Local/Library/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar
>> /opt/Local/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
>> /opt/Local/Library/Frameworks/MySQLPlugIn.framework/Resources/Java/MySQLPlugIn.jar
>> /opt/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
>> /opt/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
>> /opt/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
>> /opt/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
>> /opt/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
>> /opt/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar
>> /opt/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
>> /opt/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
>> /opt/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
>> /opt/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
>> /opt/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
>> /opt/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar
>> /opt/Local/Library/WebObjects/Extensions/xml-apis.jar
>> /opt/Local/Library/WebObjects/Extensions/log4j-1.2.14.jar
>> /opt/Local/Library/WebObjects/Extensions/wsdl4j-1.5.1.jar
>> /opt/Local/Library/WebObjects/Extensions/commons-logging-1.0.4.jar
>> /opt/Local/Library/WebObjects/Extensions/axis-ant.jar
>> /opt/Local/Library/WebObjects/Extensions/axis.jar
>> /opt/Local/Library/WebObjects/Extensions/xercesImpl.jar
>> /opt/Local/Library/WebObjects/Extensions/commons-discovery-0.2.jar
>> /opt/Local/Library/WebObjects/Ex

Re: [Wonder-disc] new wolips and wonder --

2010-11-24 Thread Chuck Hill
That all looks OK.  Some cruft in Java/Extensions on that machine?


On Nov 24, 2010, at 7:31 PM, Jesse Tayler wrote:

> ERJars anymore than usual? They are checked off, and it all runs fine at my 
> desk-connects to the database etc.
> 
> I use the Install tool for WOLips and then I get the .woa out of the install 
> folder and push to the wolastic server.
> 
> Basic wo app worked and I had some ER apps running earlier...
> 
> The ERJars and ogle stuff seems there on the server -- I didn't set any path 
> on the commandline, just ran the app.
> 
> Here's the out-
> 
> 
> 
> 
> 
> 
> 
> 10:27pm appser...@ip-10-112-118-173:/home/appserver/Applications% 
> WOMan.woa/WOMan 
> Reading UNIXClassPath.txt ...
> Launching WOMan.woa ...
> java -DWORootDirectory="/opt" -DWOLocalRootDirectory="/opt/Local" 
> -DWOUserDirectory="/home/appserver/Applications" -DWOEnvClassPath="" 
> -DWOApplicationClass=wo.man.Application -DWOPlatform=UNIX 
> -Dcom.webobjects.pid=15424 -classpath WOBootstrap.jar 
> com.webobjects._bootstrap.WOBootstrap -WOFrameworksBaseURL 
> /WebObjects/WOMan.woa/Frameworks
> Loading 
> /opt/Local/Library/WebObjects/Applications/WOMan.woa/Contents/UNIX/UNIXClassPath.txt
> Generated classpath: 
>  /opt/Local/Library/WebObjects/Applications/WOMan.woa/Contents/Resources/Java/
>  
> /opt/Local/Library/WebObjects/Applications/WOMan.woa/Contents/Resources/Java/woman.jar
>  /opt/Local/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar
>  /opt/Local/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar
>  /opt/Local/Library/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
>  
> /opt/Local/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
>  /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
>  /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar
>  /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar
>  /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
>  
> /opt/Local/Library/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
>  
> /opt/Local/Library/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar
>  
> /opt/Local/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
>  
> /opt/Local/Library/Frameworks/MySQLPlugIn.framework/Resources/Java/MySQLPlugIn.jar
>  
> /opt/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
>  
> /opt/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
>  
> /opt/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
>  
> /opt/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
>  
> /opt/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
>  
> /opt/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar
>  
> /opt/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
>  
> /opt/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
>  
> /opt/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
>  
> /opt/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
>  /opt/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
>  /opt/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar
>  /opt/Local/Library/WebObjects/Extensions/xml-apis.jar
>  /opt/Local/Library/WebObjects/Extensions/log4j-1.2.14.jar
>  /opt/Local/Library/WebObjects/Extensions/wsdl4j-1.5.1.jar
>  /opt/Local/Library/WebObjects/Extensions/commons-logging-1.0.4.jar
>  /opt/Local/Library/WebObjects/Extensions/axis-ant.jar
>  /opt/Local/Library/WebObjects/Extensions/axis.jar
>  /opt/Local/Library/WebObjects/Extensions/xercesImpl.jar
>  /opt/Local/Library/WebObjects/Extensions/commons-discovery-0.2.jar
>  /opt/Local/Library/WebObjects/Extensions/servlet.jar
>  /opt/Local/Library/WebObjects/Extensions/saaj.jar
>  /opt/Local/Library/WebObjects/Extensions/serializer.jar
>  /opt/Local/Library/WebObjects/Extensions/xalan.jar
>  /op

Re: [Wonder-disc] new wolips and wonder --

2010-11-24 Thread Chuck Hill

On Nov 24, 2010, at 6:28 PM, Jesse Tayler wrote:

> ok, well, so do I!
> 
> but where does it need to find that stuff? /Library/Frameworks, ya?
> 
> I don't have anything in my home...
> 
> if the file is unreadable because of a bad character, would I know?
> 
> I'll graze it over again, but it's just a list of paths, right? anything 
> structured or a way to test the readability of it?


You could... show it to us.


> 
> On Nov 24, 2010, at 9:23 PM, Chuck Hill wrote:
> 
>> I still think you have mangled wolips.properties.
>> 
>> 
>> On Nov 24, 2010, at 5:57 PM, Jesse Tayler wrote:
>> 
>>> HA!, that's a reliable install...
>>> 
>>> Still, ERXApplication cannot be resolved.
>>> 
>>> Could I have confused this box with some configuration file? I mean, the 
>>> frameworks are there...
>>> 
>>> WO works, I even connected to a database at one point, but I might have 
>>> actually imported the entirety of Wonder into the project somehow...
>>> 
>>> Playing around with all this, I was able to import Ajax app but not ERXApp =
>>> 
>>> Does that suggest something's wrong with the actual framework installs?
>>> 
>>> On Nov 24, 2010, at 8:19 PM, Chuck Hill wrote:
>>> 
 http://www.webobjects.me/golipse/Golipse.dmg
>>> 
>> 
>> -- 
>> 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









smime.p7s
Description: S/MIME cryptographic signature
 ___
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: [Wonder-disc] new wolips and wonder --

2010-11-24 Thread Chuck Hill
I still think you have mangled wolips.properties.


On Nov 24, 2010, at 5:57 PM, Jesse Tayler wrote:

> HA!, that's a reliable install...
> 
> Still, ERXApplication cannot be resolved.
> 
> Could I have confused this box with some configuration file? I mean, the 
> frameworks are there...
> 
> WO works, I even connected to a database at one point, but I might have 
> actually imported the entirety of Wonder into the project somehow...
> 
> Playing around with all this, I was able to import Ajax app but not ERXApp =
> 
> Does that suggest something's wrong with the actual framework installs?
> 
> On Nov 24, 2010, at 8:19 PM, Chuck Hill wrote:
> 
>> http://www.webobjects.me/golipse/Golipse.dmg
> 

-- 
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









smime.p7s
Description: S/MIME cryptographic signature
 ___
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: [Wonder-disc] new wolips and wonder --

2010-11-24 Thread Chuck Hill

On Nov 24, 2010, at 5:13 PM, Jesse Tayler wrote:

> I see the frameworks, can't imagine they are corrupt, but I did fuss with 
> that file somewhat - still no love.
> 
> Should I be on Eclipse 3.3.2 from 2008?
> 
> Maybe an automated install I found for WO was out of date?


Yeah, by probably close to three years.  Most people are using Eclispe 3.6.

Try GoLips.

http://www.webobjects.me/golipse/Golipse.dmg


Chuck


> On Nov 24, 2010, at 7:31 PM, Chuck Hill wrote:
> 
>> Hi Jesse.
>> 
>> On Nov 24, 2010, at 3:47 PM, Jesse Tayler wrote:
>> 
>>> I'm setting up Eclipse for the first time, I'm familiar with WOnder and WO.
>>> 
>>> I create a simple WO app, runs fine.
>>> 
>>> I create a simple ER/Wonder app, the libraries are checked in build path 
>>> and the frameworks are installed and present in /Library/Frameworks - but 
>>> the ERXApplication class and others are not found? - won't compile?
>> 
>> That sounds like either the frameworks are not installed, are corrupt, or 
>> your
>> 
>> ~/Library/Application\ Support/WOLips/wolips.properties
>> 
>> file is messed up.   Here is what mine  looks like:
>> 
>> #Thu Feb 25 15:45:54 PST 2010
>> wo.system.root=/System
>> wo.user.frameworks=/Users/chuck/Library/Frameworks
>> wo.system.frameworks=/System/Library/Frameworks
>> wo.bootstrapjar=/System/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
>> wo.network.frameworks=/Network/Library/Frameworks
>> wo.api.root=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/InternetWeb/Reference/WO542Reference
>> wo.network.root=/Network
>> wo.extensions=/Library/WebObjects/Extensions
>> wo.user.root=/Users/chuck
>> wo.local.frameworks=/Library/Frameworks
>> wo.apps.root=/Library/WebObjects/Applications
>> wo.local.root=/
>> 
>> 
>> 
>>> Fussing around a great deal with Eclipse got me some success but I think I 
>>> might have hosed Eclipse config?
>> 
>> Possible, but probably not.
>> 
>> 
>> Chuck
>> 
>> 
>>> 
>>> I can't imagine why the packages can't be seen, any ideas?
>>> 
>>> 
>>> 
>>> --
>>> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
>>> Tap into the largest installed PC base & get more eyes on your game by
>>> optimizing for Intel(R) Graphics Technology. Get started today with the
>>> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
>>> http://p.sf.net/sfu/intelisp-dev2dev
>>> ___
>>> Wonder-disc mailing list
>>> wonder-d...@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>> 
>> -- 
>> 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









smime.p7s
Description: S/MIME cryptographic signature
 ___
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: Imagemagick

2010-11-24 Thread David Holt
Just to follow up. I followed this advice and it worked great. The thumbnailing 
in ERAttachment is working flawlessly!

David


On 2010-11-24, at 2:55 PM, Simon wrote:

>>> Is there a recommended path to put the binaries for Imagemagick? What
>>> permissions need to be set so that the thumbnail processor can access the
>>> binaries?
>> 
>> I would use MacPorts to install it, so ImageMagick will be put in /opt/local
> 
> +1
> 
> or yum on linux

 ___
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: Imagemagick

2010-11-24 Thread Simon
>> Is there a recommended path to put the binaries for Imagemagick? What
>> permissions need to be set so that the thumbnail processor can access the
>> binaries?
>
> I would use MacPorts to install it, so ImageMagick will be put in /opt/local

+1

or yum on linux
 ___
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: ERRest plist response and Objective-C

2010-11-24 Thread Farrukh Ijaz

On 2010-11-24, at 10:48 PM, Mike Schrag wrote:

> well, i just generate plists using NSPropertyListSerialization, so i would 
> suggest that it's a bug there ...

Agreed! It's not at Wonder side. However, I think a flag should have been 
provided in NSPropertyListSerialization serialization method to omit null 
values, then it would become KVC compatible and won't blow at NSCFString with 
message valueForKey or valueForKeyPath.

Farrukh

> 
> On Nov 24, 2010, at 2:32 PM, Mark Ritchie wrote:
> 
>> On 24/Nov/2010, at 1:42 PM, Farrukh Ijaz wrote:
>>> The situation I face is the null elements of the plist contain value 
>>> "" when they are converted 
>>> to plist. But on Objective-C side, such fields are created as NSCFString. 
>>> Do you have any idea how I can compare this to NSNull object? Right now I 
>>> use NSCFString's isEqualToString method and compare with 
>>> "". It's not a show 
>>> stopper, just wanted to know the right or better solution if someone knows?
>> 
>> Yeah, I think this is a bug in the plist generated by ERRest.  I hit this a 
>> while back but that project was abandoned for other reasons so I never 
>> followed up on this.  So, I'll open the question to the list...  When the 
>> value is null, what's the 'right' way to represent that in a plist?  
>> M.
>> 
>> ___
>> 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%40pobox.com
>> 
>> This email sent to msch...@pobox.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: ERRest plist response and Objective-C

2010-11-24 Thread Mike Schrag
well, i just generate plists using NSPropertyListSerialization, so i would 
suggest that it's a bug there ...

On Nov 24, 2010, at 2:32 PM, Mark Ritchie wrote:

> On 24/Nov/2010, at 1:42 PM, Farrukh Ijaz wrote:
>> The situation I face is the null elements of the plist contain value 
>> "" when they are converted 
>> to plist. But on Objective-C side, such fields are created as NSCFString. Do 
>> you have any idea how I can compare this to NSNull object? Right now I use 
>> NSCFString's isEqualToString method and compare with 
>> "". It's not a show 
>> stopper, just wanted to know the right or better solution if someone knows?
> 
> Yeah, I think this is a bug in the plist generated by ERRest.  I hit this a 
> while back but that project was abandoned for other reasons so I never 
> followed up on this.  So, I'll open the question to the list...  When the 
> value is null, what's the 'right' way to represent that in a plist?  
> M.
> 
> ___
> 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%40pobox.com
> 
> This email sent to msch...@pobox.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: ERRest plist response and Objective-C

2010-11-24 Thread Mark Ritchie
On 24/Nov/2010, at 1:42 PM, Farrukh Ijaz wrote:
> The situation I face is the null elements of the plist contain value 
> "" when they are converted 
> to plist. But on Objective-C side, such fields are created as NSCFString. Do 
> you have any idea how I can compare this to NSNull object? Right now I use 
> NSCFString's isEqualToString method and compare with 
> "". It's not a show stopper, 
> just wanted to know the right or better solution if someone knows?

Yeah, I think this is a bug in the plist generated by ERRest.  I hit this a 
while back but that project was abandoned for other reasons so I never followed 
up on this.  So, I'll open the question to the list...  When the value is null, 
what's the 'right' way to represent that in a plist?  
M.

 ___
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: Imagemagick

2010-11-24 Thread Pascal Robert
2010/11/24 David Holt 

> Is there a recommended path to put the binaries for Imagemagick? What
> permissions need to be set so that the thumbnail processor can access the
> binaries?


I would use MacPorts to install it, so ImageMagick will be put in /opt/local
 ___
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: Weird plist framework question

2010-11-24 Thread Farrukh Ijaz

On 2010-11-24, at 9:39 PM, Dan Beatty wrote:

> I agree with Farrukh

I guess you wanted to agree with Ramsey ;) I never used this type before and 
don't know the benefits of it but it sounds interesting to me for some of my 
experimental apps. ___
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

ERRest plist response and Objective-C

2010-11-24 Thread Farrukh Ijaz
Hi Everybody,

I've a question (specifically for ERRest authors / gurus). I've been doing some 
iPhone apps which connect to our WO apps. I use ERRest framework and generate 
plist response. On iPhone side, I load it to NSArray object using 

NSArray *data = [NSArray arrayWithContentsOfURL:];

The situation I face is the null elements of the plist contain value 
"" when they are converted to 
plist. But on Objective-C side, such fields are created as NSCFString. Do you 
have any idea how I can compare this to NSNull object? Right now I use 
NSCFString's isEqualToString method and compare with 
"". It's not a show stopper, 
just wanted to know the right or better solution if someone knows?

Thanks,

Farrukh


 ___
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


Imagemagick

2010-11-24 Thread David Holt
Is there a recommended path to put the binaries for Imagemagick? What 
permissions need to be set so that the thumbnail processor can access the 
binaries?

thanks,
David ___
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: Snow Leopard Deployment

2010-11-24 Thread Ron Lift
The only thing I am not sure of is what our operations group does to the
server before I get access. It is suppose to be a standard SL server build,
with afp, ard and webservices installed and on. I know they install some
backup and network monitoring software, just not sure else. I did download
the SL server from the apple developer site to test a few months ago and do
not remember making that change either. I am just glad it is fixed before
the holiday weekend so it is not in the back of my mind bugging me

Thanks everyone for the help!

On Wed, Nov 24, 2010 at 1:39 PM, Mark Ritchie  wrote:

> Ah ok,  glad that you're fixed.
> T's interesting that my conf file has a different version of the
> ScriptAlias and when I tried to make a version very much like the one below,
> I got a different error message...
> Weird!
>
> Sent from my iPhone
>
> On 2010-11-24, at 13:30, Ron Lift  wrote:
>
> Thank you
> commenting out the
> ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
> fixed the problem
>
> On Wed, Nov 24, 2010 at 1:24 PM, Ralf Schuchardt < 
> r...@gmx.de> wrote:
>
>> Hi,
>>
>> Am 24.11.2010 um 18:16 schrieb Mark Ritchie:
>>
>> > Hey,
>> >
>> > On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
>> > ...
>> >> When I use http://cgi-bin/WebObjects/ I get a 404
>> error.
>> >> The webserver log has
>> >> “script not found or unable to stat:
>> /Library/WebServer/CGI-Executables/WebObjects”
>> > First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
>>
>> The 10.6 standard httpd.conf has at least one ScriptAlias statement like
>>
>>ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
>>
>> that has to be commented out to get WebObjects working.
>>
>>
>> Ralf
>>
>>
>  ___
> 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/mark.ritchie%40mac.com
>
> This email sent to mark.ritc...@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: Weird plist framework question

2010-11-24 Thread Chuck Hill
It is part of our GVCFrameworks (and had dependancies on other parts):
http://sourceforge.net/projects/gvcsitemaker/files/

It is the engine that drives the Data Tables functionality in GVC.SiteMaker.


Chuck


On Nov 24, 2010, at 10:59 AM, Beatty, Daniel D CIV NAVAIR, 474300D wrote:

> Greetings Chuck,
> Is there such a thing of "virtual tables"?  It is definitely worth
> considering.
> 
> Thank you,
> 
> Daniel Beatty
> Computer Scientist, Detonation Sciences Branch
> Code 474300D
> 2400 E. Pilot Plant Rd. M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (760)939-7097 
> 
> 
> 
> 
> On 11/24/10 10:52 AM, "Chuck Hill"  wrote:
> 
>> 
>> On Nov 24, 2010, at 10:39 AM, Dan Beatty wrote:
>> 
>>> Greetings all,
>>> I agree with Farrukh, that would be a handy prototype.  The other idea I had
>>> was to literally build a set of tables for a framework ³SomeOnesDictionary²
>>> where the super-class could be linked to any other object.
>> 
>> Perhaps what you want is our "virtual tables" framework?  It implements a
>> database in a handful of tables with KVC access, relationships, and 
>> calculated
>> fields.
>> 
>> 
>> Chuck
>> 
>> 
>>> Both are good notions, and like I said seem so simple that it would be shock
>>> that it had not been thought of before.
>>> 
>>> V.r.
>>> 
>>> Daniel Beatty
>>> Computer Scientist, Detonation Sciences Branch
>>> Code 474300D
>>> 2400 E. Pilot Plant Rd. M/S 1109
>>> China Lake, CA 93555
>>> daniel.bea...@navy.mil
>>> (760)939-7097 
>>> 
>>> 
>>> 
>>> 
>>> On 11/24/10 10:26 AM, "Farrukh Ijaz" 
>>> wrote:
>>> 
 
 On 2010-11-24, at 9:23 PM, Ramsey Gurley wrote:
 
> There's a mutable dictionary attribute in ERPrototypes. Works with
> ERXMutableDictonary.
 
 Interesting! Does that automatically handle the back-and-forth conversion?
 
 Farrukh
 
> 
> Ramsey
> 
> On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:
> 
>> Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
>> Got a weird question for you.  Does Wonder have a framework for having
>> the notion a ³plist² in the database itself.   The idea being that one
>> would have an attribute that would basically be a plist dictionary (in 
>> and
>> of itself)?   The idea seemed so simple, I find it hard to believe that 
>> it
>> has not been conjured up before.  I am thinking that it would have a
>> migration method similar to ERAttachment allowing any other table to
>> reference such a dictionary, like ERDictionary or something.
>> 
>> Any ideas?
>> 
>> Daniel Beatty
>> Computer Scientist, Detonation Sciences Branch
>> Code 474300D
>> 2400 E. Pilot Plant Rd. M/S 1109
>> China Lake, CA 93555
>> daniel.bea...@navy.mil 
>> (760)939-7097
>> 
>> 
>>   ___
>> 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/ramsey%40xeotech.com
>> 
>> This email sent to ram...@xeotech.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/farrukh.ijaz%40fuegod
> igitalmedia.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/daniel.beatty%40navy.m
 il
 
 This email sent to daniel.bea...@navy.mil
>>> ___
>>> 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
> ___
> 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/product

Re: Weird plist framework question

2010-11-24 Thread Beatty, Daniel D CIV NAVAIR, 474300D
Greetings Chuck,
Is there such a thing of "virtual tables"?  It is definitely worth
considering.

Thank you,

Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 474300D
2400 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
daniel.bea...@navy.mil
(760)939-7097 




On 11/24/10 10:52 AM, "Chuck Hill"  wrote:

> 
> On Nov 24, 2010, at 10:39 AM, Dan Beatty wrote:
> 
>> Greetings all,
>> I agree with Farrukh, that would be a handy prototype.  The other idea I had
>> was to literally build a set of tables for a framework ³SomeOnesDictionary²
>> where the super-class could be linked to any other object.
> 
> Perhaps what you want is our "virtual tables" framework?  It implements a
> database in a handful of tables with KVC access, relationships, and calculated
> fields.
> 
> 
> Chuck
> 
> 
>>  Both are good notions, and like I said seem so simple that it would be shock
>> that it had not been thought of before.
>> 
>> V.r.
>> 
>> Daniel Beatty
>> Computer Scientist, Detonation Sciences Branch
>> Code 474300D
>> 2400 E. Pilot Plant Rd. M/S 1109
>> China Lake, CA 93555
>> daniel.bea...@navy.mil
>> (760)939-7097 
>> 
>> 
>> 
>> 
>> On 11/24/10 10:26 AM, "Farrukh Ijaz" 
>> wrote:
>> 
>>> 
>>> On 2010-11-24, at 9:23 PM, Ramsey Gurley wrote:
>>> 
 There's a mutable dictionary attribute in ERPrototypes. Works with
 ERXMutableDictonary.
>>> 
>>> Interesting! Does that automatically handle the back-and-forth conversion?
>>> 
>>> Farrukh
>>> 
 
 Ramsey
 
 On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:
 
> Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
>  Got a weird question for you.  Does Wonder have a framework for having
> the notion a ³plist² in the database itself.   The idea being that one
> would have an attribute that would basically be a plist dictionary (in and
> of itself)?   The idea seemed so simple, I find it hard to believe that it
> has not been conjured up before.  I am thinking that it would have a
> migration method similar to ERAttachment allowing any other table to
> reference such a dictionary, like ERDictionary or something.
>  
>  Any ideas?
>  
>  Daniel Beatty
>  Computer Scientist, Detonation Sciences Branch
>  Code 474300D
>  2400 E. Pilot Plant Rd. M/S 1109
>  China Lake, CA 93555
>  daniel.bea...@navy.mil 
>  (760)939-7097
>  
>  
>___
> 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/ramsey%40xeotech.com
> 
> This email sent to ram...@xeotech.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/farrukh.ijaz%40fuegod
 igitalmedia.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/daniel.beatty%40navy.m
>>> il
>>> 
>>> This email sent to daniel.bea...@navy.mil
>> ___
>> 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


smime.p7s
Description: S/MIME cryptographic signature
 ___
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: Weird plist framework question

2010-11-24 Thread Chuck Hill

On Nov 24, 2010, at 10:39 AM, Dan Beatty wrote:

> Greetings all,
> I agree with Farrukh, that would be a handy prototype.  The other idea I had 
> was to literally build a set of tables for a framework “SomeOnesDictionary” 
> where the super-class could be linked to any other object.

Perhaps what you want is our "virtual tables" framework?  It implements a 
database in a handful of tables with KVC access, relationships, and calculated 
fields.


Chuck


>  Both are good notions, and like I said seem so simple that it would be shock 
> that it had not been thought of before.
> 
> V.r.
> 
> Daniel Beatty
> Computer Scientist, Detonation Sciences Branch
> Code 474300D
> 2400 E. Pilot Plant Rd. M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (760)939-7097 
> 
> 
> 
> 
> On 11/24/10 10:26 AM, "Farrukh Ijaz"  
> wrote:
> 
>> 
>> On 2010-11-24, at 9:23 PM, Ramsey Gurley wrote:
>> 
>>> There's a mutable dictionary attribute in ERPrototypes. Works with 
>>> ERXMutableDictonary.
>> 
>> Interesting! Does that automatically handle the back-and-forth conversion?
>> 
>> Farrukh
>> 
>>> 
>>> Ramsey
>>> 
>>> On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:
>>> 
 Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
  Got a weird question for you.  Does Wonder have a framework for having 
 the notion a “plist” in the database itself.   The idea being that one 
 would have an attribute that would basically be a plist dictionary (in and 
 of itself)?   The idea seemed so simple, I find it hard to believe that it 
 has not been conjured up before.  I am thinking that it would have a 
 migration method similar to ERAttachment allowing any other table to 
 reference such a dictionary, like ERDictionary or something.
  
  Any ideas?
  
  Daniel Beatty
  Computer Scientist, Detonation Sciences Branch
  Code 474300D
  2400 E. Pilot Plant Rd. M/S 1109
  China Lake, CA 93555
  daniel.bea...@navy.mil  
  (760)939-7097 
  
  
___
 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/ramsey%40xeotech.com
 
 This email sent to ram...@xeotech.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/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/daniel.beatty%40navy.mil
>> 
>> This email sent to daniel.bea...@navy.mil
> ___
> 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









smime.p7s
Description: S/MIME cryptographic signature
 ___
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: Snow Leopard Deployment

2010-11-24 Thread Mark Ritchie
Ah ok,  glad that you're fixed.
T's interesting that my conf file has a different version of the ScriptAlias 
and when I tried to make a version very much like the one below, I got a 
different error message...
Weird!

Sent from my iPhone

On 2010-11-24, at 13:30, Ron Lift  wrote:

> Thank you 
> commenting out the  
> ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
> fixed the problem
> 
> On Wed, Nov 24, 2010 at 1:24 PM, Ralf Schuchardt  wrote:
> Hi,
> 
> Am 24.11.2010 um 18:16 schrieb Mark Ritchie:
> 
> > Hey,
> >
> > On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
> > ...
> >> When I use http://cgi-bin/WebObjects/ I get a 404 
> >> error.
> >> The webserver log has
> >> “script not found or unable to stat: 
> >> /Library/WebServer/CGI-Executables/WebObjects”
> > First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
> 
> The 10.6 standard httpd.conf has at least one ScriptAlias statement like
> 
>ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
> 
> that has to be commented out to get WebObjects working.
> 
> 
> Ralf
> 
> 
> ___
> 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/mark.ritchie%40mac.com
> 
> This email sent to mark.ritc...@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: Weird plist framework question

2010-11-24 Thread Dan Beatty
Greetings all,
I agree with Farrukh, that would be a handy prototype.  The other idea I had
was to literally build a set of tables for a framework ³SomeOnesDictionary²
where the super-class could be linked to any other object.  Both are good
notions, and like I said seem so simple that it would be shock that it had
not been thought of before.

V.r.

Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 474300D
2400 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
daniel.bea...@navy.mil
(760)939-7097 




On 11/24/10 10:26 AM, "Farrukh Ijaz" 
wrote:

> 
> On 2010-11-24, at 9:23 PM, Ramsey Gurley wrote:
> 
>> There's a mutable dictionary attribute in ERPrototypes. Works with
>> ERXMutableDictonary.
> 
> Interesting! Does that automatically handle the back-and-forth conversion?
> 
> Farrukh
> 
>> 
>> Ramsey
>> 
>> On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:
>> 
>>>  Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
>>>  Got a weird question for you.  Does Wonder have a framework for having the
>>> notion a ³plist² in the database itself.   The idea being that one would
>>> have an attribute that would basically be a plist dictionary (in and of
>>> itself)?   The idea seemed so simple, I find it hard to believe that it has
>>> not been conjured up before.  I am thinking that it would have a migration
>>> method similar to ERAttachment allowing any other table to reference such a
>>> dictionary, like ERDictionary or something.
>>>  
>>>  Any ideas?
>>>  
>>>  Daniel Beatty
>>>  Computer Scientist, Detonation Sciences Branch
>>>  Code 474300D
>>>  2400 E. Pilot Plant Rd. M/S 1109
>>>  China Lake, CA 93555
>>>  daniel.bea...@navy.mil 
>>>  (760)939-7097 
>>>  
>>>   
>>>___
>>> 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/ramsey%40xeotech.com
>>> 
>>> This email sent to ram...@xeotech.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/farrukh.ijaz%40fuegodig
>> italmedia.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/daniel.beatty%40navy.mil
> 
> This email sent to daniel.bea...@navy.mil

 ___
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: Weird plist framework question

2010-11-24 Thread Ramsey Gurley
Yes, but it's mutable. You have to exercise extreme caution with  
something that breaks the EOF commandments (^_^) You might want to  
consider creating an immutable version based on it if you are doing a  
lot of read/write.


Ramsey


On Nov 24, 2010, at 1:26 PM, Farrukh Ijaz wrote:



On 2010-11-24, at 9:23 PM, Ramsey Gurley wrote:

There's a mutable dictionary attribute in ERPrototypes. Works with  
ERXMutableDictonary.


Interesting! Does that automatically handle the back-and-forth  
conversion?


Farrukh



Ramsey

On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:


Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
Got a weird question for you.  Does Wonder have a framework for  
having the notion a “plist” in the database itself.   The idea  
being that one would have an attribute that would basically be a  
plist dictionary (in and of itself)?   The idea seemed so simple,  
I find it hard to believe that it has not been conjured up  
before.  I am thinking that it would have a migration method  
similar to ERAttachment allowing any other table to reference such  
a dictionary, like ERDictionary or something.


Any ideas?

Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 474300D
2400 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
daniel.bea...@navy.mil
(760)939-7097

___
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/ramsey%40xeotech.com

This email sent to ram...@xeotech.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/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

Re: Snow Leopard Deployment

2010-11-24 Thread Mark Ritchie
I think it might depend on which version/software update you're running! 
Usually there's also the need to remove/change the allow/deny rules but those 
result in a different error so I don't think that's the case here!
M. 

Sent from my iPhone

On 2010-11-24, at 13:27, Pascal Robert  wrote:

> 
> Le 2010-11-24 à 13:24, Ralf Schuchardt a écrit :
> 
>> Hi,
>> 
>> Am 24.11.2010 um 18:16 schrieb Mark Ritchie:
>> 
>>> Hey,
>>> 
>>> On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
>>> ...
 When I use http://cgi-bin/WebObjects/ I get a 404 
 error. 
 The webserver log has
 “script not found or unable to stat: 
 /Library/WebServer/CGI-Executables/WebObjects”
>>> First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
>> 
>> The 10.6 standard httpd.conf has at least one ScriptAlias statement like 
>> 
>>ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
>> 
>> that has to be commented out to get WebObjects working.
> 
> That's the strange thing. I remember that I had this line in my httpd.conf, 
> but when we had setup a machine at WO-NoVa last week, that line was not 
> there, and it was a brand new Snow Leopard installation. So look like this 
> line is sometime there, sometime not.
> 
> 
> --
> Pascal Robert
> prob...@macti.ca
> 
> AIM/iChat : MacTICanada
> LinkedIn : http://www.linkedin.com/in/macti
> Twitter : pascal_robert
> 
> ___
> 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/mark.ritchie%40mac.com
> 
> This email sent to mark.ritc...@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: Snow Leopard Deployment

2010-11-24 Thread Ron Lift
Thank you
commenting out the
ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
fixed the problem

On Wed, Nov 24, 2010 at 1:24 PM, Ralf Schuchardt  wrote:

> Hi,
>
> Am 24.11.2010 um 18:16 schrieb Mark Ritchie:
>
> > Hey,
> >
> > On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
> > ...
> >> When I use http://cgi-bin/WebObjects/ I get a 404
> error.
> >> The webserver log has
> >> “script not found or unable to stat:
> /Library/WebServer/CGI-Executables/WebObjects”
> > First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
>
> The 10.6 standard httpd.conf has at least one ScriptAlias statement like
>
>ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
>
> that has to be commented out to get WebObjects working.
>
>
> Ralf
>
>
 ___
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: Snow Leopard Deployment

2010-11-24 Thread Pascal Robert

Le 2010-11-24 à 13:27, Ron Lift a écrit :

> 
> 
> On Wed, Nov 24, 2010 at 12:56 PM, Patrick Middleton  
> wrote:
> 
> On 24 Nov 2010, at 17:16, Mark Ritchie wrote:
> 
> Hey,
> 
> On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
> ...
> When I use http://cgi-bin/WebObjects/ I get a 404 error.
> The webserver log has
> “script not found or unable to stat: 
> /Library/WebServer/CGI-Executables/WebObjects”
> First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
> I've tried messing with my apache2 settings but I can't reproduce your error.
> Also, you mentioned apache.conf below so that leads me to wonder what version 
> of apache you're using?
> 
> That looks to me like the WebObjects DSO (mod_WebObjects.so) is not being 
> loaded and the CGI adaptor is being used instead; URLs .../cgi-bin/WebObjects 
> map to a CGI script WebObjects, and Apache on MacOSX will find those by 
> default in /Library/WebServer/CGI-Executables .  Older deployment 
> documentation should have a recipe for diagnosing whether the API adaptor 
> (good) or the CGI adaptor (bad) is handling requests.
> 
> Walk through your Apache main configuration file.  At some point I would 
> expect it to be doing something like
> 
> # Including WebObjects Configs
> Include /Library/WebObjects/Adaptors/Apache2.2/apache.conf
> 
> i have this line at the end of my /etc/apache2/httpd.conf file
> Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
>  
> 
> (the apache.conf file you referred to) which might include some LoadModule 
> and AddModule directives.  Are those directives present?  Is Apache actually 
> reading your adaptor's config file?
> 
> How can I tell? 

Do:

sudo httpd -M | grep WebObjects

It should return :

 WebObjects_module (shared)


> 
> Also Apache is traditionally sensitive to the order in which modules are 
> loaded ... you might see the CGI adaptor handling requests if mod_cgi loaded 
> after mod_WebObjects. I usually comment out the LoadModule and AddModule 
> directives in apache.conf and add equivalents in exactly the location I want 
> in the main Apache conf file.
> 
> The LoadModule is in the 
> /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf file that is at the 
> end of the httpd.conf file, so I would think the mod_Webobjects is being 
> used. Is there a way to tell?
> 
> 
> Also: are you loading the module you think you are?  On Snow Leopard, Apache 
> should be an i386/x86_64 universal binary, and unless you have a really weedy 
> ancient Mac (three year old MacMini, maybe) it'll be running the x86_64 code, 
> and that means all the modules (including any you built) need ideally to be 
> universal, or at a pinch the architecture being run (most likely x86_64), and 
> I have seen people get this wrong and ignore the warnings from 'apachectl 
> configtest'.
> 
> Syntax OK from  apachectl configtest. This is a new SnowLeopard build on a 
> Xserve
> 
> 
> 
> this is some lines from the apache.conf file
> WebObjectsDocumentRoot /Library/WebServer/Documents
> WebObjectsAlias /cgi-bin/WebObjects
> WebObjectsConfig http://localhost:1085 10
> I can get to the wotaskd http://:1085  and using localhost:1085
> That's a good sign!
> 
> I cannot get to http:///cgi-bin/WebObjects/WOAdaptorInfo I get a 
> 404 error. I saw a post with this
> “but the WOAdaptorInfo page was reporting nothing ... bingo”
> I just need to know what “bingo” is. I know when I find out I am going to say 
> “dah, I should have known that”
> I doubt that you can get to WOAdaptorInfo until you've resolved the path 
> issue above.
> And you're going to need to enable it with a directive like:
> WebObjectsAdminUsername public
> (Note: this is the open to all version.  There is an alternative of user and 
> password if you want to be more secure once you get things working.)
> M.
> 
> ---
> Regards Patrick
> OneStep Solutions (Research) LLP
> www.onestep.co.uk
> 
> 
> 
> 
> This email, including any attachments, is confidential and intended solely 
> for the person or organisation to whom it is addressed. If you are not the 
> intended recipient you must not disseminate, distribute or copy any part of 
> this email nor take any action in reliance on it.
> 
> If you have received this in error please notify the sender immediately by 
> email or phone +44 (0)1702 426400 and delete this email and any attachments 
> from your system.
> 
> Email transmission cannot be guaranteed to be secure or error-free as 
> information could be intercepted, corrupted, lost, destroyed, arrive late or 
> incomplete, or contain viruses. The sender therefore does not accept 
> liability for any errors or omissions in the contents of this message which 
> arise as a result of email transmission. If verification is required please 
> request a hard-copy version.
> 
> OneStep Solutions LLP is registered in England and Wales under registration 
> number OC337173 and has its registered office at 457 Southchurch Road, 
> Southend-on-Sea, Essex SS1 2PH

Re: Weird plist framework question

2010-11-24 Thread Farrukh Ijaz

On 2010-11-24, at 9:23 PM, Ramsey Gurley wrote:

> There's a mutable dictionary attribute in ERPrototypes. Works with 
> ERXMutableDictonary.

Interesting! Does that automatically handle the back-and-forth conversion?

Farrukh

> 
> Ramsey
> 
> On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:
> 
>> Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
>> Got a weird question for you.  Does Wonder have a framework for having the 
>> notion a “plist” in the database itself.   The idea being that one would 
>> have an attribute that would basically be a plist dictionary (in and of 
>> itself)?   The idea seemed so simple, I find it hard to believe that it has 
>> not been conjured up before.  I am thinking that it would have a migration 
>> method similar to ERAttachment allowing any other table to reference such a 
>> dictionary, like ERDictionary or something.
>> 
>> Any ideas?
>> 
>> Daniel Beatty
>> Computer Scientist, Detonation Sciences Branch
>> Code 474300D
>> 2400 E. Pilot Plant Rd. M/S 1109
>> China Lake, CA 93555
>> daniel.bea...@navy.mil
>> (760)939-7097 
>> 
>> ___
>> 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/ramsey%40xeotech.com
>> 
>> This email sent to ram...@xeotech.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/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

Re: Snow Leopard Deployment

2010-11-24 Thread Pascal Robert

Le 2010-11-24 à 13:24, Ralf Schuchardt a écrit :

> Hi,
> 
> Am 24.11.2010 um 18:16 schrieb Mark Ritchie:
> 
>> Hey,
>> 
>> On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
>> ...
>>> When I use http://cgi-bin/WebObjects/ I get a 404 
>>> error. 
>>> The webserver log has
>>> “script not found or unable to stat: 
>>> /Library/WebServer/CGI-Executables/WebObjects”
>> First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
> 
> The 10.6 standard httpd.conf has at least one ScriptAlias statement like 
> 
>   ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/
> 
> that has to be commented out to get WebObjects working.

That's the strange thing. I remember that I had this line in my httpd.conf, but 
when we had setup a machine at WO-NoVa last week, that line was not there, and 
it was a brand new Snow Leopard installation. So look like this line is 
sometime there, sometime not.


--
Pascal Robert
prob...@macti.ca

AIM/iChat : MacTICanada
LinkedIn : http://www.linkedin.com/in/macti
Twitter : pascal_robert

 ___
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: Snow Leopard Deployment

2010-11-24 Thread Ron Lift
On Wed, Nov 24, 2010 at 12:56 PM, Patrick Middleton
wrote:

>
> On 24 Nov 2010, at 17:16, Mark Ritchie wrote:
>
>  Hey,
>>
>> On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
>> ...
>>
>>> When I use http://cgi-bin/WebObjects/ I get a 404
>>> error.
>>> The webserver log has
>>> “script not found or unable to stat:
>>> /Library/WebServer/CGI-Executables/WebObjects”
>>>
>> First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
>> I've tried messing with my apache2 settings but I can't reproduce your
>> error.
>> Also, you mentioned apache.conf below so that leads me to wonder what
>> version of apache you're using?
>>
>
> That looks to me like the WebObjects DSO (mod_WebObjects.so) is not being
> loaded and the CGI adaptor is being used instead; URLs
> .../cgi-bin/WebObjects map to a CGI script WebObjects, and Apache on MacOSX
> will find those by default in /Library/WebServer/CGI-Executables .  Older
> deployment documentation should have a recipe for diagnosing whether the API
> adaptor (good) or the CGI adaptor (bad) is handling requests.
>
> Walk through your Apache main configuration file.  At some point I would
> expect it to be doing something like
>
> # Including WebObjects Configs
> Include /Library/WebObjects/Adaptors/Apache2.2/apache.conf
>

i have this line at the end of my /etc/apache2/httpd.conf file

Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf



>
> (the apache.conf file you referred to) which might include some LoadModule
> and AddModule directives.  Are those directives present?  Is Apache actually
> reading your adaptor's config file?
>

How can I tell?

>
> Also Apache is traditionally sensitive to the order in which modules are
> loaded ... you might see the CGI adaptor handling requests if mod_cgi loaded
> after mod_WebObjects. I usually comment out the LoadModule and AddModule
> directives in apache.conf and add equivalents in exactly the location I want
> in the main Apache conf file.
>

The LoadModule is in the
/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf
file that is at the end of the httpd.conf file, so I would think the
mod_Webobjects is being used. Is there a way to tell?


 Also: are you loading the module you think you are?  On Snow Leopard,
> Apache should be an i386/x86_64 universal binary, and unless you have a
> really weedy ancient Mac (three year old MacMini, maybe) it'll be running
> the x86_64 code, and that means all the modules (including any you built)
> need ideally to be universal, or at a pinch the architecture being run (most
> likely x86_64), and I have seen people get this wrong and ignore the
> warnings from 'apachectl configtest'.
>

Syntax OK from  apachectl configtest. This is a new SnowLeopard build on a
Xserve

>
>
>
>  this is some lines from the apache.conf file
>>> WebObjectsDocumentRoot /Library/WebServer/Documents
>>> WebObjectsAlias /cgi-bin/WebObjects
>>> WebObjectsConfig http://localhost:1085 10
>>> I can get to the wotaskd http://:1085  and using
>>> localhost:1085
>>>
>> That's a good sign!
>>
>>  I cannot get to http:///cgi-bin/WebObjects/WOAdaptorInfo I
>>> get a 404 error. I saw a post with this
>>> “but the WOAdaptorInfo page was reporting nothing ... bingo”
>>> I just need to know what “bingo” is. I know when I find out I am going to
>>> say “dah, I should have known that”
>>>
>> I doubt that you can get to WOAdaptorInfo until you've resolved the path
>> issue above.
>> And you're going to need to enable it with a directive like:
>> WebObjectsAdminUsername public
>> (Note: this is the open to all version.  There is an alternative of user
>> and password if you want to be more secure once you get things working.)
>> M.
>>
>
> ---
> Regards Patrick
> OneStep Solutions (Research) LLP
> www.onestep.co.uk
>
>
>
>
> This email, including any attachments, is confidential and intended solely
> for the person or organisation to whom it is addressed. If you are not the
> intended recipient you must not disseminate, distribute or copy any part of
> this email nor take any action in reliance on it.
>
> If you have received this in error please notify the sender immediately by
> email or phone +44 (0)1702 426400 and delete this email and any attachments
> from your system.
>
> Email transmission cannot be guaranteed to be secure or error-free as
> information could be intercepted, corrupted, lost, destroyed, arrive late or
> incomplete, or contain viruses. The sender therefore does not accept
> liability for any errors or omissions in the contents of this message which
> arise as a result of email transmission. If verification is required please
> request a hard-copy version.
>
> OneStep Solutions LLP is registered in England and Wales under registration
> number OC337173 and has its registered office at 457 Southchurch Road,
> Southend-on-Sea, Essex SS1 2PH.
> ___
>
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list   

Re: Snow Leopard Deployment

2010-11-24 Thread Ralf Schuchardt
Hi,

Am 24.11.2010 um 18:16 schrieb Mark Ritchie:

> Hey,
> 
> On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
> ...
>> When I use http://cgi-bin/WebObjects/ I get a 404 
>> error. 
>> The webserver log has
>> “script not found or unable to stat: 
>> /Library/WebServer/CGI-Executables/WebObjects”
> First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?

The 10.6 standard httpd.conf has at least one ScriptAlias statement like 

ScriptAlias /cgi-bin/ /Library/WebServer/CGI-Executables/

that has to be commented out to get WebObjects working.


Ralf

 ___
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: Weird plist framework question

2010-11-24 Thread Henrique Gomes
I have a 'configuration' table with a field where I store a NSDictionary. The 
database field is a string, I use the methods from NSPropertyListSerialization 
to store and read the NSDictionary.

Henrique Gomes


On Nov 24, 2010, at 6:13 PM, Dan Beatty wrote:

> Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
> Got a weird question for you.  Does Wonder have a framework for having the 
> notion a “plist” in the database itself.   The idea being that one would have 
> an attribute that would basically be a plist dictionary (in and of itself)?   
> The idea seemed so simple, I find it hard to believe that it has not been 
> conjured up before.  I am thinking that it would have a migration method 
> similar to ERAttachment allowing any other table to reference such a 
> dictionary, like ERDictionary or something.
> 
> Any ideas?
> 
> Daniel Beatty
> Computer Scientist, Detonation Sciences Branch
> Code 474300D
> 2400 E. Pilot Plant Rd. M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (760)939-7097 
> 
> ___
> 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%40farol.pt
> 
> This email sent to li...@farol.pt

 ___
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: Weird plist framework question

2010-11-24 Thread Ramsey Gurley
There's a mutable dictionary attribute in ERPrototypes. Works with  
ERXMutableDictonary.


Ramsey

On Nov 24, 2010, at 1:13 PM, Dan Beatty wrote:


Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
Got a weird question for you.  Does Wonder have a framework for  
having the notion a “plist” in the database itself.   The idea being  
that one would have an attribute that would basically be a plist  
dictionary (in and of itself)?   The idea seemed so simple, I find  
it hard to believe that it has not been conjured up before.  I am  
thinking that it would have a migration method similar to  
ERAttachment allowing any other table to reference such a  
dictionary, like ERDictionary or something.


Any ideas?

Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 474300D
2400 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
daniel.bea...@navy.mil
(760)939-7097

___
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/ramsey%40xeotech.com

This email sent to ram...@xeotech.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: Weird plist framework question

2010-11-24 Thread Chuck Hill
It is not in Wonder, it is part of WebObjects itself.  I think you are looking 
for com.webobjects.foundation.NSPropertyListSerialization

It has methods to convert between String and NSDictionary (and NSArray) plists. 
 Just add a large text field to your database and cover methods in Java to get 
and set the NSDictionary value.


Chuck



On Nov 24, 2010, at 10:13 AM, Dan Beatty wrote:

> Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
> Got a weird question for you.  Does Wonder have a framework for having the 
> notion a “plist” in the database itself.   The idea being that one would have 
> an attribute that would basically be a plist dictionary (in and of itself)?   
> The idea seemed so simple, I find it hard to believe that it has not been 
> conjured up before.  I am thinking that it would have a migration method 
> similar to ERAttachment allowing any other table to reference such a 
> dictionary, like ERDictionary or something.
> 
> Any ideas?
> 
> Daniel Beatty
> Computer Scientist, Detonation Sciences Branch
> Code 474300D
> 2400 E. Pilot Plant Rd. M/S 1109
> China Lake, CA 93555
> daniel.bea...@navy.mil
> (760)939-7097 
> 
> ___
> 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









smime.p7s
Description: S/MIME cryptographic signature
 ___
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

Weird plist framework question

2010-11-24 Thread Dan Beatty
Greetings Wizards,Dave, Chuck, ladies, and gentlemen,
Got a weird question for you.  Does Wonder have a framework for having the
notion a ³plist² in the database itself.   The idea being that one would
have an attribute that would basically be a plist dictionary (in and of
itself)?   The idea seemed so simple, I find it hard to believe that it has
not been conjured up before.  I am thinking that it would have a migration
method similar to ERAttachment allowing any other table to reference such a
dictionary, like ERDictionary or something.

Any ideas?

Daniel Beatty
Computer Scientist, Detonation Sciences Branch
Code 474300D
2400 E. Pilot Plant Rd. M/S 1109
China Lake, CA 93555
daniel.bea...@navy.mil
(760)939-7097 


 ___
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: Snow Leopard Deployment

2010-11-24 Thread Ron Lift
On Wed, Nov 24, 2010 at 12:16 PM, Mark Ritchie  wrote:

> Hey,
>
> On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
> ...
> > When I use http://cgi-bin/WebObjects/ I get a 404
> error.
> > The webserver log has
> > “script not found or unable to stat:
> /Library/WebServer/CGI-Executables/WebObjects”
> First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
> I've tried messing with my apache2 settings but I can't reproduce your
> error.
> Also, you mentioned apache.conf below so that leads me to wonder what
> version of apache you're using?
>

The apache.conf came from this line in the install doco

cd /etc/apache2 cp httpd.conf httpd.conf.backup echo "Include
/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf" >>
httpd.conf



>
> > this is some lines from the apache.conf file
> > WebObjectsDocumentRoot /Library/WebServer/Documents
> > WebObjectsAlias /cgi-bin/WebObjects
> > WebObjectsConfig http://localhost:1085 10
> > I can get to the wotaskd http://:1085  and using
> localhost:1085
> That's a good sign!
>
> > I cannot get to http:///cgi-bin/WebObjects/WOAdaptorInfo I
> get a 404 error. I saw a post with this
> > “but the WOAdaptorInfo page was reporting nothing ... bingo”
> > I just need to know what “bingo” is. I know when I find out I am going to
> say “dah, I should have known that”
> I doubt that you can get to WOAdaptorInfo until you've resolved the path
> issue above.
> And you're going to need to enable it with a directive like:
> WebObjectsAdminUsername public
> (Note: this is the open to all version.  There is an alternative of user
> and password if you want to be more secure once you get things working.)
> M.
>
I had already  uncommented the WebObjectsAdminUsername public line. I will
change to the password line once I get this working
 ___
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: otherclasspath option in maven?

2010-11-24 Thread Rob Urquhart

On Nov 24, 2010, at 6:46 AM, Henrique Prange wrote:

> Hi Rob,
> 
> AFAIR, the current version of maven-wolifecycle-plugin doesn't support this 
> feature. Could you please create an issue on WOProject Jira for this problem?

Done.

> 
> Anyway, there is a workaround. You could create a module with this resource 
> file (it can be a simple java project) and include this module as a 
> dependency of the application. Not the best solution, but it can solve your 
> problem.
> 

Indeed! Thanks for the tip. I'm new to maven but it's starting to get clearer.

Rob

> Cheers,
> 
> Henrique
> 
> On 23/11/2010, at 21:02, Rob Urquhart wrote:
> 
>> I'm using maven to build a Wonder app and I need to have a resource file (a 
>> keystore) end up in a directory on the classpath at runtime. In the ant 
>> build I could use the "otherclasspath" option of woapplication to add a 
>> Resources/Keystores folder to the classpath. Is there something equivalent 
>> for maven? 
>> Or, is there a way to tell maven to include those files in the application 
>> jar? The "standard" way as described in the maven getting-started guide 
>> doesn't seem to work - the files are just included in Resources, but not in 
>> the jar.
>> Thanks for any help.
>> 
>> Rob
>> 
>> --
>> Rob Urquhart 
>> IT Services
>> Simon Fraser University
>> 778-782-3650
>> rob.urquh...@sfu.ca
>> 
>> 
>> 
>> 
>> 
>> ___
>> 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/hprange%40gmail.com
>> 
>> This email sent to hpra...@gmail.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/rob.urquhart%40sfu.ca
> 
> This email sent to rob.urquh...@sfu.ca

--
Rob Urquhart 
Institutional, Collaborative, and Academic Technologies (ICAT)
IT Services
Simon Fraser University
778-782-3650
rob.urquh...@sfu.ca





 ___
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: Snow Leopard Deployment

2010-11-24 Thread Patrick Middleton


On 24 Nov 2010, at 17:16, Mark Ritchie wrote:


Hey,

On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
...
When I use http://cgi-bin/WebObjects/ I get a  
404 error.

The webserver log has
“script not found or unable to stat: /Library/WebServer/CGI- 
Executables/WebObjects”
First off, how did '.../cgi-bin/...'  become '.../CGI- 
Executables/...' ?
I've tried messing with my apache2 settings but I can't reproduce  
your error.
Also, you mentioned apache.conf below so that leads me to wonder  
what version of apache you're using?


That looks to me like the WebObjects DSO (mod_WebObjects.so) is not  
being loaded and the CGI adaptor is being used instead; URLs .../cgi- 
bin/WebObjects map to a CGI script WebObjects, and Apache on MacOSX  
will find those by default in /Library/WebServer/CGI-Executables .   
Older deployment documentation should have a recipe for diagnosing  
whether the API adaptor (good) or the CGI adaptor (bad) is handling  
requests.


Walk through your Apache main configuration file.  At some point I  
would expect it to be doing something like


# Including WebObjects Configs
Include /Library/WebObjects/Adaptors/Apache2.2/apache.conf

(the apache.conf file you referred to) which might include some  
LoadModule and AddModule directives.  Are those directives present?   
Is Apache actually reading your adaptor's config file?


Also Apache is traditionally sensitive to the order in which modules  
are loaded ... you might see the CGI adaptor handling requests if  
mod_cgi loaded after mod_WebObjects. I usually comment out the  
LoadModule and AddModule directives in apache.conf and add  
equivalents in exactly the location I want in the main Apache conf file.


Also: are you loading the module you think you are?  On Snow Leopard,  
Apache should be an i386/x86_64 universal binary, and unless you have  
a really weedy ancient Mac (three year old MacMini, maybe) it'll be  
running the x86_64 code, and that means all the modules (including  
any you built) need ideally to be universal, or at a pinch the  
architecture being run (most likely x86_64), and I have seen people  
get this wrong and ignore the warnings from 'apachectl configtest'.





this is some lines from the apache.conf file
WebObjectsDocumentRoot /Library/WebServer/Documents
WebObjectsAlias /cgi-bin/WebObjects
WebObjectsConfig http://localhost:1085 10
I can get to the wotaskd http://:1085  and using  
localhost:1085

That's a good sign!

I cannot get to http:///cgi-bin/WebObjects/ 
WOAdaptorInfo I get a 404 error. I saw a post with this

“but the WOAdaptorInfo page was reporting nothing ... bingo”
I just need to know what “bingo” is. I know when I find out I am  
going to say “dah, I should have known that”
I doubt that you can get to WOAdaptorInfo until you've resolved the  
path issue above.

And you're going to need to enable it with a directive like:
WebObjectsAdminUsername public
(Note: this is the open to all version.  There is an alternative of  
user and password if you want to be more secure once you get things  
working.)

M.


---
Regards Patrick
OneStep Solutions (Research) LLP
www.onestep.co.uk




This email, including any attachments, is confidential and intended solely for 
the person or organisation to whom it is addressed. If you are not the intended 
recipient you must not disseminate, distribute or copy any part of this email 
nor take any action in reliance on it.

If you have received this in error please notify the sender immediately by 
email or phone +44 (0)1702 426400 and delete this email and any attachments 
from your system.

Email transmission cannot be guaranteed to be secure or error-free as 
information could be intercepted, corrupted, lost, destroyed, arrive late or 
incomplete, or contain viruses. The sender therefore does not accept liability 
for any errors or omissions in the contents of this message which arise as a 
result of email transmission. If verification is required please request a 
hard-copy version.

OneStep Solutions LLP is registered in England and Wales under registration 
number OC337173 and has its registered office at 457 Southchurch Road, 
Southend-on-Sea, Essex SS1 2PH. ___
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: Database Connection Question

2010-11-24 Thread Chuck Hill

On Nov 24, 2010, at 2:18 AM, Gennady Kushnir wrote:

>>> The point is that I do use multiple EOF stacks. I clearly admit that
>>> each EOObjectStoreCoordinator gets its own set of db connections.
>> 
>> It only needs a single connection to work.
> 
> Let's say single connection for each used database ;)
> In fact that is a goal I'd like to achieve to have a single connection
> for a EOF stack per database.

That is what should happen *if* the connection dictionaries are equals() and 
you close the jdbc2info connections.



>>> I use separate EOF stack to access previous year data stored in a
>>> separate database with identical structure.
>>> That is why I employ
>>> EODatabaseContext.forceConnectionWithModel(model,connectionDict,ec)
>>> And that is why my models get identical connection dictionary.
>> 
>> I am not sure if that is the  best / right way to do this.
> 
> I did not find any other method to connect a model do different databases.

You need to create a new model group for the new EOF stack (the one using data 
from previous years), add the models, and update the connection dictionaries 
before using the EOF stack.


>>> I am quite interested if multiple models could share single db context
>>> and thus lower the number of open connections.
>> 
>> They can't share db contexts across EOF stacks.
> That's quite clear. I am speaking about several models within one
> stack connecting to the same database.
> 
>>> During my experimentations I have found that it is
>>> EODatabaseContext.forceConnectionWithModel(...) the one who create a
>>> connection for a mentioned model which does not get reused afterwards.
>>> May be that is aforementioned JDBCinfo connection?
>> 
>> Maybe or it could be a side effect or misuse of that method.  Are the models 
>> already connected in the new EOF stack before you call this?
> No, they are not connected. I call this in Application constructor.
> And also this method is the only place where models get correct
> connection dictionary.



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









smime.p7s
Description: S/MIME cryptographic signature
 ___
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: Snow Leopard Deployment

2010-11-24 Thread Mark Ritchie
Hey,

On 24/Nov/2010, at 8:33 AM, Ron Lift wrote:
...
> When I use http://cgi-bin/WebObjects/ I get a 404 error. 
> The webserver log has
> “script not found or unable to stat: 
> /Library/WebServer/CGI-Executables/WebObjects”
First off, how did '.../cgi-bin/...'  become '.../CGI-Executables/...' ?
I've tried messing with my apache2 settings but I can't reproduce your error.
Also, you mentioned apache.conf below so that leads me to wonder what version 
of apache you're using?

> this is some lines from the apache.conf file
> WebObjectsDocumentRoot /Library/WebServer/Documents
> WebObjectsAlias /cgi-bin/WebObjects
> WebObjectsConfig http://localhost:1085 10
> I can get to the wotaskd http://:1085  and using localhost:1085
That's a good sign!

> I cannot get to http:///cgi-bin/WebObjects/WOAdaptorInfo I get a 
> 404 error. I saw a post with this
> “but the WOAdaptorInfo page was reporting nothing ... bingo”
> I just need to know what “bingo” is. I know when I find out I am going to say 
> “dah, I should have known that”
I doubt that you can get to WOAdaptorInfo until you've resolved the path issue 
above.
And you're going to need to enable it with a directive like:
WebObjectsAdminUsername public
(Note: this is the open to all version.  There is an alternative of user and 
password if you want to be more secure once you get things working.)
M.


 ___
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: otherclasspath option in maven?

2010-11-24 Thread Henrique Prange
Hi Rob,

AFAIR, the current version of maven-wolifecycle-plugin doesn't support this 
feature. Could you please create an issue on WOProject Jira for this problem?

Anyway, there is a workaround. You could create a module with this resource 
file (it can be a simple java project) and include this module as a dependency 
of the application. Not the best solution, but it can solve your problem.

Cheers,

Henrique

On 23/11/2010, at 21:02, Rob Urquhart wrote:

> I'm using maven to build a Wonder app and I need to have a resource file (a 
> keystore) end up in a directory on the classpath at runtime. In the ant build 
> I could use the "otherclasspath" option of woapplication to add a 
> Resources/Keystores folder to the classpath. Is there something equivalent 
> for maven? 
> Or, is there a way to tell maven to include those files in the application 
> jar? The "standard" way as described in the maven getting-started guide 
> doesn't seem to work - the files are just included in Resources, but not in 
> the jar.
> Thanks for any help.
> 
> Rob
> 
> --
> Rob Urquhart 
> IT Services
> Simon Fraser University
> 778-782-3650
> rob.urquh...@sfu.ca
> 
> 
> 
> 
> 
> ___
> 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/hprange%40gmail.com
> 
> This email sent to hpra...@gmail.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: Snow Leopard Deployment

2010-11-24 Thread Ron Lift
Just to make sure I do not make a bad situation worse
this is snippets of my /ect/apache2/httpd.conf


Options FollowSymLinks
AllowOverride None



Order allow,deny
Deny from all
Satisfy All



Options Indexes
AllowOverride None
Order allow,deny
Allow from all 

#DocumentRoot "/var/empty"
DocumentRoot "/Library/WebServer/Documents"
ErrorLog "/var/log/apache2/error_log"

Order Deny,Allow
Deny from All



The root directory lines do not have the order and deny settings

I did comment the
#DocumentRoot "/var/empty"
and added
DocumentRoot "/Library/WebServer/Documents"

Should i change any of these lines?


On Wed, Nov 24, 2010 at 8:43 AM, Pascal Robert  wrote:

>
> Le 2010-11-24 à 08:33, Ron Lift a écrit :
>
> > Good Morning (
> >
> > I am installing WebObjects On Snow Leopard server. I use the instructions
> from the old Web Applications-Deployment-Mac OS X Server page. It had steps
> of
> >
> > cd /System/Library/WebObjects/Adaptors/Apache2.2 mv mod_WebObjects.so
> mod_WebObjects.so.obsolete
> > curl -C - -O
> http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/10.6/mod_WebObjects.so
> > cd /etc/apache2 cp httpd.conf httpd.conf.backup echo "Include
> /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf" >> httpd.conf
> >
> > apachectl restart
> >
> > cd /Library/LaunchDaemons curl -C - -O
> http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.wotaskd.plist
> >
> > curl -C - -O http:
> > //
> www.greenislandconsulting.com/webobjects/com.apple.webobjects.womonitor.plist
> >
> > launchctl load com.apple.webobjects.wotaskd.plist
> > launchctl load com.apple.webobjects.womonitor.plist
> >
> > I have monitor running and deployed an app using monitor. I can get to
> the app using the port http://:2001.
> >
> > When I use http://cgi-bin/WebObjects/ I get a 404
> error.
> >
> > The webserver log has
> > “script not found or unable to stat:
> /Library/WebServer/CGI-Executables/WebObjects”
>
> We got this problem when we installed everything at WO-NoVa last week. You
> need to change the following directive in httpd.conf to:
>
> 
>Options FollowSymLinks
>AllowOverride None
>Order deny,allow
>Deny from all
> 
>
> For now, just comment out (put a # in front) the Order and Deny directives
> so it look like this:
>
> 
>Options FollowSymLinks
>AllowOverride None
>#Order deny,allow
>#Deny from all
> 
>
> And restart (sudo apachectl graceful) Apache. That's the not best secure
> option but it will get you running for now.
>
> > this is some lines from the apache.conf file
> > WebObjectsDocumentRoot /Library/WebServer/Documents
> > WebObjectsAlias /cgi-bin/WebObjects
> > WebObjectsConfig http://localhost:1085 10
> >
> >
> > I can get to the wotaskd http://:1085  and using
> localhost:1085
> >
> > I cannot get to http:///cgi-bin/WebObjects/WOAdaptorInfo I
> get a 404 error. I saw a post with this
> > “but the WOAdaptorInfo page was reporting nothing ... bingo”
> > I just need to know what “bingo” is. I know when I find out I am going to
> say “dah, I should have known that”
> >
> > Thanks
> > Ron Lift
> >
> > ___
> > 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/probert%40macti.ca
> >
> > This email sent to prob...@macti.ca
>
>
 ___
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: Snow Leopard Deployment

2010-11-24 Thread Pascal Robert

Le 2010-11-24 à 08:33, Ron Lift a écrit :

> Good Morning (
> 
> I am installing WebObjects On Snow Leopard server. I use the instructions 
> from the old Web Applications-Deployment-Mac OS X Server page. It had steps of
>  
> cd /System/Library/WebObjects/Adaptors/Apache2.2 mv mod_WebObjects.so 
> mod_WebObjects.so.obsolete 
> curl -C - -O 
> http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/10.6/mod_WebObjects.so
> cd /etc/apache2 cp httpd.conf httpd.conf.backup echo "Include 
> /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf" >> httpd.conf 
> 
> apachectl restart 
> 
> cd /Library/LaunchDaemons curl -C - -O 
> http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.wotaskd.plist
>  
> 
> curl -C - -O http:
> //www.greenislandconsulting.com/webobjects/com.apple.webobjects.womonitor.plist
>   
> 
> launchctl load com.apple.webobjects.wotaskd.plist 
> launchctl load com.apple.webobjects.womonitor.plist
> 
> I have monitor running and deployed an app using monitor. I can get to the 
> app using the port http://:2001.
>  
> When I use http://cgi-bin/WebObjects/ I get a 404 error.
>  
> The webserver log has
> “script not found or unable to stat: 
> /Library/WebServer/CGI-Executables/WebObjects”

We got this problem when we installed everything at WO-NoVa last week. You need 
to change the following directive in httpd.conf to:


Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all


For now, just comment out (put a # in front) the Order and Deny directives so 
it look like this:


Options FollowSymLinks
AllowOverride None
#Order deny,allow
#Deny from all


And restart (sudo apachectl graceful) Apache. That's the not best secure option 
but it will get you running for now.

> this is some lines from the apache.conf file
> WebObjectsDocumentRoot /Library/WebServer/Documents
> WebObjectsAlias /cgi-bin/WebObjects
> WebObjectsConfig http://localhost:1085 10
>  
>  
> I can get to the wotaskd http://:1085  and using localhost:1085
> 
> I cannot get to http:///cgi-bin/WebObjects/WOAdaptorInfo I get a 
> 404 error. I saw a post with this
> “but the WOAdaptorInfo page was reporting nothing ... bingo”
> I just need to know what “bingo” is. I know when I find out I am going to say 
> “dah, I should have known that”
>  
> Thanks
> Ron Lift
> 
> ___
> 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/probert%40macti.ca
> 
> This email sent to prob...@macti.ca

 ___
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


Snow Leopard Deployment

2010-11-24 Thread Ron Lift
Good Morning (

I am installing WebObjects On Snow Leopard server. I use the
instructions from the old Web Applications-Deployment-Mac OS X
Serverpage.
It had steps of



cd /System/Library/WebObjects/Adaptors/Apache2.2 mv mod_WebObjects.so
mod_WebObjects.so.obsolete

curl -C - -O
http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/macosx/10.6/mod_WebObjects.so

cd /etc/apache2 cp httpd.conf httpd.conf.backup echo "Include
/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf" >>
httpd.conf
apachectl restart

cd /Library/LaunchDaemons curl -C - -O
http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.wotaskd.plist
curl -C - -O 
http://www.greenislandconsulting.com/webobjects/com.apple.webobjects.womonitor.plist
launchctl load com.apple.webobjects.wotaskd.plist

launchctl load com.apple.webobjects.womonitor.plist

I have monitor running and deployed an app using monitor. I can get to the
app using the port http://:2001 .




When I use 
http://cgi-bin/WebObjects/http://%3cservername%3ecgi-bin/WebObjects/%3Cappname>>
I get a 404 error.



The webserver log has

“script not found or unable to stat:
/Library/WebServer/CGI-Executables/WebObjects”



this is some lines from the apache.conf file

WebObjectsDocumentRoot /Library/WebServer/Documents

WebObjectsAlias /cgi-bin/WebObjects

WebObjectsConfig http://localhost:1085 10





I can get to the wotaskd http://:1085
and using localhost:1085


I cannot get to
http:///cgi-bin/WebObjects/WOAdaptorInfoI
get a 404 error. I saw a post with this

“but the WOAdaptorInfo page was reporting nothing ... bingo”

I just need to know what “bingo” is. I know when I find out I am going to
say “dah, I should have known that”



Thanks

Ron Lift
 ___
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: EOModel and derived column.

2010-11-24 Thread Theodore Petrosky
if there were no bug the only difference would be that eogenerator would make 
the derived column 'allows null'?

should I add a Jira?

Ted

--- On Wed, 11/24/10, Mike Schrag  wrote:

> From: Mike Schrag 
> Subject: Re: EOModel and derived column.
> To: "Theodore Petrosky" 
> Cc: webobjects-dev@lists.apple.com
> Date: Wednesday, November 24, 2010, 7:02 AM


> that's just an eogenerator template
> bug …


> 
> ms
> 
> On Nov 24, 2010, at 2:37 AM, Theodore Petrosky wrote:
> 
> > I am reading the Red Webobject 5.0 book and I think I
> finally understand the small section on creating an
> attribute the is derived. 
> > 
> > (I am using postgresql as the backend)
> > 
> > so my User entity has a firstName and a lastName. I
> created an attribute called 'theFullName' as derived
> "firstName || ' ' || lastName", in the advanced tab, I
> choose "Read Only".
> > 
> > i assumed that would be enough, however I needed to
> also select 'allows null' in the basic tab. if I didn't,
> User.createUser(yada, yada); required a 'theFullName'
> attribute.
> > 
> > My assumption was that as the column is derived and
> read only, I thought the column was special and shouldn't
> need the 'allows null' selection.
> > 
> > so, did I do it correctly?
> > as the column is a derived column and read only, why
> do I need to add 'allows null'?
> > 
> > I have been creating all these derivatives in java in
> my User.java file, but I thought I would expand my
> understanding and play with some features.
> > 
> > now on to stored proceedures.
> > 
> > Ted
> > 
> > 
> > 
> > ___
> > 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%40pobox.com
> > 
> > This email sent to msch...@pobox.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: EOModel and derived column.

2010-11-24 Thread John Larson
A note about those columns, they are only evaluated during fetch since their 
content is generated in the SQL. So if your user updates their last name, the 
full name won't update until the changes are committed and then fetched again. 

Just a head's up. 

John 

Sent from my iPhone

On Nov 24, 2010, at 1:37 AM, Theodore Petrosky  wrote:

> I am reading the Red Webobject 5.0 book and I think I finally understand the 
> small section on creating an attribute the is derived. 
> 
> (I am using postgresql as the backend)
> 
> so my User entity has a firstName and a lastName. I created an attribute 
> called 'theFullName' as derived "firstName || ' ' || lastName", in the 
> advanced tab, I choose "Read Only".
> 
> i assumed that would be enough, however I needed to also select 'allows null' 
> in the basic tab. if I didn't, User.createUser(yada, yada); required a 
> 'theFullName' attribute.
> 
> My assumption was that as the column is derived and read only, I thought the 
> column was special and shouldn't need the 'allows null' selection.
> 
> so, did I do it correctly?
> as the column is a derived column and read only, why do I need to add 'allows 
> null'?
> 
> I have been creating all these derivatives in java in my User.java file, but 
> I thought I would expand my understanding and play with some features.
> 
> now on to stored proceedures.
> 
> Ted
> 
> 
> 
> ___
> 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/the_larsons%40mac.com
> 
> This email sent to the_lars...@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: EOModel and derived column.

2010-11-24 Thread Mike Schrag
that's just an eogenerator template bug ...

ms

On Nov 24, 2010, at 2:37 AM, Theodore Petrosky wrote:

> I am reading the Red Webobject 5.0 book and I think I finally understand the 
> small section on creating an attribute the is derived. 
> 
> (I am using postgresql as the backend)
> 
> so my User entity has a firstName and a lastName. I created an attribute 
> called 'theFullName' as derived "firstName || ' ' || lastName", in the 
> advanced tab, I choose "Read Only".
> 
> i assumed that would be enough, however I needed to also select 'allows null' 
> in the basic tab. if I didn't, User.createUser(yada, yada); required a 
> 'theFullName' attribute.
> 
> My assumption was that as the column is derived and read only, I thought the 
> column was special and shouldn't need the 'allows null' selection.
> 
> so, did I do it correctly?
> as the column is a derived column and read only, why do I need to add 'allows 
> null'?
> 
> I have been creating all these derivatives in java in my User.java file, but 
> I thought I would expand my understanding and play with some features.
> 
> now on to stored proceedures.
> 
> Ted
> 
> 
> 
> ___
> 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%40pobox.com
> 
> This email sent to msch...@pobox.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: ERAttachment... to-many and thumbs

2010-11-24 Thread Denis Frolov
The problem is that you have a relationship to the abstract
ERAttachment entity. I see two possible solutions:
1. Make a relationship to specific sub-entity of ERAttachment (e.g.
ERFileAttachment). I haven't done this personally, but this should
solve your problem.
2. Add support for getting "destinationEntityName" from rules before
trying the relationship entity in this method of
ERMODEditRelationshipPage:

public WOComponent newObjectAction() {
EOEditingContext newEc =
ERXEC.newEditingContext(masterObject().editingContext());
EOClassDescription relatedObjectClassDescription =
masterObject().classDescriptionForDestinationKey(relationshipKey());
EOEnterpriseObject relatedObject =
(EOEnterpriseObject)EOUtilities.createAndInsertInstance(newEc,
relatedObjectClassDescription.entityName());

The problem is that ERMODEditRelationshipPage doesn't know anything
about attachments and cannot figure our which concrete sub-entity of
ERAttachment to use.

Denis

On Tue, Nov 23, 2010 at 6:51 PM, Francesco Romano
 wrote:
>
> Francesco
> On 23/nov/2010, at 14.43, Denis Frolov wrote:
>
> On Tue, Nov 23, 2010 at 3:06 PM, Francesco Romano
>  wrote:
>
> On 23/nov/2010, at 12.30, Denis Frolov wrote:
>
> I think ERAttachmentViewer doesn't resize the image itself - it just passes
>
> the width/height to WOImage. So, this approach is indeed "heavy". You can
>
> create thumbnails upon upload and add them to "childrenAttachments"
>
> relationship. After that you can show the thumbnail by accessing it via
>
> "childrenAttachments" relationship on your list pages (you can add a cover
>
> method for thumbnail to Product.java).
>
> So I have to create the thumb...
>
> How can I manage the upload?
>
> Not sure, what you mean here, but the idea is to create a thumbnail
> and then save it as child ERAttachment of this attachment.
>
> Now I override willUpdate and willInsert in ProductERAttachment entity.
>
> @Override
>
> public void willInsert() {
>
> this.updateThumbnail();
>
> super.willInsert();
>
> }
>
> @Override
>
> public void willUpdate() {
>
> this.updateThumbnail();
>
> super.willUpdate();
>
> }
>
> private void updateThumbnail() {
>
> ERImageProcessor.imageProcessor().thumbnail(40, 40, inputFile, outputFile);
>
> }
>
> But... what about inputFile? How can I retrieve it from the ERAttachment
>
> object?
>
> new File(((ERFileAttachment) attachment()).filesystemPath())
>
> I have not tried yet my code, because of the exception, but i wrote this:
> File inputFile = new
> File(((ERFileAttachment)erAttachment()).filesystemPath());
>
> File outputFile = null;
> try {
> outputFile = File.createTempFile("erattachment-thumb",
> inputFile.getName().substring(inputFile.getName().lastIndexOf('.')));
> ERImageProcessor.imageProcessor().thumbnail(40, 40, inputFile, outputFile);
>
> ERAttachment attachment =
> ERAttachmentProcessor.processorForType(erAttachment().storageType()).process(erAttachment().editingContext(),
> outputFile);
> NSArray children = erAttachment().childrenAttachments();
> if (children.count() > 0)
> erAttachment().deleteAllChildrenAttachmentsRelationships();
> attachment.setThumbnail("40x40");
> erAttachment().addToChildrenAttachmentsRelationship(attachment);
>
> } catch (IOException e1) {
> // TODO Auto-generated catch block
> e1.printStackTrace();
> }
>
>
>
> To fix the exception try adding the rule like this:
>
> entity.name = 'Product' and task = 'edit' and propertyKey = 'photos'
>
> => destinationEntityName = 'ERFileAttachment'
>
> It doesn't fix the problem...This is strange... in a previous test (some
>
> days ago) I did not have this error... just the form encryption exception...
>
> What's the full stack trace?
>
> Nov 23 16:34:14 PNStoreAdmin[5100] WARN  NSLog  -
> : Exception occurred while handling request:
> com.webobjects.foundation.NSForwardException
> [java.lang.InstantiationException] null:
> is an abstract class. It can not be instantiated !
> [2010-11-23 16:34:14 CET] 
> com.webobjects.foundation.NSForwardException
> [java.lang.InstantiationException] null:
> is an abstract class. It can not be instantiated !
> at
> com.webobjects.foundation._NSUtilities._explainInstantiationException(_NSUtilities.java:616)
> at
> com.webobjects.foundation._NSUtilities.instantiateObjectWithConstructor(_NSUtilities.java:665)
> at
> com.webobjects.eoaccess.EOEntityClassDescription.createInstanceWithEditingContext(EOEntityClassDescription.java:242)
> at
> er.extensions.eof.ERXEntityClassDescription.createInstanceWithEditingContext(ERXEntityClassDescription.java:739)
> at
> com.webobjects.eoaccess.EOUtilities.createAndInsertInstance(EOUtilities.java:861)
> at
> er.modern.look.pages.ERMODEditRelationshipPage.newObjectAction(ERMODEditRelationshipPage.java:102)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin

Re: Database Connection Question

2010-11-24 Thread Gennady Kushnir
>> The point is that I do use multiple EOF stacks. I clearly admit that
>> each EOObjectStoreCoordinator gets its own set of db connections.
>
> It only needs a single connection to work.

Let's say single connection for each used database ;)
In fact that is a goal I'd like to achieve to have a single connection
for a EOF stack per database.

>> I use separate EOF stack to access previous year data stored in a
>> separate database with identical structure.
>> That is why I employ
>> EODatabaseContext.forceConnectionWithModel(model,connectionDict,ec)
>> And that is why my models get identical connection dictionary.
>
> I am not sure if that is the  best / right way to do this.

I did not find any other method to connect a model do different databases.

>> I am quite interested if multiple models could share single db context
>> and thus lower the number of open connections.
>
> They can't share db contexts across EOF stacks.
That's quite clear. I am speaking about several models within one
stack connecting to the same database.

>> During my experimentations I have found that it is
>> EODatabaseContext.forceConnectionWithModel(...) the one who create a
>> connection for a mentioned model which does not get reused afterwards.
>> May be that is aforementioned JDBCinfo connection?
>
> Maybe or it could be a side effect or misuse of that method.  Are the models 
> already connected in the new EOF stack before you call this?
No, they are not connected. I call this in Application constructor.
And also this method is the only place where models get correct
connection dictionary.

Gennady
 ___
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


New JIRA project for the community

2010-11-24 Thread Pascal Robert
Good morning everyone,

Ok, so we decided that instead of using Google Moderator, we should use JIRA to 
track ideas and tasks non-related to Wonder and WOLips:

  http://issues.objectstyle.org/jira/browse/WOC

We can use that project to track things like wiki cleanup, ideas for 
wocommunity.org, WOWODC tasks, etc.  You can also vote in issues, which help us 
to prioritize tasks.

I took the suggestions made on Google Moderator and put them back in JIRA, but 
sadly you will have to vote again in JIRA.

Don't be shy, use this tool and help us build a even better community!

--
Pascal Robert
prob...@macti.ca

AIM/iChat : MacTICanada
LinkedIn : http://www.linkedin.com/in/macti
Twitter : pascal_robert

 ___
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