Re: New potential project to convert ASP web app

2017-07-01 Thread Ted Archibald
Is there literally anyone on this list starting a NEW webobjects project?
I love the old girl and she taught me a lot but she is long dead.

On Mon, Jun 26, 2017 at 4:12 AM, Markus Ruggiero 
wrote:

> Hi Robert,
>
> many valid points in replies to your question (deprecation, learning
> curve, not mainstream, etc.) Nevertheless it's the most productive toolset
> out there.
>
> Just recently I was at a presentation of some some new hip tools (called
> JHipster btw.). I listened, nodded my head in WOnderment (pun intended) and
> thought by myself: jeesz, that stuff sound familiar, these folks are really
> "innovative" and have come up with some "great conceptional ideas". Still
> some rough edges and the toolchain a bit complicated (you have to install
> tons of things and when creating a new project one has to constantly switch
> back and forth between command line and Eclipse and XML/Json file editor).
> But hey, it's a new great thing (why else would they call it JHipster?).
> Btw the presenter was a joungster (age ~25+/-) and might never have heard
> of WebObjects and Wonder. All the more cudos that he came up with all those
> great invented-20-years-ago ideas.
> And then I went back to my Eclipse with WOLips and WOnder and thought what
> a hip thing this was!
>
> We do WO for a living and are based in Switzerland. So if you need backup,
> we'd be there for you.
>
> Continue to have fun (and beware of the bus - its ugly and hurts like hell
> and is usually no fun at all)
>
> ---markus---
>
> On 22 Jun 2017, at 16:25, Robert Hanviriyapunt  wrote:
>
> Hi everyone,
>
> I am a total WebObjects fan (a serious fanatic)!  And I have the chance to
> suggest to a new potential client to have me rework the entire A$P/M$$QL
> system in WebObjects.  My worries are that should I get run over by a bus,
> whom may I get him in contact with to take over and/or support the system.
> Anybody still out there?  I'm building  list to give him confidence there
> will be available support.  Is there a nice place all us WebO developers
> can register?
>
> = 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:
> https://lists.apple.com/mailman/options/webobjects-
> dev/mailinglists%40kataputt.com
>
> This email sent to mailingli...@kataputt.com
>
>
>
>
> Markus Ruggiero
> mailingli...@kataputt.com
> Check out the new book about Project Wonder and WebObjects on
> http://learningthewonders.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:
> https://lists.apple.com/mailman/options/webobjects-
> dev/ted.archibald%40gmail.com
>
> This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Instance won't shutdown with ERJGroupsSynchronizer

2016-07-14 Thread Ted Archibald
Blast form the past….  This problem was causing issues with my deploy
scripts back when I was actively coding in WO.  Now I don’t have these
problems since I haven’t updated any code and redeployed in a couple years.

On Wed, Jul 13, 2016 at 5:38 PM, Paul Hoadley  wrote:

> On 13 Jul 2016, at 11:31 PM, Chuck Hill  wrote:
>
> That does not seem to be a sensible reason/place to throw an exception.
>
>
> I’ve opened an issue here if anyone wants to discuss it further:
>
> https://github.com/wocommunity/wonder/issues/784
>
> I’ll submit a pull request soon.
>
>
> --
> Paul Hoadley
> http://logicsquad.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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: jrebel

2016-07-14 Thread Ted Archibald
Back when I was coding WO more often I using JRebel 4 and it worked
perfectly.  I just had some DAs so I could force DB migrations and other
tasks that only happen at startup.  But I haven’t worked on my WO projects
in about 2 years.

On Thu, Jul 14, 2016 at 12:42 PM, Theodore Petrosky 
wrote:

> Is anyone using jrebel with WO? I used it in the past and it worked very
> well. I want to know that it works with WOLips before I send them my money.
>
> 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:
>
> https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com
>
> This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Consuming REST services with a WO app

2014-10-27 Thread Ted Archibald
Here’s a quick and dirty wrapper for httpclient that I use.

On Mon, Oct 27, 2014 at 3:50 AM, Christoph Wick c...@i4innovation.de wrote:

 Sorry (it was too late yesterday):

 I found it:
 http://wiki.wocommunity.org/display/documentation/Consuming+REST+services

 C.U.CW
 --
 What are the three enemies of a programmer? Sunlight, oxygen, and the
 appalling roar of the birds.

 On 27.10.2014, at 00:23, CHRISTOPH WICK | i4innovation GmbH, Bonn 
 c...@i4innovation.de wrote:

  Hi list,
 
  is there a webobjects/wonder way to *consume* a REST service in a wonder
 app?
 
  All the RESt examples on the wiki show how to produce a REST service
 using Wonder. But I can't find a good way to consume them.
 
  (Sidenote: yes, I know, that you can/should/whatever consume them on the
 client side, e.g. using javascript. But in my case I need something to
 consume a REST service in the woa's java code.
 
  Thanks for any hints,
  C.U.CW
  --
  What are the three enemies of a programmer? Sunlight, oxygen, and the
 appalling roar of the birds.
 
  ___
  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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/cw%40i4innovation.de
 
  This email sent to c...@i4innovation.de


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@gmail.com



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

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

Re:

2014-09-29 Thread Ted Archibald
I use a modified version of ERXExistsQualifier to do an EXISTS IN query,
and I have that problem all the time.  I always assumed it was my code that
was causing that.

On Sun, Sep 28, 2014 at 4:50 AM, Thomas LATTER latter...@gmail.com wrote:

 Is there a known bug on ERXExistsQualifiers? The generated SQL code is
 false. It compares the primary keys of both tables instead of the foreign
 key and primary key as specified in the relationship. Someone posted this
 same bug in 2011, has anyone been able to use them since and otherwise what
 would be the best alternative ?

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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Creating Multiple Objects in ERRest?

2014-07-07 Thread Ted Archibald
Is there a built-in way to create multiple objects with ERRest?

Something like this:
curl -X POST -d “[{ name:'Andrew Schrag’ },{ name:’Chuck Hill’ }]
http://localhost/App.woa/ra/Persons.json

I know I can just parse the data myself and create all the objects, but is
there a way that works with ERRest instead?
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Webobject project is not runing!

2014-07-07 Thread Ted Archibald
Your app name is JavaFoundation?


On Mon, Jul 7, 2014 at 2:03 PM, Pawan Tiwari pawan0...@gmail.com wrote:

 FYI


 -- Forwarded message --
 From: Pawan Tiwari pawan0...@gmail.com
 Date: Tue, Jul 8, 2014 at 1:30 AM
 Subject: Webobject project is not runing!
 To: Webobjects-dev@lists.apple.com


 I have latest eclipse (Eclipse juno 4.2 ) and i have installed wolips
 plugin accoriding your instruction that are given in wocommunity .I have
 make a simple programe and run it then it gives the error .I have attached
 the error log.

  Please help us! Actually my main purpose is to run the woapplication
 project using maven,but doing before we have to run a simple woapplication
 project.

 Note:-I tried on almost ever Eclipse version of Indigo and Juno but gives
 the same error.

 Thanks  Regards

 Pawan Kumar tiwari


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Webobject project is not runing!

2014-07-07 Thread Ted Archibald
Do you have a space or any other odd character in your App name?

I know Apps with space don’t launch properly.


On Mon, Jul 7, 2014 at 4:03 PM, John Huss johnth...@gmail.com wrote:

 Also, make sure your project folder has the same name and case as your
 application name.  So for an app named YourApp the project folder should
 also be called YourApp, not yourapp.


 On Mon, Jul 7, 2014 at 4:54 PM, Chuck Hill ch...@global-village.net
 wrote:

  When NSBundle can’t find the main bundle, it falls back to using
 JavaFoundation.  I have no idea why it does this, maybe it had a use in the
 past.

  So the question here is, why is it not finding the main bundle?  Two
 likely answers are that the Launch config is eclipse is using the wrong
 working directory or that the Maven layout of this project is incomplete or
 incorrect and so NSBundle does not see it as a Maven project.

  This could also be a mismatch between a bundle-less build and a
 traditional build.


  Chuck


   On 2014-07-07, 2:46 PM, Philippe Rabier wrote:

   I don't think so.

  I got something similar several years ago: it was unable to find the
 Application class.

  I was unable to fix it and I think I reinstalled everything on another
 computer I guess.

  Do you have a Mac? Can you try also to create a Wonder app?

  Philippe Rabier
  -
  http://twitter.com/prabier

 Sent from my iPhone

 On 07 Jul 2014, at 22:27, Ted Archibald ted.archib...@gmail.com wrote:

   Your app name is JavaFoundation?


 On Mon, Jul 7, 2014 at 2:03 PM, Pawan Tiwari pawan0...@gmail.com wrote:

 FYI


 -- Forwarded message --
 From: Pawan Tiwari pawan0...@gmail.com
 Date: Tue, Jul 8, 2014 at 1:30 AM
 Subject: Webobject project is not runing!
 To: Webobjects-dev@lists.apple.com


 I have latest eclipse (Eclipse juno 4.2 ) and i have installed wolips
 plugin accoriding your instruction that are given in wocommunity .I have
 make a simple programe and run it then it gives the error .I have attached
 the error log.

   Please help us! Actually my main purpose is to run the woapplication
 project using maven,but doing before we have to run a simple woapplication
 project.

  Note:-I tried on almost ever Eclipse version of Indigo and Juno but
 gives the same error.

  Thanks  Regards

  Pawan Kumar tiwari


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:

 https://lists.apple.com/mailman/options/webobjects-dev/prabier%40icloud.com

 This email sent to prab...@icloud.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:

 https://lists.apple.com/mailman/options/webobjects-dev/johnthuss%40gmail.com

 This email sent to johnth...@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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

ERRest and JSON Dates

2014-05-28 Thread Ted Archibald
Been working on a project where I'm consuming JSON from a web app and
encountered a problem with dates back and forth.

This is the date format I'm getting from javascript (new Date).toJSON():
2014-05-28T04:27:49.722Z

And this is the date format ERRest seems to want
2014-05-28T04:27:49Z

If I use the javascript date I get errors, but if I remove the '.722'
everything works fine.

Is there an easy way to set ERRest to accept the javascript style of date?
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Instance won't shutdown with ERJGroupsSynchronizer

2013-11-30 Thread Ted Archibald
I've been having a bug where an instance won't shutdown (caveat: I haven't
updated wonder in 2 years for fear of breaking stuff...)

The stack trace points to an error in
ERXObjectStoreCoordinatorSynchronizer$ProcessChangesQueue.stop Attempted
to stop the ProcessChangesQueue when it wasn't already running.  I don't
really care about that error, I just want the instance to shut down, but
this stops the normal shutdown process.

Any ideas?

Stack trace:

ERROR WorkerThread27 er.extensions.appserver.ERXApplication - Exception
caught: null
URL = /cgi-bin/WebObjects/ATLChargesHub.woa/womp/instanceRequest;


java.lang.reflect.InvocationTargetException
at
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:269)
at
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.IllegalStateException: Attempted to stop the
ProcessChangesQueue when it wasn't already running
at
er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer$ProcessChangesQueue.stop(ERXObjectStoreCoordinatorSynchronizer.java:618)
at
er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer.stopRemoteSynchronizer(ERXObjectStoreCoordinatorSynchronizer.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
at
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
at
er.extensions.appserver.ERXApplication.terminate(ERXApplication.java:2733)
at
com.webobjects.appserver.WOApplication._terminateFromMonitor(WOApplication.java:3607)
at
com.webobjects.appserver.WOAdminAction.instanceRequestAction(WOAdminAction.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
at
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: Edit url for WO application

2013-11-16 Thread Ted Archibald
I'm using rest in a couple of apps and use the following to clean up the
URLs (i.e. no /ra crap):

RewriteRule
^AppName/([0-9]*/)?(?!(?:[0-9]*/)?ajax/|(?:[0-9]*/)?wis/|(?:[0-9]*/)?_wr_/|(?:[0-9]*/)?_sl_/|(?:[0-9]*/)?wa/|(?:[0-9]*/)?ra/|(?:[0-9]*/)?womp/|(?:[0-9]*/)?ja/|(?:[0-9]*/)?wo/|(?:[0-9]*/)?push/|(?:[0-9]*/)?wr/|(?:[0-9]*/)?ws/|(?:[0-9]*/)?erxadm/|(?:[0-9]*/?)?$)(.*)$
/cgi-bin/WebObjects/AppName.woa/$1ra/$2 [NC,PT,L]

RewriteRule
^AppName/([0-9]*/)?(ajax/|wis/|_wr_/|_sl_/|wa/|ra/|womp/|ja/|wo/|push/|wr/|ws/|erxadm/|(?:[0-9]*/))(.*)$
/cgi-bin/WebObjects/AppName.woa/$1$2$3 [NC,PT,L]

RewriteRule ^AppName(/[0-9]*)?$ /cgi-bin/WebObjects/AppName.woa [NC,PT,L]


On Wed, Nov 13, 2013 at 5:36 AM, Theodore Petrosky tedp...@yahoo.comwrote:

 mod_rewrite is what you want:


 http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects?src=search




 On Nov 13, 2013, at 5:35 AM, Sisi Li sslee0...@gmail.com wrote:

 Hello,


 I would like the user of our app to not see the app name in the URL,
 for example:

 At the moment, our site
 www.example.com = gets routed to
 www.example.com/Apps/Webobjects/AppName/ra/Website/site1/page1.html

 I would like the url to show the contents of page1.html but somehow
 hide the Webobjects/AppName/ bit


 Is that possible through the application or apache at all?


 Many thanks,


 Zak
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com

 This email sent to tedp...@yahoo.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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: REST and Excel data

2013-11-08 Thread Ted Archibald
I have a basic VBA library that I've made for doing two-way excel to WO
communication.  It just uses VBA and CSV strings coming to and from a
direct action.  Currently it's Mac only since I use VBA - Applescript -
Curl


On Tue, Nov 5, 2013 at 11:58 AM, Hugi Thordarson h...@karlmenn.is wrote:

 Description forthcoming

 - hugi



 On 5.11.2013, at 17:38, Chuck Hill ch...@global-village.net wrote:

  DfH, is that a new Wonder technology?
 
 
  --
  Chuck Hill
  Executive Managing Partner, VP Development and Technical Services
 
  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/gvc/practical_webobjects
 
  Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest
 Growing Companies in B.C!
 
  Global Village Consulting ranks 44th in 25th annual PROFIT 500 ranking
 of Canada’s Fastest-Growing Companies by PROFIT Magazine!
 
  On 2013-11-05 11:34 AM, David Holt wrote:
 
  https://bitbucket.org/hugi/excelpublisher
 
  Direct from Hugi.
 
  David
 
 
  On 2013-11-04, at 11:59 AM, Gino Pacitti ginok...@mac.com wrote:
 
  yea that would help… how do I get a demo??
  On 4 Nov 2013, at 19:58, David Holt programming...@mac.com wrote:
  I know Hugi has an example app of Excel working as a WO back end. Maybe
 that would help you?
  David
  On 2013-11-04, at 11:48 AM, Gino Pacitti ginok...@mac.com wrote:
  Hi ..
  I have a job coming up and wanted to know if anyone had any experience
 with interacting with Excel data spread-sheets over the net?
  The client has an internal spread-sheet that is edited and contains
 formulas for the creation of an order for items that are to be purchased.
  So I am building an iPhone app that will interact with a WO App, which I
 am building too, and then somehow with the excel sheet.
  Anyone have any knowledge of the best way to interact with the excel
 sheet.
  The Excel sheet needs to :
  1. Be editable for the client in their office
  2. Be accessible by the iPhone app through whatever means, XML, REST or
 HTTP etc.. and update the spread-sheet when an order is placed…
  Obviously concurrency  an issue.
  I had thought about interacting with SQL server but I don’t think that
 is excel file fronted.
  Any thoughts or direction to something else appreciated.
  Gino
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
 
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
  This email sent to programming...@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:
  https://lists.apple.com/mailman/options/webobjects-dev/ginokris%40me.com
  This email sent to ginok...@me.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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
  This email sent to programming...@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:
 
 https://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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/hugi%40karlmenn.is
 
  This email sent to h...@karlmenn.is


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Getting the App Instance

2013-02-02 Thread Ted Archibald
Is there a way to get the app instance number (i.e.
/cgi-bin/WebObjects/AppName/2) in the app?  I want to have separate cookies
for each session on each instance, but to do so I need to know the instance
number for the cookie domain.

I know you could set a property in each instance in WOMonitor, but I was
wondering if there was a simple way to do it java without setting
properties.
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Getting the App Instance

2013-02-02 Thread Ted Archibald
Works like a charm, thanks!

On Sat, Feb 2, 2013 at 11:26 AM, Bogdan Zlatanov
bogdan.zlata...@gmail.comwrote:

 Hi Ted,

 WORequest - applicationNumber() should have what you're looking for.

 Cheers

 On 2 Feb 2013, at 18:14, Ted Archibald wrote:

  Is there a way to get the app instance number (i.e.
 /cgi-bin/WebObjects/AppName/2) in the app?  I want to have separate cookies
 for each session on each instance, but to do so I need to know the instance
 number for the cookie domain.
 
  I know you could set a property in each instance in WOMonitor, but I was
 wondering if there was a simple way to do it java without setting
 properties.
  ___
  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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/bogdan.zlatanov%40gmail.com
 
  This email sent to bogdan.zlata...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: My first Hell World App

2013-01-14 Thread Ted Archibald
I've had this problem in the past, it was due to a space in the
application/project name.  I'd stay away from spaces, dashes, periods,
slashes, etc. in the app/project name and the in the path to the project.

On Mon, Jan 14, 2013 at 5:02 PM, Ramsey Gurley ramseygur...@gmail.comwrote:

 I think WO tries to find the class by simple name and defaults to the
 first one it finds. There's a way to tell _NSUtilities what class to use
 explicitly I believe. Also, Why is the JavaXML framework still a default in
 WO projects anyway? It quadruples the size of build logs and far better XML
 classes exist in the jre these days.


 Jesse Tayler jtay...@oeinc.com wrote:

 doesn't that basically mean that when you imported the session you
 wanted to inherit from, you picked up some kind of axis session instead
 you should have picked up WOSession.

 so, I think that's just a Java import package problem?

 check the top of your java file when what and how Session is Imported,
 delete what's there and allow the system to fix and be sure to select the
 WOSession from WebObjects.

 Try that?



 On Jan 14, 2013, at 10:52 AM, ute Hoffmann u.hoffm...@tt-pixelmind.com
 wrote:

 Hi,
 So I found WOLips Perspective thanks to your Help. And I created a
 helloWorld App
 and tried to run it in eclipse and get this error:

 *Application: JavaFoundation*
 *Error: java.lang.IllegalArgumentException exception*
 *Reason:*
 *java.lang.IllegalArgumentException: your.app.Application Class
 'Session' exists (interface org.apache.axis.session.Session) but is not a
 subclass of WOSession.*
 *
 *
 *Any idea what I did wrong?*
 *
 *
 *Regards,*
 *Ute*
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com

 This email sent to jtay...@oeinc.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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: My first Hell World App

2013-01-14 Thread Ted Archibald
Here's what I posted around last year:

I can duplicate the bug on my computer by creating a new wonder app called
test1.0

Something in wolips doesn't like the period, or at least something on my
computer doesn't.

On Mon, Jan 14, 2013 at 6:57 PM, Ted Archibald ted.archib...@gmail.comwrote:

 I've had this problem in the past, it was due to a space in the
 application/project name.  I'd stay away from spaces, dashes, periods,
 slashes, etc. in the app/project name and the in the path to the project.

 On Mon, Jan 14, 2013 at 5:02 PM, Ramsey Gurley ramseygur...@gmail.comwrote:

 I think WO tries to find the class by simple name and defaults to the
 first one it finds. There's a way to tell _NSUtilities what class to use
 explicitly I believe. Also, Why is the JavaXML framework still a default in
 WO projects anyway? It quadruples the size of build logs and far better XML
 classes exist in the jre these days.


 Jesse Tayler jtay...@oeinc.com wrote:

 doesn't that basically mean that when you imported the session you
 wanted to inherit from, you picked up some kind of axis session instead
 you should have picked up WOSession.

 so, I think that's just a Java import package problem?

 check the top of your java file when what and how Session is Imported,
 delete what's there and allow the system to fix and be sure to select the
 WOSession from WebObjects.

 Try that?



 On Jan 14, 2013, at 10:52 AM, ute Hoffmann u.hoffm...@tt-pixelmind.com
 wrote:

 Hi,
 So I found WOLips Perspective thanks to your Help. And I created a
 helloWorld App
 and tried to run it in eclipse and get this error:

 *Application: JavaFoundation*
 *Error: java.lang.IllegalArgumentException exception*
 *Reason:*
 *java.lang.IllegalArgumentException: your.app.Application Class
 'Session' exists (interface org.apache.axis.session.Session) but is not a
 subclass of WOSession.*
 *
 *
 *Any idea what I did wrong?*
 *
 *
 *Regards,*
 *Ute*
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com

 This email sent to jtay...@oeinc.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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: How to contribute ?

2013-01-14 Thread Ted Archibald
 For another example, I've no idea why *.api files are included in a
 deployment build

 Good question.  Historical oversight?

 when they are a purely build-time artifact (aren't they?).



Aren't they included because at one time it was common practice to edit
components on the fly without rebuilding the app? I seem to recall this was
mentioned in the old documentation.
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: How to contribute ?

2013-01-14 Thread Ted Archibald
I concur seems crazy to me.  I just seem to recall the old Apple
documentation placed alot of emphasis on writing your business logic once,
building once, then editing your components to suite your needs.  But I
could be wrong, I haven't read that stuff in years.

On Mon, Jan 14, 2013 at 7:37 PM, Chuck Hill ch...@global-village.netwrote:


 On 2013-01-14, at 5:32 PM, Ted Archibald wrote:

 
  For another example, I've no idea why *.api files are included in a
 deployment build
  Good question.  Historical oversight?
  when they are a purely build-time artifact (aren't they?).
 
 
  Aren't they included because at one time it was common practice to edit
 components on the fly without rebuilding the app? I seem to recall this was
 mentioned in the old documentation.

 If anyone ever did that to a deployed app, it was not a very good practice.


 --
 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/gvc/practical_webobjects

 Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest
 Growing Companies in B.C!
 Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of
 Canada’s Fastest-Growing Companies by PROFIT Magazine!









 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


log4j Settings For iPhone

2013-01-12 Thread Ted Archibald
I have log4j shooting out emails on errors which is great, but does anyone
have any settings that make it sane to read on my iphone?

When I get errors sometimes I'm getting HUGE dumps that take me at least 30
seconds to scroll to the bottom, then when I do the formatting is so
illegible I can barely decipher what the the issue is.

Any suggestions?
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: URL re-writing at the root of the domain

2013-01-11 Thread Ted Archibald
Although I'm not running at the root domain I did write a rewrite rule so
that Rest routes are cleaner (i.e. no /ra crap).  I just added a bunch of
exceptions to the regex, which solved my problems with multiple request
handlers.

e.g.

RewriteRule
^AppName/([0-9]*/)?(?!(?:[0-9]*/)?ajax/|(?:[0-9]*/)?wis/|(?:[0-9]*/)?_wr_/|(?:[0-9]*/)?_sl_/|(?:[0-9]*/)?wa/|(?:[0-9]*/)?ra/|(?:[0-9]*/)?womp/|(?:[0-9]*/)?ja/|(?:[0-9]*/)?wo/|(?:[0-9]*/)?push/|(?:[0-9]*/)?wr/|(?:[0-9]*/)?ws/|(?:[0-9]*/)?erxadm/|(?:[0-9]*/?)?$)(.*)$
/cgi-bin/WebObjects/AppName.woa/$1ra/$2 [NC,PT,L]

RewriteRule
^AppName/([0-9]*/)?(ajax/|wis/|_wr_/|_sl_/|wa/|ra/|womp/|ja/|wo/|push/|wr/|ws/|erxadm/|(?:[0-9]*/))(.*)$
/cgi-bin/WebObjects/AppName.woa/$1$2$3 [NC,PT,L]

RewriteRule ^AppName(/[0-9]*)?$ /cgi-bin/WebObjects/AppName.woa [NC,PT,L]

On Thu, Jan 10, 2013 at 12:21 AM, Paul Hoadley pa...@logicsquad.net wrote:

 Hi George,

 On 10/01/2013, at 3:45 PM, George Domurot masterm...@knuckleheads.net
 wrote:

 This line doesn't look right:
 RewriteRule ^/(.*)$ /Apps/WebObjects/SomeApp.woa$1 [PT,L]

 Shouldn't it include a slash before $1?
 RewriteRule ^/(.*)$ /Apps/WebObjects/SomeApp.woa/$1 [PT,L]

 I haven't tried it, but it should work.


 Well spotted, you're completely right.  (Testing didn't get far enough to
 expose this bug, as I can't log in yet.)

 If the URLs then work, but not once you're in the app, then you'll want to
 dig into the auto rewrite are of Wonder and see what it's doing when the
 replace is only equal to /.


 Yeah, that's next up.  Has anyone done this?  Is anyone deploying an app
 at the apex of some domain name like this?


 --
 Paul Hoadley
 http://logicsquad.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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WebServerResources problem with Apache running in a different port.

2012-11-24 Thread Ted Archibald
I'm not sure, but I think in apache under the host you need to add:
 RequestHeader set x-webobjects-server-port 8090

On Sat, Nov 24, 2012 at 11:11 AM, Miguel Torres w...@toracom.net wrote:

 Hi list,

 One of our clients needs to run apache in a different port than the 80.

 I googled and I found how to change the Apache 2 listening port. I changed
 it to 8090 just for testing. After restarting Apache I tested the
 application but the WebServerResources were not loaded because the
 generated URL's in the HTML were set like /WebObjects/... and are not
 taking in account the port.

 What should I change to get it work?

 Thanks in advance.



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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WOWODC 2013?

2012-10-21 Thread Ted Archibald
+1 for vegas

On Sat, Oct 20, 2012 at 6:10 PM, Daniel Beatty danielbea...@mac.com wrote:

 Greetings Joe and Klaus,
 Do you know of anyone in those Northern Californian cities that would not
 mind coming down to the So Cal or even to the Desert (in the winter maybe)
 for a WOWODC-Pacific Coast?I have no intention on competing with
 Pascal.  Trust me, he can keep all of the nervousness, sweat, tears,
 anxiety, cussing in French, etc so long as I get the pretty girls, etc.
  Although, I have had a little trouble with that, hence the consideration
 of Vegas.

 What do you think?

 Dan





 On Oct 20, 2012, at 5:04 PM, Daniel Beatty danielbea...@me.com wrote:

 Greetings Tim,
 Are you up for a mini-WOWODC say West Coast or something?  I don't know
 what the hotel situation is like near UCLA, but I suspect that you could
 arrange classroom space for the actual conference itself.   I am working on
 getting membership with the Cerro Coso and Naval Post Graduate School.  If
 I get either one (latter preferable) then I become a candidate, too.  I
 hear that Joe can sponsor us if we want to make the trek up to Stanford.
  Bakersfield and Las Vegas are also seems to be fair game, although I do
 not have any connections there.

 What do you think?I realize any such thing is kind of a big deal to
 organize.   After all, I think Pascal looks a little more excited each time
 I see him at one of these things.  That is before any WiFI excitements.
 Obviously, it does not have to be during the Summer.  It could be after
 WOWODC 2013 itself even.  After all, it does take some planning effort to
 make these things happen in the first place.  Never the less, I do live the
 closest to sin city, without being in it.I just have to find a way to
 either do it on my own or make it seem like a beautiful idea to my employer
 without getting into trouble or something.  After all, all I would need is
 a CRADA with UCLA to allow for that.

 V/R,




 Dan Beatty, Ph.D.
 Texas Tech University, Alumni
 dan.bea...@mac.com dan.bea...@ttu.edu
 https://sites.google.com/site/allnightstarparty/homehttp://web.me.com/danielbeatty/My_Home_Page/Welcome.html
 http://web.me.com/danielbeatty/My_Home_Page/Welcome.html(806)438-6620














 On Oct 20, 2012, at 9:51 AM, Tim Worman li...@thetimmy.com wrote:

 Yep, that's my biggest issue. I'd love to be there but I'm almost always
 on vacation with family the weekend leading into the 4th of July.

 Tim
 UCLA GSEIS


 On Oct 20, 2012, at 9:45 AM, James Cicenia ja...@jimijon.com wrote:

 The July 4th time frame is holiday here in the states.
 And some of us like to actually go on holiday.
 Thus the date is always really bad for me, else I would be there.


 On Oct 19, 2012, at 2:32 PM, Pascal Robert prob...@macti.ca wrote:


 Le 2012-10-19 à 13:58, Chuck Hill ch...@global-village.net a écrit :


 On 2012-10-19, at 10:13 AM, David Avendasora wrote:


 On Oct 20, 2012, at 12:42 AM, Chuck Hill ch...@global-village.net wrote:

 I hope some day we could have one WOWODC here in Costa Rica we have
 beaches, girls, beers. It will be nice.


 Hey! We have all that in Brunei too!

 Except for the beer.

 And all (okay, both) the girls are covered head to toe in loose-fitting
 polyester.


 I wonder if there is a fetish for that...


 And all the beaches have sand flies.


 Bonus!


 Otherwise this place is paradise!

 But seriously, I don't care how much Pascal makes organizing WOWODC every
 year


 I think it makes him insane and a nervous wreck.  I don't think it makes
 him money.


 Honestly, I do it only to see everyone at least once a year and because I
 do like giving presentations.
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.com

 This email sent to ja...@jimijon.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:
 https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com

 This email sent to li...@thetimmy.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:

 https://lists.apple.com/mailman/options/webobjects-dev/danielbeatty%40mac.com

 This email sent to danielbea...@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:

 

Re: Creating a Git Server

2012-10-10 Thread Ted Archibald
When I switched over to git, I had problems with git on my 10.5 server.
 According to my notes, installing via macports solved my problems.

On Tue, Oct 9, 2012 at 1:30 PM, Roger Perryman ro...@xeotech.com wrote:

 Can anyone confirm (or deny) that git 1.7.5.4 is the latest version that
 works on OSX 10.5? I installed the latest version (1.7.12.2) but it
 complained about some dylibs. The dmg name included snow-leopard so I
 assumed it required snow-leopard. I then installed the latest leopard
 version (1.7.5.4) and it works but some of the server solutions I'm looking
 at require later versions.
  ___
 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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Rewrite WO app URL

2012-09-11 Thread Ted Archibald
On the apps I use I like clean URLs, I've been using alot of ERRest to help
as well.

For rewrite rules I use a more complicated rewrite so that I can write
ERRest routes like server.com/AppName/Route/Whatever instead of
server.com/AppName/ra/Route/Whatever:

RewriteRule
^AppName/([0-9]*/)?(?!(?:[0-9]*/)?ajax/|(?:[0-9]*/)?wis/|(?:[0-9]*/)?_wr_/|(?:[0-9]*/)?_sl_/|(?:[0-9]*/)?wa/|(?:[0-9]*/)?ra/|(?:[0-9]*/)?womp/|(?:[0-9]*/)?ja/|(?:[0-9]*/)?wo/|(?:[0-9]*/)?push/|(?:[0-9]*/)?wr/|(?:[0-9]*/)?ws/|(?:[0-9]*/)?erxadm/|(?:[0-9]*/?)?$)(.*)$
/cgi-bin/WebObjects/AppName.woa/$1ra/$2 [NC,PT,L]

RewriteRule
^AppName/([0-9]*/)?(ajax/|wis/|_wr_/|_sl_/|wa/|ra/|womp/|ja/|wo/|push/|wr/|ws/|erxadm/|(?:[0-9]*/))(.*)$
/cgi-bin/WebObjects/AppName.woa/$1$2$3 [NC,PT,L]

RewriteRule ^AppName(/[0-9]*)?$ /cgi-bin/WebObjects/AppName.woa [NC,PT,L]



The rewrite properties are simple though:

er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/AppName.woa
-er.extensions.ERXApplication.replaceApplicationPath.replace=/AppName



Then to get rid of the session ID in the url in my session class I have:

  @Override
  public void awake() {
super.awake();
  setStoresIDsInCookies(true);
  setStoresIDsInURLs(false);
  }

  @Override
  public String domainForIDCookies() {
return ERXApplication.isDevelopmentModeSafe() ?
super.domainForIDCookies() : / + AppName ;
  }
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: linking editing contexts from two apps

2012-08-01 Thread Ted Archibald
ERJGroupsSynchronizer might be what you're looking for, Mike describes it
in the video Project Wonder in Depth (WOWODC West 2009)

On Tue, Jul 31, 2012 at 8:48 AM, Theodore Petrosky tedp...@yahoo.comwrote:

 I have a Wonder app that I did a while ago. This is an internal app that
 is used in production.

 I have been asked to create a client facing version. Not all fields will
 be editable and it will fire an email if they touch anything.

 How do I maintain freshness of data? If my internal app updates the data,
 how do I notify the client app. Or should I not care and just make sure
 that the client app is always going to the database?

 likewise if the client updates a row, how will my internal app know?

 There are approximately 1 rows of data (small) and it only grows a
 thousand a year.

 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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Hello World crashing in Eclipse 4.2

2012-08-01 Thread Ted Archibald
What's the name of your app/project?  I had that problem once and it was
because of a space and or period in the name.

On Wed, Aug 1, 2012 at 4:11 AM, Maik Musall m...@selbstdenker.ag wrote:


 Am 01.08.2012 um 12:07 schrieb Q:

 On 01/08/2012, at 6:03 PM, Maik Musall m...@selbstdenker.ag wrote:

 Hi John,

 I *am* on 3.7 with Eclipse. I said nothing about 4.2, did I?


 The subject of your email was about Eclipse 4.2, so yes, you did.


 Sorry, you're right. I didn't pay attention to that when responding to the
 original email. My case is about 3.7, though.

 Maik


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Periodic Tasks in WO

2012-08-01 Thread Ted Archibald
The other (lazy) way to do periodic tasks is to do it via directactions
fired from a jenkins or cron job.  Took seconds to setup...
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: JavaERJDBCAdaptor ?

2012-07-26 Thread Ted Archibald
Logging and hooks by the looks of it.

On Thu, Jul 26, 2012 at 12:46 PM, James Cicenia ja...@jimijon.com wrote:

 What is JavaERJDBCAdaptor and what is it for, or what does it cure?

 Is JavaJDBCAdaptor good enough?

 Thanks
 James

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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: JavaMonitor

2012-07-25 Thread Ted Archibald
JavaMonitor IS built with embedded frameworks.

The problem you're having is slightly different, you kinda have a couple
things going on here.

JavaMonitor is built all in one, including the app and the webserver
resources.  This means you have to manually copy those resources into the
proper webserver directory (preferred) or create a symbolic link (but this
may expose files you may not want exposed to the public).  Normally when
you build an app, ant can create AppName-Application.tar.gz and
AppName-WebServerResources.tar.gz, which makes this simpler.

Next JavaMonitor was built (or it defaults to) the WOFrameworksBaseURL
property being set to /WebObjects/Frameworks instead of
/WebObjects/JavaMonitor.woa/Contents/Frameworks (I think), that's a
stylistic thing but most on the list prefer the latter.
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: JavaMonitor

2012-07-24 Thread Ted Archibald
Copy the frameworks from JavaMonitor.woa/Contents/Frameworks into
/var/www/htdocs/WebObjects/Frameworks

Then remove /var/www/htdocs/WebObjects/Frameworks/*.framework/Resources
which will just leave the static resources *.framework/WebServerResources



On Tue, Jul 24, 2012 at 3:08 PM, WebObjects TORAcom w...@toracom.net wrote:

 Maybe I did something wrong during the WebObjects deployment environment
 installation.

 I followed this tutorial

 http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux


 I copied the WebObjects folder to my webserver:

 cp -rp /opt/Local/Library/WebServer/Documents/WebObjects /var/www/htdocs

 But if I list the content of 
 /opt/Local/Library/WebServer/Documents/WebObjects/Frameworks/
 I get this:

 ls /opt/Local/Library/WebServer/Documents/WebObjects/Frameworks/
 JavaEOApplication.framework JavaEOGeneration.framework
 JavaEOInterface.framework JavaEORuleSystem.framework

 There is no Ajax.framework

 Am I missing something?

 Thanks

 On 24/07/2012, at 15:13, WebObjects TORAcom wrote:

 You are right,

 I found this error.
 NetworkError: 404 Not Found -
 http://mysite.com/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js
 
 The JavaMonitor application does not have the frameworks embedded?

 Should I copy the Framework's WebServerResources to the Web Server folder?

 Thanks.

 Miguel.



 On 24/07/2012, at 14:00, Pascal Robert wrote:

 Check the JavaScript console in your browser to see if any errors are
 there.


 Hi,


 I downloaded JavaMonitor from


 http://jenkins.wocommunity.org/job/Wonder/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz


 I installed it. It looks great! thanks guys. I just have a problem, it
 seems that some div's don't work, I assume they should open. This is the
 image of the areas that don't open:


 Screen Shot 2012-07-24 at 13.08.01.png

 I click on HTTP Adaptor Settings and nothing happens.


 I tried  with Safari, Chrome and Firefox, mac os X Lion.


 Does anybody have the same issue?


 Thanks in advance.


 Miguel Torres.



 ___

 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:

 https://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:
 https://lists.apple.com/mailman/options/webobjects-dev/wo%40toracom.net

 This email sent to w...@toracom.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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Logging on LINUX

2012-07-17 Thread Ted Archibald
log4j FTW

Refer to Paul Yu's presentation (fluffy bunny I think) for a quick outline
on how to set it up.

On Tue, Jul 17, 2012 at 5:52 AM, Daniele Corti ilde...@gmail.com wrote:



 2012/7/17 jp.malr...@free.fr

 That was yesterday.
 Does this directory need to be writtable by apache?


 I think the directory just have to be writable by the user that runs the
 wotask app.

 Check in the monitor the real path for the log file (Monitor -
 Applications - App Detail View - Config - Output Path) and test if the
 file has be created. If not, probably is a permissions problem, try first
 to add the full perm at the directory and see if it works.

 Bye
 --
 Daniele
 --
 I DON'T DoubleClick


 - Mail original -
 De: Daniele Corti ilde...@gmail.com
 À: Jean Pierre Malrieu jp.malr...@free.fr
 Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
 Envoyé: Mardi 17 Juillet 2012 11:31:12
 Objet: Re: Logging on LINUX


 Hi, mmm, how much time as passed from you restart app and check the
 directory?


 I'm asking 'cause, when starting app in JavaMonitor, Log flush is not
 immediate, for example one of my app has flushed the last logs about 3
 hours ago.





 2012/7/17 Jean Pierre Malrieu  jp.malr...@free.fr 


 Hi,

 Sorry for my very basic questions, but it's been a while since I had to
 bother about deployment.
 What are the steps necessary to allow logging for an application deployed
 on LINUX?
 I have created a directory, owned by appserver, and told JavaMonitor to
 log there. But nothing happens...
 What I am forgetting here?

 TIA

 JPM
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com

 This email sent to ilde...@gmail.com




 --
 Daniele
 --
 I DON'T DoubleClick




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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: one last Eclipse mystery... can't connect to any database.

2012-07-16 Thread Ted Archibald
Can you revert to an older version of eclipse/wolips?

On Sun, Jul 15, 2012 at 8:33 AM, James Cicenia ja...@jimijon.com wrote:

 Yep using:

 mysql-connector-java-5.1.21-bin.jar and I moved it up, down and sideways.

 Luckily I can push up to a test server so I am still somewhat
 productive, however, this is really another strange problem. Seems like
 eclipse is blocking.

 Anyone else have any other suggestions?

 Thanks
 James


 On Sat, Jul 14, 2012 at 7:49 PM, Ted Archibald ted.archib...@gmail.comwrote:

 You have the jdbc jar for your DB installed, correct?

 On Sat, Jul 14, 2012 at 11:43 AM, James Cicenia ja...@jimijon.comwrote:

 Hello -

 I am having another head scratching mystery. No matter what I do, no
 matter the database, no matter the credentials entered and no matter
 whether the database is local or remote, WO won't connect to the database.
 I can connect to all databases using Navicat just fine. This only effects
 my Eclipse and not my deployed apps. Is there another obscure switch in
 Eclipse?

 Thanks
 James


 WARN  NSLog  - An exception occurred while trying to open a channel: N/A

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.Exceptions  -
 Database Exception occured: java.lang.IllegalStateException:
 _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext
 com.webobjects.eoaccess.EODatabaseContext@25964fe8: failed to open
 database channel.  Check your connection dictionary, and ensure your
 database is correctly configured.

 Jul 14 13:41:24 PI[52856] INFO
 er.extensions.eof.ERXDatabaseContextDelegate  - PORTFOLIO: {driver =
 com.mysql.jdbc.Driver; password = password deleted for log; username
 = root; URL = jdbc:mysql://localhost:3306/pi; }

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Checking JDBC connection with
 information {driver = com.mysql.jdbc.Driver; password = password
 deleted for log; username = root; URL =
 jdbc:mysql://localhost:3306/pi; }

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Trying to create JDBCAdaptor...

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Successfully created adaptor
 com.webobjects.jdbcadaptor.JDBCAdaptor

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Trying to create plugin...

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Created plugin
 com.webobjects.jdbcadaptor._MySQLPlugIn

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Trying to load JDBC driver
 com.mysql.jdbc.Driver...

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Successfully loaded JDBC
 driver com.mysql.jdbc.Driver

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - JDBC driver and plugin are
 loaded, trying to connect...

 Jul 14 13:41:24 PI[52856] INFO
 er.transaction.adaptor.ConnectionAnalyzer  - Error: Exception thrown while
 connecting.

 Check exception message carefully.

 Jul 14 13:41:24 PI[52856] ERROR
 er.transaction.adaptor.ConnectionAnalyzer  - No connection.



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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: one last Eclipse mystery... can't connect to any database.

2012-07-14 Thread Ted Archibald
You have the jdbc jar for your DB installed, correct?

On Sat, Jul 14, 2012 at 11:43 AM, James Cicenia ja...@jimijon.com wrote:

 Hello -

 I am having another head scratching mystery. No matter what I do, no
 matter the database, no matter the credentials entered and no matter
 whether the database is local or remote, WO won't connect to the database.
 I can connect to all databases using Navicat just fine. This only effects
 my Eclipse and not my deployed apps. Is there another obscure switch in
 Eclipse?

 Thanks
 James


 WARN  NSLog  - An exception occurred while trying to open a channel: N/A

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.Exceptions  -
 Database Exception occured: java.lang.IllegalStateException:
 _obtainOpenChannel -- com.webobjects.eoaccess.EODatabaseContext
 com.webobjects.eoaccess.EODatabaseContext@25964fe8: failed to open
 database channel.  Check your connection dictionary, and ensure your
 database is correctly configured.

 Jul 14 13:41:24 PI[52856] INFO
 er.extensions.eof.ERXDatabaseContextDelegate  - PORTFOLIO: {driver =
 com.mysql.jdbc.Driver; password = password deleted for log; username
 = root; URL = jdbc:mysql://localhost:3306/pi; }

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Checking JDBC connection with information {driver =
 com.mysql.jdbc.Driver; password = password deleted for log; username
 = root; URL = jdbc:mysql://localhost:3306/pi; }

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Trying to create JDBCAdaptor...

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Successfully created adaptor com.webobjects.jdbcadaptor.JDBCAdaptor

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Trying to create plugin...

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Created plugin com.webobjects.jdbcadaptor._MySQLPlugIn

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Trying to load JDBC driver com.mysql.jdbc.Driver...

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Successfully loaded JDBC driver com.mysql.jdbc.Driver

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - JDBC driver and plugin are loaded, trying to connect...

 Jul 14 13:41:24 PI[52856] INFO  er.transaction.adaptor.ConnectionAnalyzer
 - Error: Exception thrown while connecting.

 Check exception message carefully.

 Jul 14 13:41:24 PI[52856] ERROR er.transaction.adaptor.ConnectionAnalyzer
 - No connection.



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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Anyone like to transcripti WOWODC podcasts via Mechanical Turk?

2012-07-13 Thread Ted Archibald
You can use MTurk by using crowdflower.com outside the US.  I'm in Canada
and I use WO app that submits jobs and pulls data from MTurk via
crowdflower.  I highly suggest it.  It makes MTurk far easier to use as
well.

That being said, wouldn't it be easier just to shoot the files to a
transcription company?  Especially since there's alot of domain specific
terminology.

The biggest pain I've had with crowd-sourcing is getting your error rate
down.  You can brute force it with high cost jobs or job repetition (which
crowdflower does beautiful).  Or you need to manually review everything.
 Or you can do it with trial and error, and how your job is designed.  I
only got the hang of it after submitting 6-12k jobs per month for at least
4 months before I was really happy.

On Fri, Jul 13, 2012 at 2:56 AM, Amy Worrall amo...@gmail.com wrote:

 On Fri, Jul 13, 2012 at 9:11 AM, Johan Henselmans jo...@netsense.nl
 wrote:
  Some people reported having transcripts done this way. Unfortunately, I
 am not allowed to use this tool, as I am not a citizen of the US of A.

 I've used it (from Britain) via those companies that offer a service
 where they submit the audio to Mechanical Turk and collate the
 results. It wasn't too expensive and it was a lot better than having
 to transcribe it myself!
  ___
 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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: WOWODC-2012 Git presentations

2012-07-13 Thread Ted Archibald
Yay!

On Fri, Jul 13, 2012 at 5:21 AM, Kieran Kelleher kelleh...@gmail.comwrote:

 FYI,

 If you are new to git.

 The first 3 parts of the 5-part series derived from the Understanding 
 Using Git WOWODC2012 presentation is available in this iTunes feed:

 http://itunes.apple.com/us/podcast/webobjects-podcasts/id270165303

 or at the bottom of this web page:

 http://www.wocommunity.org/webobjects_screencasts.html

 Parts 4 and 5 are slated to be published in next couple of weeks.

 Regards, Kieran
  ___
 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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Help... Eclipse, new install with wonder integration... ERExtensions have not been initialized?

2012-07-13 Thread Ted Archibald
What's your application/project named?

On Fri, Jul 13, 2012 at 7:00 AM, James Cicenia ja...@jimijon.com wrote:

 Thank you for replying. The secret to get it to work was offered by Pascal
 (bless his heart). I had to Enable Bundles in the Eclipse preferences.
 This magically made everything work.

 Thank goodness for this list as a solo developer it has truly become my
 lifeline, teacher and forward looking information source.

 Regards,
 James


 On Fri, Jul 13, 2012 at 8:58 AM, Ralf Schuchardt r...@gmx.de wrote:

 Hi James,

 there are at least two possible reasons for this exception:

 You may call ERXExtension methods before the frameworks are completely
 loaded, e.g. in static initializers. But if this project did run before,
 then it is probably not the case here.

 The other reason may be an unfortunate choosing of project paths, project
 names and Eclipse project file locations. Are these framework projects
 opened in Eclipse when you start your app? You could try to install them
 and then close the corresponding projects. If this succeeds then you need
 to closely examine the project paths.
 Your best shot would be to enable the debug output in
 ERXApplication.Loader.debugMsg() and see if the loaded projects match your
 expectations of what should get loaded.

 Ralf

 Am 12.07.2012 um 19:39 schrieb James Cicenia:

 Oh how I wish I could press once GoLipse button and all wonder/wo
 frameworks would just work.

 Anyway... I did all that, git'd the Wonder Integration and imported all
 frameworks into Eclipse.
 Things were looking good, no compile errors, etc. but, when I try to
 launch I get the following:

 I have moved ERExtension up and down, removed it, added, it, etc. nothing
 changes.

 What am I missing?

 Thanks
 James

 [2012-7-12 12:38:46 EDT] main A fatal exception occurred: ERXExtensions
 have not been initialized. Please report the classpath and the rest of the
 bundles to the Wonder mailing list:

 Remaining frameworks: [ERDirectToRest, ERPDFGeneration, ERCoolComponents,
 Ajax, ERModernLook, ERRest, ERModernDirectToWeb, ERDirectToWeb,
 ERModernDefaultSkin, WOLips, ExcelGenerator, QualifierAdditions,
 ERExcelLook, MySQLPlugIn, ERAttachment, JavaERJDBCAdaptor, ERJavaMail,
 JavaWOExtensions, ERPrototypes, ERExtensions, ERTaggable]
 Classpath:
 

Re: Help... Eclipse, new install with wonder integration... ERExtensions have not been initialized?

2012-07-13 Thread Ted Archibald
When I had this type of problem a while back, the root cause was the name
of the project for me.  It was either a space and/or a period.  Not having
bundleless builds drove me nuts.

On Fri, Jul 13, 2012 at 3:03 PM, Pascal Robert prob...@macti.ca wrote:

 FYI, I also have this problem (this is why I told James to enable
 bundles), even if my project names and paths don't have a hyphen or a space
 in it.

  What's your application/project named?
 
  On Fri, Jul 13, 2012 at 7:00 AM, James Cicenia ja...@jimijon.com
 wrote:
  Thank you for replying. The secret to get it to work was offered by
 Pascal (bless his heart). I had to Enable Bundles in the Eclipse
 preferences. This magically made everything work.
 
  Thank goodness for this list as a solo developer it has truly become my
 lifeline, teacher and forward looking information source.
 
  Regards,
  James
 
 
  On Fri, Jul 13, 2012 at 8:58 AM, Ralf Schuchardt r...@gmx.de wrote:
  Hi James,
 
  there are at least two possible reasons for this exception:
 
  You may call ERXExtension methods before the frameworks are completely
 loaded, e.g. in static initializers. But if this project did run before,
 then it is probably not the case here.
 
  The other reason may be an unfortunate choosing of project paths,
 project names and Eclipse project file locations. Are these framework
 projects opened in Eclipse when you start your app? You could try to
 install them and then close the corresponding projects. If this succeeds
 then you need to closely examine the project paths.
  Your best shot would be to enable the debug output in
 ERXApplication.Loader.debugMsg() and see if the loaded projects match your
 expectations of what should get loaded.
 
  Ralf
 
  Am 12.07.2012 um 19:39 schrieb James Cicenia:
 
  Oh how I wish I could press once GoLipse button and all wonder/wo
 frameworks would just work.
 
  Anyway... I did all that, git'd the Wonder Integration and imported all
 frameworks into Eclipse.
  Things were looking good, no compile errors, etc. but, when I try to
 launch I get the following:
 
  I have moved ERExtension up and down, removed it, added, it, etc.
 nothing changes.
 
  What am I missing?
 
  Thanks
  James
 
  [2012-7-12 12:38:46 EDT] main A fatal exception occurred:
 ERXExtensions have not been initialized. Please report the classpath and
 the rest of the bundles to the Wonder mailing list:
  Remaining frameworks: [ERDirectToRest, ERPDFGeneration,
 ERCoolComponents, Ajax, ERModernLook, ERRest, ERModernDirectToWeb,
 ERDirectToWeb, ERModernDefaultSkin, WOLips, ExcelGenerator,
 QualifierAdditions, ERExcelLook, MySQLPlugIn, ERAttachment,
 JavaERJDBCAdaptor, ERJavaMail, JavaWOExtensions, ERPrototypes,
 ERExtensions, ERTaggable]
  Classpath:
 

Re: Escaping property files keys

2012-07-11 Thread Ted Archibald
Isn't your problem the fact that this property only sets the key name of
the file?  Perhaps you can set your bucket name as
er.attachment.s3.bucket=bucket/path, but that's just a guess.

On Wed, Jul 11, 2012 at 3:30 PM, Benjamin Harrington mu...@knuckleheads.net
 wrote:

 Hello All,

 I was having an issue with ERAttachment (s3 mode).  When setting the
 property file attribute:

 er.attachment.s3.key=projectName/${pk}${ext}

 The '/' gets escaped into '%2F'.  The default value is ${pk}${ext}
 (primary key).(mime extension) which work as expected.

 I've tried several options such as escaping with a backslash, feeding it
 the %2F instead, or any other tweaks I could think of, but it always comes
 out as URL encoding.

 Any thoughts on this?  I would like to avoid programmatically setting
 this, as the ERXAttachmentUploader and such classes are concise and handy.

 Thanks!

 -Benny

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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Session ID and REST calls

2012-07-06 Thread Ted Archibald
Is there a reason you are setting the path like that, instead of overriding
domainForIDCookies()?

e.g.

@Override

  public String domainForIDCookies() {

return ERXApplication.isDevelopmentModeSafe() ? super.domainForIDCookies()
: / + AppName ;

  }

On Fri, Jul 6, 2012 at 9:59 AM, Pascal Robert prob...@macti.ca wrote:

 Tip: if you are using sessions for your REST calls, and you need to read
 that sesesion ID from your JavaScript client application, be aware that the
 path in the cookie will be /cgi-bin/WebObjects/something.woa/..., so if you
 try to check if the cookie is available in your JavaScript app, it won't
 work since the path of your JS app is probably not in /cgi-bin/WebObjects.

 So don't forget to change the path of the cookie, with a call like this in
 your Session class:

 public void _appendCookieToResponse(WOResponse aResponse) {
   super._appendCookieToResponse(aResponse);
   if (storesIDsInCookies()) {
 for (WOCookie cookie: aResponse.cookies()) {
   if (wosid.equals(cookie.name())) {
 cookie.setPath(/);
   }
 }
   }
 }
  ___
 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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: New WOWODC 2011 releases

2012-06-20 Thread Ted Archibald
Anxiously awaiting the forthcoming videos from 2012 wowodc...!

On Wed, Jun 20, 2012 at 6:22 AM, Pascal Robert prob...@macti.ca wrote:

 The public podcasts feed now have all the WOWODC 2011 recordings! The
 following recordings were added two minutes ago:

 - Custom EOAdaptors (Plus ERSolr!)
 - Custom and Embedded D2W components
 - Using a job scheduler in your WebObjects applications
 - Wonder's Ajax Framework: Under the Hood

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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Server not longer reachable because of 211GB logfile

2012-06-17 Thread Ted Archibald
 By the way, is there a way to detect the size of a textfile (logfile) and
 have a process send me a message that something goes wrong,
 when the file reaches a certain size?


I don't know if log4j can email you based on the size of the log (google?)
but I beleive you can limit the size of a log with a the property
MaxFileSize.

e.g. :

# A2 is a DailyRollingFileAppender
log4j.appender.A2=org.apache.**log4j.DailyRollingFileAppender
log4j.appender.A2.file=/var/**log/webobjects_apps/@@build.**app.bundle.name@
@-@@WOPort@@.**log
log4j.appender.A2.datePattern=**'.'-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=er.**extensions.ERXPatternLayout
log4j.appender.A2.layout.**ConversionPattern=%-5p %d{ISO8601} [%t] (%c: %L)
- %m%n
log4j.appender.A2.MaxFileSize=10MB
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: I am going to write a WO book

2012-06-09 Thread Ted Archibald
Since the public will never see a new release of WO, WO 6.0 = Wonder.

It's kinda like saying that someone should write a book on Hypercard, and
we should all participate in what Hypercard 3.0 from apple would look like.

It would be great to capture how easy it worked compared to this
eclipse/wonder stuff.

I wasn't an expert at the old WO style, but dear god is the new form of
development + wonder many times better.

Just last year I had to rewrite a legacy app I wrote 6 years ago and make
it into a modern app.  What I can implement now is crazy compared to the
basic system I had then. Debugging, maintenance and refactoring is now a
dream compared to the nightmare before.

On Sat, Jun 9, 2012 at 2:31 PM, Bart Rijpers jazzsa...@me.com wrote:

 Hi list,

 I think it is a very good idea to write a book about legacy WebObjects. It
 would be great to capture how easy it worked compared to this
 eclipse/wonder stuff. It would be even nicer if everyone one the list could
 participate in describing how an updated WO 2012 à la Apple would look like:
 - added support for new databases
 - integration with iOS app development (deploy WOA on iOS)
 - Jquery mobile kind of support like the framework Ken wrote, but
 integrated in an app like WO builder
 - New HTML editor in WO builder
 - integration with Netbeans / glassfish server for deployment
 - more?

 In other words: which architecture would be used for WO 6.0?

 Cheers, Bart


 On 9 Jun 2012, at 21:00, webobjects-dev-requ...@lists.apple.com wrote:

  Send Webobjects-dev mailing list submissions to
 webobjects-dev@lists.apple.com
 
  To subscribe or unsubscribe via the World Wide Web, visit
 https://lists.apple.com/mailman/listinfo/webobjects-dev
  or, via email, send a message with subject or body 'help' to
 webobjects-dev-requ...@lists.apple.com
 
  You can reach the person managing the list at
 webobjects-dev-ow...@lists.apple.com
 
  When replying, please edit your Subject line so it is more specific
  than Re: Contents of Webobjects-dev digest...
 
 
  Today's Topics:
 
1. Re: I am going to write a WO book (Lon Varscsak)
2. Re: Custom Entity Classes (Chuck Hill)
3. ERAttachment and _dbupdater do not agree in Wonder
   integration? (Johan Henselmans)
4. Creating Wonder D2W Application using WOLips without
   ERModernLook? (Farrukh Ijaz)
5. Re: Creating Wonder D2W Application using WOLips without
   ERModernLook? (David Holt)
6. Re: Creating Wonder D2W Application using WOLips without
   ERModernLook? (Farrukh Ijaz)
7. Re: I am going to write a WO book (James Cicenia)
 
 
  --
 
  Message: 1
  Date: Fri, 08 Jun 2012 12:35:23 -0700
  From: Lon Varscsak lon.varsc...@gmail.com
  To: WebObjects Apple Dev webobjects-dev@lists.apple.com
  Subject: Re: I am going to write a WO book
  Message-ID:
 calaw18wie2qdzquh7u0vfv77j-qepq5vomdo5yhcd3cysqp...@mail.gmail.com
  Content-Type: text/plain; charset=ISO-8859-1
 
  I felt left out. :P  +1
 
  Long live WOnder!
 
  On Fri, Jun 8, 2012 at 11:57 AM, Kieran Kelleher kelleh...@gmail.com
 wrote:
  +1.
 
  On Jun 8, 2012, at 1:16 PM, Chuck Hill wrote:
 
  +1
 
  There is no sense in writing a pure WO app these days, IMO.
 
 
  On 2012-06-08, at 9:55 AM, Pascal Robert wrote:
 
  +1
 
  Aren't pure Apple WO apps dead aside from legacy?
 
  IMO wonder is the ONLY option to learn new.
  ___
  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:
 
 https://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:
 
 https://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/gvc/practical_webobjects
 
 
 
 
 
 
 
 
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
 
 https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
  This email sent to kelleh...@gmail.com
 
 
   ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  

Re: I am going to write a WO book

2012-06-08 Thread Ted Archibald
Aren't pure Apple WO apps dead aside from legacy?

IMO wonder is the ONLY option to learn new.
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Using Git WOWODC 2012 Session

2012-04-05 Thread Ted Archibald
What's the advantage gitolite offers?  I was reading up on it and I didn't
get.  What's the difference between a git server VS a computer just running
git with ssh keys?

On Thu, Apr 5, 2012 at 1:40 PM, Pascal Robert prob...@macti.ca wrote:

 I would add:

  stashes : damn useful to try options without committing it. You can stash
 your tests, try something else, stash that something else, and get back to
 the first stash if you didn't like your work on the second stash.

  post commit hooks (never tried those except in a GitHub context)

 
 
  Basic / typical commands for forking wonder, cloning it, contributing
 back.  ;-)
 
  How about the equivalent of svn:externals to integrate Wonder into our
 employer's git repository...  Or maybe the command for checking out a
 particular version of Wonder in time for building our apps and qa against
 it.

 That will be tagging. We started adding release numbers, as tags, in the
 master branch of Wonder for this exact reason.

  For people whose employer won't put their repository in the public (i.e.
 github or whatever), is there an easy way to setup a server and that is
 free.  :-)
 
 
  On Apr 3, 2012, at 6:39 PM, Kieran Kelleher wrote:
 
  Following Chuck's lead  what would you like to get out of the
 Using Git session . what are the problems you are facing in the git
 world? I have already done an outline of my session content, but would
 definitely try to accommodate any requests also.
 
  Feel free to respond to this email in public list or in private.
 
  Regards and thanks, Kieran
  ___
  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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com
 
  This email sent to rpar...@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:
 
 https://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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: CCAjaxLongResponsePage not sending me back to nextPage

2012-04-04 Thread Ted Archibald
Do you have
er.coolcomponents.CCAjaxLongResponsePage.stayOnLongResponsePageIndefinitely
turned on?

On Wed, Apr 4, 2012 at 2:23 PM, Pascal Robert prob...@macti.ca wrote:

 Hi all,

 I'm using CCAjaxLongResponsePage like the fourth example in
 BackgroundTasks and I'm having a weird problem: after the task is done,
 it's still stuck in CCAjaxLongResponsePage, I'm not sent back to the
 nextPage that I specified.

 Code:

IERXPerformWOActionForResult controller = new
 ERXNextPageForResultWOAction(pageWithName(SomeComponent.class), _result);
CallableEOGlobalID task = new SendAllWelcomesTask(someEO()),
 someNsSet().immutableClone(), this.context());

CCAjaxLongResponsePage nextPage =
 pageWithName(CCAjaxLongResponsePage.class);
nextPage.setNextPageForResultController(controller);
nextPage.setTask(task);

return nextPage;

 The task is executed, in SendAllWelcomesTask.call(), it returns a global
 ID like it should, but it never sent back to SomeComponent. I added
 breakpoints in CCAjaxLongResponsePage.nextPage and
 CCAjaxLongResponsePage.result, and those two methods are never called.

 What could cause this?


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Using Git WOWODC 2012 Session

2012-04-03 Thread Ted Archibald
Since I just switched over, I'd be curious to know which is better:
multiple large repositories with many projects (ala Wonder) or an
individual repository for each project.  When I converted over from svn I
went with the former than the latter, and it seems fine.

Different workflows, what you do for your own projects, what you do with
Wonder etc.  E.g. https://www.youtube.com/watch?v=GYnOwPl8yCE and
https://www.youtube.com/watch?v=m7r2X9qC8jo

Now that I'm switched over to git I'm excited about being able to go off on
wild tangents with branches then merging them back in without leaving
projects in bizzaro limbo.  Any tips or tricks on this topic?

What are submodules and their use?  I haven't a clue.

Perhaps an overview of some of the GUIs out there (i.e. use this, don't use
this).

On Tue, Apr 3, 2012 at 5:56 PM, David Holt programming...@mac.com wrote:

 Best practices for setting up repositories. One project per? All projects
 in one?
 Dealing with forks and making pull requests to Wonder
 Jenkins :-)

 Sent from my iPad

 On 2012-04-03, at 3:39 PM, Kieran Kelleher kelleh...@gmail.com wrote:

  Following Chuck's lead  what would you like to get out of the
 Using Git session . what are the problems you are facing in the git
 world? I have already done an outline of my session content, but would
 definitely try to accommodate any requests also.
 
  Feel free to respond to this email in public list or in private.
 
  Regards and thanks, Kieran
  ___
  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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
  This email sent to programming...@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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-04-02 Thread Ted Archibald
The plot thickens...

I'm not sure if this is a bug in wolips or what.

But the symptoms are:

-When you run the app you get an error like: Class 'Session' exists
(interfacce org.jabsorb.client.Session) but is not a subclass of WOSession.
-In the component validation, some (but not all components) will give: The
class for 'X' is either missing or does not extend WOElement.
-Bundleless builds do not work, but Bundle builds work fine.

I discovered a bizarre fix... in the .project file for the app if you switch

natureorg.objectstyle.wolips.incrementalapplicationnature/nature


to

natureorg.objectstyle.wolips.incrementalframeworknature/nature


then everything works fine again.  But that doesn't quite make sense to me.
 I downloaded the wolips source and I haven't a clue why this would or
would not work.


On Fri, Feb 17, 2012 at 5:06 PM, John Huss johnth...@gmail.com wrote:

 I think you should spend a few more weeks on this.  That's the responsible
 thing to do.


 On Fri, Feb 17, 2012 at 2:06 PM, Ted Archibald ted.archib...@gmail.comwrote:

 Feels like I'm beating a dead horse:

 After trying many combinations of changes I finally found one change that
 helps.  If I have wolips generate bundles, everything works perfectly.  But
 I wonder how I can get bundleless builds to work again.

 If I have wolips generate bundles, clean the project then run, everything
 is back to normal.  But if I go back to bundleless builds, then the issues
 come back.


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Model/application development layout request for comment

2012-04-02 Thread Ted Archibald
Why not just deploy multiple instances with specific property files for
each configuration? In your resource folder you could have
Properties.config1, Properties.config2 then in the additional args in
JavaMonitor you could stick  -Duser.name=config1 then in the next instance
you'd have  -Duser.name=config2 .

On Mon, Apr 2, 2012 at 8:16 AM, Dev WO webobje...@anazys.com wrote:

 Hi WOmates,

 I'm actually rewritting a project to make it more multiple configuration
 aware.

 I need to define a little more the multiple configuration setup:
 -the same code-base will have about 10s different configurations (like
 language setup and custom UI layout)
 -each configuration would serve in the range of 100s (maybe 1000s) users

 My original idea was to create a single project in Eclipse and have a
 build.xml file for each configuration (providing the language(s), the
 database connection details, etc), that way I could have a specific
 database for each configuration and be able to update based on the
 configuration (like if configuration are used on different timezone, I can
 have a more optimized downtime window), in addition to isolate the data for
 each configuration.

 I haven't completely look into the build.xml to see if I could use it to
 achieve per built Properties and includes for example.

 But do you think it's the way to do it or is there a better way to manage
 this, mostly on the maintenance and future development perspective (having
 a single project seams pretty interesting to me)?

 It shouldn't really matter for now, but it would also be my first move
 into D2W;)

 Thanks for your comments,

 Xavier


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-04-02 Thread Ted Archibald
Well I think I got it cased now, I think it's because the app name had a
period in the name, perhaps that freaks out the incremental builder.

On Mon, Apr 2, 2012 at 9:34 AM, Ted Archibald ted.archib...@gmail.comwrote:

 The plot thickens...

 I'm not sure if this is a bug in wolips or what.

 But the symptoms are:

 -When you run the app you get an error like: Class 'Session' exists
 (interfacce org.jabsorb.client.Session) but is not a subclass of WOSession.
 -In the component validation, some (but not all components) will give: The
 class for 'X' is either missing or does not extend WOElement.
 -Bundleless builds do not work, but Bundle builds work fine.

 I discovered a bizarre fix... in the .project file for the app if you
 switch

 natureorg.objectstyle.wolips.incrementalapplicationnature/nature


 to

 natureorg.objectstyle.wolips.incrementalframeworknature/nature


 then everything works fine again.  But that doesn't quite make sense to
 me.  I downloaded the wolips source and I haven't a clue why this would or
 would not work.


 On Fri, Feb 17, 2012 at 5:06 PM, John Huss johnth...@gmail.com wrote:

 I think you should spend a few more weeks on this.  That's the
 responsible thing to do.


 On Fri, Feb 17, 2012 at 2:06 PM, Ted Archibald 
 ted.archib...@gmail.comwrote:

 Feels like I'm beating a dead horse:

 After trying many combinations of changes I finally found one change
 that helps.  If I have wolips generate bundles, everything works perfectly.
  But I wonder how I can get bundleless builds to work again.

 If I have wolips generate bundles, clean the project then run,
 everything is back to normal.  But if I go back to bundleless builds, then
 the issues come back.



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-04-02 Thread Ted Archibald
I can duplicate the bug on my computer by creating a new wonder app called
test1.0

Something in wolips doesn't like the period, or at least something on my
computer doesn't.

And I can assure it's not a classpath issue because I meticulously copied
and pasted EVERY file between a non-working app and a working app and the
only difference came from 3 things: 1) turning off bundleless builds 2)
setting natureorg.objectstyle.wolips.incrementalframeworknature/nature
in .project or 3) removing the period from the app name.  Moreover, this
ONLY affected my eclipse builds and not my jenkins builds.  So IMO,
everything seems to be pointing to something in the incremental app builder
and the name of the app.

Luckily I just migrated over to git the last weekend, so now I'm not so
scared to rename apps and merge it back, so I can finally move on.

On Mon, Apr 2, 2012 at 1:02 PM, Chuck Hill ch...@global-village.net wrote:

 That also seems unlikely.  This should be a classpath order problem and
 having ERExtensions first on the classpath (assuming you are using it,
 WOLips should do this) should prevent this error.

 Chuck


 On 2012-04-02, at 9:32 AM, Ted Archibald wrote:

  Well I think I got it cased now, I think it's because the app name had a
 period in the name, perhaps that freaks out the incremental builder.
 
  On Mon, Apr 2, 2012 at 9:34 AM, Ted Archibald ted.archib...@gmail.com
 wrote:
  The plot thickens...
 
  I'm not sure if this is a bug in wolips or what.
 
  But the symptoms are:
 
  -When you run the app you get an error like: Class 'Session' exists
 (interfacce org.jabsorb.client.Session) but is not a subclass of WOSession.
  -In the component validation, some (but not all components) will give:
 The class for 'X' is either missing or does not extend WOElement.
  -Bundleless builds do not work, but Bundle builds work fine.
 
  I discovered a bizarre fix... in the .project file for the app if you
 switch
 
  natureorg.objectstyle.wolips.incrementalapplicationnature/nature
 
  to
 
  natureorg.objectstyle.wolips.incrementalframeworknature/nature
 
 
  then everything works fine again.  But that doesn't quite make sense to
 me.  I downloaded the wolips source and I haven't a clue why this would or
 would not work.
 
 
  On Fri, Feb 17, 2012 at 5:06 PM, John Huss johnth...@gmail.com wrote:
  I think you should spend a few more weeks on this.  That's the
 responsible thing to do.
 
 
  On Fri, Feb 17, 2012 at 2:06 PM, Ted Archibald ted.archib...@gmail.com
 wrote:
  Feels like I'm beating a dead horse:
 
  After trying many combinations of changes I finally found one change
 that helps.  If I have wolips generate bundles, everything works perfectly.
  But I wonder how I can get bundleless builds to work again.
 
  If I have wolips generate bundles, clean the project then run,
 everything is back to normal.  But if I go back to bundleless builds, then
 the issues come back.
 
 
  ___
  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:
 
 https://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/gvc/practical_webobjects









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

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


Re: Model/application development layout request for comment

2012-04-02 Thread Ted Archibald
You can also just have a redirect for each instance using
ERXApplication.replaceApplicationPath and a rewrite in .htaccess that would
redirect some client name url to the app and instance number.  Effectively
skipping the load balancing, unless of course you want to load balance each
config with multiple instances as well.


On Mon, Apr 2, 2012 at 1:24 PM, Dev WO webobje...@anazys.com wrote:

 Thanks Kieran and Ted,

 That's a pretty good way to go:)
 I think I'll need to create one application in WOMonitor per
 configuration as they will answer on different domain name and I don't want
 to get a load balancing between instances that have different properties.

 Xavier

 On 2 avr. 2012, at 17:43, Kieran Kelleher wrote:

  You could have 10 Properties files ...
 
  Properties.config01
  Properties.config02
  Properties.config03
  etc.
 
 
  And then in WOMonitor (or even development launch arguments, just
 specify the property extension as the java user name, in which case
 ERXProperties will ensure that the properties in that file override all
 other Properties files. For for a deployed app that you want to run  with
 Properties.config01, just add this in WOMonitor:
 
  -Duser.name=config01
 
 
 
 
 
  On Apr 2, 2012, at 10:16 AM, Dev WO wrote:
 
  Hi WOmates,
 
  I'm actually rewritting a project to make it more multiple
 configuration aware.
 
  I need to define a little more the multiple configuration setup:
  -the same code-base will have about 10s different configurations (like
 language setup and custom UI layout)
  -each configuration would serve in the range of 100s (maybe 1000s) users
 
  My original idea was to create a single project in Eclipse and have a
 build.xml file for each configuration (providing the language(s), the
 database connection details, etc), that way I could have a specific
 database for each configuration and be able to update based on the
 configuration (like if configuration are used on different timezone, I can
 have a more optimized downtime window), in addition to isolate the data for
 each configuration.
 
  I haven't completely look into the build.xml to see if I could use it
 to achieve per built Properties and includes for example.
 
  But do you think it's the way to do it or is there a better way to
 manage this, mostly on the maintenance and future development perspective
 (having a single project seams pretty interesting to me)?
 
  It shouldn't really matter for now, but it would also be my first move
 into D2W;)
 
  Thanks for your comments,
 
  Xavier
 
 
  ___
  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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
  This email sent to kelleh...@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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Svn Git Transition

2012-03-30 Thread Ted Archibald
I'm migrating over to git from svn, yay! The process was relatively easy,
but I did have a couple of kinks.

Here's what I learned if it's any help for anyone else:

-Download the latest git @ http://git-scm.com/
-If any problems with the version of git (like I had on my 10.5 server)
just install git via macports.
-Set up a github account and follow their EASY instructions on how to set
up git
-Download SourceTree for an easy git GUI @ http://www.sourcetreeapp.com/
-Follow the EASY instructions on migrating from svn to git @
http://john.albin.net/git/convert-subversion-to-git
-Install git on your server if need be
-Set up SSH keys between your client and server (why didn't I do that ages
ago?)

My svn repository was a weird layout so I had to do some extra fiddly work
to get it into git, I just whipped up a bash script to do all the work
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: ERPDFGeneration with FOP and examples

2012-03-30 Thread Ted Archibald
Pascal, is this info posted anywhere else (wiki?).  It's exactly the type
of info I'd be looking for as a contributing noob.

On Fri, Mar 30, 2012 at 12:43 PM, Pascal Robert prob...@macti.ca wrote:

 Hi Larry,

 Looks good to me! A couple of observations:

 - You need to add a .gitignore file in the project so that the content of
 build/ and bin/ is not committed in Git (if you use eGit in Eclipse, right
 click on the build folder and select Team - Ignore).

 - When adding a new project to Wonder, you need to add it to the Ant build
 files, in Build/build/build.xml

 You need something like this:

target name=ERPDFExamples.all
antcall target=global.application.${build.action} 
param name=project.principal.class
 value=er.pdfexamples.Application /
param name=project.name value=ERPDFExamples /
param name=project.dir
 value=Examples/Misc/ERPDFExamples.all /
param name=wo.system.root.bundles
 value=${frameworks.system.core} /
param name=wo.external.root.bundles
 value=${frameworks.wonder.core}/ERPDFGeneration /
   /antcall
/target

 And in the examples.all target (target name=examples.all, near the end
 of the file), add ERPDFExamples.all

 After you done that, build Wonder (ant examples) and check if your new app
 have been built like the other examples

 - If your example is using a database, it should be set to H2 by default,
 so that people don't need something else to run it.

 Don't worry if it's not perfect, it will be committed into the integration
 branch and built by Jenkins, so if a problem is coming up, I will fix it.

 
  I have been refactoring some of the pdf generation in a couple apps and
 have tried to make it work with ERPDFGeneration.
  I wrote a quick app exercising the new bits and the existing
 ERPDFWrapper to avoid breaking anything and I put up an instance of that at
 https://www.vasc-alert.com/VA/WebObjects/ERPDFExamples
 
  The example application exercises the basic use of ERPDFWrapper (basic
 usage ), the use of FOP to transform html, the use of FOP to transform xml
 and combining pdfs generated with different wrappers in ERPDFGeneration.
 
  The code is available on my fork at github. (
 https://github.com/elemgee/wonder) I put ERPDFExamples in Examples/Misc
 on my fork.
  I confess that I have not moved all of my stuff to git yet, so I still
 have subversion-hassle-implementation-trauma affecting my thinking.
 
  I'm going to go over Pascal's podcast on contributions and organization
 before submitting a pull request, but since I've already opened myself up
 for ridicule on the git issue, I'd like to get some feedback on code. I've
 tried to conform to the organization and design that was already part of
 ERPDFGeneration. I am still digging through some of the things that I don't
 understand so if I've made mistakes in any part of the design or
 implementation, please have at it.
 
 
  Thanks for Q Dolans podcast PDF in 60 seconds (
 http://idisk.mac.com/qdolan-Public/webobjects/PDFIn60Seconds.mov) and all
 the contributors to ERPDFGeneration.
 
 
  Larry Mills-Gahl
  l...@webfarm.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:
 
 https://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:

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: ERPDFGeneration with FOP and examples

2012-03-30 Thread Ted Archibald
I wouldd do it but I can't log in to the wiki, I go in an endless loop
having to fill out capchas when I try logging in.


On Fri, Mar 30, 2012 at 2:02 PM, Pascal Robert prob...@macti.ca wrote:

 Anyone is free to add it to the wiki.

  Pascal, is this info posted anywhere else (wiki?).  It's exactly the
 type of info I'd be looking for as a contributing noob.
 
  On Fri, Mar 30, 2012 at 12:43 PM, Pascal Robert prob...@macti.ca
 wrote:
  Hi Larry,
 
  Looks good to me! A couple of observations:
 
  - You need to add a .gitignore file in the project so that the content
 of build/ and bin/ is not committed in Git (if you use eGit in Eclipse,
 right click on the build folder and select Team - Ignore).
 
  - When adding a new project to Wonder, you need to add it to the Ant
 build files, in Build/build/build.xml
 
  You need something like this:
 
 target name=ERPDFExamples.all
 antcall target=global.application.${build.action} 
 param name=project.principal.class
 value=er.pdfexamples.Application /
 param name=project.name value=ERPDFExamples /
 param name=project.dir
 value=Examples/Misc/ERPDFExamples.all /
 param name=wo.system.root.bundles
 value=${frameworks.system.core} /
 param name=wo.external.root.bundles
 value=${frameworks.wonder.core}/ERPDFGeneration /
/antcall
 /target
 
  And in the examples.all target (target name=examples.all, near the
 end of the file), add ERPDFExamples.all
 
  After you done that, build Wonder (ant examples) and check if your new
 app have been built like the other examples
 
  - If your example is using a database, it should be set to H2 by
 default, so that people don't need something else to run it.
 
  Don't worry if it's not perfect, it will be committed into the
 integration branch and built by Jenkins, so if a problem is coming up, I
 will fix it.
 
  
   I have been refactoring some of the pdf generation in a couple apps
 and have tried to make it work with ERPDFGeneration.
   I wrote a quick app exercising the new bits and the existing
 ERPDFWrapper to avoid breaking anything and I put up an instance of that at
 https://www.vasc-alert.com/VA/WebObjects/ERPDFExamples
  
   The example application exercises the basic use of ERPDFWrapper (basic
 usage ), the use of FOP to transform html, the use of FOP to transform xml
 and combining pdfs generated with different wrappers in ERPDFGeneration.
  
   The code is available on my fork at github. (
 https://github.com/elemgee/wonder) I put ERPDFExamples in Examples/Misc
 on my fork.
   I confess that I have not moved all of my stuff to git yet, so I still
 have subversion-hassle-implementation-trauma affecting my thinking.
  
   I'm going to go over Pascal's podcast on contributions and
 organization before submitting a pull request, but since I've already
 opened myself up for ridicule on the git issue, I'd like to get some
 feedback on code. I've tried to conform to the organization and design that
 was already part of ERPDFGeneration. I am still digging through some of the
 things that I don't understand so if I've made mistakes in any part of the
 design or implementation, please have at it.
  
  
   Thanks for Q Dolans podcast PDF in 60 seconds (
 http://idisk.mac.com/qdolan-Public/webobjects/PDFIn60Seconds.mov) and all
 the contributors to ERPDFGeneration.
  
  
   Larry Mills-Gahl
   l...@webfarm.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:
  
 https://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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com
 
  This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


*.xcode *.xcodeproj PB.project Files

2012-03-27 Thread Ted Archibald
Quick question, are the *.xcode *.xcodeproj PB.project files actually
needed for anything to function or can I stop creating them and yank 'em
out of version control?  I have no intention of ever using XCode for
anything WO, are they used by WO for something I'm unaware of?
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: *.xcode *.xcodeproj PB.project Files

2012-03-27 Thread Ted Archibald
Well I just deleted them from a project then ran my selenium tests, nothing
appears to break...

On Tue, Mar 27, 2012 at 1:13 AM, Ted Archibald ted.archib...@gmail.comwrote:

 Quick question, are the *.xcode *.xcodeproj PB.project files actually
 needed for anything to function or can I stop creating them and yank 'em
 out of version control?  I have no intention of ever using XCode for
 anything WO, are they used by WO for something I'm unaware of?

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Most requested stuff on Google Moderator

2012-03-27 Thread Ted Archibald
There's also a 4th reason:  People like me who don't know git/github, and
don't know how to integrate it into my workflow.  I'd like to contribute
more, but I need to spend a day or two figuring out how to get from here to
there without breaking my current workflow much.  For instance I currently
have laying around a basic twitter framework, httpclient framework,
xgrid framework, crowdflower framework etc. etc. just gathering dust.  I
also have random subclasses since it's quicker for me to subclass and fix a
bug in wonder instead of working with wonder directly.

On my list of todo's I need to rewatch your contributing to wonder video
then learn up on Github and Tailor so I could post to github from my svn
commits.

On Tue, Mar 27, 2012 at 5:38 PM, Pascal Robert prob...@macti.ca wrote:


 Le 2012-03-27 à 19:30, Mike Schrag a écrit :

  I think we should use the funds to pay people to fix issues that the
 majority of users are having. The issues will be voted by the community and
 the most voted issues will become the highest priorities.
 
 
  That is not how Wonder was created and now how I expect that it will
 continue.  If you have a problem, learn how to fix it.  Then put it in
 Wonder.
 
  In the past, we had Apple sponsorship and most of the big additions to
 Wonder between 2007 and 2010 came from Apple… We don't have that
 sponsorship anymore, and personally I don't think we will survive if we
 don't pay people for major stuff. I don't think we will survive anyway, but
 that's another story…
  Apple funded a VERY small percentage of the contributions to Wonder.
 Almost all of the contributions I made came from mDimension donating their
 time, bandwidth, and hardware for the good of the community. Frankly, if
 Apple hadn't funded the things they did, I would have done them anyway,
 because I just enjoyed making things.
 
  This approach of paying for fixes seems like you're just going to end up
 with a collection of bounty hunters instead of a community. On top of that,
 there's no way you're going to be able to afford to pay the market cost for
 this work. mDimension easily donated a couple hundred thousand dollars of
 time if you applied their real hourly rate to the work. So on top of
 encouraging people to only give if they get paid, they're going to be paid
 crap, so why would anyone even bother?
 
  I really don't think things are stagnant because of the lack of money.
 They're stagnant because the remaining people in the community don't care
 enough to contribute. I don't buy any of the I don't know how to do X or
 I don't have time to do X. You have to want it. I didn't know how to
 write nearly any of what was in WOLips before I started working on WOLips,
 and likewise with Wonder. I learned WebObjects working on Wonder. I'm would
 wager that everyone who worked on Wonder was in the same category.
 Contribution is also positive reinforcement. The coolest times in Wonder
 for me were always when one person contributing got someone else energized
 to contribute and amazing things were made.
 
  The real question is: Who is currently NOT contributing because they're
 just waiting for a payday to do so? If you're perfectly happy enjoying the
 fruits of the community while not giving back to the community, look in the
 mirror for the reason it's dying. Either give a shit, or don't be sad that
 it dies.

 I think reasons don't contribute are:

 1) Some just don't care and are leachers. Yes, people you can blame me to
 saying that. But anyway, any community are like that, no community have
 everyone contributing, it's just plain impossible.

 2) People are afraid of contributing. That's one of the reasons of why I
 added the integration branch in Wonder, and doing a Contributing to the
 community talk at WOWODC.

 3) People don't have time. That's the answer I got from many WO experts.
 And I can't do anything about that.

 So I really don't know how we can improve the situation…


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Multiple CCAjaxLongResponsePages For Single Task

2012-03-23 Thread Ted Archibald
Got it I just subclassed the component and fiddled with the future()
method and elapsedTime() method.

On Thu, Mar 22, 2012 at 11:56 PM, Ted Archibald ted.archib...@gmail.comwrote:

 Is there any way to use CCAjaxLongResponsePage on a task that's already
 running?

 Essentially I want to run a task but only a single iteration of that task,
 and if the task is already running I want to display
 a CCAjaxLongResponsePage for the progress.

 So far I have a simple loop that looks at the taskInfos in
 ERXTaskThread.taskInfos() then I create a new CCAjaxLongResponsePage and
 set the task to the running task.

 My problem is that only the ORIGINAL created task maintains
 the CCAjaxLongResponsePage properly.  Any new CCAjaxLongResponsePage will
 simply display the current status for a moment or two then will redirect to
 the nextPage component.  If I leave the nextPage component null then it
 will simply redirect to the CCAjaxLongResponsePage and update the status,
 but this isn't the desired result (since it's not updating via ajax, and
 will never reach the nextPage component).

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Multiple CCAjaxLongResponsePages For Single Task

2012-03-23 Thread Ted Archibald
That would work too.  What I did instead was add a setTask method that
takes a task and the task class.  Then I look up if that that task class
exists in the taskInfos, and if so it switches the future task to the task
from taskInfo.  Then I pull the elapsed time from the task and add it to
the current elapsed time.  It works quite nicely.  The only bug i have is
that if one of the CCAjaxLongResponsePage's cancels the task the
other CCAjaxLongResponsePages just think the task is completed instead of
canceled (minor inconvenience).

On Fri, Mar 23, 2012 at 7:38 AM, Kieran Kelleher kelleh...@gmail.comwrote:

 Just OTOH, you could try the following:

 (1) Add a setFuture(...) method to CCAjaxLongResponsePage to set the
 Future directly.

 (2) then before returning the page, get a reference to your running task,
 wrap it in a ERXFutureTask and setFuture(...) instead of setTask(...)

 HTH, Kieran


 On Mar 23, 2012, at 1:56 AM, Ted Archibald wrote:

  Is there any way to use CCAjaxLongResponsePage on a task that's already
 running?
 
  Essentially I want to run a task but only a single iteration of that
 task, and if the task is already running I want to display a
 CCAjaxLongResponsePage for the progress.
 
  So far I have a simple loop that looks at the taskInfos in
 ERXTaskThread.taskInfos() then I create a new CCAjaxLongResponsePage and
 set the task to the running task.
 
  My problem is that only the ORIGINAL created task maintains the
 CCAjaxLongResponsePage properly.  Any new CCAjaxLongResponsePage will
 simply display the current status for a moment or two then will redirect to
 the nextPage component.  If I leave the nextPage component null then it
 will simply redirect to the CCAjaxLongResponsePage and update the status,
 but this isn't the desired result (since it's not updating via ajax, and
 will never reach the nextPage component).
  ___
  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:
 
 https://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
 
  This email sent to kelleh...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Multiple CCAjaxLongResponsePages For Single Task

2012-03-22 Thread Ted Archibald
Is there any way to use CCAjaxLongResponsePage on a task that's already
running?

Essentially I want to run a task but only a single iteration of that task,
and if the task is already running I want to display
a CCAjaxLongResponsePage for the progress.

So far I have a simple loop that looks at the taskInfos in
ERXTaskThread.taskInfos() then I create a new CCAjaxLongResponsePage and
set the task to the running task.

My problem is that only the ORIGINAL created task maintains
the CCAjaxLongResponsePage properly.  Any new CCAjaxLongResponsePage will
simply display the current status for a moment or two then will redirect to
the nextPage component.  If I leave the nextPage component null then it
will simply redirect to the CCAjaxLongResponsePage and update the status,
but this isn't the desired result (since it's not updating via ajax, and
will never reach the nextPage component).
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wonder's Rewrite URLs

2012-03-20 Thread Ted Archibald
You only need two of the three.  Either properties + apache rule or the
Java method + apache rule.

On Mon, Mar 19, 2012 at 1:23 PM, Johnny Miller jlmil...@kahalawai.comwrote:

 Hi Pascal,

 Do you need to do all three?  Or is specifying the pattern enough in the
 properties file enough?  I've always done it my own before and I'm trying
 the wonder way out this time.

 Thank you,

 Johnny Miller
 Kahalawai Media Corp.
 www.kahalawai.com



 On Feb 28, 2012, at 4:00 PM, Pascal Robert wrote:

 In Apache:

  RewriteRule ^/(.*)$ /cgi-bin/WebObjects/YourApp.woa/ra$1 [PT,L]

 In the properties:


  
 er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/YourApp.woa/ra
  er.extensions.ERXApplication.replaceApplicationPath.replace=/

 In Application.java:

  public String _rewriteURL(String url) {
String processedURL = url;
if (url != null  _replaceApplicationPathPattern != null 
 _replaceApplicationPathReplace != null) {
  processedURL =
 processedURL.replaceFirst(_replaceApplicationPathPattern,
 _replaceApplicationPathReplace);
}
return processedURL;
  }

 I have a fresh Wonder install as of Feb something, so how do I do it?


 On Tue, Feb 28, 2012 at 7:10 PM, prob...@macti.ca wrote:

 You can hide the /ra, but you need a ERRest framework that is more recent
 than November, before that Wonder wasn't rewriting the URL correctly.


 I already do that to replace the application path, but this doesn't apply
 to the /ra route, correct?


 On Tue, Feb 28, 2012 at 6:33 PM, John Huss johnth...@gmail.com wrote:

 Yes, set up mod_rewrite is apache and then there are also 2 properties in
 Wonder you have to set.



 On Tuesday, February 28, 2012, Ted Archibald wrote:

 Is there anyway to make ERRest route all the urls without /ra?  Or does
 this confuse WebObjects?


 So instead of having a link like: mywebsite.com/ra/Entitiy/1.json it
 would be mywebsite.com/Entitiy/1.json


 I've been looking around and I couldn't find anything obvious.



 --

 Virtualization  Cloud Management Using Capacity Planning

 Cloud computing makes use of virtualization - but cloud computing

 also focuses on allowing computing to be delivered as a service.

 http://www.accelacomm.com/jaw/sfnl/114/51521223/

 ___

 Wonder-disc mailing list

 wonder-d...@lists.sourceforge.net

 https://lists.sourceforge.net/lists/listinfo/wonder-disc





 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Wonder-disc mailing list
 wonder-d...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wonder-disc



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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Fetch and sort based on a given list

2012-03-11 Thread Ted Archibald
Is there an easy way to fetch and sort an EO given an array of keys.

The qualifier is obvious, but I don't see anything obvious on how to order
the fetch based on the given list.

NSArrayString keys =
ATLArrayUtilities.toNSArray((String)context().request().formValueForKey(
keys), ,);

NSArrayEO eos = Eo.fetchEos(ec, Eo.KEY.in(keys), null);
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Fetch and sort based on a given list

2012-03-11 Thread Ted Archibald
The best I have so far is to loop through the array, but it's not the most
elegant solution in the world...

@SuppressWarnings({ rawtypes, unchecked })

public static T extends EOEnterpriseObject NSArrayT
sortedArraySortedWithKeys(NSArray? extends EOEnterpriseObject array,
ERXKeyString key, NSArrayString keys) {



  NSArray sortedArray = new NSArray();

  for (int i = 0; i  keys.count(); i++) {

sortedArray =
sortedArray.arrayByAddingObjectsFromArray(ATLArrayUtilities.filteredArrayWithQualifierEvaluation(array,
key.eq(keys.objectAtIndex(i;

  }



  return sortedArray;

}

On Sun, Mar 11, 2012 at 5:26 PM, Ted Archibald ted.archib...@gmail.comwrote:

 Is there an easy way to fetch and sort an EO given an array of keys.

 The qualifier is obvious, but I don't see anything obvious on how to order
 the fetch based on the given list.

 NSArrayString keys =
 ATLArrayUtilities.toNSArray((String)context().request().formValueForKey(
 keys), ,);

 NSArrayEO eos = Eo.fetchEos(ec, Eo.KEY.in(keys), null);

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Filtering a non-EO in a display group

2012-03-05 Thread Ted Archibald
Wouldn't you just reset the display group with something like:

_array = ERXArrayUtilities.filteredArrayWithQualifierEvaluation(_yourArray,
_yourQualifier);
dg().setDataSource(ERXEOControlUtilities.dataSourceForArray(_array));

On Mon, Mar 5, 2012 at 1:31 PM, Pascal Robert prob...@macti.ca wrote:

 I have a case where I have to use a non-EO (aka a plain Java object) in a
 display group because the non-EO holds the results of a calculation and
 other stuff. Everything works fine, and that non-EO also have a reference
 to a EO. Everything works fine, except for one thing. I need to filter the
 displayed objects by modifying the qualifier based on a user action, but
 the qualifier don't remove anything.

 So, when the user action is called, I do this:

if (filterDateForTransactions == null) {
  filterDateForTransactions = new NSTimestamp();
}

  
 dg().setQualifier(FakeManifestItem.MAIN_TRANSACTION.dot(Transaction.DATE_END).before(filterDateForTransactions));
dg().updateDisplayedObjects();

 FakeManifestItem is the non-EO, and I added a ERXKey (MAIN_TRANSACTION) to
 the Transaction EO class. But when this is called, the array stays the
 same. Anyway to get this to work on non-EO?


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-02-17 Thread Ted Archibald
Now when I call a direct action I keep getting a no such method exceptions.
 It appears that my DirectAction class is not being used instead of the
default WODirectionAction.

For instance, if I go to App.woa/wa/test I'll get:
 java.lang.NoSuchMethodException:
com.webobjects.appserver.WODirectAction.testAction()

even if I have in my DirectAction class:
public WOActionResults testAction(){ return null; }
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-02-15 Thread Ted Archibald
Just updated Wonder, it didn't fix anything.
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-02-15 Thread Ted Archibald


 The root issue is that WO is trying to be clever and find a class based on
 the simple name.  With the same name in multiple packages, this gets a bit
 dodgy.  That it worked before is not the real issue.


Fair enough.  I simply wonder why in 7 years of WO development I've never
had this problem then suddenly BOOM I can't work on shit.


 Make you code explicitly declare what it uses in a FQ manner and be done
 with it.


What does in a FQ manner mean, pardon my ignorance.


 There are more important things to do than play games to get clever code
 to work.


Tell me about it, I lost a solid day to this shit, lmao.
 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Wrong Session class

2012-02-14 Thread Ted Archibald
I had some old jars in /Library/Java/Extensions so I removed them to no
avail.

On Mon, Feb 13, 2012 at 9:55 PM, Chuck Hill ch...@global-village.netwrote:

 Read carefully.  The first is for Session.java, the second is for
 Main.java.  Either make the default action a direction action and in
 defaultAction() return the fully qualified name of the Main component, or,
 in Application override pageForNameWithContext() (or whatever it is is
 called) and if the parameter is null, call it again with the fully
 qualified name of the Main component.

 And as Mike said,  your classpath is messed up.  Wonder should prevent
 this. Do you have jars in /Library/Java/Extensions?


 Chuck


 On 2012-02-13, at 7:49 PM, Ted Archibald wrote:

  No, this is the stack trace I get:
 
  com.webobjects.appserver._private.WOComponentRequestHandler: Exception
 occurred while handling request:
  java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
  [2012-2-13 18:33:34 CST] WorkerThread2
 java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
at
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
at
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
at
 er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2276)
at
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:637)
 
 
  If I override _sessionClass() this is the stack trace I get:
 
  Feb 13 21:45:54 AccountsReceivable_v1.0[59088] WARN  NSLog  -
 com.webobjects.appserver._private.WOComponentRequestHandler: Exception
 occurred while handling request:
  java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
  [2012-2-13 21:45:54 CST] WorkerThread0
 java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
at
 com.webobjects.appserver._private.WOComponentDefinition._componentClass(WOComponentDefinition.java:496)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentClass(WOComponentDefinition.java:504)
at
 com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:510)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:642)
at
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:284)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:637)
 
 
  On Mon, Feb 13, 2012 at 8:04 PM, Chuck Hill ch...@global-village.net
 wrote:
  Is the Session class name in the stack trace correct?  If it is correct,
 your app .jar is missing something

Re: Wrong Session class

2012-02-14 Thread Ted Archibald
I tried that as well and I got the same original error.

On Tue, Feb 14, 2012 at 8:44 AM, John Huss johnth...@gmail.com wrote:

 You could also just tell WO explicitly where your classes are.  You can do
 this in your Application's main method:

 _NSUtilities.setClassForName(Main.class, Main.class.getSimpleName());
 _NSUtilities.setClassForName(Session.class, Session.class.getSimpleName());
 _NSUtilities.setClassForName(DirectAction.class,
 DirectAction.class.getSimpleName());

 John

 On Mon, Feb 13, 2012 at 9:55 PM, Chuck Hill ch...@global-village.netwrote:

 Read carefully.  The first is for Session.java, the second is for
 Main.java.  Either make the default action a direction action and in
 defaultAction() return the fully qualified name of the Main component, or,
 in Application override pageForNameWithContext() (or whatever it is is
 called) and if the parameter is null, call it again with the fully
 qualified name of the Main component.

 And as Mike said,  your classpath is messed up.  Wonder should prevent
 this. Do you have jars in /Library/Java/Extensions?


 Chuck


 On 2012-02-13, at 7:49 PM, Ted Archibald wrote:

  No, this is the stack trace I get:
 
  com.webobjects.appserver._private.WOComponentRequestHandler:
 Exception occurred while handling request:
  java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
  [2012-2-13 18:33:34 CST] WorkerThread2
 java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
at
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
at
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
at
 er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2276)
at
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:637)
 
 
  If I override _sessionClass() this is the stack trace I get:
 
  Feb 13 21:45:54 AccountsReceivable_v1.0[59088] WARN  NSLog  -
 com.webobjects.appserver._private.WOComponentRequestHandler: Exception
 occurred while handling request:
  java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
  [2012-2-13 21:45:54 CST] WorkerThread0
 java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
at
 com.webobjects.appserver._private.WOComponentDefinition._componentClass(WOComponentDefinition.java:496)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentClass(WOComponentDefinition.java:504)
at
 com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:510)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:642)
at
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:284)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986

Re: Wrong Session class

2012-02-14 Thread Ted Archibald
I also tried removing any superfluous frameworks in the classpath, also to
no avail.

On Tue, Feb 14, 2012 at 11:21 AM, Ted Archibald ted.archib...@gmail.comwrote:

 I tried that as well and I got the same original error.


 On Tue, Feb 14, 2012 at 8:44 AM, John Huss johnth...@gmail.com wrote:

 You could also just tell WO explicitly where your classes are.  You can
 do this in your Application's main method:

 _NSUtilities.setClassForName(Main.class, Main.class.getSimpleName());
 _NSUtilities.setClassForName(Session.class,
 Session.class.getSimpleName());
 _NSUtilities.setClassForName(DirectAction.class,
 DirectAction.class.getSimpleName());

 John

 On Mon, Feb 13, 2012 at 9:55 PM, Chuck Hill ch...@global-village.netwrote:

 Read carefully.  The first is for Session.java, the second is for
 Main.java.  Either make the default action a direction action and in
 defaultAction() return the fully qualified name of the Main component, or,
 in Application override pageForNameWithContext() (or whatever it is is
 called) and if the parameter is null, call it again with the fully
 qualified name of the Main component.

 And as Mike said,  your classpath is messed up.  Wonder should prevent
 this. Do you have jars in /Library/Java/Extensions?


 Chuck


 On 2012-02-13, at 7:49 PM, Ted Archibald wrote:

  No, this is the stack trace I get:
 
  com.webobjects.appserver._private.WOComponentRequestHandler:
 Exception occurred while handling request:
  java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
  [2012-2-13 18:33:34 CST] WorkerThread2
 java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
at
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
at
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
at
 er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2276)
at
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:637)
 
 
  If I override _sessionClass() this is the stack trace I get:
 
  Feb 13 21:45:54 AccountsReceivable_v1.0[59088] WARN  NSLog  -
 com.webobjects.appserver._private.WOComponentRequestHandler: Exception
 occurred while handling request:
  java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
  [2012-2-13 21:45:54 CST] WorkerThread0
 java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
at
 com.webobjects.appserver._private.WOComponentDefinition._componentClass(WOComponentDefinition.java:496)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentClass(WOComponentDefinition.java:504)
at
 com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:510)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:642)
at
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:284)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687

Re: Wrong Session class

2012-02-14 Thread Ted Archibald
So now I'm getting more perplexed.

I just created a fresh clean wonder app with no references to any extra
project or library and I get the same error.  But I have other projects
that I can run just fine.

On Tue, Feb 14, 2012 at 11:28 AM, Ted Archibald ted.archib...@gmail.comwrote:

 I also tried removing any superfluous frameworks in the classpath, also to
 no avail.


 On Tue, Feb 14, 2012 at 11:21 AM, Ted Archibald 
 ted.archib...@gmail.comwrote:

 I tried that as well and I got the same original error.


 On Tue, Feb 14, 2012 at 8:44 AM, John Huss johnth...@gmail.com wrote:

 You could also just tell WO explicitly where your classes are.  You can
 do this in your Application's main method:

 _NSUtilities.setClassForName(Main.class, Main.class.getSimpleName());
 _NSUtilities.setClassForName(Session.class,
 Session.class.getSimpleName());
 _NSUtilities.setClassForName(DirectAction.class,
 DirectAction.class.getSimpleName());

 John

 On Mon, Feb 13, 2012 at 9:55 PM, Chuck Hill ch...@global-village.netwrote:

 Read carefully.  The first is for Session.java, the second is for
 Main.java.  Either make the default action a direction action and in
 defaultAction() return the fully qualified name of the Main component, or,
 in Application override pageForNameWithContext() (or whatever it is is
 called) and if the parameter is null, call it again with the fully
 qualified name of the Main component.

 And as Mike said,  your classpath is messed up.  Wonder should prevent
 this. Do you have jars in /Library/Java/Extensions?


 Chuck


 On 2012-02-13, at 7:49 PM, Ted Archibald wrote:

  No, this is the stack trace I get:
 
  com.webobjects.appserver._private.WOComponentRequestHandler:
 Exception occurred while handling request:
  java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
  [2012-2-13 18:33:34 CST] WorkerThread2
 java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
at
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
at
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
at
 er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2276)
at
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:637)
 
 
  If I override _sessionClass() this is the stack trace I get:
 
  Feb 13 21:45:54 AccountsReceivable_v1.0[59088] WARN  NSLog  -
 com.webobjects.appserver._private.WOComponentRequestHandler: Exception
 occurred while handling request:
  java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
  [2012-2-13 21:45:54 CST] WorkerThread0
 java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
at
 com.webobjects.appserver._private.WOComponentDefinition._componentClass(WOComponentDefinition.java:496)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentClass(WOComponentDefinition.java:504)
at
 com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:510)
at
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:642)
at
 com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:284)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest

Re: Wrong Session class

2012-02-14 Thread Ted Archibald
Every jar from /Library/Java/Extensions and /Library/WebObjects/Extensions
is now removed, still no fix yet.  I fired up an older version of
eclipse/wolips and that didn't make a difference either.

On Tue, Feb 14, 2012 at 12:30 PM, Pascal Robert prob...@macti.ca wrote:

 Anything strange in /Library/WebObjects/Extensions ?

  So now I'm getting more perplexed.
 
  I just created a fresh clean wonder app with no references to any extra
 project or library and I get the same error.  But I have other projects
 that I can run just fine.
 
  On Tue, Feb 14, 2012 at 11:28 AM, Ted Archibald ted.archib...@gmail.com
 wrote:
  I also tried removing any superfluous frameworks in the classpath, also
 to no avail.
 
 
  On Tue, Feb 14, 2012 at 11:21 AM, Ted Archibald ted.archib...@gmail.com
 wrote:
  I tried that as well and I got the same original error.
 
 
  On Tue, Feb 14, 2012 at 8:44 AM, John Huss johnth...@gmail.com wrote:
  You could also just tell WO explicitly where your classes are.  You can
 do this in your Application's main method:
 
  _NSUtilities.setClassForName(Main.class, Main.class.getSimpleName());
  _NSUtilities.setClassForName(Session.class,
 Session.class.getSimpleName());
  _NSUtilities.setClassForName(DirectAction.class,
 DirectAction.class.getSimpleName());
 
  John
 
  On Mon, Feb 13, 2012 at 9:55 PM, Chuck Hill ch...@global-village.net
 wrote:
  Read carefully.  The first is for Session.java, the second is for
 Main.java.  Either make the default action a direction action and in
 defaultAction() return the fully qualified name of the Main component, or,
 in Application override pageForNameWithContext() (or whatever it is is
 called) and if the parameter is null, call it again with the fully
 qualified name of the Main component.
 
  And as Mike said,  your classpath is messed up.  Wonder should prevent
 this. Do you have jars in /Library/Java/Extensions?
 
 
  Chuck
 
 
  On 2012-02-13, at 7:49 PM, Ted Archibald wrote:
 
   No, this is the stack trace I get:
  
   com.webobjects.appserver._private.WOComponentRequestHandler:
 Exception occurred while handling request:
   java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
   [2012-2-13 18:33:34 CST] WorkerThread2
 java.lang.IllegalArgumentException:
 com.atl.AccountsReceivable_v1.Application Class 'Session' exists
 (interface org.jabsorb.client.Session) but is not a subclass of WOSession.
 at
 com.webobjects.appserver.WOApplication._sessionClass(WOApplication.java:1934)
 at
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
 at
 er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2276)
 at
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
 at
 com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
 at
 com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
 at
 com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
 at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2021)
 at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1986)
 at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:637)
  
  
   If I override _sessionClass() this is the stack trace I get:
  
   Feb 13 21:45:54 AccountsReceivable_v1.0[59088] WARN  NSLog  -
 com.webobjects.appserver._private.WOComponentRequestHandler: Exception
 occurred while handling request:
   java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
   [2012-2-13 21:45:54 CST] WorkerThread0
 java.lang.IllegalArgumentException:
 com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
 exists but is not a subclass of WOComponent.
 at
 com.webobjects.appserver._private.WOComponentDefinition._componentClass(WOComponentDefinition.java:496)
 at
 com.webobjects.appserver._private.WOComponentDefinition.componentClass(WOComponentDefinition.java:504)
 at
 com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(WOComponentDefinition.java:510)
 at
 com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(WOComponentDefinition.java:642)
 at
 com.webobjects.appserver.WOApplication.pageWithName

Re: Wrong Session class

2012-02-13 Thread Ted Archibald
I'm currently having this same issue on a project I haven't touched in
months.  I haven't changed wonder, nothing changed in the class path.
 There's no obvious reason what's going on, and overriding _sessionClass
doesn't fix the problem, cleaning the project didn't help, restarting the
computer didn't help, deleting the run configurations didn't help.

What Profiler settings did you change?

On Tue, Jun 7, 2011 at 7:45 AM, Jean Pierre Malrieu jp.malr...@free.frwrote:

 Changing compiler settings back and forth seemed to clean it up. Thanks.

 JPM

 Le 7 juin 2011 à 14:39, Mike Schrag a écrit :

 your classpath is messed up ...

 On Jun 7, 2011, at 8:37 AM, Jean Pierre Malrieu wrote:


 Le 7 juin 2011 à 14:23, Mike Schrag a écrit :

 not sure what changed in your app, but it's basically just guessing wrong
 on the session class .. you can override _session() in your WOApplication
 subclass and return the exact class you expect it to be.


 if I put the following method in my Application

  @Override
 protected Class _sessionClass() {
  return com.educlab.iep.Session.class;
  }

 I receive the following exception:

 *Application: SaisieIEP
 Error: java.lang.IllegalStateException exception
 Reason:
 java.lang.IllegalStateException: An Exception occurred while generating
 the Exception page 'WOExceptionPage'. This is most likely due to an error
 in 'WOExceptionPage' itself or WebObjects encountered an uncaught exception
 while creating a Session object.


 Below are the logs of the original Exception which occured in
 com.educlab.iep.Application, then the later Exception in WOExceptionPage.

 Original Exception:
 java.lang.ClassNotFoundException: com.educlab.iep.Session
 at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at com.educlab.iep.Application._sessionClass(Application.java:122)
 at
 com.webobjects.appserver.WOApplication.createSessionForRequest(WOApplication.java:1973)
 at
 er.extensions.appserver.ERXApplication.createSessionForRequest(ERXApplication.java:2239)
 at
 com.webobjects.appserver.WOApplication._initializeSessionInContext(WOApplication.java:2110)
 at com.webobjects.appserver.WOContext.session(WOContext.java:369)
 at
 com.webobjects.appserver.WOContext.componentActionURL(WOContext.java:1208)
 at
 com.webobjects.appserver.WOContext._componentActionURL(WOContext.java:1255)
 at
 er.extensions.components._private.ERXWOForm.appendAttributesToResponse(ERXWOForm.java:421)
 at
 com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToResponse(WOHTMLDynamicElement.java:493)
 at
 er.extensions.components._private.ERXWOForm.appendToResponse(ERXWOForm.java:449)
 at
 com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126)
 at
 com.webobjects.appserver._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136)
 at
 com.webobjects.appserver.WOComponent.appendToResponse(WOComponent.java:1122)
 at
 com.webobjects.appserver.WOComponent._appendPageToResponse(WOComponent.java:1574)
 at
 com.webobjects.appserver.WOComponent._generateResponseInContext(WOComponent.java:1543)
 at
 com.webobjects.appserver.WOComponent.generateResponse(WOComponent.java:1538)
 at
 com.webobjects.appserver.WODirectAction.defaultAction(WODirectAction.java:119)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
 at
 com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:259)
 at
 com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158)
 at
 er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest(ERXDirectActionRequestHandler.java:124)
 at
 com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
 at
 er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1984)
 at
 er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1949)
 at
 com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
 at
 com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
 at java.lang.Thread.run(Thread.java:680)


 WOExceptionPage Exception:
 java.lang.NoClassDefFoundError: com/educlab/iep/Session
 at com.educlab.iep.Application._sessionClass(Application.java:122)
 at
 

Re: Wrong Session class

2012-02-13 Thread Ted Archibald
No, this is the stack trace I get:

com.webobjects.appserver._private.WOComponentRequestHandler: Exception
occurred while handling request:

java.lang.IllegalArgumentException:
com.atl.AccountsReceivable_v1.Application Class 'Session' exists
(interface org.jabsorb.client.Session) but is not a subclass of WOSession.

[2012-2-13 18:33:34 CST] WorkerThread2 java.lang.IllegalArgumentException:
com.atl.AccountsReceivable_v1.Application Class 'Session' exists
(interface org.jabsorb.client.Session) but is not a subclass of WOSession.

at com.webobjects.appserver.WOApplication._sessionClass(
WOApplication.java:1934)

at com.webobjects.appserver.WOApplication.createSessionForRequest(
WOApplication.java:1973)

at er.extensions.appserver.ERXApplication.createSessionForRequest(
ERXApplication.java:2276)

at com.webobjects.appserver.WOApplication._initializeSessionInContext(
WOApplication.java:2110)

at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(
WOComponentRequestHandler.java:319)

at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(
WOComponentRequestHandler.java:369)

at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(
WOComponentRequestHandler.java:442)

at com.webobjects.appserver.WOApplication.dispatchRequest(
WOApplication.java:1687)

at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(
ERXApplication.java:2021)

at er.extensions.appserver.ERXApplication.dispatchRequest(
ERXApplication.java:1986)

at com.webobjects.appserver._private.WOWorkerThread.runOnce(
WOWorkerThread.java:144)

at com.webobjects.appserver._private.WOWorkerThread.run(
WOWorkerThread.java:226)

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



If I override _sessionClass() this is the stack trace I get:

Feb 13 21:45:54 AccountsReceivable_v1.0[59088] WARN  NSLog  -
com.webobjects.appserver._private.WOComponentRequestHandler: Exception
occurred while handling request:

java.lang.IllegalArgumentException:
com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
exists but is not a subclass of WOComponent.

[2012-2-13 21:45:54 CST] WorkerThread0 java.lang.IllegalArgumentException:
com.webobjects.appserver._private.WOComponentDefinition Class 'Main'
exists but is not a subclass of WOComponent.

at com.webobjects.appserver._private.WOComponentDefinition._componentClass(
WOComponentDefinition.java:496)

at com.webobjects.appserver._private.WOComponentDefinition.componentClass(
WOComponentDefinition.java:504)

at
com.webobjects.appserver._private.WOComponentDefinition._componentInstanceInContext(
WOComponentDefinition.java:510)

at
com.webobjects.appserver._private.WOComponentDefinition.componentInstanceInContext(
WOComponentDefinition.java:642)

at com.webobjects.appserver.WOApplication.pageWithName(
WOApplication.java:2332)

at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(
WOComponentRequestHandler.java:284)

at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(
WOComponentRequestHandler.java:332)

at
com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(
WOComponentRequestHandler.java:369)

at
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(
WOComponentRequestHandler.java:442)

at com.webobjects.appserver.WOApplication.dispatchRequest(
WOApplication.java:1687)

at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(
ERXApplication.java:2021)

at er.extensions.appserver.ERXApplication.dispatchRequest(
ERXApplication.java:1986)

at com.webobjects.appserver._private.WOWorkerThread.runOnce(
WOWorkerThread.java:144)

at com.webobjects.appserver._private.WOWorkerThread.run(
WOWorkerThread.java:226)

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



On Mon, Feb 13, 2012 at 8:04 PM, Chuck Hill ch...@global-village.netwrote:

 Is the Session class name in the stack trace correct?  If it is correct,
 your app .jar is missing something.  If it is not correct, the
 _sessionClass has the wrong signature or is in the wrong class.


 Chuck


 On 2012-02-13, at 4:36 PM, Ted Archibald wrote:

  I'm currently having this same issue on a project I haven't touched in
 months.  I haven't changed wonder, nothing changed in the class path.
  There's no obvious reason what's going on, and overriding _sessionClass
 doesn't fix the problem, cleaning the project didn't help, restarting the
 computer didn't help, deleting the run configurations didn't help.
 
  What Profiler settings did you change?
 
  On Tue, Jun 7, 2011 at 7:45 AM, Jean Pierre Malrieu jp.malr...@free.fr
 wrote:
  Changing compiler settings back and forth seemed to clean it up. Thanks.
 
  JPM
 
  Le 7 juin 2011 à 14:39, Mike Schrag a écrit :
 
  your classpath is messed up ...
 
  On Jun 7, 2011, at 8:37 AM, Jean Pierre Malrieu wrote:
 
 
  Le 7 juin 2011 à 14:23, Mike Schrag a écrit :
 
  not sure what changed in your app, but it's

Re: Eclipse/WOLips Help for Old Noobie

2012-02-08 Thread Ted Archibald
https://github.com/rebeld/Golipse

On Wed, Feb 8, 2012 at 12:05 PM, Jerry W. Walker jerrywwal...@gmail.comwrote:

 Hi all,

 After my long absence, I'm reduced to the level of a rank noobie!

 I've been working on a project for a few years in the backwaters of Xcode
 for reasons that are irrelevant here.

 I made an attempt to convert the project to Eclipse/WOLips about 7 months
 ago. I ran all the code through Pascal Robert's XcodeMigration tool and was
 just starting the builds in Eclipse, but the project was put on hold before
 that attempt was completed. With the project now restarting, we are
 definitely going through the Xcode-Eclipse conversion.

 Since I've been off the lists for so long, I'm no longer familiar with the
 most up-to-date information regarding the Xcode-Eclipse conversion. Can
 anyone point me to the most up to date messages in the lists, or web pages
 that would help me:

   * install the latest useful versions of Eclipse/WOLips

   * install the latest useful version of WO

   * install the latest version of Project Wonder that's compatible with
 the foregoing

   * find any existing tips and pointers to get all this working from an
 Xcode migration

 Any suggestions for an Eclipse beginner's guide/textbook would also be
 helpful.

 I have the following configuration on my MacBook Pro development machine:

   Mac OS X Lion
   WO v5.3.3

 I was ready to download and install Eclipse 3.7.1, but wasn't sure which
 of the versions of Eclipse at Eclipse Downloads I should use and whether
 the latest version would be compatible, at this point, with WOLips and
 Project Wonder.

 Thanks,
 Jerry


 __ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial
 Strength Internet Enabled Systems

 jerrywwal...@gmail.com
 203 278-4085office


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Path for wosid cookie

2012-02-08 Thread Ted Archibald
Such as:

er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/App.woa
-er.extensions.ERXApplication.replaceApplicationPath.replace=/App

On Wed, Feb 8, 2012 at 6:35 PM, Jon Nolan li...@lochgarman.com wrote:

 Is there a Wonder-ish way of having the session id cookie path set with
 / rather than /cgi-bin/WebObjects/App.woa?

 If not, does anyone see a danger in making it so myself?  There ABSOLUTELY
 will not be any other WebObjects apps deployed on the host.

 Thanks,
 Jon
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ted.archibald%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Path for wosid cookie

2012-02-08 Thread Ted Archibald
and .htaccess would be:

RewriteRule ^App/(.*)$ /cgi-bin/WebObjects/App.woa/$1 [NC,PT,L]
RewriteRule ^App$ /cgi-bin/WebObjects/App.woa [NC,PT,L]

On Wed, Feb 8, 2012 at 6:48 PM, Ted Archibald ted.archib...@gmail.comwrote:

 Such as:

 er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/App.woa
 -er.extensions.ERXApplication.replaceApplicationPath.replace=/App


 On Wed, Feb 8, 2012 at 6:35 PM, Jon Nolan li...@lochgarman.com wrote:

 Is there a Wonder-ish way of having the session id cookie path set with
 / rather than /cgi-bin/WebObjects/App.woa?

 If not, does anyone see a danger in making it so myself?  There
 ABSOLUTELY will not be any other WebObjects apps deployed on the host.

 Thanks,
 Jon
 __**_
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  
 (Webobjects-dev@lists.apple.**comWebobjects-dev@lists.apple.com
 )
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/**mailman/options/webobjects-**
 dev/ted.archibald%40gmail.comhttps://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Eclipse/WOLips Help for Old Noobie

2012-02-08 Thread Ted Archibald
Golipse will download the proper version of Eclipse and WOLips and set
everything up properly for you.

On Wed, Feb 8, 2012 at 6:24 PM, Jerry W. Walker jerrywwal...@gmail.comwrote:

 Hi, Ted,

 First, thanks for your response. All help is appreciated.

 I'm sure you had a reason for adding the URL that you sent to what Pascal
 had sent. However, I'm mystified as to what it is supposed to do for me.
 Please remember that I'm a rank Eclipse noobie here, so the URL may be
 giving me some advantage that I fail to recognize.

 Is there a reason I should download the Golipse project (other than for
 code-as-documentation)? When I downloaded the app and it worked, I figured
 that would be sufficient. Am I missing something?

 Regards,
 Jerry


 On Feb 8, 2012, at 2:00 PM, Ted Archibald wrote:

 https://github.com/rebeld/Golipse

 On Wed, Feb 8, 2012 at 12:05 PM, Jerry W. Walker 
 jerrywwal...@gmail.comwrote:

 Hi all,

 After my long absence, I'm reduced to the level of a rank noobie!

 I've been working on a project for a few years in the backwaters of Xcode
 for reasons that are irrelevant here.

 I made an attempt to convert the project to Eclipse/WOLips about 7 months
 ago. I ran all the code through Pascal Robert's XcodeMigration tool and was
 just starting the builds in Eclipse, but the project was put on hold before
 that attempt was completed. With the project now restarting, we are
 definitely going through the Xcode-Eclipse conversion.

 Since I've been off the lists for so long, I'm no longer familiar with
 the most up-to-date information regarding the Xcode-Eclipse conversion.
 Can anyone point me to the most up to date messages in the lists, or web
 pages that would help me:

   * install the latest useful versions of Eclipse/WOLips

   * install the latest useful version of WO

   * install the latest version of Project Wonder that's compatible with
 the foregoing

   * find any existing tips and pointers to get all this working from an
 Xcode migration

 Any suggestions for an Eclipse beginner's guide/textbook would also be
 helpful.

 I have the following configuration on my MacBook Pro development machine:

   Mac OS X Lion
   WO v5.3.3

 I was ready to download and install Eclipse 3.7.1, but wasn't sure which
 of the versions of Eclipse at Eclipse Downloads I should use and whether
 the latest version would be compatible, at this point, with WOLips and
 Project Wonder.

 Thanks,
 Jerry


  __ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial
 Strength Internet Enabled Systems

 jerrywwal...@gmail.com
 203 278-4085office


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: AjaxObserveField and the Enter key

2012-02-07 Thread Ted Archibald
I have some javascript that I use to make a table of inputs act like an
excel table (i.e. arrow keys, and enter acts like tab or down arrow).  I'm
pretty sure I've used with AjaxObserveField.

Here's the main part that intercepts the key event based on a class name in
the table:

function onKeyEvent(e) {


 var element = e.element();

var keyCode = e.keyCode;


 if (!isException(element)) {

switch (keyCode) {

case Event.KEY_DOWN:

Event.stop(e);

cellDown(element);

break;

case Event.KEY_UP:

Event.stop(e);

cellUp(element);

break;

}

}

switch (keyCode) {

case Event.KEY_TAB:

Event.stop(e);

if (e.shiftKey) {

cellLeft(element);

} else {

cellRight(element);

}

break;

case Event.KEY_RETURN:

Event.stop(e);

if (e.shiftKey) {

cellUp(element);

} else {

cellDown(element);

}

break;

case Event.KEY_LEFT:

Event.stop(e);

cellLeft(element);

break;

case Event.KEY_RIGHT:

Event.stop(e);

cellRight(element);

break;


 }

}


document.observe(dom:loaded, function() {

  $$('.Navigatable').each(function(the_var) {

the_var.observe('keydown', onKeyEvent);

  });

});

On Tue, Feb 7, 2012 at 11:07 AM, Pascal Robert prob...@macti.ca wrote:

 Hi guys,

 I have a form with AjaxObserveField that are wrapping some check boxes and
 WOTextField. I was using the Tab key in the input field to call the action
 specified in the AjaxObserveField and it was working fine. But we did
 notice that it doesn't work when using the Enter (carriage return) in
 Safari on the first time. If I use the Tab key and I use the Enter key
 later, now it works.

 Anyone knows a workaround?


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

 https://lists.apple.com/mailman/options/webobjects-dev/ted.archibald%40gmail.com

 This email sent to ted.archib...@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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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


Re: Has any one implemented ERXRestRequestNode for Cocoa?

2011-12-31 Thread Ted Archibald
This might help:

http://terminalapp.net/restnotes-code-sample/

On Fri, Dec 30, 2011 at 11:47 PM, Daniel Beatty danielbea...@mac.comwrote:

 Greetings all,
 I love a lot of the beauty of ERXRestRequestNode in the fact that one can
 marshal in and out EOs with ease.   Is there an equivalent for Cocoa to
 facilitate a Cocoa - WO/REST app?   It would be nice to have a marshaling
 scheme that has the two ORMs  operating on the same page as it were.

 Thank you,



 Dan Beatty, ABD
 Ph.D. Student
 Texas Tech University
 dan.bea...@mac.com dan.bea...@ttu.edu
 http://web.me.com/danielbeatty/My_Home_Page/Welcome.html
 http://web.me.com/danielbeatty/My_Home_Page/Welcome.html(806)438-6620











  ___
 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/ted.archibald%40gmail.com

 This email sent to ted.archib...@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: Problem loading Ajax frameworks

2011-11-29 Thread Ted Archibald
I was having trouble a while back on a particular project, so I just
changed the line in the build.xml and it did the trick:

woapplication name=${build.app.name} frameworksBaseURL=/WebObjects/${
build.app.name}.woa/Frameworks destDir=${dest.dir}
customInfoPListContent=${customInfoPListContent}
principalClass=${principalClass} webXML=${webXML}
webXML_CustomContent=${webXML_CustomContent}
servletAdaptor=er.extensions.jspservlet.ERXServletAdaptor

Change to:

woapplication name=${build.app.name}
frameworksBaseURL=/WebObjects/Frameworks destDir=${dest.dir}
customInfoPListContent=${customInfoPListContent}
principalClass=${principalClass} webXML=${webXML}
webXML_CustomContent=${webXML_CustomContent}
servletAdaptor=er.extensions.jspservlet.ERXServletAdaptor

On Tue, Nov 29, 2011 at 9:37 AM, Kieran Kelleher kelleh...@gmail.comwrote:

 (1) log out the value of
System.getProperty(WOFrameworksBaseURL)

 and tell us what that is.

 (2) Can you paste exactly what you are using in your WOComponent html/wod
 here so we can see how you are trying to generate those URLs?

 On Nov 28, 2011, at 9:40 PM, Jeff Schmitz wrote:

  As I never did resolve this one, I thought I'd resurrect this thread..
 
  The long and the short of it is,
  How I can get my App to generate Wonder Framework javascript (and other
 static resource) references that point here:
 
  /WebObjects/Frameworks/... (e.g.  script
 src=/WebObjects/Frameworks/Ajax.framework/WebServerResources/prototype.js)
 
 
  instead of here:
 
  /WebObjects/myApp.woa/Frameworks... (e.g. script
 src=/WebObjects/netBrackets.woa/Frameworks/Ajax.framework/WebServerResources/prototype.js)
 
 
  So that the references match where the Wonder framework resources are
 installed when following these instructions:
 
 
 http://wiki.objectstyle.org/confluence/display/WO/Building+and+Installing+a+Framework+with+Ant
 
 
  I tried Chucks suggestion...
You probably have the wrong setting in build.properties, try this:
 
 frameworksBaseURL=/WebObjects/Frameworks
 
  to no avail as the generated references are still looking under the
 project specific directory.
 
  any other ideas?
  Jeff
 
  On Nov 21, 2011, at 10:40 PM, Stavros Panidis wrote:
 
  Dear Jeremy,
 
  Many thanks, this problem solved.
 
  Actually in this server static pages are in
 /Library/Server/Web/Data/Sites/Mysite
 
  so I copied WebServerResources in WebObjects inside Mysite folder. Now
 it works.
 
  Best regards
 
  Stavros
 
  On 21 Νοε 2011, at 8:28 μ.μ., Jérémy DE ROYER [INGENCYS] wrote:
 
  Hello,
 
  Did you copy the folders WebServerResources of yours app/frameworks
 in the folder WebObjects of your WebServer (located in
 /Library/WebServer/Documents on Mac OS X Server) ?
 
  Jérémy
 
  Le 21 nov. 2011 à 19:24, Stavros Panidis a écrit :
 
  Hi,
 
  I have the following error in a deployed application (Lion server)
 
  GET
 http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/prototype.js
   404 (Not Found)
  GET
 http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/wonder.js
  404 (Not Found)
  GET
 http://www.mysite.com/WebObjects/myapp.woa/Frameworks/Ajax.framework/WebServerResources/effects.js
 404 (Not Found)
 
  ReferenceError Can't find variable ASB
  ReferenceError Can't find variable ASB
  ReferenceError Can't find variable AUC
 
  The application works fine in other aspects.
 
  Also at the same deployment machine css files are not loaded  in JAVA
 MONITOR when run as instance.
 
  Has to do with permissions? Any other help?
 
 
  Many thanks in advance
 
 
  Stavros
 
 
  ___
  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/jeremy.deroyer%40ingencys.net
 
  This email sent to jeremy.dero...@ingencys.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/jeffandmonica%40mac.com
 
  This email sent to jeffandmon...@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/kelleherk%40gmail.com
 
  This email sent to kelleh...@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:

 

Re: Framework Not Building In Hudson/Jenkins

2011-10-17 Thread Ted Archibald
Got it working now, thanks for the help.  After I placed the jars in the
Libraries directory proper, everything built fine.
 ___
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


Framework Not Building In Hudson/Jenkins

2011-10-16 Thread Ted Archibald
I have a simple framework that encapsulates some third party jars
(httpclient).  My framework builds fine on my local machine but fails on my
build server.  It can't find the third party jars I'm guessing.

The jars are in in Libraries/httpclient/... and I confirmed the jars exist
in the hudson workspace.

My class path is:

classpathentry kind=lib path=Libraries/httpclient/commons-codec-1.4.jar
/

classpathentry kind=lib path=
Libraries/httpclient/commons-logging-1.1.1.jar/

classpathentry kind=lib path=Libraries/httpclient/httpclient-4.1.1.jar
/

classpathentry kind=lib path=
Libraries/httpclient/httpclient-cache-4.1.1.jar/

classpathentry kind=lib path=Libraries/httpclient/httpcore-4.1.jar/

classpathentry kind=lib path=Libraries/httpclient/httpmime-4.1.1.jar/

The Console output on the server is:

*compile*:
[mkdir] Created dir: /Library/Hudson/jobs/httpclient/workspace/bin
[wocompile] Compiling 1 source file to
/Library/Hudson/jobs/httpclient/workspace/bin
[wocompile] 
/Library/Hudson/jobs/httpclient/workspace/Sources/com/atl/extensions/ATLHttpClientUtilities.java:7:
package org.apache.http does not exist
[wocompile] import org.apache.http.HttpEntity;


Any ideas?
 ___
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: path in .java question

2011-09-02 Thread Ted Archibald
You should use WOResourceManager/ERXResourceManager

On Fri, Sep 2, 2011 at 8:53 AM, Theodore Petrosky tedp...@yahoo.com wrote:

 I want to read a file when my app launches:

 File f = new File(AllCountries.txt);

 I don't understand the path! if AllCountries.txt lives in the
 WebServerResources folder, what is the path I should use to access it?
  ___
 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/ted.archibald%40gmail.com

 This email sent to ted.archib...@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


PKs With Multitable Inheritance

2011-07-27 Thread Ted Archibald
With a project I'm working on I decided to have a number of my entities
inherit from an abstract entity.  Each of these entities have their own
separate table (I forget what kind of inheritance that's called...).

I noticed that EOF is only generating a single series of PKs for the
abstract parent entity and not PKs for each child entity.  I read somewhere
that that's what EOF likes to do with inheritance.  But considering I'd
never be dealing with the abstract entity, is there a way to make EOF give
PKs to each individual entity?
 ___
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: PKs With Multitable Inheritance

2011-07-27 Thread Ted Archibald
Won't my primary keys get too big to handle?  Is int(11) in mysql sufficient
enough?

On Wed, Jul 27, 2011 at 7:02 PM, Ramsey Gurley rgur...@smarthealth.comwrote:


 On Jul 27, 2011, at 5:23 PM, Chuck Hill wrote:

 
  On 2011-07-27, at 5:21 PM, Ted Archibald wrote:
 
  With a project I'm working on I decided to have a number of my entities
 inherit from an abstract entity.  Each of these entities have their own
 separate table (I forget what kind of inheritance that's called...).
 
  Horizontal.


 More info here:


 http://wiki.objectstyle.org/confluence/display/WO/Modeling+Inheritance+with+Entity+Modeler


  I noticed that EOF is only generating a single series of PKs for the
 abstract parent entity and not PKs for each child entity.  I read somewhere
 that that's what EOF likes to do with inheritance.  But considering I'd
 never be dealing with the abstract entity, is there a way to make EOF give
 PKs to each individual entity?
 
  There is probably a way, but it will lead to corrupt data or other
 problems.  EOF needs all the EOs in a hierarchy to have a unique key
 regardless of entity.
 
 
  Chuck


 You could do it in a custom EOAdaptor, but it won't function. OpenBase
 plugin does this (last time I used it), and as a result, the only
 inheritance that works on OpenBase is single table.

 EOF depends on keys that are unique across all the subclasses, because EOF
 needs the keys to be unique to create a relationships to the parent
 entities. Otherwise, what is the FK for a relationship to your parent if
 both tables have overlapping PKs?

 It will sorta work with horizontal until you start making relationships.
  It would be fundamentally incompatible with vertical because of the way the
 pk is shared across multiple tables.

 Ramsey


 ___
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: JavaMonitor's Arguments

2011-06-11 Thread Ted Archibald
The answer: man java...
-Dproperty=value
Sets a system property value.

I didn't realize that to use property arguments in JavaMonitor they
have to be in the above style.

On 6/11/11, Mark Wardle m...@wardle.org wrote:
 What was the answer?

 Mark

 --
 Dr. Mark Wardle
 Specialist registrar, Neurology
 (Sent from my mobile)


 On 10 Jun 2011, at 21:12, Ted Archibald ted.archib...@gmail.com wrote:

 It's always good to know I wasted so much time on something so obvious,
 lol.
 ___
 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%40wardle.org

 This email sent to m...@wardle.org

 ___
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


JavaMonitor's Arguments

2011-06-10 Thread Ted Archibald
I spent WAY too much time on this yesterday, but can anyone explain
why Javamonitor uses different markup for properties?

For instance, if I have the following properties in my property file:
er.someProperty=value
er.someOtherProperty=true

To work in javamonitor I have to change it to the following:
-Der.someProperty=value -Der.someOtherProperty=true

Is this documented somewhere?
 ___
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: JavaMonitor's Arguments

2011-06-10 Thread Ted Archibald
It's always good to know I wasted so much time on something so obvious, lol.
 ___
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's Monitor

2010-11-29 Thread Ted Archibald
I'm running a split install and ToggleRight.png/ToggleDown.png are
working fine for me BUT clicking on the AjaxExpansions doesnt do
anything...

On Mon, Nov 29, 2010 at 7:51 AM, Pascal Robert prob...@macti.ca wrote:
 I just upgraded our staging server, and I'm getting the same behavior that 
 you get.

 I see some odd behavior with the AjaxExpansions when JavaMonitor is running 
 on a server. The images ToggleDown.png and ToggleRight.png are not 
 appearing. Looking at the resource protocol of Safari the images are listed 
 as 0 byte and a question mark though they are where WO should look for them 
 (the URL is correct). All other images are displayed correctly and the files 
 are not corrupted as Preview opens them and even dropping them into the 
 apache htdocs shows the right graphics in a browser.
 I enabled logging in JavaMonitor but neither in that log nor in the apache 
 log I can see any errors or hints. Running JavaMonitor in Eclipse the images 
 show up. Though it is unimportant for the operation of JavaMonitor I am 
 curious if anybody else sees the same behavior and why it fails.

 jw


 Am 25.11.2010 um 14:31 schrieb David LeBer:


 On 2010-11-25, at 5:21 AM, Johann Werner wrote:

 Looks quite shiny now :) There are some input fields that could be a 
 little bit wider though.

 Which ones?

 Better yet, file a JIRA with a patch ;-)

 I found a small bug in the css-file:

 .AppControlScheduleOn,
 .AppControlAutoRecoverOn {
  color: #00eb29;
 }

 should have

 .AppControlRefusingNewSessions

 as selector too. Thanks for your effort David!

 jw

 Am 25.11.2010 um 10:13 schrieb Simon:

 I just built a new server and got the new monitor - it's superb!

 simon

 On 22 November 2010 23:38, David LeBer dleber_wo...@codeferous.com 
 wrote:
 The Wonder Monitor looks like poo ;-)

 ;david

 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site:        http://codeferous.com
 blog:        http://davidleber.net
 profile:     http://www.linkedin.com/in/davidleber
 twitter:     http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org

 ___
 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/ted.archibald%40gmail.com

 This email sent to ted.archib...@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: Wonder's Monitor

2010-11-29 Thread Ted Archibald
I just checked and that's the problem.

On Mon, Nov 29, 2010 at 3:09 PM, David LeBer
dleber_wo...@codeferous.com wrote:

 On 2010-11-29, at 4:01 PM, Ted Archibald wrote:

 I'm running a split install and ToggleRight.png/ToggleDown.png are
 working fine for me BUT clicking on the AjaxExpansions doesnt do
 anything...

 I believe the css referenced resources issue would only effect you if you are 
 running in direct connect mode.

 For your problem check to makes sure that the webserverresources from the 
 Ajax framework are accessible (i.e: check the paths to prototype.js etc).


 On Mon, Nov 29, 2010 at 7:51 AM, Pascal Robert prob...@macti.ca wrote:
 I just upgraded our staging server, and I'm getting the same behavior that 
 you get.

 I see some odd behavior with the AjaxExpansions when JavaMonitor is 
 running on a server. The images ToggleDown.png and ToggleRight.png are not 
 appearing. Looking at the resource protocol of Safari the images are 
 listed as 0 byte and a question mark though they are where WO should look 
 for them (the URL is correct). All other images are displayed correctly 
 and the files are not corrupted as Preview opens them and even dropping 
 them into the apache htdocs shows the right graphics in a browser.
 I enabled logging in JavaMonitor but neither in that log nor in the apache 
 log I can see any errors or hints. Running JavaMonitor in Eclipse the 
 images show up. Though it is unimportant for the operation of JavaMonitor 
 I am curious if anybody else sees the same behavior and why it fails.

 jw


 Am 25.11.2010 um 14:31 schrieb David LeBer:


 On 2010-11-25, at 5:21 AM, Johann Werner wrote:

 Looks quite shiny now :) There are some input fields that could be a 
 little bit wider though.

 Which ones?

 Better yet, file a JIRA with a patch ;-)

 I found a small bug in the css-file:

 .AppControlScheduleOn,
 .AppControlAutoRecoverOn {
  color: #00eb29;
 }

 should have

 .AppControlRefusingNewSessions

 as selector too. Thanks for your effort David!

 jw

 Am 25.11.2010 um 10:13 schrieb Simon:

 I just built a new server and got the new monitor - it's superb!

 simon

 On 22 November 2010 23:38, David LeBer dleber_wo...@codeferous.com 
 wrote:
 The Wonder Monitor looks like poo ;-)

 ;david

 --
 David LeBer
 Codeferous Software
 'co-def-er-ous' adj. Literally 'code-bearing'
 site:   http://codeferous.com
 blog:   http://davidleber.net
 profile:        http://www.linkedin.com/in/davidleber
 twitter:        http://twitter.com/rebeld
 --
 Toronto Area Cocoa / WebObjects developers group:
 http://tacow.org





 ___
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: Where to put D2W Rules FAQ ?

2009-09-11 Thread Ted Archibald
I think this is a good time.  I've wasted tons of time trying to remember a
rule/key, then I have to go digging through other projects to find an
example.
A D2W rule cookbook would be pretty cool.

On Fri, Sep 11, 2009 at 9:02 AM, gsbr...@umich.edu wrote:

 Hi,

 Would a D2W rules FAQ/Reference page be a good idea for the wiki? With
 content like:

 1, How to turn on editing.

 2. How to edit relationships.

 3. How to change what attributes get displayed.

 4. How to change what entities get displayed.

 etc.

 If so, where to put it? How about off of:


 http://wiki.objectstyle.org/confluence/display/WO/Direct+To+Web+%28D2W+and+ERD2W%29

 Often one just needs a rule (or two) and it is not entirely obvious exactly
 what it is. A reference page for these rules would be a good thing, I think.
 The other pages go into depth on how the rule system works.

 gb




 --

   gsbr...@umich.edu


  ___
 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/ted.archibald%40gmail.com

 This email sent to ted.archib...@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: Where to put D2W Rules FAQ ?

2009-09-11 Thread Ted Archibald
I think this is a good time = I think this is a good idea.
I apparently haven't had enough coffee yet.

On Fri, Sep 11, 2009 at 9:22 AM, Ted Archibald ted.archib...@gmail.comwrote:

 I think this is a good time.  I've wasted tons of time trying to remember a
 rule/key, then I have to go digging through other projects to find an
 example.
 A D2W rule cookbook would be pretty cool.

 On Fri, Sep 11, 2009 at 9:02 AM, gsbr...@umich.edu wrote:

 Hi,

 Would a D2W rules FAQ/Reference page be a good idea for the wiki? With
 content like:

 1, How to turn on editing.

 2. How to edit relationships.

 3. How to change what attributes get displayed.

 4. How to change what entities get displayed.

 etc.

 If so, where to put it? How about off of:


 http://wiki.objectstyle.org/confluence/display/WO/Direct+To+Web+%28D2W+and+ERD2W%29

 Often one just needs a rule (or two) and it is not entirely obvious
 exactly what it is. A reference page for these rules would be a good thing,
 I think. The other pages go into depth on how the rule system works.

 gb




 --

   gsbr...@umich.edu


  ___
 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/ted.archibald%40gmail.com

 This email sent to ted.archib...@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: Where to put D2W Rules FAQ ?

2009-09-11 Thread Ted Archibald
It might be useful to include a simple version of the rules as the full
version might be confusing to some e.g.:
101: task='edit' = pageWrapperName = EditPageWrapper
[com.webobjects.directtoweb.Assignment]

...that's how it's done in
http://wiki.objectstyle.org/confluence/display/WO/The+D2W+Rule+System

On Fri, Sep 11, 2009 at 9:02 AM, gsbr...@umich.edu wrote:

 Hi,

 Would a D2W rules FAQ/Reference page be a good idea for the wiki? With
 content like:

 1, How to turn on editing.

 2. How to edit relationships.

 3. How to change what attributes get displayed.

 4. How to change what entities get displayed.

 etc.

 If so, where to put it? How about off of:


 http://wiki.objectstyle.org/confluence/display/WO/Direct+To+Web+%28D2W+and+ERD2W%29

 Often one just needs a rule (or two) and it is not entirely obvious exactly
 what it is. A reference page for these rules would be a good thing, I think.
 The other pages go into depth on how the rule system works.

 gb




 --

   gsbr...@umich.edu


  ___
 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/ted.archibald%40gmail.com

 This email sent to ted.archib...@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: WOWODC 09 Videos

2009-09-04 Thread Ted Archibald
bump

On Wed, Sep 2, 2009 at 11:45 PM, Ted Archibald ted.archib...@gmail.comwrote:

 Any word on the WOWODC 09 videos yet?

 ___
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

WOWODC 09 Videos

2009-09-02 Thread Ted Archibald
Any word on the WOWODC 09 videos yet?
 ___
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: Custom D2W Component

2009-08-26 Thread Ted Archibald
Nevermind, I rewrote the component from scratch and now it seems to work.
I'm not sure what fixed my problem.
 ___
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

Custom D2W Component

2009-08-25 Thread Ted Archibald
I'm trying to create a custom d2w component that extendsERDCustomEditComponent.What I want is a to many component that you can select a Person EOand if you click a link "new..." you can create a new Person eo and enter the Person.name.So far I can select the Person EO with no problem and I can create a new Person EO,BUTI cannot get what is typed into the WOTextField to update the Person.name value.My WOTextField simply connects to the person object in the component.wo:textFieldvalue="$person.name"/wo:textFieldIf I look at the the form values coming from the worequest in takeValuesFromRequest I can see the string in the dictionary.publicvoidtakeValuesFromRequest(WORequest r, WOContext c) {   super.takeValuesFromRequest(r,c); 	System.out.println(r.formValues()); }{0.3.4.5.0.1.0.0.2.0.0.5.0.0.2.0.3.3.2.2.0.7.0.0.0.5.1.1.0.2.5.0.1.3.0.0.4.1 = ("Name");0.3.4.5.0.1.0.0.2.0.0.5.0.0.2.0.3.3.2.0.3 = ("1"); 0.3.4.5.0.1.0.0.2.0.0.5.0.0.2.0.3.3.2.0.5 = ("Add"); 0.3.4.5.0.1.0.0.2.0.0.5.0.0.2.0.5.3.3 = (""); wosid = ("PAAAvE86f69I8vC3Kh012g"); }So far the only way I can get this to work if I add an id to the WOTextField and change takeValueFromRequest. But this doesn't seem right.wo:textFieldvalue="$child.name"id="name"/wo:textFieldpublicvoidtakeValuesFromRequest(WORequest r, WOContext c) {   super.takeValuesFromRequest(r,c); 	System.out.println(r.formValues()); 	person().setName( (String)r.formValueForKey("name") ); }Is there a better way to do this? ___
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: Custom D2W Component

2009-08-25 Thread Ted Archibald
I mean: wo:textField value = $person.name http://child.name/ id =
name/wo:textField

I copied/pasted the wrong wotextfield...


 wo:textField value = $child.name id = name/wo:textField


 ___
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: WOWODC 09 Videos

2009-07-10 Thread Ted Archibald
?

On Fri, Jul 3, 2009 at 7:57 AM, Ted Archibald ted.archib...@gmail.comwrote:

 Hey,

 I'm just wondering when will the WOWODC 09 videos will be ready?
 How much will they cost this year?

 Thanks

 ___
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

  1   2   >