Re: Migrations problem with FrontBase

2012-12-21 Thread Cheong Hee (Gmail)
Another possible setting in property that will override setting in eomodel:

  erprototypes.EOPrototypesEntity=EOJDBCMySQLPrototypes



  



Cheers



Cheong Hee



  - Original Message - 
  From: Ângelo Andrade Cirino 
  To: Cheong Hee (Gmail) 
  Cc: Chuck Hill ; webobjects-dev@lists.apple.com 
  Sent: Wednesday, December 19, 2012 8:00 PM
  Subject: Re: Migrations problem with FrontBase


  Hi Cheong,


  I meant in my specific case, where is WO looking for the prototypes? 
Searching in my disk I only found the EOPrototypes class file. In my project 
the MySQLPlugin was removed from the class file and the FrontBasePlugIn was put 
before EOPrototypes in the class path order. My model specifies FrontBase 
prototypes. That's why I am not able to understand why WO is taking the MySQL 
prototypes and not the FrontBase ones. I will try the EOPrototypesToHide hint 
with a MySQL attribute and let you know the outcome.


  One more thing about my problem. It seems to only have affected the 
prototypes used by the migrations system. My entities were not affected at all.


  Cheers,


  Angelo


  Em 19/12/2012, às 02:16, Cheong Hee (Gmail) escreveu:


Found this original WO doc to share and hope it helps.  Not sure if this 
still hold water after integrating with Wonder:

When resolving a prototype name, Enterprise Objects Framework looks for 
prototypes in EOadaptor-namePrototypes, then in EOPrototypes, and finally in 
the adaptor for your model. This search path allows you to override the 
prototypes provided by each adaptor. Furthermore, if you don't want to use the 
adaptor-defined prototypes at all, you can hide them. Create an entity named 
EOPrototypesToHide. For each prototype you want to hide, create an attribute 
with that name; you don't need to specify other attribute properties.

Cheers

Cheong Hee

 ___
Do not 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: Migrations problem with FrontBase

2012-12-21 Thread Cheong Hee (Gmail)
Thanks.  Read through the ERPrototypes documentation, I think this is by far 
the most up-to-date.  
The doc shows:

1.  set up for ERPrototypes framework
2.  set up for EOModeler
3.  set up your frameworks
4.  set up your applications

Following this guide, thing should be in better order.

Cheers

Cheong Hee

  - Original Message - 
  From: Kieran Kelleher 
  To: Cheong Hee (Gmail) 
  Cc: Ângelo Andrade Cirino ; webobjects-dev@lists.apple.com 
  Sent: Friday, December 21, 2012 4:31 AM
  Subject: Re: Migrations problem with FrontBase


  FWIW,


  Not sure if this helps with Migrations or not because I still use SQL for 
that, but anyway.



  Have a look at the usage of this property:
  er.extensions.ERXModel.useExtendedPrototypes=true


  and the javadoc on ERXModel to learn how prototypes are chosen.


  You can turn on debug logging on that class to see info about prototypes 
being loaded.


  HTH, Kieran




  On Dec 18, 2012, at 11:16 PM, Cheong Hee (Gmail) chn...@gmail.com wrote:


Found this original WO doc to share and hope it helps.  Not sure if this 
still hold water after integrating with Wonder:

When resolving a prototype name, Enterprise Objects Framework looks for 
prototypes in EOadaptor-namePrototypes, then in EOPrototypes, and finally in 
the adaptor for your model. This search path allows you to override the 
prototypes provided by each adaptor. Furthermore, if you don't want to use the 
adaptor-defined prototypes at all, you can hide them. Create an entity named 
EOPrototypesToHide. For each prototype you want to hide, create an attribute 
with that name; you don't need to specify other attribute properties.

Cheers

Cheong Hee

  - Original Message -
  From: Ângelo Andrade Cirino
  To: Cheong Hee (Gmail)
  Cc: Chuck Hill ; webobjects-dev@lists.apple.com
  Sent: Wednesday, December 19, 2012 1:06 AM
  Subject: Re: Migrations problem with FrontBase


  Hi guys,


  For a reason beyond my skills, the application seems to be indeed using 
the MySQL prototypes instead of FrontBase's to create the _dbupdater table. My 
model surely has the FrontBase prototypes selected, but this seems not to 
influence the prototypes choice by ERXMigrator or ERXJDBCMigrationLock. So my 
solution was to create the _dbupdater table by hand and populate it with the 
models I use. After this intervention the migrations worked again.


  But the question remains, from where does ERXMigrator take the prototypes 
information?


  Cheers,


  Angelo



  2012/12/18 Cheong Hee (Gmail) chn...@gmail.com

I think you are still picking up MySQL prototype file rather FrontBase 
prototype file.  INT is external type for intNumber in MySQL prototype file.
The correct external type for FrontBase prototype file is INTEGER.

You may check the prototype selection in your database configuration.  
Somehow you are still picking up the MySQL prototype file.

Cheers

Cheong Hee

  - Original Message -
  From: Ângelo Andrade Cirino
  To: Chuck Hill
  Cc: webobjects-dev@lists.apple.com
  Sent: Monday, December 17, 2012 11:07 PM
  Subject: Re: Migrations problem with FrontBase


  Hi Chuck,


  The ERPrototypes and FrontBasePlugin libraries are correctly set up 
in the class path. The FrontBase related JARS and frameworks are set up in the 
system class path. In the model file the FrontBase prototypes were selected.


  Trying to isolate the problem to study a solution, I stripped down 
the migrations file generated, leaving only one entity and only the 
string-based attributes. After this I got the following error:


  Dez 17 12:45:04 AdministraAgencias1.0[60001] INFO  
er.transaction.adaptor.ConnectionAnalyzer  - JDBC connection successful!
  Dez 17 12:45:04 AdministraAgencias1.0[60001] ERROR 
er.extensions.appserver.ERXApplication  - AdministraAgencias1.0 failed to start.
  JDBCAdaptorException: Unable to find type information for external 
type 'INT' in attribute 'updateLock' of entity '_dbupdater'.  Check spelling 
and capitalization.
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression.columnTypeStringForAttribute(_FrontBasePlugIn.java:1187)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression.addCreateClauseForAttribute(_FrontBasePlugIn.java:1095)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.addCreateClauseForAttribute(_FrontBasePlugIn.java:905)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.createTableStatementsForEntityGroup(_FrontBasePlugIn.java:845)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.createTableStatementsForEntityGroups(_FrontBasePlugIn.java:809)
at 
com.webobjects.jdbcadaptor

Re: Migrations problem with FrontBase

2012-12-18 Thread Cheong Hee (Gmail)
Found this original WO doc to share and hope it helps.  Not sure if this still 
hold water after integrating with Wonder:

When resolving a prototype name, Enterprise Objects Framework looks for 
prototypes in EOadaptor-namePrototypes, then in EOPrototypes, and finally in 
the adaptor for your model. This search path allows you to override the 
prototypes provided by each adaptor. Furthermore, if you don't want to use the 
adaptor-defined prototypes at all, you can hide them. Create an entity named 
EOPrototypesToHide. For each prototype you want to hide, create an attribute 
with that name; you don't need to specify other attribute properties.

Cheers

Cheong Hee

  - Original Message - 
  From: Ângelo Andrade Cirino 
  To: Cheong Hee (Gmail) 
  Cc: Chuck Hill ; webobjects-dev@lists.apple.com 
  Sent: Wednesday, December 19, 2012 1:06 AM
  Subject: Re: Migrations problem with FrontBase


  Hi guys,


  For a reason beyond my skills, the application seems to be indeed using the 
MySQL prototypes instead of FrontBase's to create the _dbupdater table. My 
model surely has the FrontBase prototypes selected, but this seems not to 
influence the prototypes choice by ERXMigrator or ERXJDBCMigrationLock. So my 
solution was to create the _dbupdater table by hand and populate it with the 
models I use. After this intervention the migrations worked again.




  But the question remains, from where does ERXMigrator take the prototypes 
information?




  Cheers,




  Angelo




  2012/12/18 Cheong Hee (Gmail) chn...@gmail.com

I think you are still picking up MySQL prototype file rather FrontBase 
prototype file.  INT is external type for intNumber in MySQL prototype file.
The correct external type for FrontBase prototype file is INTEGER.

You may check the prototype selection in your database configuration.  
Somehow you are still picking up the MySQL prototype file.

Cheers

Cheong Hee

  - Original Message - 
  From: Ângelo Andrade Cirino 
  To: Chuck Hill 
  Cc: webobjects-dev@lists.apple.com 
  Sent: Monday, December 17, 2012 11:07 PM
  Subject: Re: Migrations problem with FrontBase


  Hi Chuck, 


  The ERPrototypes and FrontBasePlugin libraries are correctly set up in 
the class path. The FrontBase related JARS and frameworks are set up in the 
system class path. In the model file the FrontBase prototypes were selected.


  Trying to isolate the problem to study a solution, I stripped down the 
migrations file generated, leaving only one entity and only the string-based 
attributes. After this I got the following error:


  Dez 17 12:45:04 AdministraAgencias1.0[60001] INFO  
er.transaction.adaptor.ConnectionAnalyzer  - JDBC connection successful!
  Dez 17 12:45:04 AdministraAgencias1.0[60001] ERROR 
er.extensions.appserver.ERXApplication  - AdministraAgencias1.0 failed to start.
  JDBCAdaptorException: Unable to find type information for external type 
'INT' in attribute 'updateLock' of entity '_dbupdater'.  Check spelling and 
capitalization.
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression.columnTypeStringForAttribute(_FrontBasePlugIn.java:1187)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression.addCreateClauseForAttribute(_FrontBasePlugIn.java:1095)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.addCreateClauseForAttribute(_FrontBasePlugIn.java:905)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.createTableStatementsForEntityGroup(_FrontBasePlugIn.java:845)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.createTableStatementsForEntityGroups(_FrontBasePlugIn.java:809)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.schemaCreationStatementsForEntities(_FrontBasePlugIn.java:640)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.schemaCreationScriptForEntities(_FrontBasePlugIn.java:606)
at 
er.extensions.jdbc.ERXSQLHelper.createSchemaSQLForEntitiesWithOptions(ERXSQLHelper.java:286)
at 
er.extensions.migration.ERXJDBCMigrationLock.dbUpdaterCreateStatement(ERXJDBCMigrationLock.java:370)
at 
er.extensions.migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:148)
at 
er.extensions.migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java:69)
at 
er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:451)
at 
er.extensions.eof.ERXEOAccessUtilities$ChannelAction.perform(ERXEOAccessUtilities.java:1502)
at 
er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:201)
at 
er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1294)
... skipped 13 stack elements


  Any clues? Adding a little more information, the migrations

Re: Migrations problem with FrontBase

2012-12-17 Thread Cheong Hee (Gmail)
I think you are still picking up MySQL prototype file rather FrontBase 
prototype file.  INT is external type for intNumber in MySQL prototype file.
The correct external type for FrontBase prototype file is INTEGER.

You may check the prototype selection in your database configuration.  Somehow 
you are still picking up the MySQL prototype file.

Cheers

Cheong Hee
 
  - Original Message - 
  From: Ângelo Andrade Cirino 
  To: Chuck Hill 
  Cc: webobjects-dev@lists.apple.com 
  Sent: Monday, December 17, 2012 11:07 PM
  Subject: Re: Migrations problem with FrontBase


  Hi Chuck,


  The ERPrototypes and FrontBasePlugin libraries are correctly set up in the 
class path. The FrontBase related JARS and frameworks are set up in the system 
class path. In the model file the FrontBase prototypes were selected.


  Trying to isolate the problem to study a solution, I stripped down the 
migrations file generated, leaving only one entity and only the string-based 
attributes. After this I got the following error:


  Dez 17 12:45:04 AdministraAgencias1.0[60001] INFO  
er.transaction.adaptor.ConnectionAnalyzer  - JDBC connection successful!
  Dez 17 12:45:04 AdministraAgencias1.0[60001] ERROR 
er.extensions.appserver.ERXApplication  - AdministraAgencias1.0 failed to start.
  JDBCAdaptorException: Unable to find type information for external type 'INT' 
in attribute 'updateLock' of entity '_dbupdater'.  Check spelling and 
capitalization.
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression.columnTypeStringForAttribute(_FrontBasePlugIn.java:1187)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseExpression.addCreateClauseForAttribute(_FrontBasePlugIn.java:1095)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.addCreateClauseForAttribute(_FrontBasePlugIn.java:905)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.createTableStatementsForEntityGroup(_FrontBasePlugIn.java:845)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.createTableStatementsForEntityGroups(_FrontBasePlugIn.java:809)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.schemaCreationStatementsForEntities(_FrontBasePlugIn.java:640)
at 
com.webobjects.jdbcadaptor._FrontBasePlugIn$FrontbaseSynchronizationFactory.schemaCreationScriptForEntities(_FrontBasePlugIn.java:606)
at 
er.extensions.jdbc.ERXSQLHelper.createSchemaSQLForEntitiesWithOptions(ERXSQLHelper.java:286)
at 
er.extensions.migration.ERXJDBCMigrationLock.dbUpdaterCreateStatement(ERXJDBCMigrationLock.java:370)
at 
er.extensions.migration.ERXJDBCMigrationLock._tryLock(ERXJDBCMigrationLock.java:148)
at 
er.extensions.migration.ERXJDBCMigrationLock.tryLock(ERXJDBCMigrationLock.java:69)
at 
er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:451)
at 
er.extensions.eof.ERXEOAccessUtilities$ChannelAction.perform(ERXEOAccessUtilities.java:1502)
at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:201)
at 
er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1294)
... skipped 13 stack elements


  Any clues? Adding a little more information, the migrations and application 
worked well with MySQL, but a problem with a circular relationship convinced me 
to switch to FrontBase, when I faced the error above for the first time. Well, 
to say the truth, I had a problem with the connection dictionary password, but 
was able to solve it specifying the dbpasswd and upasswd properties.


  Angelo


  Em 17/12/2012, às 00:42, Chuck Hill escreveu:


It sounds like the wrong prototypes are being used to generate the 
migration Java.





--


  ___
  Do not 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/chng34%40gmail.com

  This email sent to chn...@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: Mountain Lion WO Deployment Package by WEBAPPZ

2012-10-07 Thread Cheong Hee (Gmail)

Windows Witness Protection program?


How about, Windows EMET - Enhanced Mitigation Experience Toolkit 3.0 .0?
___
Do not 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: creating a second database connection

2012-08-22 Thread Cheong Hee (Gmail)
The simplest way is to create two eomodel and set their connection 
dictiionary respectively.  It will then transparent to you when do fetching.

No worry b'cos it is wo.

- Original Message - 
From: Theodore Petrosky tedp...@yahoo.com

To: prob...@macti.ca
Cc: webobjects-dev@lists.apple.com
Sent: Thursday, August 23, 2012 9:55 AM
Subject: Re: creating a second database connection


I hadn't even thought of JasperReports yet. but, I could probably create a 
'special EO', copy the attributes that I want to report on. and print this 
third EO.


or as you said pass the second EO as a parameter object and use a sub 
report. i was doing that for my to-many relations.


My issue was I couldn't image how to connect to two different databases at 
the same time. It appears this is the easier of the difficult parts.



Ted

--- On Wed, 8/22/12, prob...@macti.ca prob...@macti.ca wrote:


From: prob...@macti.ca prob...@macti.ca
Subject: Re: creating a second database connection
To: Theodore Petrosky tedp...@yahoo.com
Cc: Amedeo Mantica amedeomant...@me.com, Paul Yu p...@mac.com, 
webobjects-dev@lists.apple.com webobjects-dev@lists.apple.com

Date: Wednesday, August 22, 2012, 7:21 PM
Jasper Reports? You can't use two
data sources in the same report, you will have to use
sub-reports.

Envoyé de mon iPhone

Le 2012-08-22 à 19:19, Theodore Petrosky tedp...@yahoo.com
a écrit :

 db two is to read only. I want to munge together a
report. I'll try the two models and see how it works out. it
just sounds too simple.

 Ted


 --- On Wed, 8/22/12, Paul Yu p...@mac.com
wrote:

 From: Paul Yu p...@mac.com
 Subject: Re: creating a second database connection
 To: Amedeo Mantica amedeomant...@me.com
 Cc: webobjects-dev@lists.apple.com
webobjects-dev@lists.apple.com
 Date: Wednesday, August 22, 2012, 6:28 PM
 But cross model joins would be an
 issue?

 Sent from my iPad

 On Aug 22, 2012, at 4:09 PM, Amedeo Mantica amedeomant...@me.com
 wrote:

 Just create two eomodels

 Sent from my iPhone

 On 22/ago/2012, at 21:55, Theodore Petrosky
tedp...@yahoo.com
 wrote:

 I have an app that captures data on events
and
 writes this to my postgresql database.

 I have other data that lives in an Oracle
database
 that I need to query to merge with to create a
report.

 like (data from PG) + (data from Oracle) =
 myReport.

 I have no experience trying to connect to a
second
 database in an app. Are there any examples of doing
this?

 Please, I have no idea where to start.

 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/amedeomantica%40me.com

 This email sent to amedeomant...@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/pyu%40mac.com

 This email sent to p...@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/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/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/chng34%40gmail.com

This email sent to chn...@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: Deployment on Linux (jdbc driver pb)

2012-07-17 Thread Cheong Hee (Gmail)

Strong recommendation here: use lower case.
That will enable you later to port the database from linux to wndows, vice 
versa.


- Original Message - 
From: Jean Pierre Malrieu jp.malr...@free.fr

To: Pascal Robert prob...@macti.ca
Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Monday, July 16, 2012 9:48 PM
Subject: Re: Deployment on Linux (jdbc driver pb)



Thank you both. It works.
Now discovering that on UNIX, mysql table name are case sensitive... 
G!


Le 16 juil. 2012 à 15:00, Pascal Robert a écrit :



Le 2012-07-16 à 08:58, Jean Pierre Malrieu a écrit :

Meaning you add it directly in the Libraries folder and ant build 
picks it up?


Yes.


Le 16 juil. 2012 à 14:26, Paul Yu a écrit :


I embed the jdbc library in my app bundle,

Sent from my iPad

On Jul 16, 2012, at 8:07 AM, Jean Pierre Malrieu jp.malr...@free.fr 
wrote:



Hi,

I am trying my first deployment on LINUX, and thanks to the 
instructions in the wiki, things seem to work more or less 
(application deployed and launched).
But I have got an exception (cannot obtain database channel) when 
trying to talk to mysql.
I have installed the jdbc driver, but how do I tell the app where to 
find it?


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/pyu%40mac.com

This email sent to p...@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/chng34%40gmail.com

This email sent to chn...@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: Installing Tools and Framework is a mess

2012-07-17 Thread Cheong Hee (Gmail)
Nope.. I personally don't agree that the fresh installation in community 
wiki is not good enough.  I have done few fresh installation on less popluar 
windows platform.  There is no java, git, gnutar or alike.  The installation 
turn out to be about a day or two, and I am able to start work on hello 
world and import projects.  I preferred step-by-step rather than 
one-click-for-all.  Always doing one click for all is great, but if there is 
something in between occurs, there is where much time will be spent on 
findings.  It may not be ideal like F1, but it did help to get the major 
parts together.  Just 2sen.


- Original Message - 
From: Pascal Robert prob...@macti.ca

To: Q qdo...@gmail.com
Cc: webobjects-dev@lists.apple.com Dev Apple 
Webobjects-dev@lists.apple.com

Sent: Wednesday, July 18, 2012 10:33 AM
Subject: Re: Installing Tools and Framework is a mess




Le 2012-07-17 à 19:22, Q a écrit :



On 18/07/2012, at 3:41 AM, Ramsey Gurley rgur...@smarthealth.com wrote:


On Jul 17, 2012, at 8:28 AM, Markus Ruggiero wrote:


WE NEED A WORKING TURNKEY SOLUTION - ASAP!


I would be happy with a working solution.  WOLips is totally broken on 
Eclipse Juno.


I tried running WOLips from source in Juno two weekends ago. There's a 
compile error in the component editor. I didn't know how to fix it, but 
removing the two lines of code that didn't compile wasn't the answer. 
Component editor was broken.


https://github.com/wolips/wolips/tree/eclipse_4_2


I have setup a 4.2 build on jenkins.wocommunity.org:

 http://jenkins.wocommunity.org/job/WOLips42/


___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: Problem EOEditingContext

2012-07-13 Thread Cheong Hee (Gmail)
Once upon a time, there is a default constructor class generated in this 
way:


   public User(EOEditingContext context, EOClassDescription classDesc, 
EOGlobalID gid) {

   super(context, classDesc, gid);
   }

Not sure why it is removed after in wolips.  Is this something similar to 
your newUser(ec) or User(ec).


- Original Message - 
From: Maik Musall m...@selbstdenker.ag

To: WebObjects Development Webobjects-dev@lists.apple.com
Sent: Friday, July 13, 2012 5:23 PM
Subject: Re: Problem EOEditingContext




Am 13.07.2012 um 01:20 schrieb Ramsey Gurley:



On Jul 12, 2012, at 3:26 PM, Maik Musall wrote:



Am 12.07.2012 um 23:58 schrieb Louis Demers:
User newUser = (User)EOUtilities.createAndInsertInstance(ec, 
User.ENTITY_NAME) ;


Much too wordy for my taste, and needs a cast on top of it. Just add a 
second constructor in your template which does ec.insertObject(this), so 
that you can simply use


User newUser = new User( ec );

Do not delete the parameter-less constructor though, because EOF needs 
that internally when restoring objects from db. But refrain from using 
that anywhere in your app.


Maik


I know the rule is not followed strictly in WO/Wonder, but as a general 
rule in java, do not let 'this' escape the constructor.


http://www.javapractices.com/topic/TopicAction.do?Id=252


Indeed, you're right. Using a factory method is the better way. I just 
looked into what insertObject() actually does and it's really more than 
you would want to happen inside a constructor, although I never had a 
problem with this in years. Still, I'd make a factory method in the 
template to be called like


User newUser = User.newInEc( ec );

Side note: javapractices.com is good, but not infallible. For example, it 
is badly misguided
about spaces instead of tabs... ;-) 
(http://www.javapractices.com/topic/TopicAction.do?Id=244)


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/chng34%40gmail.com

This email sent to chn...@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: [Wonder-disc] ERXEC and locking

2012-07-10 Thread Cheong Hee (Gmail)
I think you are right or at least this is the impression I had the last time on 
this subject.   I plan to move from MultiEC locking manager to ERXEC ec.  As 
usual, I could be wrong..  

  - Original Message - 
  From: Matteo Centro 
  To: Paul Dunkler 
  Cc: webobjects-dev@lists.apple.com Dev Apple ; Wonder Project 
  Sent: Monday, July 09, 2012 6:47 PM
  Subject: Re: [Wonder-disc] ERXEC and locking


  Actually I noticed that removing all the locks (even the forgotten ones) 
seems to have solved the problem... I had 10 unique users on 22 instances 
running  for a day and no deadlocks.


  Any thoughts about stuff that is done in the Session.terminate? I need to do 
some cleanup if the session terminates, do I get automatic lock unlock in that 
scenario or the termination happens in a separate thread and so I have to 
manually lock/unlock?


  Thanks,




  Matteo


  On Mon, Jul 9, 2012 at 12:19 PM, Paul Dunkler paul.dunk...@xyrality.com 
wrote:

  I recently Wonderized a legacy WO application and I have a strange race 
condition that happens very rarely and only under extremely high load.
  Application extends ERXApplication, Session extends ERXSession and so on, 
I removed all new EOEditingContext() and replaced them with 
ERXEC.newEditingContext() 
  but
  I forgot to remove some ec.lock() and ec.unlock()


  I am quite convinced that removing all locks and unlocks will bring me to 
a non deadlocking situation but I still want some reassurements
  I read a lot of stuff and I'm here to ask to you gurus a final word on 
the locking rule I inferred from what I read:


  If you always use ERXEC you can safely remove all lock and unlocks except 
for stuff that happen in background threads...


  Is it true?


I think yes, its true. We are actually using Wonder Editing Contexts only 
and do not have any other locking stuff. Everything runs fine.




  What about stuff that happens in session.terminate()? I would say that it 
should have explicit lock/unlocks but any opinions are welcome.


  Thanks,




  Matteo
  
--
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and 
  threat landscape has changed and how IT managers can respond. Discussions 
  will include endpoint security, mobile security and the latest in malware 
  threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
  Wonder-disc mailing list
  wonder-d...@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wonder-disc



--
Mit freundlichen Grüßen

Paul Dunkler






-
XYRALITY GmbH • Friedensallee 290 • 22763 Hamburg
Paul Dunkler • Technical Director
Mail: paul.dunk...@xyrality.com 
Tel: +49 (0) 40 35 73 001 41
Mobil: +49 (0) 151 252 228 42
Fax: +49 (0) 40 35 73 001 99
Web: http://www.xyrality.com/
Registergericht: Hamburg HRB 115332
Geschäftsführer: Sven Ossenbrüggen  Alexander Spohr
-







--


  ___
  Do not 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/chng34%40gmail.com

  This email sent to chn...@gmail.com
attachment: xyrality_logo_medium.png ___
Do not 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: import wonder project to eclipse

2012-06-05 Thread Cheong Hee (Gmail)
I got tons of them.  Don't think could get rid of them all.   It should be 
fine as long as it does not stop you from creating frameworks and using 
them.Correct me if wrong..


Cheers

- Original Message - 
From: yizi wang yizi...@gmail.com

To: Kieran Kelleher kelleh...@gmail.com
Cc: Webobjects-dev@lists.apple.com
Sent: Tuesday, June 05, 2012 11:37 PM
Subject: Re: import wonder project to eclipse


Thanks a lot Kelleher.  After modify the preference and a rebuilt, all the 
errors are gone. Still got lots warnings



On May 29, 2012, at 2:07 PM, Kieran Kelleher wrote:


Those are probably just WOComponent analyzer errors.

Just change your preferences and rebuild all projects:

Preferences.jpg


On May 29, 2012, at 12:46 PM, yizi wang wrote:

i installed WebObjects543 to /WoLib and put the source of wonder to 
/WoLib/WonderSource and then imported wonder source as a new project to 
eclipse.


My WebObjects installation seems good since i can create and run simple 
woapps within eclipse. But after imported project wonder, the eclipse' 
Problems pane says 119 errors, 8799 warnings.


Don't know what's wrong with this. I just followed the steps from
http://wiki.wocommunity.org/display/WONDER/Project+Wonder+Installation

Maybe I need to compile and install wonder in order to get rid of those 
errors?


Thanks

===

BTW. The instruction of importing wonder projects to eclipse has a 
screenshot at

http://wiki.wocommunity.org/download/attachments/1835049/Screenshot6.png?version=1modificationDate=1301227408000

Where you see ERExtensions  Sources  er  foundation in WO Explorer
But I got ERExtensions  Sources  er.foundation in my WO Explorer

Is this du to the deferent versions of wonder?


Below are the error screenshopts

prb1.gifprb2.gif ___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: EOEntity question.

2012-06-05 Thread Cheong Hee (Gmail)
Primary key generation need to be observed to ensure no duplication of keys 
happened in the same table.  Since eo primary key table is using the table 
name, it should be fine, too.


- Original Message - 
From: Johann Werner j...@oyosys.de

To: doug andrews dandr...@mediaspansoftware.com
Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Tuesday, June 05, 2012 10:56 PM
Subject: Re: EOEntity question.



Hi Doug,

that shouldn't be a problem as long as the other entity does not have 
attributes that are marked as NOT NULL which would result in exceptions 
during save or fetch.


jw


Am 05.06.2012 um 16:29 schrieb doug andrews:


In one model, I have two entities that reference the same table.
One entity exposes attributes that the other does not.
One entity has a custom class, the other's class is EOGenericRecord.
Neither entity has a parent.

This is old code with a lot of lines, so removing one of the entities is 
not an option.


Will this be a problem?
Should one entity have the other as a parent?




___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: NullPointerException in EODatabaseContext java

2012-06-04 Thread Cheong Hee (Gmail)
I supposed that the component ec should be created within the component itself. 
 So that any invalid objects will not affect other ec.

  - Original Message - 
  From: Raghavender Bokka 
  To: Cheong Hee (Gmail) 
  Cc: Development WebObjects 
  Sent: Friday, June 01, 2012 7:16 PM
  Subject: Re: NullPointerException in EODatabaseContext java


  Hi Cheong Hee,


  I am using the localEditingContext() method of GenericComponent class which 
internally creates the ERXEC.newEditingContext().


  Please advise if this not the component-based ec.


  Regards,
  Raghu.


  On 01-Jun-2012, at 4:35 PM, Cheong Hee (Gmail) wrote:


Hi Raghu

May be you really need to look at how the object model design.  Usually, 
once the invalidate all objects, the ec will fetch again new objects and theirs 
object graph.  May be some code will be helpful.  Also, pls remember to have 
component-based ec.

Cheers

Cheong Hee

- Original Message - From: Raghavender Bokka 
raghavender.bo...@prithvisolutions.com
To: Cheong Hee (Gmail) chn...@gmail.com
Cc: Development WebObjects webobjects-dev@lists.apple.com
Sent: Friday, June 01, 2012 2:17 PM
Subject: Re: NullPointerException in EODatabaseContext java


Hi Cheong Hee,

I tried invalidating the objects in ec, then we are able to view the 
details of this eo object, but the other similar objects in the wodisplaygroup 
list is behaving weirdly when they are selected.

Regards,
Raghu.

On 01-Jun-2012, at 11:41 AM, Cheong Hee (Gmail) wrote:


  i guessed one quick way is to invalidate the objects in ec and force it 
to refetch from db.



  - Original Message - From: Raghavender Bokka 
raghavender.bo...@prithvisolutions.com

  To: Development WebObjects webobjects-dev@lists.apple.com

  Sent: Thursday, May 31, 2012 9:04 PM

  Subject: NullPointerException in EODatabaseContext java





Hi Team,



I have created an enterprise object with one-to-many relationship 
objects associating.  Then in the search page searched for these enterprise 
objects (that has WODisplayGroup), I am able to view the newly created object, 
but when I try to select that object to view the details it is generating the 
following exception.   If I restart the application then I am able to view the 
details of the newly created object without any error, or If we try accessing 
the newly created object after sometime (around half an hour later) then 
without error able to view the object details. Otherwise the enterprise object 
is getting null.



This enterprise object's super class has the database table, and this 
object does not has the database table, it points to the same database table of 
the super class.  And the to-many relationship is existing with this enterprise 
object (sub-class), not the super class.



Any help would be appreciated.




EXCEPTION--

[2012-5-31 8:25:4 EDT] WorkerThread7 java.lang.NullPointerException

 at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)

 at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)

 at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)

 at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)

 at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)

 at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)

 at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)

 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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)

 at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)

 at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)

 at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)

 at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)

 at java.lang.String.valueOf(String.java:2826)

 at java.lang.StringBuilder.append(StringBuilder.java:115)

 at StoredTestListPage.printTestSession(StoredTestListPage.java:276

Re: NullPointerException in EODatabaseContext java

2012-06-01 Thread Cheong Hee (Gmail)
i guessed one quick way is to invalidate the objects in ec and force it to 
refetch from db.


- Original Message - 
From: Raghavender Bokka raghavender.bo...@prithvisolutions.com

To: Development WebObjects webobjects-dev@lists.apple.com
Sent: Thursday, May 31, 2012 9:04 PM
Subject: NullPointerException in EODatabaseContext java



Hi Team,

I have created an enterprise object with one-to-many relationship objects 
associating.  Then in the search page searched for these enterprise 
objects (that has WODisplayGroup), I am able to view the newly created 
object, but when I try to select that object to view the details it is 
generating the following exception.   If I restart the application then I 
am able to view the details of the newly created object without any error, 
or If we try accessing the newly created object after sometime (around 
half an hour later) then without error able to view the object details. 
Otherwise the enterprise object is getting null.


This enterprise object's super class has the database table, and this 
object does not has the database table, it points to the same database 
table of the super class.  And the to-many relationship is existing with 
this enterprise object (sub-class), not the super class.


Any help would be appreciated.

EXCEPTION--
[2012-5-31 8:25:4 EDT] WorkerThread7 java.lang.NullPointerException
   at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
   at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
   at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
   at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
   at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
   at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)

   at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
   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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
   at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
   at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
   at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)

   at java.lang.String.valueOf(String.java:2826)
   at java.lang.StringBuilder.append(StringBuilder.java:115)
   at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
   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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
   at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
   at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
   at 
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
   at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
   at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
   at 
com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
   at 
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
   at 
com.webobjects.appserver._private.WOHyperlink.invokeAction(WOHyperlink.java:98)
   at 
er.extensions.components._private.ERXHyperlink.invokeAction(ERXHyperlink.java:66)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
   at 
er.extensions.components._private.ERXWORepetition.invokeAction(ERXWORepetition.java:496)
   at 
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
   at 

Re: NullPointerException in EODatabaseContext java

2012-06-01 Thread Cheong Hee (Gmail)

Hi Raghu

May be you really need to look at how the object model design.  Usually, 
once the invalidate all objects, the ec will fetch again new objects and 
theirs object graph.  May be some code will be helpful.  Also, pls remember 
to have component-based ec.


Cheers

Cheong Hee

- Original Message - 
From: Raghavender Bokka raghavender.bo...@prithvisolutions.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: Development WebObjects webobjects-dev@lists.apple.com
Sent: Friday, June 01, 2012 2:17 PM
Subject: Re: NullPointerException in EODatabaseContext java


Hi Cheong Hee,

I tried invalidating the objects in ec, then we are able to view the details 
of this eo object, but the other similar objects in the wodisplaygroup list 
is behaving weirdly when they are selected.


Regards,
Raghu.

On 01-Jun-2012, at 11:41 AM, Cheong Hee (Gmail) wrote:

i guessed one quick way is to invalidate the objects in ec and force it to 
refetch from db.


- Original Message - From: Raghavender Bokka 
raghavender.bo...@prithvisolutions.com

To: Development WebObjects webobjects-dev@lists.apple.com
Sent: Thursday, May 31, 2012 9:04 PM
Subject: NullPointerException in EODatabaseContext java



Hi Team,

I have created an enterprise object with one-to-many relationship objects 
associating.  Then in the search page searched for these enterprise 
objects (that has WODisplayGroup), I am able to view the newly created 
object, but when I try to select that object to view the details it is 
generating the following exception.   If I restart the application then I 
am able to view the details of the newly created object without any 
error, or If we try accessing the newly created object after sometime 
(around half an hour later) then without error able to view the object 
details. Otherwise the enterprise object is getting null.


This enterprise object's super class has the database table, and this 
object does not has the database table, it points to the same database 
table of the super class.  And the to-many relationship is existing with 
this enterprise object (sub-class), not the super class.


Any help would be appreciated.

EXCEPTION--
[2012-5-31 8:25:4 EDT] WorkerThread7 java.lang.NullPointerException
  at 
com.webobjects.eoaccess.EODatabaseContext.arrayFaultWithSourceGlobalID(EODatabaseContext.java:3510)
  at 
com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2377)
  at 
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
  at 
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
  at 
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
  at 
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)

  at _StoredDistrictTest.storedTestItems(_StoredDistrictTest.java:33)
  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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
  at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
  at 
com.webobjects.eocontrol.EOCustomObject.valueForKey(EOCustomObject.java:1498)
  at 
com.webobjects.eocontrol.EOCustomObject.eoDescription(EOCustomObject.java:793)
  at 
com.webobjects.eocontrol.EOCustomObject.toString(EOCustomObject.java:299)

  at java.lang.String.valueOf(String.java:2826)
  at java.lang.StringBuilder.append(StringBuilder.java:115)
  at StoredTestListPage.printTestSession(StoredTestListPage.java:276)
  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 
KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
  at 
com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
  at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
  at 
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
  at 
com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
  at 
com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath

Re: ERJaveMail

2012-05-31 Thread Cheong Hee (Gmail)
Serious?  I am actually pulling out the properties file in ERJavaMail, unless 
not the right one or the latest.  Or unless some code in ERJavaMail setting 
the value again.  The framework I am having  is maybe one~two months ago.  
Correct me if wrong..


# *** ERJavaMail settings
# *** Defaults to 'safe' settings:
# ***

# Sometimes when sending big masses of emails, the java virtual machine
# doesn't collects correctly the garbage and needs a little delay
# between each message sending.  Use this option if you have problem with
# memory management
er.javamail.useSenderDelay = false

# This delay is set to 15 milliseconds
er.javamail.senderDelayMillis = 15

# * Default encoding used for ERJavaMail
er.javamail.defaultEncoding = iso-8859-1

# * Enables ERJavaMail to send all the mails to only one destination
# This is useful when debugging
er.javamail.centralize = true

# * Prints javamail debug infos
# It is recommended to activate this switch when there are problems
# with smtp configuration
er.javamail.debugEnabled = false

# * The admin email, this is where centralized mails will go
#er.javamail.adminEmail = u...@domain.com

# * SMTP outbound host
#er.javamail.smtpHost = smtp.domain.com

# Valid ERJavaMail email pattern. If null, then the internal default will be 
used
#er.javamail.emailPattern = ^.*?@.*$

# * Number of messages that the sender queue can hold at a time
er.javamail.senderQueue.size = 50

# * Time to wait when mail sender queue is overflowed
er.javamail.milliSecondsWaitIfSenderOverflowed = 6000

# Used to set a default X-Mailer
#er.javamail.mailer.XMailerHeader = 

# White and black email address patterns
# This can be useful in testing when say
# you only want to allow emails to be sent to *@mycompany.com
# In this case you would add:
# er.javamail.WhiteListEmailAddressPatterns=(*@mycompany.com, 
someb...@mac.com)

# To prevent sending mail to certain addresses you can use the black list
# er.javamail.BlackListEmailAddressPatterns=(*@baddomain.com, 
badper...@mycompany.com)


# * The port to use with the smtp server, if not set, defaults to 25
#er.javamail.smtpPort = 25


  - Original Message - 
  From: Mike Schrag 
  To: Cheong Hee (Gmail) 
  Cc: Ron X ; WebObjects Development 
  Sent: Wednesday, May 30, 2012 6:58 PM
  Subject: Re: ERJaveMail


  Are you sure? I thought that was commented out and says something about using 
the default. I haven't looked at that in forever, but I'm almost positive 
you're not reading.

  Sent from my iPhone

  On May 30, 2012, at 12:33 AM, Cheong Hee \(Gmail\) chn...@gmail.com wrote:


This is only what I got in emailPattern in ERJavaMail properties: ^.*?@.*$

Is this what you are having to as default?

Cheers

  - Original Message - 
  From: Mike Schrag 
  To: Ron X 
  Cc: WebObjects Development 
  Sent: Tuesday, May 29, 2012 9:19 PM
  Subject: Re: ERJaveMail


  my guess is that your regex pattern for er.javamail.emailPattern doesn't 
work. i'm not even going to try debugging that one, though. what's wrong with 
the pattern that's built into erjavamail? 


  On May 29, 2012, at 2:43 AM, Ron X ron.x.by...@gmail.com wrote:


hi,

i have some strange error on application start:

WARN  38.33 MB used/42.73 MB free [ProcessChangesQueue] 
(ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: When 
'er.javamail.centralize' is true (default), all outgoing mails will get sent to 
'er.javamail.adminEmail' instead of the normal TO addresses, but you did not 
provide a valid email for that property.
[2012-5-28 23:40:30 PDT] ProcessChangesQueue 
java.lang.IllegalArgumentException: When 'er.javamail.centralize' is true 
(default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead 
of the normal TO addresses, but you did not provide a valid email for that 
property.
at 
er.javamail.ERJavaMail.initializeFrameworkFromSystemProperties(ERJavaMail.java:132)
at er.javamail.ERJavaMail.finishInitialization(ERJavaMail.java:113)
at 
er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

but i have 

### ERJavaMail
er.javamail.centralize = true
er.javamail.smtpHost = localhost
er.javamail.defaultEncoding = UTF-8
er.javamail.emailPattern = 
^[a-zA-Z0-9!#$%'*+\\-/=?^_`{|}~]+(\\.[a-zA-Z0-9!#$%'*+\\-/=?^_`{|}~]+)*@[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1}((\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1})*\\.[a-zA-Z]{2,6}){1,1}$

er.javamail.adminEmail = admin@localhost.local

in my property file
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your

Re: Wrong CLASSPATH when installing WOApp with WOLips

2012-05-31 Thread Cheong Hee (Gmail)
Suggest you do upgrade to latest WO5.4.3.  This will make your life easier and 
others to chip in, too.

As for the path / or \ you are getting, I have not tried to print it out 
from code.  But I think it should work in windows for both, meaning I have not 
encounter this kind of problem before.

Cheers

  - Original Message - 
  From: Strumyla, Marius 
  To: webobjects-dev@lists.apple.com 
  Sent: Thursday, May 31, 2012 2:11 AM
  Subject: RE: Wrong CLASSPATH when installing WOApp with WOLips


  Cheong, I'm using Windows and WO5.2. I don't have WO5.4. 

  I've done some testing and Eclipse 3.6+WOLips 3.6 does the right thing for 
me. CLSSPATH gets WOROOT and APPROOT in front of libraries:

   

  
WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar

  
WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar

  
WOROOT/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar

  .

   

  I've written a small app

  Properties prop = new Properties();

  WOEnvironment woEnvironment = new WOEnvironment(prop);

  WOVariables woVariables = woEnvironment.getWOVariables();

  System.out.println(WOVariables.SYSTEM_ROOT +  =  + 
woVariables.systemRoot());

  System.out.println(WOVariables.LOCAL_ROOT +  =  + 
woVariables.localRoot());

   

  Running it against woproject.jar from 3.7 gives me:

  wo.system.root = C:\Apple

  wo.local.root = C:\Apple\Local

   

  Running it against woproject.jar from 3.6 gives me:

  wo.system.root = C:/Apple

  wo.local.root = C:/Apple/Local

   

  I'm thinking that these flipping slashes are messing it for me.

  Thanks

  --

  i5mast

   

  From: Cheong Hee (Gmail) [mailto:chn...@gmail.com] 
  Sent: Thursday, May 24, 2012 1:43 AM
  To: Strumyla, Marius; webobjects-dev@lists.apple.com
  Subject: Re: Wrong CLASSPATH when installing WOApp with WOLips

   

  wo.system.root=C\:/Apple

  wo.local.root=C\:/Apple/Local

   

  I have just checked that this is what I am getting too in my windows wolips 
properties file.  So I think your properties file is fine.   May be you could 
try to install your WO54 in a separate new directory and have a clearer class 
path for WO54.

   

  skipped

   

  Cheers

   

  Cheong Hee



--


  ___
  Do not 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/chng34%40gmail.com

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

2012-05-31 Thread Cheong Hee (Gmail)
sorry I am half blind and in too fast to reply... curious the rationale why the 
pattern is not set in the properties file itself.  thanks.

Cheers
  - Original Message - 
  From: Mike Schrag 
  To: Cheong Hee (Gmail) 
  Cc: Ron X ; WebObjects Development 
  Sent: Thursday, May 31, 2012 5:52 PM
  Subject: Re: ERJaveMail


  That line is commented out. The one listed there is not the default. It's in 
code.

  Sent from my iPhone

  On May 31, 2012, at 5:49 AM, Cheong Hee \(Gmail\) chn...@gmail.com wrote:


Serious?  I am actually pulling out the properties file in ERJavaMail, 
unless not the right one or the latest.  Or unless some code in ERJavaMail 
setting the value again.  The framework I am having  is maybe one~two months 
ago.  Correct me if wrong..


# *** ERJavaMail settings
# *** Defaults to 'safe' settings:
# ***

# Sometimes when sending big masses of emails, the java virtual machine
# doesn't collects correctly the garbage and needs a little delay
# between each message sending.  Use this option if you have problem with
# memory management
er.javamail.useSenderDelay = false

# This delay is set to 15 milliseconds
er.javamail.senderDelayMillis = 15

# * Default encoding used for ERJavaMail
er.javamail.defaultEncoding = iso-8859-1

# * Enables ERJavaMail to send all the mails to only one destination
# This is useful when debugging
er.javamail.centralize = true

# * Prints javamail debug infos
# It is recommended to activate this switch when there are problems
# with smtp configuration
er.javamail.debugEnabled = false

# * The admin email, this is where centralized mails will go
#er.javamail.adminEmail = u...@domain.com

# * SMTP outbound host
#er.javamail.smtpHost = smtp.domain.com

# Valid ERJavaMail email pattern. If null, then the internal default will 
be used
#er.javamail.emailPattern = ^.*?@.*$

# * Number of messages that the sender queue can hold at a time
er.javamail.senderQueue.size = 50

# * Time to wait when mail sender queue is overflowed
er.javamail.milliSecondsWaitIfSenderOverflowed = 6000

# Used to set a default X-Mailer
#er.javamail.mailer.XMailerHeader = 

# White and black email address patterns
# This can be useful in testing when say
# you only want to allow emails to be sent to *@mycompany.com
# In this case you would add:
# er.javamail.WhiteListEmailAddressPatterns=(*@mycompany.com, 
someb...@mac.com)

# To prevent sending mail to certain addresses you can use the black list
# er.javamail.BlackListEmailAddressPatterns=(*@baddomain.com, 
badper...@mycompany.com)


# * The port to use with the smtp server, if not set, defaults to 25
#er.javamail.smtpPort = 25


  - Original Message - 
  From: Mike Schrag 
  To: Cheong Hee (Gmail) 
  Cc: Ron X ; WebObjects Development 
  Sent: Wednesday, May 30, 2012 6:58 PM
  Subject: Re: ERJaveMail


  Are you sure? I thought that was commented out and says something about 
using the default. I haven't looked at that in forever, but I'm almost positive 
you're not reading.

  Sent from my iPhone

  On May 30, 2012, at 12:33 AM, Cheong Hee \(Gmail\) chn...@gmail.com 
wrote:


This is only what I got in emailPattern in ERJavaMail properties: 
^.*?@.*$

Is this what you are having to as default?

Cheers

  - Original Message - 
  From: Mike Schrag 
  To: Ron X 
  Cc: WebObjects Development 
  Sent: Tuesday, May 29, 2012 9:19 PM
  Subject: Re: ERJaveMail


  my guess is that your regex pattern for er.javamail.emailPattern 
doesn't work. i'm not even going to try debugging that one, though. what's 
wrong with the pattern that's built into erjavamail? 


  On May 29, 2012, at 2:43 AM, Ron X ron.x.by...@gmail.com wrote:


hi,

i have some strange error on application start:

WARN  38.33 MB used/42.73 MB free [ProcessChangesQueue] 
(ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: When 
'er.javamail.centralize' is true (default), all outgoing mails will get sent to 
'er.javamail.adminEmail' instead of the normal TO addresses, but you did not 
provide a valid email for that property.
[2012-5-28 23:40:30 PDT] ProcessChangesQueue 
java.lang.IllegalArgumentException: When 'er.javamail.centralize' is true 
(default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead 
of the normal TO addresses, but you did not provide a valid email for that 
property.
at 
er.javamail.ERJavaMail.initializeFrameworkFromSystemProperties(ERJavaMail.java:132)
at 
er.javamail.ERJavaMail.finishInitialization(ERJavaMail.java:113)
at 
er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97

Re: ERJaveMail

2012-05-31 Thread Cheong Hee (Gmail)
I do have a more stringent check pattern on email address.   The default one in 
properties file is way to simple.  I will zoom into the code later to see what 
is the difference between these patterns.  thanks.
  - Original Message - 
  From: Mike Schrag 
  To: Cheong Hee (Gmail) 
  Cc: Ron X ; WebObjects Development 
  Sent: Thursday, May 31, 2012 6:54 PM
  Subject: Re: ERJaveMail


  It's arbitrary, I guess. Not much different than defaulting a boolean prop to 
true if it isn't set, which is pretty common. It just happens to have a more 
complex default.

  Sent from my iPhone

  On May 31, 2012, at 5:58 AM, Cheong Hee \(Gmail\) chn...@gmail.com wrote:


sorry I am half blind and in too fast to reply... curious the rationale why 
the pattern is not set in the properties file itself.  thanks.

Cheers
  - Original Message - 
  From: Mike Schrag 
  To: Cheong Hee (Gmail) 
  Cc: Ron X ; WebObjects Development 
  Sent: Thursday, May 31, 2012 5:52 PM
  Subject: Re: ERJaveMail


  That line is commented out. The one listed there is not the default. It's 
in code.

  Sent from my iPhone

  On May 31, 2012, at 5:49 AM, Cheong Hee \(Gmail\) chn...@gmail.com 
wrote:


Serious?  I am actually pulling out the properties file in ERJavaMail, 
unless not the right one or the latest.  Or unless some code in ERJavaMail 
setting the value again.  The framework I am having  is maybe one~two months 
ago.  Correct me if wrong..


# *** ERJavaMail settings
# *** Defaults to 'safe' settings:
# ***

# Sometimes when sending big masses of emails, the java virtual machine
# doesn't collects correctly the garbage and needs a little delay
# between each message sending.  Use this option if you have problem 
with
# memory management
er.javamail.useSenderDelay = false

# This delay is set to 15 milliseconds
er.javamail.senderDelayMillis = 15

# * Default encoding used for ERJavaMail
er.javamail.defaultEncoding = iso-8859-1

# * Enables ERJavaMail to send all the mails to only one destination
# This is useful when debugging
er.javamail.centralize = true

# * Prints javamail debug infos
# It is recommended to activate this switch when there are problems
# with smtp configuration
er.javamail.debugEnabled = false

# * The admin email, this is where centralized mails will go
#er.javamail.adminEmail = u...@domain.com

# * SMTP outbound host
#er.javamail.smtpHost = smtp.domain.com

# Valid ERJavaMail email pattern. If null, then the internal default 
will be used
#er.javamail.emailPattern = ^.*?@.*$

# * Number of messages that the sender queue can hold at a time
er.javamail.senderQueue.size = 50

# * Time to wait when mail sender queue is overflowed
er.javamail.milliSecondsWaitIfSenderOverflowed = 6000

# Used to set a default X-Mailer
#er.javamail.mailer.XMailerHeader = 

# White and black email address patterns
# This can be useful in testing when say
# you only want to allow emails to be sent to *@mycompany.com
# In this case you would add:
# er.javamail.WhiteListEmailAddressPatterns=(*@mycompany.com, 
someb...@mac.com)

# To prevent sending mail to certain addresses you can use the black 
list
# er.javamail.BlackListEmailAddressPatterns=(*@baddomain.com, 
badper...@mycompany.com)


# * The port to use with the smtp server, if not set, defaults to 25
#er.javamail.smtpPort = 25


  - Original Message - 
  From: Mike Schrag 
  To: Cheong Hee (Gmail) 
  Cc: Ron X ; WebObjects Development 
  Sent: Wednesday, May 30, 2012 6:58 PM
  Subject: Re: ERJaveMail


  Are you sure? I thought that was commented out and says something 
about using the default. I haven't looked at that in forever, but I'm almost 
positive you're not reading.

  Sent from my iPhone

  On May 30, 2012, at 12:33 AM, Cheong Hee \(Gmail\) 
chn...@gmail.com wrote:


This is only what I got in emailPattern in ERJavaMail properties: 
^.*?@.*$

Is this what you are having to as default?

Cheers

  - Original Message - 
  From: Mike Schrag 
  To: Ron X 
  Cc: WebObjects Development 
  Sent: Tuesday, May 29, 2012 9:19 PM
  Subject: Re: ERJaveMail


  my guess is that your regex pattern for er.javamail.emailPattern 
doesn't work. i'm not even going to try debugging that one, though. what's 
wrong with the pattern that's built into erjavamail? 


  On May 29, 2012, at 2:43 AM, Ron X ron.x.by...@gmail.com wrote:


hi,

i have some strange error

Re: Wrong CLASSPATH when installing WOApp with WOLips

2012-05-31 Thread Cheong Hee (Gmail)
() );

  String encodedLocalRoot = woVariables.encodePath( 
woVariables.localRoot() );

  System.out.println(Encoded  + WOVariables.SYSTEM_ROOT +  = 
 + encodedSystemRoot);

  System.out.println(Encoded  + WOVariables.SYSTEM_ROOT +  = 
 + encodedLocalRoot);

   

  Running the app above with woproject.jar from 3.7:

  wo.system.root = C:\Apple

  wo.local.root = C:\Apple\Local

  Encoded wo.system.root = C:/Apple

  Encoded wo.system.root = C:/Apple/Local

   

  Running the app with woproject.jar from 3.6:

  wo.system.root = C:/Apple

  wo.local.root = C:/Apple/Local

  Encoded wo.system.root = WOROOT

  Encoded wo.system.root = LOCALROOT

   

  I think I will file a bug on this.

   

  Thanks,
  --

   I5mast

   

  From: Cheong Hee (Gmail) [mailto:chn...@gmail.com] 
  Sent: Thursday, May 31, 2012 5:57 AM
  To: Strumyla, Marius; webobjects-dev@lists.apple.com
  Subject: Re: Wrong CLASSPATH when installing WOApp with WOLips

   

  Suggest you do upgrade to latest WO5.4.3.  This will make your life easier 
and others to chip in, too.

   

  As for the path / or \ you are getting, I have not tried to print it out 
from code.  But I think it should work in windows for both, meaning I have not 
encounter this kind of problem before.

   

  Cheers

   

- Original Message - 

From: Strumyla, Marius 

To: webobjects-dev@lists.apple.com 

Sent: Thursday, May 31, 2012 2:11 AM

Subject: RE: Wrong CLASSPATH when installing WOApp with WOLips

 

Cheong, I'm using Windows and WO5.2. I don't have WO5.4. 

I've done some testing and Eclipse 3.6+WOLips 3.6 does the right thing for 
me. CLSSPATH gets WOROOT and APPROOT in front of libraries:

 


WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar


WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar


WOROOT/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar

.

 

I've written a small app

Properties prop = new Properties();

WOEnvironment woEnvironment = new WOEnvironment(prop);

WOVariables woVariables = woEnvironment.getWOVariables();

System.out.println(WOVariables.SYSTEM_ROOT +  =  + 
woVariables.systemRoot());

System.out.println(WOVariables.LOCAL_ROOT +  =  + 
woVariables.localRoot());

 

Running it against woproject.jar from 3.7 gives me:

wo.system.root = C:\Apple

wo.local.root = C:\Apple\Local

 

Running it against woproject.jar from 3.6 gives me:

wo.system.root = C:/Apple

wo.local.root = C:/Apple/Local

 

I'm thinking that these flipping slashes are messing it for me.

Thanks

--

i5mast

 

From: Cheong Hee (Gmail) [mailto:chn...@gmail.com] 
Sent: Thursday, May 24, 2012 1:43 AM
To: Strumyla, Marius; webobjects-dev@lists.apple.com
Subject: Re: Wrong CLASSPATH when installing WOApp with WOLips

 

wo.system.root=C\:/Apple

wo.local.root=C\:/Apple/Local

 

I have just checked that this is what I am getting too in my windows wolips 
properties file.  So I think your properties file is fine.   May be you could 
try to install your WO54 in a separate new directory and have a clearer class 
path for WO54.

 

skipped

 

Cheers

 

Cheong Hee




___
Do not 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/chng34%40gmail.com

This email sent to chn...@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/chng34%40gmail.com

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

2012-05-30 Thread Cheong Hee (Gmail)
This is only what I got in emailPattern in ERJavaMail properties: ^.*?@.*$

Is this what you are having to as default?

Cheers

  - Original Message - 
  From: Mike Schrag 
  To: Ron X 
  Cc: WebObjects Development 
  Sent: Tuesday, May 29, 2012 9:19 PM
  Subject: Re: ERJaveMail


  my guess is that your regex pattern for er.javamail.emailPattern doesn't 
work. i'm not even going to try debugging that one, though. what's wrong with 
the pattern that's built into erjavamail?


  On May 29, 2012, at 2:43 AM, Ron X ron.x.by...@gmail.com wrote:


hi,

i have some strange error on application start:

WARN  38.33 MB used/42.73 MB free [ProcessChangesQueue] 
(ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: When 
'er.javamail.centralize' is true (default), all outgoing mails will get sent to 
'er.javamail.adminEmail' instead of the normal TO addresses, but you did not 
provide a valid email for that property.
[2012-5-28 23:40:30 PDT] ProcessChangesQueue 
java.lang.IllegalArgumentException: When 'er.javamail.centralize' is true 
(default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead 
of the normal TO addresses, but you did not provide a valid email for that 
property.
at 
er.javamail.ERJavaMail.initializeFrameworkFromSystemProperties(ERJavaMail.java:132)
at er.javamail.ERJavaMail.finishInitialization(ERJavaMail.java:113)
at 
er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

but i have 

### ERJavaMail
er.javamail.centralize = true
er.javamail.smtpHost = localhost
er.javamail.defaultEncoding = UTF-8
er.javamail.emailPattern = 
^[a-zA-Z0-9!#$%'*+\\-/=?^_`{|}~]+(\\.[a-zA-Z0-9!#$%'*+\\-/=?^_`{|}~]+)*@[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1}((\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1})*\\.[a-zA-Z]{2,6}){1,1}$

er.javamail.adminEmail = admin@localhost.local

in my property file
___
Do not 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/mschrag%40pobox.com

This email sent to msch...@pobox.com





--


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

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

2012-05-29 Thread Cheong Hee (Gmail)
This is only what I got in emailPattern in ERJavaMail properties: ^.*?@.*$

Is this what you are having to as default?

Cheers

  - Original Message - 
  From: Mike Schrag 
  To: Ron X 
  Cc: WebObjects Development 
  Sent: Tuesday, May 29, 2012 9:19 PM
  Subject: Re: ERJaveMail


  my guess is that your regex pattern for er.javamail.emailPattern doesn't 
work. i'm not even going to try debugging that one, though. what's wrong with 
the pattern that's built into erjavamail?


  On May 29, 2012, at 2:43 AM, Ron X ron.x.by...@gmail.com wrote:


hi,

i have some strange error on application start:

WARN  38.33 MB used/42.73 MB free [ProcessChangesQueue] 
(ERXNSLogLog4jBridge.java:43)  - A fatal exception occurred: When 
'er.javamail.centralize' is true (default), all outgoing mails will get sent to 
'er.javamail.adminEmail' instead of the normal TO addresses, but you did not 
provide a valid email for that property.
[2012-5-28 23:40:30 PDT] ProcessChangesQueue 
java.lang.IllegalArgumentException: When 'er.javamail.centralize' is true 
(default), all outgoing mails will get sent to 'er.javamail.adminEmail' instead 
of the normal TO addresses, but you did not provide a valid email for that 
property.
at 
er.javamail.ERJavaMail.initializeFrameworkFromSystemProperties(ERJavaMail.java:132)
at er.javamail.ERJavaMail.finishInitialization(ERJavaMail.java:113)
at 
er.extensions.ERXFrameworkPrincipal$Observer.willFinishInitialization(ERXFrameworkPrincipal.java:97)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

but i have 

### ERJavaMail
er.javamail.centralize = true
er.javamail.smtpHost = localhost
er.javamail.defaultEncoding = UTF-8
er.javamail.emailPattern = 
^[a-zA-Z0-9!#$%'*+\\-/=?^_`{|}~]+(\\.[a-zA-Z0-9!#$%'*+\\-/=?^_`{|}~]+)*@[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1}((\\.[a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9]){0,1})*\\.[a-zA-Z]{2,6}){1,1}$

er.javamail.adminEmail = admin@localhost.local

in my property file
___
Do not 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/mschrag%40pobox.com

This email sent to msch...@pobox.com





--


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

  This email sent to chn...@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 CLASSPATH when installing WOApp with WOLips

2012-05-23 Thread Cheong Hee (Gmail)
wo.system.root=C\:/Apple

wo.local.root=C\:/Apple/Local

 


I have just checked that this is what I am getting too in my windows wolips 
properties file.  So I think your properties file is fine.   May be you could 
try to install your WO54 in a separate new directory and have a clearer class 
path for WO54.

A sample of CLSSPATH you should get is as the following:

# JVM  == java
# JVMOptions   == 
# JDB  == jdb
# JDBOptions   == 
# ApplicationClass == com.rhino.app.teamconnect.Application

APPROOT\Resources\Java\
APPROOT\Resources\Java\teamconnectmain.jar

APPROOT/Frameworks/RSCoreSecurity.framework/Resources/Java/rscoresecurity.jar
APPROOT/Frameworks/RSCoreBusinessForTC.framework/Resources/Java/rscorebusinessfortc.jar
APPROOT/Frameworks/RSLicenseValidatorForTC.framework/Resources/Java/rslicensevalidatorfortc.jar
APPROOT/Frameworks/TeamConnectReport.framework/Resources/Java/teamconnectreport.jar
APPROOT/Frameworks/TeamConnectBusinessForSales.framework/Resources/Java/teamconnectbusinessforsales.jar
APPROOT/Frameworks/TeamConnectBusinessForWOS.framework/Resources/Java/teamconnectbusinessforwos.jar
APPROOT/Frameworks/TeamConnectBusiness.framework/Resources/Java/teamconnectbusiness.jar
APPROOT/Frameworks/TeamConnectBusinessForPM.framework/Resources/Java/teamconnectbusinessforpm.jar
APPROOT/Frameworks/RSMainXtensionForTC.framework/Resources/Java/rsmainxtensionfortc.jar
APPROOT/Frameworks/TeamConnectLibrary.framework/Resources/Java/teamconnectlibrary.jar
APPROOT/Frameworks/TeamConnectLibrary.framework/Resources/Java/jcommon-1.0.10.jar
APPROOT/Frameworks/TeamConnectLibrary.framework/Resources/Java/jfreechart-1.0.6-experimental.jar
APPROOT/Frameworks/TeamConnectLibrary.framework/Resources/Java/jfreechart-1.0.6-swt.jar
APPROOT/Frameworks/TeamConnectLibrary.framework/Resources/Java/jfreechart-1.0.6.jar
APPROOT/Frameworks/TeamConnectLibrary.framework/Resources/Java/mysql-connector-java-3.1.13-bin.jar
WOROOT/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
WOROOT/Library/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
WOROOT/Library/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
WOROOT/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
WOROOT/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
WOROOT/Library/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
WOROOT/Library/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
WOROOT/Library/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar
WOROOT/Library/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
WOROOT/Library/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
WOROOT/Library/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar
WOROOT/Library/Frameworks/JavaWOExtensions.framework/WebServerResources/Java/JavaWOExtensions.jar

Cheers

Cheong Hee
 ___
Do not 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: 5.4.3 on Windows

2012-05-08 Thread Cheong Hee (Gmail)

Hi

Not seen before.  May be you should look at web server config file.

Cheers

Cheong Hee

- Original Message - 
From: doug andrews dandr...@mediaspansoftware.com

To: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Monday, May 07, 2012 11:53 PM
Subject: 5.4.3 on Windows



___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: Dev on Win ... deploy on *NIX and/or Mac

2012-04-29 Thread Cheong Hee (Gmail)

Hi Robert

This is a sample from what I am getting in UNIXClassPath during the last 
built (wolips 3.6).  I'd need to gen again using wolips 3.7 though.


# JVM  == java
# JVMOptions   ==
# JDB  == jdb
# JDBOptions   ==
# ApplicationClass == com.rhino.app.Application

APPROOT/Resources/Java/
APPROOT/Resources/Java/fssmain.jar

APPROOT/Frameworks/FSSSecurity.framework/Resources/Java/fsssecurity.jar
APPROOT/Frameworks/FSSBusiness.framework/Resources/Java/fssbusiness.jar
APPROOT/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
APPROOT/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
APPROOT/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
APPROOT/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
APPROOT/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
APPROOT/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
APPROOT/Frameworks/JavaWOJSPServlet.framework/Resources/Java/javawojspservlet.jar

Is this what you are getting or something else?

Cheers

Cheong Hee

- Original Message - 
From: Robert B. Hanviriyapunt roberth...@mac.com

To: WebObjects Development Webobjects-dev@lists.apple.com
Sent: Sunday, April 29, 2012 10:55 AM
Subject: Dev on Win ... deploy on *NIX and/or Mac



Anybody build on Windows for deployment on UNIX or Mac?

I have issues with the final WOA having windows paths in the Mac or Unix 
classpath files (instead of the the correct APPROOT variable).


Any fix for this?

= 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/chng34%40gmail.com

This email sent to chn...@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 Components, or better DynamicElements - CCGoogleMap andCCGoogleMapMarker

2012-04-25 Thread Cheong Hee (Gmail)
Hi Amedeo

Great and neat demo!  Thanks.

Cheers

Cheong Hee
  - Original Message - 
  From: Amedeo Mantica 
  To: WebObjects-Dev Mailing List 
  Sent: Tuesday, April 24, 2012 1:32 AM
  Subject: new Components, or better DynamicElements - CCGoogleMap 
andCCGoogleMapMarker


  Hello,


  I added two now DynamicElements to ERCoolComponents, i did pull request, so 
they are still not available


  they are replacement for AjaxGMap and AjaxGMapMarket because they are now old 
and rely on Google Maps API V2


  the new ones are:


  CCGoogleMap and CCGoogleMapMarker


  They are documented and have practically the same bindings of old Components


  My work is based on INGoogleMap.js (that is mine too), you can see a demo 
(pure html/js) on:


  INGoogleMap.js do not use Prototype, jQuery, or any other lib, so is conflict 
free


  http://staging.insigno.net/LAB/GoogleMapTest.html




  Amedeo





  -
  Amedeo Mantica
  Insigno Design Studio
  ITALY
  http://www.insigno.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/chng34%40gmail.com

  This email sent to chn...@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 Components, or better DynamicElements - CCGoogleMap andCCGoogleMapMarker

2012-04-25 Thread Cheong Hee (Gmail)
Hi Amedeo

Yeah, it is working with plain html/css/js without wo.  I could run it stand 
alone and taking it to component-based will making our life easier.

Cheers

Cheong Hee  
  - Original Message - 
  From: Amedeo Mantica 
  To: Cheong Hee (Gmail) 
  Cc: WebObjects-Dev Mailing List 
  Sent: Wednesday, April 25, 2012 5:00 PM
  Subject: Re: new Components, or better DynamicElements - CCGoogleMap 
andCCGoogleMapMarker


  Hi,


  The demo in about INGoogleMap.js without wo. But with wo in much more easy. 
Bindings in are commented in javadocs

  Sent from my iPhone

  On 25/apr/2012, at 10:52, Cheong Hee (Gmail) chn...@gmail.com wrote:


Hi Amedeo

Great and neat demo!  Thanks.

Cheers

Cheong Hee
  - Original Message - 
  From: Amedeo Mantica 
  To: WebObjects-Dev Mailing List 
  Sent: Tuesday, April 24, 2012 1:32 AM
  Subject: new Components, or better DynamicElements - CCGoogleMap 
andCCGoogleMapMarker


  Hello, 


  I added two now DynamicElements to ERCoolComponents, i did pull request, 
so they are still not available


  they are replacement for AjaxGMap and AjaxGMapMarket because they are now 
old and rely on Google Maps API V2


  the new ones are:


  CCGoogleMap and CCGoogleMapMarker


  They are documented and have practically the same bindings of old 
Components


  My work is based on INGoogleMap.js (that is mine too), you can see a demo 
(pure html/js) on:


  INGoogleMap.js do not use Prototype, jQuery, or any other lib, so is 
conflict free


  http://staging.insigno.net/LAB/GoogleMapTest.html




  Amedeo





  -
  Amedeo Mantica
  Insigno Design Studio
  ITALY
  http://www.insigno.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/chng34%40gmail.com

  This email sent to chn...@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 Components, or better DynamicElements - CCGoogleMap andCCGoogleMapMarker

2012-04-25 Thread Cheong Hee (Gmail)
Thanks for keeping informed and updated. 
Will wait and see when it is integrated..

  - Original Message - 
  From: Amedeo Mantica 
  To: Cheong Hee (Gmail) 
  Cc: WebObjects-Dev Mailing List 
  Sent: Wednesday, April 25, 2012 5:47 PM
  Subject: Re: new Components, or better DynamicElements - CCGoogleMap 
andCCGoogleMapMarker


  There are CCGoogleMap and CCGoogleMapMarker components (DynamicElements) in 
the Wonder/Integration branch. I also just did commit a small update in my 
fork. Would be available soon

  Sent from my iPhone

  On 25/apr/2012, at 11:09, Cheong Hee (Gmail) chn...@gmail.com wrote:


Hi Amedeo

Yeah, it is working with plain html/css/js without wo.  I could run it 
stand alone and taking it to component-based will making our life easier.

Cheers

Cheong Hee  
  - Original Message - 
  From: Amedeo Mantica 
  To: Cheong Hee (Gmail) 
  Cc: WebObjects-Dev Mailing List 
  Sent: Wednesday, April 25, 2012 5:00 PM
  Subject: Re: new Components, or better DynamicElements - CCGoogleMap 
andCCGoogleMapMarker


  Hi,


  The demo in about INGoogleMap.js without wo. But with wo in much more 
easy. Bindings in are commented in javadocs

  Sent from my iPhone

  On 25/apr/2012, at 10:52, Cheong Hee (Gmail) chn...@gmail.com wrote:


Hi Amedeo

Great and neat demo!  Thanks.

Cheers

Cheong Hee
  - Original Message - 
  From: Amedeo Mantica 
  To: WebObjects-Dev Mailing List 
  Sent: Tuesday, April 24, 2012 1:32 AM
  Subject: new Components, or better DynamicElements - CCGoogleMap 
andCCGoogleMapMarker


  Hello, 


  I added two now DynamicElements to ERCoolComponents, i did pull 
request, so they are still not available


  they are replacement for AjaxGMap and AjaxGMapMarket because they are 
now old and rely on Google Maps API V2


  the new ones are:


  CCGoogleMap and CCGoogleMapMarker


  They are documented and have practically the same bindings of old 
Components


  My work is based on INGoogleMap.js (that is mine too), you can see a 
demo (pure html/js) on:


  INGoogleMap.js do not use Prototype, jQuery, or any other lib, so is 
conflict free


  http://staging.insigno.net/LAB/GoogleMapTest.html




  Amedeo





  -
  Amedeo Mantica
  Insigno Design Studio
  ITALY
  http://www.insigno.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/chng34%40gmail.com

  This email sent to chn...@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: preventing direct component access

2012-04-10 Thread Cheong Hee (Gmail)

Hi Patrick

The rationale I am asking is the way web technology is, I think we may not 
be able to block the arbitrary access of web pages.  However, if we could 
use user authentication as a way to check, terminate the unwanted sessions 
and redirect to another stateless page, the impacts could be reduced. 
Correct me if wrong..


Cheers

Cheong Hee

- Original Message - 
From: Cheong Hee (Gmail) chn...@gmail.com

To: Patrick Robinson p...@vt.edu
Cc: WebObjects-Dev Mailing List webobjects-dev@lists.apple.com
Sent: Tuesday, April 10, 2012 12:53 PM
Subject: Re: preventing direct component access



Hi Patrick

This is an interesting old issue.  Just curious, what will be your 
ultimate ideal resolution to this?  Bar the access of the page, or reduce 
the redundant sessions creation or something else ...


Cheers

Cheong Hee

- Original Message - 
From: Patrick Robinson p...@vt.edu

To: Amedeo Mantica amedeomant...@me.com
Cc: WebObjects-Dev Mailing List webobjects-dev@lists.apple.com
Sent: Tuesday, April 10, 2012 4:52 AM
Subject: Re: preventing direct component access


That code represents the per-app version of the conventional wisdom 
that I started out questioning, below.  The problem with this is that the 
user can specifiy a senderID (as in the URL I gave there), and then 
senderID() will *not* return null; in the case below, it'll be 99.



On Apr 9, 2012, at 4:48 PM, Amedeo Mantica wrote:


Try this in your Application.java:

public WOComponent pageWithName(String pageName, WOContext context)
{
if((context.senderID()==null)(componentRequestHandlerKey().equals(context.request().requestHandlerKey(
{
log.error(Direct Access attempt);
pageName=Main;
}
return super.pageWithName(pageName, context);

}



On 09/apr/2012, at 21:59, Mike Schrag wrote:

Yeah, you're right ... might be kind of a pain in the butt to fix 
without hackery then :)


On Apr 9, 2012, at 3:41 PM, Patrick Robinson wrote:

But it doesn't even have to have the .wo on the end of the page name 
for this hack to work.  If the app has a SecretPage.wo component, 
then a URL like this will instantiate and return it:


https://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/wo/SecretPage//88.99

- Patrick


On Apr 9, 2012, at 10:10 AM, Mike Schrag wrote:

probably just catch any time you have a .wo in your URL and throw 
... you could do it in the url rewriter or something. i don't think 
there's ever any reason to have a .wo reference in a normal app.


ms

On Apr 9, 2012, at 10:00 AM, Patrick Robinson wrote:


Yeah, that _does_ sound rather annoying!  :-P

Is there a perhaps less-annoying way to approximate similar 
behavior?



On Apr 5, 2012, at 2:46 PM, Mike Schrag wrote:

I changed this in WO core, and unfortunately it's kind of annoying 
to fix without some hackery, but in WOComponentRequestHandler, 
there's a static method requestHandlerValuesForRequest ... That 
dictionary has a key named wopage in it. If you did some class 
rewriting (with like gluonj or something), you could change that 
static method to remove the wopage key ... That MIGHT be enough to 
do it.


On Apr 5, 2012, at 2:39 PM, Patrick Robinson wrote:

I've stumbled across a wrinkle re: what I had assumed to be the 
conventional wisdom for preventing direct access to component 
pages via URLs like the following:


http://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/-9876/wo/SecretPage.wo

It's an old, old WO problem, and I'm wondering what other people 
do to handle it.


I've always figured the best idea is to just configure the web 
server to catch WO URLs that end in /wo/(.+)\.wo and rewrite or 
redirect them.  Another potential approach is to try to recognize 
and catch such requests in the app itself, somewhere like the 
Application class's pageWithName.  The problem is, these solutions 
don't catch all the sneaky ways of slipping in a back door.


Consider:

http://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/-9876/wo/SecretPage.wo//1.2

This ends up with Application's pageWithName trying to create a 
page with the name SecretPage.  A new session has already been 
created somewhere down inside the component request handler, it'll 
have a WOContext with a contextID of 0, and the senderID will be 
2. You'd be hard-pressed to know that you shouldn't allow the page 
creation to proceed.


You could try to change the web server's search pattern to also 
catch a slash followed by more characters after the .wo, but 
you'd have to be careful not to disallow sessionIDs that just 
happen to end in wo.  And even if you could reliably block the 
above, the hacker could try this:


http://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/-9876/wo/SecretPage.wox//1.2 
(that is, add more characters after the .wo)


Now that doesn't fit the pattern at all, and gets hung up in the 
Application's pageWithName, where a way-too-informative 
WOPageNotFoundException is thrown.  Of course, you'd catch that 
somewhere like handleException().  Doesn't quite seem like

Re: preventing direct component access

2012-04-09 Thread Cheong Hee (Gmail)

Hi Patrick

This is an interesting old issue.  Just curious, what will be your ultimate 
ideal resolution to this?  Bar the access of the page, or reduce the 
redundant sessions creation or something else ...


Cheers

Cheong Hee

- Original Message - 
From: Patrick Robinson p...@vt.edu

To: Amedeo Mantica amedeomant...@me.com
Cc: WebObjects-Dev Mailing List webobjects-dev@lists.apple.com
Sent: Tuesday, April 10, 2012 4:52 AM
Subject: Re: preventing direct component access


That code represents the per-app version of the conventional wisdom that 
I started out questioning, below.  The problem with this is that the user 
can specifiy a senderID (as in the URL I gave there), and then 
senderID() will *not* return null; in the case below, it'll be 99.



On Apr 9, 2012, at 4:48 PM, Amedeo Mantica wrote:


Try this in your Application.java:

public WOComponent pageWithName(String pageName, WOContext context)
{
if((context.senderID()==null)(componentRequestHandlerKey().equals(context.request().requestHandlerKey(
{
log.error(Direct Access attempt);
pageName=Main;
}
return super.pageWithName(pageName, context);

}



On 09/apr/2012, at 21:59, Mike Schrag wrote:

Yeah, you're right ... might be kind of a pain in the butt to fix 
without hackery then :)


On Apr 9, 2012, at 3:41 PM, Patrick Robinson wrote:

But it doesn't even have to have the .wo on the end of the page name 
for this hack to work.  If the app has a SecretPage.wo component, 
then a URL like this will instantiate and return it:


https://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/wo/SecretPage//88.99

- Patrick


On Apr 9, 2012, at 10:10 AM, Mike Schrag wrote:

probably just catch any time you have a .wo in your URL and throw 
... you could do it in the url rewriter or something. i don't think 
there's ever any reason to have a .wo reference in a normal app.


ms

On Apr 9, 2012, at 10:00 AM, Patrick Robinson wrote:


Yeah, that _does_ sound rather annoying!  :-P

Is there a perhaps less-annoying way to approximate similar behavior?


On Apr 5, 2012, at 2:46 PM, Mike Schrag wrote:

I changed this in WO core, and unfortunately it's kind of annoying 
to fix without some hackery, but in WOComponentRequestHandler, 
there's a static method requestHandlerValuesForRequest ... That 
dictionary has a key named wopage in it. If you did some class 
rewriting (with like gluonj or something), you could change that 
static method to remove the wopage key ... That MIGHT be enough to 
do it.


On Apr 5, 2012, at 2:39 PM, Patrick Robinson wrote:

I've stumbled across a wrinkle re: what I had assumed to be the 
conventional wisdom for preventing direct access to component pages 
via URLs like the following:


http://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/-9876/wo/SecretPage.wo

It's an old, old WO problem, and I'm wondering what other people do 
to handle it.


I've always figured the best idea is to just configure the web 
server to catch WO URLs that end in /wo/(.+)\.wo and rewrite or 
redirect them.  Another potential approach is to try to recognize 
and catch such requests in the app itself, somewhere like the 
Application class's pageWithName.  The problem is, these solutions 
don't catch all the sneaky ways of slipping in a back door.


Consider:

http://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/-9876/wo/SecretPage.wo//1.2

This ends up with Application's pageWithName trying to create a 
page with the name SecretPage.  A new session has already been 
created somewhere down inside the component request handler, it'll 
have a WOContext with a contextID of 0, and the senderID will be 2. 
You'd be hard-pressed to know that you shouldn't allow the page 
creation to proceed.


You could try to change the web server's search pattern to also 
catch a slash followed by more characters after the .wo, but 
you'd have to be careful not to disallow sessionIDs that just 
happen to end in wo.  And even if you could reliably block the 
above, the hacker could try this:


http://myhost.mydomain/cgi-bin/WebObjects/MyApp.woa/-9876/wo/SecretPage.wox//1.2 
(that is, add more characters after the .wo)


Now that doesn't fit the pattern at all, and gets hung up in the 
Application's pageWithName, where a way-too-informative 
WOPageNotFoundException is thrown.  Of course, you'd catch that 
somewhere like handleException().  Doesn't quite seem like the 
right approach, either.


My point here is, there are more ways of hacking a WebObjects URL 
than I had previously considered.  Does anyone have what they 
consider to be an ironclad solution to this problem?


(I hate it when I discover stuff I thought I had dealt with 10 
years ago is still biting me.)


- Patrick


___
Do not 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/mschrag%40pobox.com

Re: Optimizing EOF Applications - what does this mean to you?

2012-04-03 Thread Cheong Hee Ng
Congratulations DD - Dr Dan.  Possibly let me know the release date of IEEE
journal.  I do hope to circular this good piece of info to key
personnels of local University, so to increase the awareness of wo.  By
practice, I was a EE too and a member of IEM.

Cheers

Cheong Hee

On Wed, Apr 4, 2012 at 11:31 AM, Alexis Tual alexis.t...@gmail.com wrote:

 Congratulations Dan, looking forward to read your paper !

 Great ideas already mentionned, also :
 - Fetching raw rows (using traditionnal fetchspec or own sql)
 - Converting raw rows to eos efficiently
 - Design : don't model big bi-directional to-many relationships
 - Caching : EOSharedEditingContext (don't use it ?) /
 ERXEnterpriseObjectCache
 - How to detect performance problem (may be out of topic) : ERProfiling,
 er.extensions.ERXAdaptorChannelDelegate.enabled...

 Thanks Chuck

 2012/4/4 Daniel Beatty danielbea...@mac.com

  Greetings Chuck,
 It is Dr., although, it becomes official on May 11th.  The ITNG poster
 paper will be presented at the end of the month.  The globe paper is under
 review, I expect to present it in December.  The IEEE Journal pub is also
 under review. I expect the journal to go out some time this Summer.  Since
 the dissertation has all three included, in dissertation form, I can
 provide a copy before the Texas system makes it publicly available.

 Dan

 Sent from my iPhone

 On Apr 3, 2012, at 1:25 PM, Chuck Hill ch...@global-village.net wrote:

  Hi Dan,
 
  Or is that Dr. Beatty now?  :-)  Are those papers publicly available?
 
  I'd be honored to be mentioned in your dissertation.
 
 
  Cheers,
  Chuck
 
 
  On 2012-04-03, at 1:22 PM, Daniel Beatty wrote:
 
  Greetings Pascal,
  You know, I need to pay more attention to those surveys.  I just
 published three papers on that very subject.I suppose my papers may be
 contributing to a popularity wave of WO, don't we wish.
 
  Of course, I am anxious to hear Chuck's version of it.  There is a lot
 about Wonder, and I seem to always have just the tip of the iceberg.
 
  Dan
 
  One thing I would like to ask you and Chuck.  Would either of you mind
 being mentioned by name in the acknowledgements in my dissertation?  I am
 about to finish publishing it, and it is already defended.  It would mean a
 lot for me to give thanks to those helped me on this remarkable journey.
 
  Sent from my iPad
 
  On Apr 3, 2012, at 12:41 PM, Pascal Robert prob...@macti.ca wrote:
 
  Using the cache correctly (to make less requests to backend)
  Dealing with mass fetching/updates/deletes
  Design (for example: having BLOG columns in a separate table)
 
  Hi,
 
  My topic for WOWODC this year is EOF Optimization.  This was chosen
 based on frequent requests in the yearly surveys.  I do have some things to
 address, but I would really like to hear what YOU are interested in for
 YOUR projects.  Please let me know and I will try my best to accommodate
 all requests.
 
  Thanks,
 
  Chuck
 
  --
  Chuck Hill Senior Consultant / VP Development
 
  Practical WebObjects - for developers who want to increase their
 overall knowledge of WebObjects or who are trying to solve specific
 problems.
  http://www.global-village.net/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/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/danielbeatty%40mac.com
 
  This email sent to danielbea...@mac.com
 
  --
  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/alexis.tual%40gmail.com

 This email sent to alexis.t...@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/chng34%40gmail.com

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


 ___
Do not post admin requests

Re: WO 5.4.3 custom launch on Windows - help needed

2012-04-01 Thread Cheong Hee (Gmail)

Hi Helmut

Fyi, since day one of WO or YellowBox, th spaces in the path name should be 
avoided as number one issue in windows platform.  This is a common issue and 
I did added into wiki the last time.


Cheers

Cheong Hee

- Original Message - 
From: Helmut Tschemernjak hel...@helios.de

To: webobjects-dev@lists.apple.com
Sent: Monday, April 02, 2012 3:44 AM
Subject: Re: WO 5.4.3 custom launch on Windows - help needed




Update on the issue, I figured out that the WOBootstrap class installs a 
new URLClassLoader which uses file://paths to the WO runtime jars and 
launches the final WO App via the new the new classLoader and finally 
invokes the Application class.


Maybe this is what needs to be done to overcome the problem.

On 01.04.12 09:22, Johann Werner wrote:

Hi Helmut,

I am no expert in Windows deployment but on the list there were several 
posts that did point to a problem with application paths containing 
spaces. You should move your app out of C:\Program Files (x86)\ and check 
if that resolves your problem.


jw


Am 31.03.2012 um 22:06 schrieb Helmut Tschemernjak:



I am working on a custom JNI launch executable for our WO app. On UNIX 
it works but on Windows I still have problems. I don't use the 
WOBootstrap.jar. It looks like the WOResourceManager cannot load the 
MIME.plist and the WO startup fails.


Below are my used properties and the error output. I tried absolute path 
to the the WO jars and relative path, no success. Our app has also a 
MIME.plist in Contents/Resources/


Any ideas what property is missing or wrong, thank you for your help.

Regards Helmut


addOption: -Xms32m
addOption: -Xmx256m
addOption: -Xrs
addOption: -DWOPlatform=HELIOS
addOption: -DHELIOSDIR=C:\Program Files (x86)\Helios
addOption: -Dcom.webobjects.pid=3180
addOption: -DWORootDirectory=
addOption: -DWOLocalRootDirectory=
addOption: -DWOUserDirectory=C:\Program Files 
(x86)\Helios\var\run\webshare.woa

addOption: 
-Djava.class.path=Contents\Resources\Java\webshare.jar;..\WebObjects\JavaFoundation.jar;..\WebObjects\JavaWebObjects.jar;..\WebObjects\JavaXML.jar;..\WebObjects\JavaWOExtensions.jar;..\WebObjects\JavaEOControl.jar;..\WebObjects\JavaEOAccess.jar

[2012-3-31 21:28:28 MESZ]main  WOResourceManager  Unable to locate 
the JavaWebObjects bundle
[2012-3-31 21:28:28 MESZ]main  Unable to initialize WOProperties for 
reason: Cannot find JavaWebObjects framework ! 
java.lang.IllegalStateException: Unable to locate the JavaWebObjects 
bundle
[2012-3-31 21:28:28 MESZ]main  A fatal exception 
occurred:WOApplication: Cannot be initialized.
[2012-3-31 21:28:28 MESZ]main 
com.webobjects.foundation.NSForwardException 
[java.lang.IllegalStateException] Unable to locate the JavaWebObjects 
bundle:WOApplication: Cannot be initialized.

at com.webobjects.appserver.WOApplication.init(WOApplication.java:918)
at de.helios.webshare.Application.init(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at de.helios.webshare.Application.main(Unknown Source)
Caused by: java.lang.IllegalStateException: Unable to locate the 
JavaWebObjects bundle
at 
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:131)
at 
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
at 
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)

at com.webobjects.appserver.WOApplication.init(WOApplication.java:779)
... 9 more




My var/run/WebObjects directory includes the following WO runtime jars. 
The jars are extracted from an 5.4.3 .war file. Again on several UNIX 
platforms it works fine on Windows I miss something.


-rw-r--r--  1 root  wheel   342441 17 Feb 16:08 JavaEOAccess.jar
-rw-rw-r--  1 root  wheel   272836 17 Feb 16:08 JavaEOControl.jar
-rw-rw-r--  1 root  wheel   699806 17 Feb 16:08 JavaFoundation.jar
-rw-rw-r--  1 root  wheel   199189 17 Feb 16:08 JavaWOExtensions.jar
-rw-rw-r--  1 root  wheel   825068 17 Feb 16:08 JavaWebObjects.jar
-rw-rw-r--  1 root  wheel  6978345 17 Feb 16:08 JavaXML.jar







--
best regards / mit freundlichen Gruessen,

Helmut Tschemernjak


HELIOS Software GmbH
Steinriede 3
30827 Garbsen
Phone:+49-5131-709320
Fax: +49-5131-709325
Internet Mail: hel...@helios.de
Internet  Web: http://www.helios.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/chng34

Re: Apple and WO (Google Moderator thread)

2012-03-29 Thread Cheong Hee (Gmail)
I hope my _weak_reference_ voice could be heard. I am not as outspoken as 
one of mr davids : )


To grow the community, especially getting new wo developers, we may need to 
have a different approach.  From personal observation, I do notice that new 
developers are going to php, phyton etc because they need to maintain open 
source application.  So my question to the floor is - have we thought before 
to create an open source application that could made popular and showcase to 
the world the strengths of wo?  It should be easy to be downloaded and 
deployed with good documentation.  I would think once we have this, the new 
comers will be more energetic to start going into customization and learning 
curve.  Is it possible to put our gurus under one roof and make it happens? 
This is just my low low 2 cts though i always think we should try a 
different path a long the line.


Cheers

Cheong Hee 


___
Do not 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: Opening multiple database channels

2012-03-22 Thread Cheong Hee (Gmail)

Hi Ramsey

To get a new database channel, you can initiate a new OSC and get a new 
access layer stack.  This has to be done at session constructor, for after 
which, you will not be able to get the new database channel.  Putting aside 
the argument whether it is necessary or good design or not, it works.  If I 
could remember, this is also mentioned in the WO legacy documentation.


Cheers

Cheong Hee

- Original Message - 
From: Ramsey Gurley ramseygur...@gmail.com

To: WebObjects Development webobjects-dev@lists.apple.com
Sent: Friday, March 23, 2012 10:34 AM
Subject: Opening multiple database channels



Hi all,

I'm looking at trying to open multiple database channels in a single 
instance of a WO app. No reason, just wondering if it can be done.  I know 
there's ERXObjectStoreCoordinator pool, but this conceptually seems like 
the wrong way to do it.  Maybe I want 4 open connections for one database, 
but only one on another… whatever.  So I have a look at


https://developer.apple.com/legacy/mac/library/documentation/WebObjects/Enterprise_Objects/Connecting/Connecting.html#//apple_ref/doc/uid/TP30001011-CH210-TPXREF145

and this seems to be the answer to my question.  Well, until I try it. It 
turns out that inside of objectsWithFetchSpec on EOEditingContext, the 
objectstore is locked before a fetch takes place. As a result, no other 
fetch can proceed until the object store is unlocked.  The answer seemed 
suspicious in the fact that it's being done on the Session anyway...


So, I guess my question boils down to… is it even possible? Is this the 
'single EOF lock' that Chuck Hill and Ravi Mendis were referring to in a 
previous list message?


Thanks,

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

This email sent to chn...@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: Opening multiple database channels

2012-03-22 Thread Cheong Hee (Gmail)

I may be naive ..
How about a shared application instance for different companies that 
required their own database?  Multi OSC seemed to be the one solution, i 
think.


- Original Message - 
From: Mike Schrag msch...@pobox.com

To: Chuck Hill ch...@global-village.net
Cc: WebObjects Development webobjects-dev@lists.apple.com
Sent: Friday, March 23, 2012 11:06 AM
Subject: Re: Opening multiple database channels



Yeah, and you're already inside the lock at that point.

ms

On Mar 22, 2012, at 11:04 PM, Chuck Hill wrote:

I can only see them being of use in a very, very narrow set of 
circumstances - none of which I have ever been in (like fetching inside 
of awakeFromFetch).  The only situation in which I have seen EOF attempt 
to open a second was in response to a bug.  :-)



Chuck


On 2012-03-22, at 8:02 PM, Mike Schrag wrote:

yeah, having multiple channels has to be locked by the store, because 
they are sharing a common set of snapshots ... you need multiple OSC's 
if you want multithreading. the only thing multiple channels is going to 
give you is headaches, it seems like.


ms

On Mar 22, 2012, at 10:53 PM, Chuck Hill wrote:

OK, so... my first question has to be what is your goal?  What are you 
trying to accomplish?  This is NOT going to make EOF multi-threaded.



Chuck


On 2012-03-22, at 7:34 PM, Ramsey Gurley wrote:


Hi all,

I'm looking at trying to open multiple database channels in a single 
instance of a WO app. No reason, just wondering if it can be done.  I 
know there's ERXObjectStoreCoordinator pool, but this conceptually 
seems like the wrong way to do it.  Maybe I want 4 open connections 
for one database, but only one on another… whatever.  So I have a look 
at


https://developer.apple.com/legacy/mac/library/documentation/WebObjects/Enterprise_Objects/Connecting/Connecting.html#//apple_ref/doc/uid/TP30001011-CH210-TPXREF145

and this seems to be the answer to my question.  Well, until I try it. 
It turns out that inside of objectsWithFetchSpec on EOEditingContext, 
the objectstore is locked before a fetch takes place. As a result, no 
other fetch can proceed until the object store is unlocked.  The 
answer seemed suspicious in the fact that it's being done on the 
Session anyway...


So, I guess my question boils down to… is it even possible? Is this 
the 'single EOF lock' that Chuck Hill and Ravi Mendis were referring 
to in a previous list message?


Thanks,

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:
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/mschrag%40pobox.com

This email sent to msch...@pobox.com




--
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/chng34%40gmail.com

This email sent to chn...@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: merging databases

2012-03-15 Thread Cheong Hee (Gmail)

Hi Jeff

I think you will need to watch out primary key collision.  Even both have 
identical schema, they have their own eo_pk_table.  If you were to export 
and import into another database, the pk may be duplicated,  unless you have 
a unique primary key generation that takes care of this.  Then its 
relationships and possibly template tables.  Just my 2c.


Cheers

Cheong Hee

- Original Message - 
From: Jeffrey Schmitz j...@netbrackets.com

To: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Thursday, March 15, 2012 2:04 PM
Subject: merging databases



Hello again,
  This is a more general question.  If you need to merge a set of data 
from one webobjects database into another that has an identical schema, 
what would be the best way to go about it?  Export to XML and import it 
back in?  Or is there a slicker way?  Basically there is one top level 
object that is represented in two databases, but underneath there all is 
different.  I'd like to get them combined into one database.


Thanks!
Jeff
___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: More Help for Old Noobie

2012-02-16 Thread Cheong Hee (Gmail)
I may check the file encoding by Preferences -Workspace, and look at Text file 
encoding.   And may look at Main.woo, too.
The other thing is if there is any compilation problems :)


  - Original Message - 
  From: Jerry W. Walker 
  To: WebObjects Development 
  Sent: Friday, February 17, 2012 1:30 AM
  Subject: More Help for Old Noobie


  Hi,


  I'm getting an Unable to create page 'Main'. message when trying to run my 
first created test app.


  I created a new application:


1. Chose New-Project from the context menu in WO Explorer view of the 
WOLips perspective.


2. Selected WOLips-WebObjects Application in the New Project wizard and 
clicked Next.


3. Named the project WOTest, used the default location and clicked Finish.


4. Opened the project in the WO Explorer view, opened Sources-your.app and 
selected Application.java.


5. From the context menu on that selection, I chose Run as-WOApplication.


  The project started up normally, then displayed a web exception page with the 
message:


   Application: JavaFoundation
   Error: com.webobjects.appserver.WOPageNotFoundException exception
   Reason:
   com.webobjects.appserver.WOPageNotFoundException: 
your.app.Application: Unable to create page 'Main'.



  In the WOTest project I created, there is a 
Sources-your.app.components-Main.java which contains the code I want (from 
the template, I assume). I made no changes to the generated code.


  There is also a Components-Main WO which, when clicked, shows:


Main.html
Main.java
Main.wod
Main.woo
Main.api
Main.wo


  in the WOLips Related view (as expected).


  So, what must I do to get Eclipse/WOLips to recognize the Main.wo component 
that it created?


  Regards,
  Jerry






--


  ___
  Do not 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/chng34%40gmail.com

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

2012-02-15 Thread Cheong Hee (Gmail)

Hi Gino

From what I have used before, this is what i have added in prepareMail():
htmlPart.setHeader (Content-Transfer-Encoding, quoted-printable);

Cheers

Cheong Hee

- Original Message - 
From: Gino Pacitti ginok...@mac.com

To: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Wednesday, February 15, 2012 6:04 PM
Subject: Re: ERJavaMail



I am doing this...

ERMailDeliveryHTML mail = new ERMailDeliveryHTML();

mail.setComponent(pageToRender);


mail.newMail();



mail.setFromAddress(FROM_ADDRESS);
mail.setReplyToAddress(REPLY_ADDRESS);
mail.setSubject(subject);
mail.setToAddresses(toAddresses);
mail.sendMail();

Yet still it shows - Content-Transfer-Encoding: 7bit

Any ideas how this can be overridden?


G

On 15 Feb 2012, at 09:56, Philippe Rabier wrote:


Hi Gino,

I've checked what our emails contain and I can see:
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

We send only HTML mails so maybe it can explain the difference.

And the code is something like that:
ERMailDeliveryHTML message = new ERMailDeliveryHTML();
message.setComponent(page);
String mailSubject = (String) 
_localizer.valueForKeyPath(mailSubjectKey);

message.setSubject(mailSubject );

message.setToAddress(email);
message.setFromAddress(mailFrom);

// send the mail assynchronously
message.sendMail();

Philippe

On 14 févr. 2012, at 20:36, Gino Pacitti wrote:


Hi All

I can send an HTML email with style and UTF-8 Characters...

But the styling does not get rendered on my mail program (It does  for 
other HTML emails...)


The main difference I see in the headers is this:

My email header viewed as source
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit


This is from another email which I received from a promotion sent  to me 
with images and styled text:

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

If this is the cause is there there a way to set the Content- 
Transfer-Encoding using ERJavaMail?


Or am I missing something?

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/prabier%40me.com

This email sent to prab...@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/chng34%40gmail.com

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

2012-02-15 Thread Cheong Hee (Gmail)

Hi Gino

You may look at the ERMailDeliveryHTML or get a subclass from 
ERMailDeliveryComponentBased.  In prepareMail(), look for this code and 
appended the last line after the setContent:

htmlPart = new MimeBodyPart ();


htmlPart.setContent (this.htmlContent (), text/html; charset=\ + charset 
() + \);


htmlPart.setHeader (Content-Transfer-Encoding, quoted-printable);


Not sure if this will solve as it has been quite a while the last time I 
jumped into email signing coding.


Cheers

Cheong Hee
cc.  loop back to the list for record..

- Original Message - 
From: Gino Pacitti ginok...@mac.com

To: Cheong Hee (Gmail) chn...@gmail.com
Sent: Thursday, February 16, 2012 3:23 AM
Subject: Re: ERJavaMail


Hi Cheong

Do you have an example of this?

GIno
On 15 Feb 2012, at 10:29, Cheong Hee (Gmail) wrote:


Hi Gino

From what I have used before, this is what i have added in  prepareMail():
htmlPart.setHeader (Content-Transfer-Encoding, quoted-printable);

Cheers

Cheong Hee

- Original Message - From: Gino Pacitti ginok...@mac.com
To: WebObjects-Dev Mailing List List webobjects- d...@lists.apple.com
Sent: Wednesday, February 15, 2012 6:04 PM
Subject: Re: ERJavaMail



I am doing this...

   ERMailDeliveryHTML mail = new ERMailDeliveryHTML();

   mail.setComponent(pageToRender);


   mail.newMail();



   mail.setFromAddress(FROM_ADDRESS);
   mail.setReplyToAddress(REPLY_ADDRESS);
   mail.setSubject(subject);
   mail.setToAddresses(toAddresses);
   mail.sendMail();

Yet still it shows - Content-Transfer-Encoding: 7bit

Any ideas how this can be overridden?


G

On 15 Feb 2012, at 09:56, Philippe Rabier wrote:


Hi Gino,

I've checked what our emails contain and I can see:
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

We send only HTML mails so maybe it can explain the difference.

And the code is something like that:
ERMailDeliveryHTML message = new ERMailDeliveryHTML();
message.setComponent(page);
String mailSubject = (String) 
_localizer.valueForKeyPath(mailSubjectKey);

message.setSubject(mailSubject );

message.setToAddress(email);
message.setFromAddress(mailFrom);

// send the mail assynchronously
message.sendMail();

Philippe

On 14 févr. 2012, at 20:36, Gino Pacitti wrote:


Hi All

I can send an HTML email with style and UTF-8 Characters...

But the styling does not get rendered on my mail program (It  does  for 
other HTML emails...)


The main difference I see in the headers is this:

My email header viewed as source
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit


This is from another email which I received from a promotion  sent  to 
me with images and styled text:

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64

If this is the cause is there there a way to set the Content- 
Transfer-Encoding using ERJavaMail?


Or am I missing something?

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/prabier%40me.com

This email sent to prab...@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/chng34%40gmail.com

This email sent to chn...@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/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/archive%40mail-archive.com

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

Re: SSL on Windows in dev-mode

2012-02-02 Thread Cheong Hee (Gmail)
WO+SLL+Apache on Windows should be working fine though I have not tried SSL 
setting in ERXApplication.   May be you could get rid the password error first 
by generating key file without password.

Cheers
Cheong Hee


- Original Message - 
  From: Ron X 
  To: Webobjects-dev@lists.apple.com 
  Sent: Tuesday, January 31, 2012 5:27 PM
  Subject: SSL on Windows in dev-mode


  Hi every one.
  I need help to fix my settings to start WO with SSL.

  my settings:
  er.extensions.ERXApplication.ssl.enabled=true
  er.extensions.ERXApplication.ssl.host=localhost
  er.extensions.ERXApplication.ssl.port=0

  but every time i have a WARN that port is used, but i have no app started 
before.
  Jan 27 10:13:40 [54918] WARN NSLog - Unable to establish an SSL connection to 
port 666 on this host. Perhaps this port is already in use by another 
WebObjects application instance.  and the same happens for any port 
(inclusive 443)

  so i generate key-file.

  Keystore was tampered with, or password was incorrect - i have no idea why 
that happens

  can i do these all things on Windows? exec file adaptorsslpassphrase could be 
only .bat or .cmd, but adaptorsslpassphrase requires

  (i start app through WOLips in Eclipse)



--


  ___
  Do not 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/chng34%40gmail.com

  This email sent to chn...@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: class loader deadlock in thread (apparently)

2011-10-05 Thread Cheong Hee (Gmail)
May be look at the location of jfreechart jar files and confirm its version 
and existence?


- Original Message - 
From: Larry Mills-Gahl l...@webfarm.com

To: webobjects-dev@lists.apple.com
Sent: Thursday, October 06, 2011 3:06 AM
Subject: class loader deadlock in thread (apparently)


I have a background thread task that gathers and renders some pdf reports 
that is recently broken apparently in checking package access  in the class 
loader.
This used to work. I recently upgraded to Lion on my dev laptop and this 
is the first time I've worked on this part of the app so I'm not sure this 
is the cause, but it is a coincidence. This project used to work well 
being launched from Eclipse or on deployment.


When I try to debug the app with a breakpoint on the creation of a jfree 
chart graph, stepping into that constructor sends me into 
Launcher$AppClassLoader(ClassLoader).checkPackageAccess and there it sits.


I saw some messages earlier last month about Interface file not loaded 
that seemed to point to a similar problem with static initializers.  I've 
checked the static declarations and don't see any (obvious) problems.


Can anybody suggest debugging techniques or places to look where I can get 
more information on what it's trying to load that is causing the loader 
problems?





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:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

This email sent to chn...@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: Interface file not loaded (solved in a way.. finally)

2011-09-28 Thread Cheong Hee (Gmail)
Just to report back that I have finally traced and avoided this issue - 
and Q is right that it is due to the classpath issue.
What I have done is simply clicking the little project  clean . and 
after that this issue of famework classpath crops out.
I have no idea what is the behind the scene and how to recover those 
classpathes.  Have anyone seen this before or just me?  Or this button is to 
be avoided?


Cheers

Cheong Hee




- Original Message - 
From: Q qdo...@gmail.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: David Avendasora webobje...@avendasora.com; WebObjects Dev 
webobjects-dev@lists.apple.com

Sent: Thursday, September 15, 2011 6:48 PM
Subject: Re: Interface file not loaded (solved)


That looks fine to me.
Is there a chance that IBusinessUnitKeyValueParameters is available at 
build time, but not in the classpath at runtime?


On 15/09/2011, at 6:05 PM, Cheong Hee (Gmail) wrote:



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

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


Re: Interface file not loaded (solved)

2011-09-15 Thread Cheong Hee (Gmail)

Looks we have more respondents in at this hours in this time zone now : )


In IBusinessUnitKeyValueParameters.java.

package com.rhino.util.interfaces;

public interface IBusinessUnitKeyValueParameters {
   public static final String NEW_BUSINESS = New Business;
   public static final String NEW_BUSINESS_ABBR = NEW;
   public static final String PROFESSIONAL_SERVICES = Professional 
Services;

   public static final String PROFESSIONAL_SERVICES_ABBR = PS;
   public static final String TRADITIONAL_BUSINESS = Traditional 
Business;

   public static final String TRADITIONAL_BUSINESS_ABBR = TRAD;
   public static final String MANAGED_SERVICES = Managed Services;
   public static final String MANAGED_SERVICES_ABBR = MS;
   public static final String BACK_OFFICE = Back Office;
   public static final String BACK_OFFICE_ABBR = BO;
   public static final String CUSTOMER_SERVICES = Customer Services;
   public static final String CUSTOMER_SERVICES_ABBR = CS;
   public static final String UNDEFINED = Undefined;
   public static final String UNDEFINED_ABBR = NA;
   public static final String DEFAULT_TEMPLATE = BACK_OFFICE;
}


Whereas the calling method in RSUserDefaults.java that triggers the 
exception is as the following:


public void setConnectionDictionaryForModels(){
   try{
   //exception is triggered at the following line!!!
   EOModel lastModel = 
(EOModel)EOModelGroup.defaultGroup().models().lastObject();
   NSMutableDictionary modelConnDictionary = 
lastModel.connectionDictionary().mutableClone();

   if ((isSwitchDatabaseConnection())  (modelConnDictionary!= null)){
  modelConnDictionary = 
this.parseSystemConnectionDictionary(modelConnDictionary);

   }
   if (modelConnDictionary != null)
   this.setObjectForKey( (NSDictionary)modelConnDictionary, 
CONNECTION_DICTIONARIES_KEY);

   }
   catch(Exception e){
   e.printStackTrace();
   }
}

As you see, there is no static method during the calling.  The stop point is 
at where the EOModelGroup makes the calls the the models().lastObject() as 
you could see in my previous trace posted.


Cheers

Cheong Hee

- Original Message - 
From: David Avendasora webobje...@avendasora.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: Paul Hoadley pa...@logicsquad.net; WebObjects Dev 
webobjects-dev@lists.apple.com

Sent: Thursday, September 15, 2011 1:47 PM
Subject: Re: Interface file not loaded (solved)


I have had classes fail to initialize due to problems with the actual logic 
inside a static method or variable (hard to believe that _I'd_ abuse Java 
so, but seriously, I've done it).


Look very closely to make sure that you aren't doing something that the 
compiler thinks is fine (or at least doesn't know is bad) in a static method 
or in assigning a static variable a value but won't actually work at 
runtime.


Pasting code here would be helpful.

(and by helpful, I mean help me to not feel like the only one on the list 
that does these kinds of things! :-)


Dave

PS. Paul, One man's pedant is another man's guru.

On Sep 15, 2011, at 11:00 AM, Cheong Hee (Gmail) wrote:


Hi Paul

Glad that you have pointed it out the very moment that i am about to raise 
this again.  This is strange - due to my weak undestanding
- and it works once after i did the change.  But then it haunted me again 
the next day, and after which the exception is back.  i am unable to 
rectify it now.  Appreciate you raise it again and it is just in time : )


Cheers

Cheong Hee

- Original Message - From: Paul Hoadley pa...@logicsquad.net
To: Cheong Hee (Gmail) chn...@gmail.com
Cc: WebObjects Dev webobjects-dev@lists.apple.com
Sent: Thursday, September 15, 2011 10:10 AM
Subject: Re: Interface file not loaded (solved)


Hi,

Just jumping in on the end of this thread...

On 13/09/2011, at 7:50 PM, Cheong Hee (Gmail) wrote:

Looks like you are right.. apparently, there is a string value defined as 
final static instead of static final.


I'm glad you got it working, but I suspect that observation is a red 
herring.  There are _suggestions_ about modifier order in the JLS, but 
they're just that—suggestions.  I mention this not (just) to be a pedant, 
but because you might run into your problem again in the future, and I 
don't think this can possibly be the solution.



--
Paul.

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:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to webobje...@avendasora.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

Re: Interface file not loaded (solved)

2011-09-15 Thread Cheong Hee (Gmail)
... :
Sep 16 09:23:03 
Debuger]:[RSUserDefaults -getBooleanSystemPropertyForKey]  - read 
config file :false

Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  dictionary :{}
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  looking for 
:createStaticData

Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  dictionary value :false
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  system value :NO
[RSUserDefaults -parseSystemProperties] createStaticData:false
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -getBooleanSystemPropertyForKey] 
reading value from system properties... :
Sep 16 09:23:03 
Debuger]:[RSUserDefaults -getBooleanSystemPropertyForKey]  - read 
config file :false

Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  dictionary :{}
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  looking for 
:changeConnectionDictionary

Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  dictionary value :true
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  system value :YES
[RSUserDefaults -parseSystemProperties] changeConnectionDictionary:true
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -getBooleanSystemPropertyForKey] 
reading value from system properties... :
Sep 16 09:23:03 
Debuger]:[RSUserDefaults -getBooleanSystemPropertyForKey]  - read 
config file :false

Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  dictionary :{}
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  looking for 
:tcApplicationDisabled

Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  dictionary value :false
Sep 16 09:23:03 [Debuger]:[RSUserDefaults -...]  system value :null
[RSUserDefaults -parseSystemProperties] tcApplicationDisabled:false
[2011-9-16 9:23:8 SGT] main A fatal exception occurred: 
IBusinessUnitKeyValueParameters
[2011-9-16 9:23:8 SGT] main java.lang.NoClassDefFoundError: 
IBusinessUnitKeyValueParameters

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at 
com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:350)
at 
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:334)
at 
com.webobjects.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.java:1302)
at 
com.webobjects.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:1340)
at 
com.webobjects.eoaccess.EOModel._initWithTableOfContentsPropertyListPathURL(EOModel.java:1144)

at com.webobjects.eoaccess.EOModel.init(EOModel.java:841)
at 
com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:443)
at 
com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:712)
at 
com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)

at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333)
at 
com.rhino.util.RSUserDefaults.setConnectionDictionaryForModels(RSUserDefaults.java:361)
at 
com.rhino.util.RSUserDefaults.parseSystemProperties(RSUserDefaults.java:271)
at 
com.rhino.util.RSUserDefaults.parseSystemProperties(RSUserDefaults.java:216)
at 
com.rhino.app.mainxtension.RSXApplication.initialization(RSXApplication.java:89)

at com.rhino.app.mainxtension.RSXApplication.init(RSXApplication.java:78)
at com.rhino.app.teamconnect.Application.init(Application.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at com.rhino.app.teamconnect.Application.main(Application.java:40)


Quite reluctant to mention, the code is a working piece from previous 
version, and ported over to later version Eclipse/WOLips and in a different 
directory.  It was working before in Eclipse/WOLips 3.4.  JVM remains as the 
same version.


Cheers

Cheong Hee

- Original Message - 
From: Q qdo...@gmail.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: David Avendasora webobje...@avendasora.com; WebObjects Dev 
webobjects-dev@lists.apple.com

Sent: Thursday, September 15, 2011 6:48 PM
Subject: Re: Interface file not loaded (solved)


That looks fine to me.
Is there a chance

Re: Interface file not loaded (solved)

2011-09-14 Thread Cheong Hee (Gmail)

Hi Paul

Glad that you have pointed it out the very moment that i am about to raise 
this again.  This is strange - due to my weak undestanding
- and it works once after i did the change.  But then it haunted me again 
the next day, and after which the exception is back.  i am unable to rectify 
it now.  Appreciate you raise it again and it is just in time : )


Cheers

Cheong Hee

- Original Message - 
From: Paul Hoadley pa...@logicsquad.net

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: WebObjects Dev webobjects-dev@lists.apple.com
Sent: Thursday, September 15, 2011 10:10 AM
Subject: Re: Interface file not loaded (solved)


Hi,

Just jumping in on the end of this thread...

On 13/09/2011, at 7:50 PM, Cheong Hee (Gmail) wrote:

Looks like you are right.. apparently, there is a string value defined as 
final static instead of static final.


I'm glad you got it working, but I suspect that observation is a red 
herring.  There are _suggestions_ about modifier order in the JLS, but 
they're just that—suggestions.  I mention this not (just) to be a pedant, 
but because you might run into your problem again in the future, and I don't 
think this can possibly be the solution.



--
Paul.

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

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


Interface file not loaded

2011-09-13 Thread Cheong Hee (Gmail)

Hi

I have this interface file called IBusinessUnitKeyValueParameters.java that 
contains some static constant string values.  The file is not being loaded 
though I have other files in the same framework loaded with no issue.   I am 
running out of steam and appreciate if someone could shed some light.


That is WO5.4.3, Eclipse 3.6 WOLips 3.6.70242

The error message is as the following:

2011-9-13 16:13:3 SGT] main A fatal exception occurred: 
IBusinessUnitKeyValueParameters
[2011-9-13 16:13:3 SGT] main java.lang.NoClassDefFoundError: 
IBusinessUnitKeyValueParameters

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at 
com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:350)
at 
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:334)
at 
com.webobjects.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.java:1302)
at 
com.webobjects.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:1340)
at 
com.webobjects.eoaccess.EOModel._initWithTableOfContentsPropertyListPathURL(EOModel.java:1144)

at com.webobjects.eoaccess.EOModel.init(EOModel.java:841)
at 
com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:443)
at 
com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:712)
at 
com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)

at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333)
at 
com.rhino.util.RSUserDefaults.setConnectionDictionaryForModels(RSUserDefaults.java:362)
at 
com.rhino.util.RSUserDefaults.parseSystemProperties(RSUserDefaults.java:271)
at 
com.rhino.util.RSUserDefaults.parseSystemProperties(RSUserDefaults.java:216)
at 
com.rhino.app.mainxtension.RSXApplication.initialization(RSXApplication.java:89)

at com.rhino.app.mainxtension.RSXApplication.init(RSXApplication.java:78)
at com.rhino.app.teamconnect.Application.init(Application.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at com.rhino.app.teamconnect.Application.main(Application.java:40)

The code where the exception occurred at line 362 in RSUserDefaults :

EOModel lastModel = 
(EOModel)EOModelGroup.defaultGroup().models().lastObject();



Cheers

Cheong Hee 


___
Do not 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: Interface file not loaded (solved)

2011-09-13 Thread Cheong Hee (Gmail)

Hi Q

Looks like you are right.. apparently, there is a string value defined as 
final static instead of static final.  This caught me off guard as the 
code was previously working, and I checked that it is still in jre 1.5.x. 
Two apps sharing this same framewrok works now.   Thanks for very prompt and 
save my days of wild guesses!


Cheers

Cheong Hee

- Original Message - 
From: Q qdo...@gmail.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: WebObjects Dev webobjects-dev@lists.apple.com
Sent: Tuesday, September 13, 2011 6:03 PM
Subject: Re: Interface file not loaded


Looks like it's having trouble firing the static initialisers in 
IBusinessUnitKeyValueParameters. The class bytecode isn't missing, the JVM 
can't initialise it.


There should be another exception to go with that one that shows why the 
class failed to load.


On 13/09/2011, at 6:37 PM, Cheong Hee (Gmail) wrote:


Hi

I have this interface file called IBusinessUnitKeyValueParameters.java 
that contains some static constant string values.  The file is not being 
loaded though I have other files in the same framework loaded with no 
issue.   I am running out of steam and appreciate if someone could shed 
some light.


That is WO5.4.3, Eclipse 3.6 WOLips 3.6.70242

The error message is as the following:

2011-9-13 16:13:3 SGT] main A fatal exception occurred: 
IBusinessUnitKeyValueParameters
[2011-9-13 16:13:3 SGT] main java.lang.NoClassDefFoundError: 
IBusinessUnitKeyValueParameters

at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at 
com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:350)
at 
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:334)
at 
com.webobjects.eoaccess.EOModel._setEntityForEntityNameClassName(EOModel.java:1302)
at 
com.webobjects.eoaccess.EOModel._addFakeEntityWithPropertyList(EOModel.java:1340)
at 
com.webobjects.eoaccess.EOModel._initWithTableOfContentsPropertyListPathURL(EOModel.java:1144)

at com.webobjects.eoaccess.EOModel.init(EOModel.java:841)
at 
com.webobjects.eoaccess.EOModelGroup.addModelWithPathURL(EOModelGroup.java:443)
at 
com.webobjects.eoaccess.EOModelGroup.modelGroupForLoadedBundles(EOModelGroup.java:712)
at 
com.webobjects.eoaccess.EOModelGroup.globalModelGroup(EOModelGroup.java:306)
at 
com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:333)
at 
com.rhino.util.RSUserDefaults.setConnectionDictionaryForModels(RSUserDefaults.java:362)
at 
com.rhino.util.RSUserDefaults.parseSystemProperties(RSUserDefaults.java:271)
at 
com.rhino.util.RSUserDefaults.parseSystemProperties(RSUserDefaults.java:216)
at 
com.rhino.app.mainxtension.RSXApplication.initialization(RSXApplication.java:89)
at 
com.rhino.app.mainxtension.RSXApplication.init(RSXApplication.java:78)

at com.rhino.app.teamconnect.Application.init(Application.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown 
Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at com.rhino.app.teamconnect.Application.main(Application.java:40)

The code where the exception occurred at line 362 in RSUserDefaults :

EOModel lastModel = 
(EOModel)EOModelGroup.defaultGroup().models().lastObject();



Cheers

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

This email sent to qdo...@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: one-to-many relationship question

2011-09-08 Thread Cheong Hee (Gmail)

This is what being described in the documentation:

Owns Destination

You can set a source object as owning its destination objects. When a

source object owns its destination objects and you remove a destination

object from the source object's relationship array, you're also deleting it

from the database (alternatively, you can transfer it to a new owner). This

is because ownership implies that the owned object can't exist without an

owner-for example, line items can't exist outside of a purchase order.



By contrast, you might have a department object that doesn't own its

employee objects. If you remove an employee from a department's

employees array, the employee continues to exist in the database, but

its department variable is set to null (or nil in Objective-C). If you 
really


intend to delete the employee from the database, you'd have to do it

explicitly.



From what it said, I think it is quite clear that the destination object 
will only be removed from database if owns destination is set in source 
object. Else you will have to do it explicitely from the code.


Whereas cascade delete will remove from top-down.  Delete source object will 
delete the destination objects altogether.


Cheers

Cheong Hee

- Original Message - 
From: Paul D Yu p...@mac.com

To: Michael Gargano mgarg...@escholar.com
Cc: WebObjects webobjects-dev webobjects-dev@lists.apple.com
Sent: Friday, September 09, 2011 3:03 AM
Subject: Re: one-to-many relationship question



This is what I know.

Owns destination on a toOne relationship means every time a master record 
is created, a child record will also be created.  The primary key of the 
child will be set to the primary key of the master.


Cascade delete means when you delete the master record, the child 
record(s) will automatically be deleted as well.


Paul
On Sep 8, 2011, at 2:59 PM, Michael Gargano wrote:


Hi all,

Quick question, does delete on cascade imply owns destination?  Also, 
does checking owns destination force the insertion of the destination 
objects after the insertion of the source entity?


I think David LeBer answered this for me once, but I forgot.

Thanks.
-Mike

___
Do not 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/pyu%40mac.com

This email sent to p...@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/chng34%40gmail.com

This email sent to chn...@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: Feedback about issue with MySQL and get primary key

2011-09-05 Thread Cheong Hee (Gmail)
Hi Philippe

I think somehow 'NO_Sent_Notification_Request_Log_TEST' is already registered 
as an existing object in your ec.  This caused the ec to fetch the object again 
and therefore failed and aborted.  I may be just reiterated your point to be 
sure : )
Just to test, you may need to invalidate all objects in the ec and try to save 
the log object again.

Cheers

Cheong Hee

 
  - Original Message - 
  From: Philippe Rabier 
  To: Ray Kiddy 
  Cc: WebObjects (Group) 
  Sent: Monday, September 05, 2011 4:55 PM
  Subject: Re: Feedback about issue with MySQL and get primary key


  Hi Ray,


  Thank you for the tip. That's something interesting to change the sql 
expression on the fly. I was looking for that too.


  But you don't get me so I gonna try to be explain with more concise 
explanations.


  The algorithm is the following:
  1 - get data from the DA, check data and return a result (basically 2 results 
: data accepted or not)
  2 - if result = data_accepted, I insert new data using raw sql
  3 - write into a log entity (in any circumstances) using EOF aka create an 
object and insert it into an ec.


  What I tried to explain is that when the EOUtilities.rawRowsForSQL is 
executed in step 2 (and it works, I don't have any issue here), the step 3 
fails because he can't get a primary key. If the step 2 is not executed, the 
step 3 is executed successfully.


  I put the simple code below that is executed, just in case but nothing weird 
I guess (I removed the try/catch).


  Cheers,


  Philippe


  String aIpAdress = (String) 
userInfo.get(NotificationUserInfoEnum.IP_ADDRESS.toString());
  String aRequest = notificationData.getSenderUri();
  String aStatus = (String) 
userInfo.get(NotificationUserInfoEnum.STATUS.toString());


  EOEditingContext ec = ERXEC.newEditingContext();
  ec.lock();
  NOApplication anApplication = null;
  if (notificationData.getApplicationName() != null)
  anApplication = NBCacheManager.getInstance().application(ec, 
notificationData.getApplicationName(), notificationData.getPlatform());


  NONotificationRequestLog notificationLog = 
NONotificationRequestLog.createAndInsertNONotificationRequestLog(ec);



  if (anApplication!=null)
  {
  notificationLog.setApplication(anApplication);
  notificationLog.setApplicationName(anApplication.name());
  }
  else if (notificationData.getApplicationName() != null)
  notificationLog.setApplicationName(notificationData.getApplicationName());


  //If a notification is received, we don't know the platform
  if (!(this instanceof NBNotificationReceivedRecorder))
  notificationLog.setPlatform(notificationData.getPlatform());
  notificationLog.setIpAddress(aIpAdress);
  notificationLog.setRequest(aRequest);
  notificationLog.setStatus(aStatus);


  ec.saveChanges();






  On 5 sept. 2011, at 01:08, Ray Kiddy wrote:




Your rawRowsForSql call through an exception because you are completely 
bypassing the primary key generation process, so it you want to insert rows 
using this call, you need to generate the primary keys yourself.


There is a better way to do this. See below.


- ray


On Sep 4, 2011, at 7:49 AM, Philippe Rabier wrote:


  Hi all,


  Not a question but a feedback if you have the same issue but I don't have 
explanation and I didn't look for any.


  Env: 
  WO 5.4.3, java 6 on Mac OS X 10.6.7, Eclipse 3.4, Wonder a bit old 
(several months), MySQL v5.0.88


  Context: 
  DA where informations are checked, fetched then if everything is fine, 
informations are saved. At the end, we write into a log the request plus the 
result and some informations (IP address, …).


  When informations are saved, I decided to use EOUtilities.rawRowsForSQL 
to execute an insert sql command in order to optimize the complete R-R.


  Then I write into the log the request, result, … as I said.


  If the insert command is executed, when the log is saved (through its 
editingContext), I got an exception when the adaptor tries to get a new primary 
key:


  Sep 04 14:52:56 YNP_NOWebServicesApp[5000] DEBUG NSLog  - Searching for 
primary key value for NO_Sent_Notification_Request_Log_TEST
  Sep 04 14:52:56 YNP_NOWebServicesApp[5000] DEBUG NSLog  -  
evaluateExpression: com.webobjects.jdbcadaptor._MySQLPlugIn$MySQLExpression: 
SELECT PK FROM EO_PK_TABLE WHERE NAME = 
'NO_Sent_Notification_Request_Log_TEST' FOR UPDATE withBindings: 
  Sep 04 14:52:56 YNP_NOWebServicesApp[5000] INFO  
er.extensions.ERXAdaptorChannelDelegate.sqlLogging  - Unknown@795485135 
expression took 232 ms: SELECT PK FROM EO_PK_TABLE WHERE NAME = 
'NO_Sent_Notification_Request_Log_TEST' FOR UPDATE
  Sep 04 14:52:56 YNP_NOWebServicesApp[5000] DEBUG NSLog  - fetch canceled
  Sep 04 14:52:56 YNP_NOWebServicesApp[5000] DEBUG NSLog  - 0 row(s) 
processed
  Sep 04 14:52:56 YNP_NOWebServicesApp[5000] INFO  
er.transaction.adaptor.Exceptions  - Database Exception occured

Re: Feedback about issue with MySQL and get primary key

2011-09-05 Thread Cheong Hee Ng
Could it be that the NO_Sent_Notification_Request_
Log_TEST is a new table that you have created lately and that your
EO_PK_TABLE could not locate it for primary key.   Just curious.



On Mon, Sep 5, 2011 at 8:17 PM, Philippe Rabier prab...@me.com wrote:

 I don't want to bug the list too much because I can deal easily with this
 issue.

 However my curiosity would be happy if someone knows the reason.

 That's said, Cheong, I doubt the cause are those you think for 2 reasons:
 - informations inserted in raw SQL are not fetched as EO, never (they are
 used for statistics in another WO app) and  I pass a new fresh EC to
 EOUtilities.raw...

 -  NONotificationRequestLog   object is also new, inserted also in a new
 EC as showed in the code.

 So I can't invalidate any object because one is not known by EOF and the
 other one is just created.

 I made another test: I put the raw insert command in the same method as
 below using only one EC and I get the same issue: exception when EOF tries
 to get a primary key. So I'm pretty sure that the insert command causes the
 exception when I call saveChanges

 Philippe

 Sent from my iPhone

 On 5 sept. 2011, at 12:18, Cheong Hee (Gmail) chn...@gmail.com wrote:

 Hi Philippe

 I think somehow 'NO_Sent_Notification_Request_Log_TEST' is already
 registered as an existing object in your ec.  This caused the ec to fetch
 the object again and therefore failed and aborted.  I may be just reiterated
 your point to be sure : )
 Just to test, you may need to invalidate all objects in the ec and try to
 save the log object again.

 Cheers

 Cheong Hee



 - Original Message -
 *From:* Philippe Rabier prab...@me.com
 *To:* Ray Kiddy r...@ganymede.org
 *Cc:* WebObjects (Group) webobjects-dev@lists.apple.com
 *Sent:* Monday, September 05, 2011 4:55 PM
 *Subject:* Re: Feedback about issue with MySQL and get primary key

 Hi Ray,

 Thank you for the tip. That's something interesting to change the sql
 expression on the fly. I was looking for that too.

 But you don't get me so I gonna try to be explain with more concise
 explanations.

 The algorithm is the following:
 1 - get data from the DA, check data and return a result (basically 2
 results : data accepted or not)
 2 - if result = data_accepted, I insert new data using raw sql
 3 - write into a log entity (in any circumstances) using EOF aka create an
 object and insert it into an ec.

 What I tried to explain is that when the EOUtilities.rawRowsForSQL is
 executed in step 2 (and it works, I don't have any issue here), the step 3
 fails because he can't get a primary key. If the step 2 is not executed, the
 step 3 is executed successfully.

 I put the simple code below that is executed, just in case but nothing
 weird I guess (I removed the try/catch).

 Cheers,

 Philippe

  String aIpAdress = (String) userInfo.get(NotificationUserInfoEnum.
 IP_ADDRESS.toString());
 String aRequest = notificationData.getSenderUri();
 String aStatus = (String) userInfo.get(NotificationUserInfoEnum.STATUS
 .toString());

 EOEditingContext ec = ERXEC.newEditingContext();
 ec.lock();
  NOApplication anApplication = null;
 if (notificationData.getApplicationName() != null)
 anApplication = NBCacheManager.getInstance().application(ec,
 notificationData.getApplicationName(), notificationData.getPlatform());

 NONotificationRequestLog notificationLog =
 NONotificationRequestLog.createAndInsertNONotificationRequestLog(ec);


 if (anApplication!=null)
 {
 notificationLog.setApplication(anApplication);
 notificationLog.setApplicationName(anApplication.name());
 }
 else if (notificationData.getApplicationName() != null)
 notificationLog.setApplicationName(notificationData.getApplicationName());

 //If a notification is received, we don't know the platform
 if (!(this instanceof NBNotificationReceivedRecorder))
 notificationLog.setPlatform(notificationData.getPlatform());
 notificationLog.setIpAddress(aIpAdress);
 notificationLog.setRequest(aRequest);
 notificationLog.setStatus(aStatus);

 ec.saveChanges();



  On 5 sept. 2011, at 01:08, Ray Kiddy wrote:


 Your rawRowsForSql call through an exception because you are completely
 bypassing the primary key generation process, so it you want to insert rows
 using this call, you need to generate the primary keys yourself.

 There is a better way to do this. See below.

 - ray

   On Sep 4, 2011, at 7:49 AM, Philippe Rabier wrote:

  Hi all,

 Not a question but a feedback if you have the same issue but I don't have
 explanation and I didn't look for any.

 Env:
 WO 5.4.3, java 6 on Mac OS X 10.6.7, Eclipse 3.4, Wonder a bit old (several
 months), MySQL v5.0.88

 Context:
 DA where informations are checked, fetched then if everything is fine,
 informations are saved. At the end, we write into a log the request plus the
 result and some informations (IP address, …).

 When informations are saved, I decided to use EOUtilities.rawRowsForSQL to
 execute an insert sql command in order to optimize

Re: Problem with wolips.properties file on Windows

2011-09-05 Thread Cheong Hee Ng
May be it is just the problem with the directory name.  Note that you should
avoid the white space in Windows directory name.  I had been using XP and it
is working OK.

On Mon, Sep 5, 2011 at 11:54 PM, Vladimir Forfutdinov vlad...@gmail.comwrote:

  Message: 3
  Date: Fri, 02 Sep 2011 10:29:46 -0700
  From: Michael Hast mh...@desertsky.com
  Subject: Re: Problem with wolips.properties file on Windows
  To: webobjects-dev@lists.apple.com
  Message-ID: 4e61128a.4040...@desertsky.com
  Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 
  Hi Vladimir:
 
  It's not quite that simple on Windows. When I setup a development
  machine for our customer I documented the following steps. I was using
  Windows 7 and they were using Windows XP, IIRC. I thought that when you
  launch Eclipse with WOLips it would create the right file. But maybe I
  am wrong. Here are the steps that I send to our customer with regards to
  the location of the wolips.properties file.
 
  [] 3.7. On Command Prompt: echo %APPDATA%
  [] 3.8. Check for wolips.properties in %APPDATA%/WOLips/
  [] 3.9. Replace contents of wolips.properties (%APPDATA%/WOLips) with
  what is on CD
  [] 3.10. Correct paths in new wolips.properties file for wo.user.xxx
  properties
  [] 3.11. Start eclipse again

 Thanks Michael, this worked perfect. ( restarting of eclipse was the most
 useful part ;-) )

 But, now I have another probably path related issue (now that the eclipse
 is happy)

 [2011-9-5 11:7:20 EDT] main WOResourceManager Unable to locate the
 JavaWebObjects bundle
 [2011-9-5 11:7:20 EDT] main Unable to initialize WOProperties for reason:
 Cannot find JavaWebObjects framework ! java.lang.IllegalStateException:
 Unable to locate the JavaWebObjects bundle
 [2011-9-5 11:7:20 EDT] main A fatal exception occurred: WOApplication:
 Cannot be initialized.
 [2011-9-5 11:7:20 EDT] main com.webobjects.foundation.NSForwardException
 [java.lang.IllegalStateException] Unable to locate the JavaWebObjects
 bundle:WOApplication: Cannot be initialized.
at
 com.webobjects.appserver.WOApplication.init(WOApplication.java:918)
at com.fngp.security.FNGPApplication.init(FNGPApplication.java:31)
at com.fngp.ipmd.Application.init(Application.java:116)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
 com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at com.fngp.ipmd.Application.main(Application.java:97)
 Caused by: java.lang.IllegalStateException: Unable to locate the
 JavaWebObjects bundle
at
 com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAsStream(WOResourceManager.java:131)
at
 com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:317)
at
 com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5743)
at
 com.webobjects.appserver.WOApplication.init(WOApplication.java:779)
... 10 more

 I do not have any WO Frameworks or libraries installed anywhere on the PC

 Thanks

 -Vlad


 
  Michael.
 
  On 9/2/2011 10:13 AM, Vladimir Forfutdinov wrote:
  I have the following configuration:
 
  eclipse 3.6.2 with WOLips 3.6.70245 on Windows XP (unfortunately)
 
  I got everything compile correctly, just like on the same setup on my
  Mac. However, when I try to run the app, I get the following error:
 
  You do not have a 'wo.system.root' property set in your
  wolips.properties file.
 
  I have created the following file as per instructions:
  http://wiki.objectstyle.org/confluence/display/WOL/wolips.properties
 
  *Windows*: C:\Documents and Settings\user\Library\Application
  Support\WOLips\wolips.properties
 
  I also have wobuild.properties file at *Windows*: C:\Documents and
  Settings\user\Library\wobuild.properties
 
  both have the wo.system.root property in them.
 
  I have also tried creating an empty new project in eclipse, still the
  same issue (the other once were copied from Mac)
 
  Does anyone has similar issue?
 
  Thanks
 
  -Vlad
 
 
   ___
  Do not 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/mhast%40desertsky.com
 
  This email sent to mh...@desertsky.com
 
  --
  Tel: (602) 279-4600 ext: 635
  Desert Sky Software: www.desertsky.com
  Specializing in the Development and Hosting of
  e-Business Applications.

  ___
 Do not post admin 

Re: Feedback about issue with MySQL and get primary key

2011-09-05 Thread Cheong Hee (Gmail)
The points I am trying to make is the select statement from the EO_PK_TABLE for 
the 'NO_Sent_Notification_Request_Log_TEST' should return a primary key index.  

May be you run this sql statement from the WorkBench directly and see any 
difference:
SELECT PK FROM EO_PK_TABLE WHERE NAME = 'NO_Sent_Notification_Request_Log_TEST' 

Just another curiosity.. ;-)

Cheers

Cheong Hee
  - Original Message - 
  From: Philippe Rabier 
  To: WebObjects (Group) 
  Sent: Tuesday, September 06, 2011 3:51 AM
  Subject: Re: Feedback about issue with MySQL and get primary key


  Alas not because if EOUtilities.rawRowsForSQL is not called, it works. 
Otherwise not.


  It's perfectly reproducible without any change at the database level.


  Thanks for trying ;-)


  Philippe


  On 5 sept. 2011, at 18:58, Cheong Hee Ng wrote:


Could it be that the NO_Sent_Notification_Request_
Log_TEST is a new table that you have created lately and that your 
EO_PK_TABLE could not locate it for primary key.   Just curious. 






On Mon, Sep 5, 2011 at 8:17 PM, Philippe Rabier prab...@me.com wrote:

  I don't want to bug the list too much because I can deal easily with this 
issue. 


  However my curiosity would be happy if someone knows the reason. 


  That's said, Cheong, I doubt the cause are those you think for 2 reasons:
  - informations inserted in raw SQL are not fetched as EO, never (they are 
used for statistics in another WO app) and  I pass a new fresh EC to 
EOUtilities.raw...


  -  NONotificationRequestLog   object is also new, inserted also in a new 
EC as showed in the code. 


  So I can't invalidate any object because one is not known by EOF and the 
other one is just created. 


  I made another test: I put the raw insert command in the same method as 
below using only one EC and I get the same issue: exception when EOF tries to 
get a primary key. So I'm pretty sure that the insert command causes the 
exception when I call saveChanges


  Philippe

  Sent from my iPhone

  On 5 sept. 2011, at 12:18, Cheong Hee (Gmail) chn...@gmail.com wrote:


Hi Philippe

I think somehow 'NO_Sent_Notification_Request_Log_TEST' is already 
registered as an existing object in your ec.  This caused the ec to fetch the 
object again and therefore failed and aborted.  I may be just reiterated your 
point to be sure : )
Just to test, you may need to invalidate all objects in the ec and try 
to save the log object again.

Cheers

Cheong Hee


  - Original Message - 
  From: Philippe Rabier 
  To: Ray Kiddy 
  Cc: WebObjects (Group) 
  Sent: Monday, September 05, 2011 4:55 PM
  Subject: Re: Feedback about issue with MySQL and get primary key


  Hi Ray, 


  Thank you for the tip. That's something interesting to change the sql 
expression on the fly. I was looking for that too.


  But you don't get me so I gonna try to be explain with more concise 
explanations.


  The algorithm is the following:
  1 - get data from the DA, check data and return a result (basically 2 
results : data accepted or not)
  2 - if result = data_accepted, I insert new data using raw sql
  3 - write into a log entity (in any circumstances) using EOF aka 
create an object and insert it into an ec.


  What I tried to explain is that when the EOUtilities.rawRowsForSQL is 
executed in step 2 (and it works, I don't have any issue here), the step 3 
fails because he can't get a primary key. If the step 2 is not executed, the 
step 3 is executed successfully.


  I put the simple code below that is executed, just in case but 
nothing weird I guess (I removed the try/catch).


  Cheers,


  Philippe


  String aIpAdress = (String) 
userInfo.get(NotificationUserInfoEnum.IP_ADDRESS.toString());
  String aRequest = notificationData.getSenderUri();
  String aStatus = (String) 
userInfo.get(NotificationUserInfoEnum.STATUS.toString());


  EOEditingContext ec = ERXEC.newEditingContext();
  ec.lock();
  NOApplication anApplication = null;
  if (notificationData.getApplicationName() != null)
  anApplication = NBCacheManager.getInstance().application(ec, 
notificationData.getApplicationName(), notificationData.getPlatform());


  NONotificationRequestLog notificationLog = 
NONotificationRequestLog.createAndInsertNONotificationRequestLog(ec);


  if (anApplication!=null)
  {
  notificationLog.setApplication(anApplication);
  notificationLog.setApplicationName(anApplication.name());
  }
  else if (notificationData.getApplicationName() != null)
  
notificationLog.setApplicationName(notificationData.getApplicationName());


  //If a notification is received, we don't know the platform

Re: Look, a displaygroup!

2011-08-19 Thread Cheong Hee (Gmail)

Hi Johan

Yeah, there is the Builder For Dummies way.  The current way quite the same 
except the drap-and-drop tada way.


Cheers

Cheong Hee

- Original Message - 
From: Johan Henselmans jo...@netsense.nl

To: WebObjects Development webobjects-dev@lists.apple.com
Sent: Friday, August 19, 2011 3:53 PM
Subject: Look, a displaygroup!


I remember that in the old days it was possible to drag an entitiy into a 
component and TADA, you had a working displaygroup.


What is the current tada way of doing that?



Johan Henselmans
jo...@netsense.nl



___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-08 Thread Cheong Hee (Gmail)
Hi Ray

Any success with indexed mutablearray? How does the code look like if it works.

Your person model sounds like a many-to-many table, excepts it could not be 
flattened.  
  I agree with you. My problem is not on save data but on manipulating 
txImplication in the loop before saved them. I tought about 
mutablearray(index,txImplication) with ted last night I'm working on it to see 
how it look like in a loop.
  index go to match to index in the loop and txImplication is an object that 
take value for each index I want to edit.

It's done but the relationship a little complicated. project have relation 
with personnal and personnal have relation with individu. personal and project 
have relation person which contains(project_id, personal_id and txImplication)
  But in the model, person comes to individu entity.
Cheers

Cheong Hee
 ___
Do not 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: Using AjaxInPlaceEditor in WORepetition

2011-08-04 Thread Cheong Hee (Gmail)
Hi Ray

  Yes I thought about this code aPerson.project().txImplementation() and it's 
great when I saved in data base but When I want to manipulate(modify each row 
in the loop) txImplication  before saved?
If the txImplication is not in the loop, I supposed you should be able to 
modifiy each row, and also keep the value of txImplication either in your 
session.txImplementation or as an attribute in the page java itself.  Before 
calling ec saveChanges, set the txImplication to your 
aPerson.project().setTxImplication(session.txImplication()).   Then ec 
saveChanges to save all objects for persons and project.  No?


  I can not change the model because I exploit a database which I can modify. I 
only create my table project to do relationship between all tables.

Since you chan create project table, and you may need to set up its 
many-to-many relationship join table.  It is common that a person can have many 
projects and a project can have many persons.  You will need to know how to set 
up both relationships and get direct access with just e.g. person.projects() 
and project.persons().

Cheers

Cheong Hee
 ___
Do not 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: Using AjaxInPlaceEditor in WORepetition

2011-08-03 Thread Cheong Hee (Gmail)
Hi Ray

Have you tried with display group to get the right object so that you could put 
the string values into?  May be you could post some code in saveInPlaceEditor 
to share.

Cheers

Cheong Hee
ps. I was not available to access mail yesterday.
  - Original Message - 
  From: Raymond NANEON 
  To: WebObjects webobjects-dev 
  Sent: Wednesday, August 03, 2011 3:42 PM
  Subject: Re: Using AjaxInPlaceEditor in WORepetition


  Hi All,


  Someone can help me about my problem? I have almost finish my app but this 
thing make me late.
  Thanks for your help


  Le 1 août 2011 à 12:47, naneon.raym...@neuf.fr a écrit :


Hi Hee

No prob. Then you may just need to add an index counter to track down the 
object that you are interested to alter its string value, as mentioned.
==I don't understand very well. Do you have a code to clear all your words?
   ...
   movieTitleChanged=movieToCheck.title() + Add more info .. ; I 
don't want to add info to the title for each movie.
 ... 





Cheers

Ray

  - Original Message - 
  From: naneon.raym...@neuf.fr 
  To: Cheong Hee (Gmail) ; WebObjects webobjects-dev 
  Sent: Monday, August 01, 2011 6:01 PM
  Subject: Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Hee

  I made a mistake in my example. In repetition, it's not index but item 
(WOD)
  example :
  java class :


  
  String critical
  NSArrayMovie Movies;
  Movie movieRepetition;


  ...


  public void saveInPlaceEditor () {


  ...


  }


  Html :
  ...
  table...
  tr
  thname/th
  thcriticals/th
  /tr
  webobject name=repeat
  tr
  tdwebobject name=movieView//td
  tdwebobject name=criticalEditor//td
  /tr
  /webobject
  /table
  ...

  WOD :


  repeat : WORepetition {
  list = Movies;
  item = movieRepetition;
  }


  movieView : WOString {
  value = movieRepetition.title;
  }


  criticalEditor : AjaxInPlaceEditor {
  value = critical;
  action = saveInPlaceEditor; 
  ...
  }


  

  Ooops, you need to change ui.index to movieIndex.

  and may be an item in the WORepetition:

  repeat : WORepetition {
  item = Movie;
  list = Movies;
  index = movieIndex;
  } 


  == What about AjaxInPlaceEditor? You don't use it in your example code? 
In my app,
  I would like to give hand to people to write a critical for the movie 
they chose in my table of movies and it's the utility of 
  ajaxInPlaceEditor.


  Ray


  - Original Message - 
  From: Cheong Hee (Gmail) 
  To: ; WebObjects webobjects-dev

  Sent: Monday, August 01, 2011 4:38 PM
  Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


   Hi Ray
  
   Using your info, may be these are the changes you need:
  
   Declare this integer in java file:
   int movieIndex;
  
  
   in wod:
  
   repeat : WORepetition {
   list = Movies;
   index = movieIndex;
   }
  
  
   movieView : WOString {
   value = movieViewToShow;
   }
  
  
   In the java file, declare something like this:
  
   public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null)  (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + Add more info .. ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
   .title();
   }
  
   I am not familiar with AjaxInPlaceEditor yet, however don't think it 
will
   affect the above code.
  
   Cheers
  
   Cheong Hee
  
   - Original Message - 
   From: naneon.raym...@neuf.fr
   To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
   Sent: Monday, August 01, 2011 4:19 PM
   Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  
  
   Hi Hee
  
   Hope I get it right and may be this is what you need. To manupulate the
   string for each iterative object in an array, you could set the index of
   WORepetition to an integer.
   Then before display the string, check the objectAtIndex of the array and
   decide if the the string is to alter accordingly for that object.
   == If the string I have declared is the same for all objects and if I
   want to give information about object at index+1.
   The string I put in object at index will take value of string of 
object
   at index +1. So if I check the string of object at index and I see
   it's modify because object at index+1
   give it another information of string. I can't hold this string for the
   object at index because

Re: Using AjaxInPlaceEditor in WORepetition

2011-08-03 Thread Cheong Hee (Gmail)
Hi Ray

Realizing what you need is to put the string into the movie object.  It is a 
problem if it is a common string set for all objects in the loop.  Could you 
hold the critical string in a repetition?  I will suggest using selectObject in 
display group rather than using objectAtIndex. 

Cheers

Cheong Hee  
  - Original Message - 
  From: Raymond NANEON 
  To: WebObjects webobjects-dev 
  Sent: Wednesday, August 03, 2011 3:42 PM
  Subject: Re: Using AjaxInPlaceEditor in WORepetition


  Hi All,


  Someone can help me about my problem? I have almost finish my app but this 
thing make me late.
  Thanks for your help


  Le 1 août 2011 à 12:47, naneon.raym...@neuf.fr a écrit :


Hi Hee

No prob. Then you may just need to add an index counter to track down the 
object that you are interested to alter its string value, as mentioned.
==I don't understand very well. Do you have a code to clear all your words?
   ...
   movieTitleChanged=movieToCheck.title() + Add more info .. ; I 
don't want to add info to the title for each movie.
 ... 





Cheers

Ray

  - Original Message - 
  From: naneon.raym...@neuf.fr 
  To: Cheong Hee (Gmail) ; WebObjects webobjects-dev 
  Sent: Monday, August 01, 2011 6:01 PM
  Subject: Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Hee

  I made a mistake in my example. In repetition, it's not index but item 
(WOD)
  example :
  java class :


  
  String critical
  NSArrayMovie Movies;
  Movie movieRepetition;


  ...


  public void saveInPlaceEditor () {


  ...


  }


  Html :
  ...
  table...
  tr
  thname/th
  thcriticals/th
  /tr
  webobject name=repeat
  tr
  tdwebobject name=movieView//td
  tdwebobject name=criticalEditor//td
  /tr
  /webobject
  /table
  ...

  WOD :


  repeat : WORepetition {
  list = Movies;
  item = movieRepetition;
  }


  movieView : WOString {
  value = movieRepetition.title;
  }


  criticalEditor : AjaxInPlaceEditor {
  value = critical;
  action = saveInPlaceEditor; 
  ...
  }


  

  Ooops, you need to change ui.index to movieIndex.

  and may be an item in the WORepetition:

  repeat : WORepetition {
  item = Movie;
  list = Movies;
  index = movieIndex;
  } 


  == What about AjaxInPlaceEditor? You don't use it in your example code? 
In my app,
  I would like to give hand to people to write a critical for the movie 
they chose in my table of movies and it's the utility of 
  ajaxInPlaceEditor.


  Ray


  - Original Message - 
  From: Cheong Hee (Gmail) 
  To: ; WebObjects webobjects-dev

  Sent: Monday, August 01, 2011 4:38 PM
  Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


   Hi Ray
  
   Using your info, may be these are the changes you need:
  
   Declare this integer in java file:
   int movieIndex;
  
  
   in wod:
  
   repeat : WORepetition {
   list = Movies;
   index = movieIndex;
   }
  
  
   movieView : WOString {
   value = movieViewToShow;
   }
  
  
   In the java file, declare something like this:
  
   public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null)  (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + Add more info .. ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
   .title();
   }
  
   I am not familiar with AjaxInPlaceEditor yet, however don't think it 
will
   affect the above code.
  
   Cheers
  
   Cheong Hee
  
   - Original Message - 
   From: naneon.raym...@neuf.fr
   To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
   Sent: Monday, August 01, 2011 4:19 PM
   Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  
  
   Hi Hee
  
   Hope I get it right and may be this is what you need. To manupulate the
   string for each iterative object in an array, you could set the index of
   WORepetition to an integer.
   Then before display the string, check the objectAtIndex of the array and
   decide if the the string is to alter accordingly for that object.
   == If the string I have declared is the same for all objects and if I
   want to give information about object at index+1.
   The string I put in object at index will take value of string of 
object
   at index +1. So if I check the string of object at index and I see
   it's modify because object at index+1
   give it another information of string. I

Re: Using AjaxInPlaceEditor in WORepetition

2011-08-03 Thread Cheong Hee (Gmail)
Hi Ray

Bonjou. Is the txImplication a project-based or person-based entity?  If it is 
project-based, and since the person has the relationship to project, it could 
transverse the object graph to get the txImpliction e.g. 
aPerson.project().txImplementation().  Then I will pull out the txImplication 
from the loop and place it in the same form.  It could then be saved by calling 
ec saveChanges.  
However, if the txImplication is person-based, I think you may need to change 
the model accordingly and txImplication as a attribute.  You may not be able to 
put the same string variable in the repetition loop and get the values saved. 

Cheers

Cheong Hee  

  - Original Message - 
  From: Raymond NANEON 
  To: Theodore Petrosky 
  Cc: WebObjects webobjects-dev 
  Sent: Thursday, August 04, 2011 6:12 AM
  Subject: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Ted


  Le 3 août 2011 à 21:28, Theodore Petrosky a écrit :



Raymond,

I assume I do not understand but, it appears that you are trying to bind 
the value of the inPlaceEditor to a single string var in your session. then 
when you click the ok or exit the inPlaceEditor you are trying to assign this 
value to the appropriate person object.

I will ask again. Is there a reason that you can not add an attribute 
txImplication to your entity person? 

  I can't add an attribute txImplication to my entity person because this 
attribute exist in the entity project which have relationship with entity 
person. perhaps I am doing something wrong in my code.


I would love to see your project perhaps you would like to use teamviewer 
and allow me to look?  

  No problem with team viewer but I am in france and there is jet lag beetwen 
us. I will be home around 5pm


http://www.teamviewer.com

Ted

  Ray


--- On Wed, 8/3/11, Raymond NANEON naneon.raym...@neuf.fr wrote:

From: Raymond NANEON naneon.raym...@neuf.fr
Subject: Re: Using AjaxInPlaceEditor in WORepetition
To: Theodore Petrosky tedp...@yahoo.com
Cc: WebObjects webobjects-dev webobjects-dev@lists.apple.com
Date: Wednesday, August 3, 2011, 1:50 PM

Hi All,


Here is the code of what I'm telling and I attached picture too see how the 
app look like.
In html :

...
  wo name = tableRow
tr
  tdwo name = pole //td
  tdwo name = nompre //td
  tdwo name = implication //td
  tdwo name = cout //td
/tr
  /wo
...

In WOD

...
tableRow : WORepetition {
list = session.personneDg.displayedObjects;
item = session.personRepetition;
}

pole : WOString {
value = poleValues;
}

nompre : WOString {
value = ~+session.personRepetition.nomPatronymique+ 
+session.personRepetition.prenom;
}
implication : AjaxInPlaceEditor {
value = session.TxImplication;
action = saveOnChange;
}

...

In java Class

...
public void saveOnChange() {
System.out.println(Implication.saveOnChange: save on change was 
performed for value  + session.getTxImplication());
NSMutableDictionary dicKey = new NSMutableDictionary();
//Here I select the person where the app user put the information

session.getPersonneDg().setSelectedObject(session.getPersonRepetition());
EOIndividuUlr perso = ((EOIndividuUlr) 
session.getPersonneDg().selectedObject()).localInstanceIn(ed);
//Here I take Id of the selected person in the displayGroup and associate 
the information about him and put all in a dictionnary to have for each 
information about person, the id attached
dicKey.put(perso.primaryKey(), session.getTxImplication());
persTxKey.addEntriesFromDictionary(dicKey);

//return this.value; return true;;
}

...

In Session Class :

...
private String txImplication = taux%;
...
//Here is my problem because the variable txImplication is the same for 
each person in the repetition
/**
 * @return the txImplication
 */
public String getTxImplication() {
return txImplication;
}

/**
 * @param txImplication the txImplication to set
 */
public void setTxImplication(String txImplication) {
this.txImplication = txImplication;
}

…

Le 3 août 2011 à 16:51, Theodore Petrosky a écrit :


I still have to ask how is this being used?

Why can you not add this attribute to the entity and be done? If each 
entity had the column you need just bind to the attribute.
When you say add this attribut to teh entity, what do you mean? Each 
Enttity don't have the column I need. The column I need exist in another entity 
which have relationship with the Entity that I want to bind the attribut. Look 
at my code and screen shot

ted


Message: 1
Date: Wed

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)

Hi Ray

Using your info, may be these are the changes you need:

Declare this integer in java file:
int movieIndex;


in wod:

repeat : WORepetition {
   list = Movies;
   index = movieIndex;
}


movieView : WOString {
   value = movieViewToShow;
}


In the java file, declare something like this:

public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null)  (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + Add more info .. ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck 
.title();

}

I am not familiar with AjaxInPlaceEditor yet, however don't think it will 
affect the above code.


Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 4:19 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Hee

Hope I get it right and may be this is what you need.  To manupulate the 
string for each iterative object in an array, you could set the index of 
WORepetition to an integer.
Then before display the string, check the objectAtIndex of the array and 
decide if the the string is to alter accordingly for that object.
== If the string I have declared is the same for all objects and if I want 
to give information about object at index+1.
The string I put in object at index will take value of string of object at 
index +1. So if I check the string of object at index and I see it's 
modify because object at index+1
give it another information of string. I can't hold this string for the 
object at index because there is one variable which loop.

example :
java class :



String critical
NSArrayMovie Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...
table...
tr
thname/th
thcriticals/th
/tr
webobject name=repeat
tr
tdwebobject name=movieView//td
tdwebobject name=criticalEditor//td
/tr
/webobject
/table
...

WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor;
...
}


Cheers

Ray

- Original Message - 
From: naneon.raym...@neuf.fr

To: Theodore Petrosky ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 2:48 AM
Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Ted,


if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor.
== I have an array to create the objects in repetition but each object 
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that 
mean each object have the same variable for the editor and it's my 
problem).



There is another way to use the InPlaceEditor in the loop without using the 
same variable for each object?





Message du : 31/07/2011
De : Theodore Petrosky  tedp...@yahoo.com
A : WebObjects webobjects-dev webobjects-dev@lists.apple.com, 
naneon.raym...@neuf.fr

Copie à :
Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



I am lost.
if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr wrote: From: 
naneon.raym...@neuf.fr Subject: Re: Re: Using AjaxInPlaceEditor in 
WORepetition To: Theodore Petrosky , WebObjects webobjects-dev Date: 
Saturday, July 30, 2011, 3:52 PM Hi Ted, Thanks for your quick reply but in 
my case the editor is not bound to the item.variable. The variable is not an 
item but a simple String. Let me explain, in the repetition I have 
item.variable and for each item.variable, I have an information to give.So 
the table have 2 columns, one for item.variable and the second is a variable 
string for the editor. So when for the first item.variable I give an 
information, this information is apply for all item.variable because there 
is one variable bound to the editor which loop for each item.variable. So I 
want to know if there is another to do it or how to fix it. Ray 
 Message du : 30/07/2011 De : 
Theodore Petrosky  A : webobjects-dev@lists.apple.com Copie à : 
naneon.raym...@neuf.fr Sujet : Re: Using AjaxInPlaceEditor in WORepetition 
It sounds like it is giving you exactly what you are asking for. a 
WORepetition with the same piece of data on every line. I have a table with 
a repetition and the editor is bound the the item.variable of the line with 
no problem. a string ImageEditInPlace : AjaxInPlaceEditor { value = 
theGridItem.image; submitOnBlur = true; okButton = false; cancelLink = 
false; action

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)

Ooops, you need to change ui.index to movieIndex.

and may be an item in the WORepetition:

repeat : WORepetition {
   item = Movie;
   list = Movies;
   index = movieIndex;
}


- Original Message - 
From: Cheong Hee (Gmail) chn...@gmail.com
To: naneon.raym...@neuf.fr; WebObjects webobjects-dev 
webobjects-dev@lists.apple.com

Sent: Monday, August 01, 2011 4:38 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition



Hi Ray

Using your info, may be these are the changes you need:

Declare this integer in java file:
int movieIndex;


in wod:

repeat : WORepetition {
   list = Movies;
   index = movieIndex;
}


movieView : WOString {
   value = movieViewToShow;
}


In the java file, declare something like this:

public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null)  (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + Add more info .. ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck 
.title();

}

I am not familiar with AjaxInPlaceEditor yet, however don't think it will 
affect the above code.


Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 4:19 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Hee

Hope I get it right and may be this is what you need.  To manupulate the 
string for each iterative object in an array, you could set the index of 
WORepetition to an integer.
Then before display the string, check the objectAtIndex of the array and 
decide if the the string is to alter accordingly for that object.
== If the string I have declared is the same for all objects and if I 
want to give information about object at index+1.
The string I put in object at index will take value of string of object 
at index +1. So if I check the string of object at index and I see 
it's modify because object at index+1
give it another information of string. I can't hold this string for the 
object at index because there is one variable which loop.

example :
java class :



String critical
NSArrayMovie Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...
table...
tr
thname/th
thcriticals/th
/tr
webobject name=repeat
tr
tdwebobject name=movieView//td
tdwebobject name=criticalEditor//td
/tr
/webobject
/table
...

WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor;
...
}


Cheers

Ray

- Original Message - 
From: naneon.raym...@neuf.fr

To: Theodore Petrosky ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 2:48 AM
Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Ted,


if you have a list (an array) to create the objects in the repetition, 
then each object will have an attribute (string) to use for the binding of 
the in place editor.
== I have an array to create the objects in repetition but each object 
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that 
mean each object have the same variable for the editor and it's my 
problem).



There is another way to use the InPlaceEditor in the loop without using 
the same variable for each object?





Message du : 31/07/2011
De : Theodore Petrosky  tedp...@yahoo.com
A : WebObjects webobjects-dev webobjects-dev@lists.apple.com, 
naneon.raym...@neuf.fr

Copie à :
Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



I am lost.
if you have a list (an array) to create the objects in the repetition, 
then each object will have an attribute (string) to use for the binding of 
the in place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr 
wrote: From: naneon.raym...@neuf.fr Subject: Re: Re: Using 
AjaxInPlaceEditor in WORepetition To: Theodore Petrosky , WebObjects 
webobjects-dev Date: Saturday, July 30, 2011, 3:52 PM Hi Ted, Thanks for 
your quick reply but in my case the editor is not bound to the 
item.variable. The variable is not an item but a simple String. Let me 
explain, in the repetition I have item.variable and for each 
item.variable, I have an information to give.So the table have 2 columns, 
one for item.variable and the second is a variable string for the editor. 
So when for the first item.variable I give an information, this 
information is apply for all item.variable because there is one variable 
bound to the editor which loop for each item.variable. So I want to know 
if there is another to do it or how to fix it. Ray 
 Message du : 30/07/2011 De : 
Theodore Petrosky  A : webobjects-dev@lists.apple.com Copie à : 
naneon.raym...@neuf.fr Sujet : Re

Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)

Ooops, you need to change ui.index to movieIndex.

and may be an item in the WORepetition:

repeat : WORepetition {
   item = Movie;
   list = Movies;
   index = movieIndex;
}


- Original Message - 
From: Cheong Hee (Gmail) chn...@gmail.com

To: naneon.raym...@neuf.fr; WebObjects webobjects-dev
webobjects-dev@lists.apple.com
Sent: Monday, August 01, 2011 4:38 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition



Hi Ray

Using your info, may be these are the changes you need:

Declare this integer in java file:
int movieIndex;


in wod:

repeat : WORepetition {
   list = Movies;
   index = movieIndex;
}


movieView : WOString {
   value = movieViewToShow;
}


In the java file, declare something like this:

public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null)  (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + Add more info .. ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
.title();
}

I am not familiar with AjaxInPlaceEditor yet, however don't think it will
affect the above code.

Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 4:19 PM
Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Hee

Hope I get it right and may be this is what you need.  To manupulate the
string for each iterative object in an array, you could set the index of
WORepetition to an integer.
Then before display the string, check the objectAtIndex of the array and
decide if the the string is to alter accordingly for that object.
== If the string I have declared is the same for all objects and if I
want to give information about object at index+1.
The string I put in object at index will take value of string of object
at index +1. So if I check the string of object at index and I see
it's modify because object at index+1
give it another information of string. I can't hold this string for the
object at index because there is one variable which loop.
example :
java class :



String critical
NSArrayMovie Movies;
Movie movieRepetition;


...


public void saveInPlaceEditor () {


...


}


Html :
...
table...
tr
thname/th
thcriticals/th
/tr
webobject name=repeat
tr
tdwebobject name=movieView//td
tdwebobject name=criticalEditor//td
/tr
/webobject
/table
...

WOD :


repeat : WORepetition {
list = Movies;
index = movieRepetition;
}


movieView : WOString {
value = movieRepetition.title;
}


criticalEditor : AjaxInPlaceEditor {
value = critical;
action = saveInPlaceEditor;
...
}


Cheers

Ray

- Original Message - 
From: naneon.raym...@neuf.fr

To: Theodore Petrosky ; WebObjects webobjects-dev
Sent: Monday, August 01, 2011 2:48 AM
Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


Hi Ted,


if you have a list (an array) to create the objects in the repetition,
then each object will have an attribute (string) to use for the binding of
the in place editor.
== I have an array to create the objects in repetition but each object
don't have an attribute string. I created independent
variable which give an information about theses objects in the loop (that
mean each object have the same variable for the editor and it's my
problem).


There is another way to use the InPlaceEditor in the loop without using
the same variable for each object?




Message du : 31/07/2011
De : Theodore Petrosky  tedp...@yahoo.com
A : WebObjects webobjects-dev webobjects-dev@lists.apple.com,
naneon.raym...@neuf.fr
Copie à :
Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



I am lost.
if you have a list (an array) to create the objects in the repetition,
then each object will have an attribute (string) to use for the binding of
the in place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr
wrote: From: naneon.raym...@neuf.fr Subject: Re: Re: Using
AjaxInPlaceEditor in WORepetition To: Theodore Petrosky , WebObjects
webobjects-dev Date: Saturday, July 30, 2011, 3:52 PM Hi Ted, Thanks for
your quick reply but in my case the editor is not bound to the
item.variable. The variable is not an item but a simple String. Let me
explain, in the repetition I have item.variable and for each
item.variable, I have an information to give.So the table have 2 columns,
one for item.variable and the second is a variable string for the editor.
So when for the first item.variable I give an information, this
information is apply for all item.variable because there is one variable
bound to the editor which loop for each item.variable. So I want to know
if there is another to do it or how to fix it. Ray
 Message du : 30/07/2011 De :
Theodore Petrosky  A : webobjects-dev@lists.apple.com Copie à :
naneon.raym...@neuf.fr Sujet : Re: Using AjaxInPlaceEditor in WORepetition

Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-08-01 Thread Cheong Hee (Gmail)
Hi Ray

No prob. Then you may just need to add an index counter to track down the 
object that you are interested to alter its string value, as mentioned.

Cheers

Cheong Hee

  - Original Message - 
  From: naneon.raym...@neuf.fr 
  To: Cheong Hee (Gmail) ; WebObjects webobjects-dev 
  Sent: Monday, August 01, 2011 6:01 PM
  Subject: Re: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Hee

  I made a mistake in my example. In repetition, it's not index but item (WOD)
  example :
  java class :


  
  String critical
  NSArrayMovie Movies;
  Movie movieRepetition;


  ...


  public void saveInPlaceEditor () {


  ...


  }


  Html :
  ...
  table...
  tr
  thname/th
  thcriticals/th
  /tr
  webobject name=repeat
  tr
  tdwebobject name=movieView//td
  tdwebobject name=criticalEditor//td
  /tr
  /webobject
  /table
  ...

  WOD :


  repeat : WORepetition {
  list = Movies;
  item = movieRepetition;
  }


  movieView : WOString {
  value = movieRepetition.title;
  }


  criticalEditor : AjaxInPlaceEditor {
  value = critical;
  action = saveInPlaceEditor; 
  ...
  }


  

  Ooops, you need to change ui.index to movieIndex.

  and may be an item in the WORepetition:

  repeat : WORepetition {
  item = Movie;
  list = Movies;
  index = movieIndex;
  }


  == What about AjaxInPlaceEditor? You don't use it in your example code? In 
my app,
  I would like to give hand to people to write a critical for the movie they 
chose in my table of movies and it's the utility of 
  ajaxInPlaceEditor.


  Ray


  - Original Message - 
  From: Cheong Hee (Gmail) 
  To: ; WebObjects webobjects-dev

  Sent: Monday, August 01, 2011 4:38 PM
  Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


   Hi Ray
  
   Using your info, may be these are the changes you need:
  
   Declare this integer in java file:
   int movieIndex;
  
  
   in wod:
  
   repeat : WORepetition {
   list = Movies;
   index = movieIndex;
   }
  
  
   movieView : WOString {
   value = movieViewToShow;
   }
  
  
   In the java file, declare something like this:
  
   public String movieViewToShow(){
   String movieTitleChanged=null;
   Movie movieToCheck = (Movie)Movies.objectAtIndex(ui.index);
   if ((movieToCheck !=null)  (...do your validation ...))
   movieTitleChanged=movieToCheck.title() + Add more info .. ;
   return (movieTitleChanged!=null) ? movieTitleChanged : movieToCheck
   .title();
   }
  
   I am not familiar with AjaxInPlaceEditor yet, however don't think it will
   affect the above code.
  
   Cheers
  
   Cheong Hee
  
   - Original Message - 
   From: naneon.raym...@neuf.fr
   To: Cheong Hee (Gmail) ; WebObjects webobjects-dev
   Sent: Monday, August 01, 2011 4:19 PM
   Subject: Re: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  
  
   Hi Hee
  
   Hope I get it right and may be this is what you need. To manupulate the
   string for each iterative object in an array, you could set the index of
   WORepetition to an integer.
   Then before display the string, check the objectAtIndex of the array and
   decide if the the string is to alter accordingly for that object.
   == If the string I have declared is the same for all objects and if I
   want to give information about object at index+1.
   The string I put in object at index will take value of string of object
   at index +1. So if I check the string of object at index and I see
   it's modify because object at index+1
   give it another information of string. I can't hold this string for the
   object at index because there is one variable which loop.
   example :
   java class :
  
  
   
   String critical
   NSArray Movies;
   Movie movieRepetition;
  
  
   ...
  
  
   public void saveInPlaceEditor () {
  
  
   ...
  
  
   }
  
  
   Html :
   ...
   
   
   name
   
   
   
   
   
   
   
   
   
   ...
  
   WOD :
  
  
   repeat : WORepetition {
   list = Movies;
   index = movieRepetition;
   }
  
  
   movieView : WOString {
   value = movieRepetition.title;
   }
  
  
   criticalEditor : AjaxInPlaceEditor {
   value = critical;
   action = saveInPlaceEditor;
   ...
   }
  
  
   Cheers
  
   Ray
  
   - Original Message - 
   From: naneon.raym...@neuf.fr
   To: Theodore Petrosky ; WebObjects webobjects-dev
   Sent: Monday, August 01, 2011 2:48 AM
   Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition
  
  
   Hi Ted,
  
  
   if you have a list (an array) to create the objects in the repetition,
   then each object will have an attribute (string) to use for the binding of
   the in place editor.
   == I have an array to create the objects in repetition but each object
   don't have an attribute string. I created independent
   variable which give an information about theses objects in the loop (that
   mean each object have the same variable for the editor and it's my
   problem).
  
  
   There is another way to use the InPlaceEditor

Re: Re: Re: Using AjaxInPlaceEditor in WORepetition

2011-07-31 Thread Cheong Hee (Gmail)
Hi Ray

Hope I get it right and may be this is what you need.  To manupulate the string 
for each iterative object in an array, you could set the index of WORepetition 
to an integer.  Then before display the string, check the objectAtIndex of the 
array and decide if the the string is to alter accordingly for that object.  

Cheers

Cheong Hee

  - Original Message - 
  From: naneon.raym...@neuf.fr 
  To: Theodore Petrosky ; WebObjects webobjects-dev 
  Sent: Monday, August 01, 2011 2:48 AM
  Subject: Re: Re: Re: Using AjaxInPlaceEditor in WORepetition


  Hi Ted,


   if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor.
  == I have an array to create the objects in repetition but each object don't 
have an attribute string. I created independent 
  variable which give an information about theses objects in the loop (that 
mean each object have the same variable for the editor and it's my problem).


  There is another way to use the InPlaceEditor in the loop without using the 
same variable for each object?


  

  Message du : 31/07/2011
  De : Theodore Petrosky  tedp...@yahoo.com
  A : WebObjects webobjects-dev webobjects-dev@lists.apple.com, 
naneon.raym...@neuf.fr
  Copie à : 
  Sujet : Re: Re: Using AjaxInPlaceEditor in WORepetition



  I am lost. 
   if you have a list (an array) to create the objects in the repetition, then 
each object will have an attribute (string) to use for the binding of the in 
place editor. Ted --- On Sat, 7/30/11, naneon.raym...@neuf.fr wrote: From: 
naneon.raym...@neuf.fr Subject: Re: Re: Using AjaxInPlaceEditor in WORepetition 
To: Theodore Petrosky , WebObjects webobjects-dev Date: Saturday, July 30, 
2011, 3:52 PM Hi Ted, Thanks for your quick reply but in my case the editor is 
not bound to the item.variable. The variable is not an item but a simple 
String. Let me explain, in the repetition I have item.variable and for each 
item.variable, I have an information to give.So the table have 2 columns, one 
for item.variable and the second is a variable string for the editor. So when 
for the first item.variable I give an information, this information is apply 
for all item.variable because there is one variable bound to the editor which 
loop for each item.variable. So I want to know if there is another to do it or 
how to fix it. Ray  Message du : 
30/07/2011 De : Theodore Petrosky  A : webobjects-dev@lists.apple.com Copie à 
: naneon.raym...@neuf.fr Sujet : Re: Using AjaxInPlaceEditor in WORepetition It 
sounds like it is giving you exactly what you are asking for. a WORepetition 
with the same piece of data on every line. I have a table with a repetition and 
the editor is bound the the item.variable of the line with no problem. a string 
ImageEditInPlace : AjaxInPlaceEditor { value = theGridItem.image; submitOnBlur 
= true; okButton = false; cancelLink = false; action = 
saveAfterLeavingInPlaceEditor; size = 15; clickToEditText =HeadLine; 
editClass=editInPlaceClass; } Ted  --   
Message: 8  Date: Sat, 30 Jul 2011 18:58:20 +0200 (CEST)  From: 
naneon.raym...@neuf.fr  Subject: Using AjaxInPlaceEditor in WORepetition  To: 
WebObjects webobjects-dev  Message-ID:  
18747875.180751312045100987.JavaMail.www@wsfrf1217  Content-Type: 
text/plain; charset=utf-8   Hi,I have a little problem with 
AjaxInPlaceEditor in a  WORepetition. The Problem is the variable I declared 
for  AjaxInPlaceEditor.  In the WORepetition I have the same variable in each 
line  of the repetition and when I choose in example line 2 and  edit it and 
put an information,  the same information is repeat on all other line.
So How can I fix it? How can I use an AjaxInPlaceEditor in  a WORepetition 
with one variable and isolate it when I edit  a line in the repetition and put 
an information?Thanks for your help. 





--


  ___
  Do not 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/chng34%40gmail.com

  This email sent to chn...@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: ^ binding syntax usage

2011-07-26 Thread Cheong Hee (Gmail)

Hi Lachlan

Sure you did and I read that too :)

Cheers

Cheong Hee

- Original Message - 
From: Lachlan Deck lachlan.d...@gmail.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: webobjects-dev@lists.apple.com
Sent: Tuesday, July 26, 2011 6:56 PM
Subject: Re: ^ binding syntax usage


Hi Cheong,

the WOComponent file spec wasn't at issue for me, but how WO resolves the 
java class for it when it is not in the default java package.

I've solved it as mentioned.

Lachlan Deck
lachlan.d...@gmail.com

On 22/07/2011, at 7:50 PM, Cheong Hee (Gmail) wrote:


Hi Lachlan

Deos this serve the purpose?

http://developer.apple.com/legacy/mac/library/#documentation/InternetWeb/Reference/WO_BundleReference/Articles/WOComponentHTML.html#//apple_ref/doc/uid/TP40005353-SW1

Cheers

Cheong Hee


___
Do not 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: ^ binding syntax usage

2011-07-22 Thread Cheong Hee (Gmail)

Hi Lachlan

Deos this serve the purpose?

http://developer.apple.com/legacy/mac/library/#documentation/InternetWeb/Reference/WO_BundleReference/Articles/WOComponentHTML.html#//apple_ref/doc/uid/TP40005353-SW1

Cheers

Cheong Hee

- Original Message - 
From: Lachlan Deck lachlan.d...@gmail.com

To: webobjects-dev Development webobjects-dev@lists.apple.com
Sent: Friday, July 22, 2011 3:26 AM
Subject: ^ binding syntax usage



Hi there,

anyone remember when the '^' was introduced for component bindings and 
where the official docs are for it?


I'm obviously a little rusty on its usage as I can't make it work.

e.g.,
MainWrapper.wo:
...
head
wo:string value=$^title/
/head

Main.wo:
wo:MainWrapper title=Foo bar
...
/wo:MainWrapper

UnknownKeyException: [com.webobjects.appserver.WOComponent name: 
MainWrapper subcomponents: null  takeValueForKey()]: attempt to assign 
value to unknown key: 'title'. This WOComponent does not have an instance 
variable of the name title or _title, nor a method of the name setTitle or 
_setTitle


public class MainWrapper.java extends ERXStatelessComponent {...}
public class Main.java extends ERXNonSynchronizingComponent {...}

What am I missing?

with regards,
-

Lachlan Deck

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

This email sent to chn...@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: Re: How to get each CheckBox value inside a WORepetition Bind to the same variable

2011-06-17 Thread Cheong Hee (Gmail)

Hi

I think what is missing is - for your onclick to work, you will need to add 
a submit button and wrap in the woform.


For example, in wocheckbox, if you set the value to 5, and bind the 
selection to isActive (an Integer).  you will need to bind the onclick to 
the following value:


CheckBoxTest : WOCheckBox {
value = 5;
selection = isActive;
onClick = document.all('submitButton1').click();;
}

Then add your submit button as the following:

submitButton : WOSubmitButton {
action = doSubmit;
name = submitButton1;
}

The onclick will call the submit button, and return the value=5 (if it is 
checked) to your component page.  Passing the value to the next page will be 
easy then.


Hope it helps.

Cheers

Cheong Hee

- Original Message - 
From: naneon.raym...@neuf.fr

To: Mark Morris ; Chuck Hill ; WebObjects webobjects-dev
Sent: Friday, June 17, 2011 4:05 PM
Subject: Re: Re: How to get each CheckBox value inside a WORepetition Bind 
to the same variable



Hi,
[snip]


masterCheck : WOCheckBox {
class = texte;
name = master;
*To Chuck === Why I can't give the same name of my checkboxes?*

selection = selectedMaster; -Variable bind to check box value
value = master.diplSpecAbr; ---CheckBox value
// onclick = MstChecked(this.form); JS function wo call a java method 
to get checkbox value




The only binding you need to get the checkbox value is the value binding. 
This is two-way, just like a WOString. When the page is displayed, it will 
try to evaluate diplSpecAbr or getDiplSpecAbr. When the form is submitted, 
it will call setDiplSpecAbr. (Or it will try to read and set the variable, 
if that's what it is vs. accessor methods.)



You don't need the selection or onclick to get the values back. 
master.diplSpecAbr, for each item, will just be set to the value 
automatically when the form is submitted.
===When I don't put 'selection' in attribute of my checkBox in WOD I have 
this error  : if either selection or value is bound, then both must be 
bound. So it's important to have 'selection' attribute for a checkBox in WO.



=== If I don't have 'selection' which is bound to the value of my checkBox, 
How I get my selectedValue in the nextPage of my apps?



For checkboxes, it's often useful to have accessor methods in the page's 
java that explicitly translates between the checkbox's boolean and the 
meaning in the object. You would have access to the master item from the 
repetition there, so implementation is straightforward.



===I have my accessor methods in the page's java. When I select the 
checkBox, it set the value the selection variable. and when I want to get 
this value, I call get of the selection variable. But in this case, we are 
in another context. Do you have an example for me?



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/chng34%40gmail.com

This email sent to chn...@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: Moving to Brunei in July!

2011-05-19 Thread Cheong Hee (Gmail)

Hi David

Count me in if you have full WOWODC SEA - i am at Malaysia.. sandwiched 
between Thailand and Singapore.
Brunei is between a state of Malaysia - Sarawak.  Good place and my last 
visit to a bank there has been a long time ago.


Cheers

Cheong Hee

- Original Message - 
From: David Avendasora webobje...@avendasora.com
To: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com; 
wonder Project wonder-d...@lists.sourceforge.net

Sent: Tuesday, May 17, 2011 1:21 AM
Subject: OT: Moving to Brunei in July!



Hey all,

This is just a quick note to let everyone know that I will be moving from 
Northern Virginia in the US to Bandar Seri Begawan in Brunei Darussalam 
(http://en.wikipedia.org/wiki/Brunei) at the end of July. I'll be there 
for a couple years. This should simply be a change in location for me, not 
a change of career. However, it will be a change in my Beer/Scotch/Bacon 
consumption (no, not aways together, or in that order).


I will still be attending / speaking / imbibing / pizzagetting at WOWODC 
this year so I look forward to seeing everyone again, and meeting some of 
you for the first time!


I hope to learn enough from Pascal about putting on a conference to be 
able to put on a full WOWODC SE Asia / Oceania at some point in the next 
couple years. Maybe in Thailand or Australia but in the meantime, are 
there any WebObjects developers out there in the South China Sea-area that 
would be interested in a less-formal weekend WO get-together? I could 
likely host in Brunei or I could travel. Whichever would workout for more 
people!


Dave ___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: build.xml: Content is not allowed in prolog.

2011-05-18 Thread Cheong Hee Ng
It is.  I realize there are many wonder framework files are using this
symbolic link.  As far as it is workable, it should be noted to replace them
and not to annoyed by this build error - for windows users.

On Tue, May 17, 2011 at 7:27 PM, Q qdo...@gmail.com wrote:


 I think you will find the problem is to do with the use of symlinks in
 wonder's build files. Windows doesn't support symlinks.

 On 17/05/2011, at 7:45 PM, Cheong Hee (Gmail) wrote:

  It works by replacing the build.xml from parent Build directory to each
 individual frameworks.  This is just for update for future reference.
 
  - Original Message - From: Cheong Hee (Gmail) 
 chn...@gmail.com
  To: WebObjects Dev webobjects-dev@lists.apple.com
  Sent: Monday, May 16, 2011 5:25 PM
  Subject: build.xml: Content is not allowed in prolog.
 
 
  Hi
 
  I am still at the stone age.  While trying to mae the wonder worked in
 pc/windows, I this install build error in ERExtensions and ERJavaMail:
  ERExtensions\build.xml:1: Content is not allowed in prolog.
 
  In build.xml, the contents is :
  ../../../Build/build/build-framework-template.xml
  The build.xml works well in mac.  I am looking for trouble for trying to
 do it in windows... i believe someone may has solve this, but just could not
 find in the past emails.
 
  Cheers
  Cheong Hee
 
  ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
  http://lists.apple.com/mailman/options/webobjects-dev/qdolan%40gmail.com
 
  This email sent to qdo...@gmail.com

 --
 Seeya...Q

 Quinton Dolan - qdo...@gmail.com
 Gold Coast, QLD, Australia (GMT+10)





 ___
Do not 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: build.xml: Content is not allowed in prolog.

2011-05-18 Thread Cheong Hee (Gmail)

Hi Henrique

Points taken, thanks.  My intention is to get more familization with the 
wonder build and fix a version to use.  May be easier for small 
customization if needed.


Cheers

Cheong Hee

- Original Message - 
From: Henrique Prange hpra...@gmail.com

To: WebObjects Dev webobjects-dev@lists.apple.com
Sent: Wednesday, May 18, 2011 2:44 AM
Subject: Re: build.xml: Content is not allowed in prolog.



Hi Cheong,

On 16/05/2011, at 06:25, Cheong Hee (Gmail) wrote:


Hi

I am still at the stone age.


Do yourself a favor, try Maven. :) It brings a lot of benefits on 
multi-platform development. The first one, you don't have to build Wonder 
on every machine. Maven downloads the latest Wonder artifacts from 
WOCommunity automatically when needed.


Cheers,

Henrique

 While trying to mae the wonder worked in pc/windows, I this install 
build error in ERExtensions and ERJavaMail:

ERExtensions\build.xml:1: Content is not allowed in prolog.

In build.xml, the contents is :
../../../Build/build/build-framework-template.xml
The build.xml works well in mac.  I am looking for trouble for trying to 
do it in windows... i believe someone may has solve this, but just could 
not find in the past emails.


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

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


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

This email sent to chn...@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: build.xml: Content is not allowed in prolog.

2011-05-17 Thread Cheong Hee (Gmail)
It works by replacing the build.xml from parent Build directory to each 
individual frameworks.  This is just for update for future reference.


- Original Message - 
From: Cheong Hee (Gmail) chn...@gmail.com

To: WebObjects Dev webobjects-dev@lists.apple.com
Sent: Monday, May 16, 2011 5:25 PM
Subject: build.xml: Content is not allowed in prolog.



Hi

I am still at the stone age.  While trying to mae the wonder worked in 
pc/windows, I this install build error in ERExtensions and ERJavaMail:

ERExtensions\build.xml:1: Content is not allowed in prolog.

In build.xml, the contents is :
../../../Build/build/build-framework-template.xml
The build.xml works well in mac.  I am looking for trouble for trying to 
do it in windows... i believe someone may has solve this, but just could 
not find in the past emails.


Cheers
Cheong Hee 


___
Do not 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


build.xml: Content is not allowed in prolog.

2011-05-16 Thread Cheong Hee (Gmail)

Hi

I am still at the stone age.  While trying to mae the wonder worked in 
pc/windows, I this install build error in ERExtensions and ERJavaMail:

ERExtensions\build.xml:1: Content is not allowed in prolog.

In build.xml, the contents is :
../../../Build/build/build-framework-template.xml
The build.xml works well in mac.  I am looking for trouble for trying to do 
it in windows... i believe someone may has solve this, but just could not 
find in the past emails.


Cheers
Cheong Hee 


___
Do not 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


root directory of workspace changes

2011-03-22 Thread Cheong Hee (Gmail)
Hi all

I have relocated the root directory of workspace in Eclipse/WOLips.  Now the 
new launch of WOLips could not locate .project.  Is there any file or setting 
i could look at?  

Cheers

Cheong Hee ___
Do not 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: Remote recording application - Powered by WO and Wonder

2011-03-07 Thread Cheong Hee (Gmail)

Congratulations!!!  Just wonder what sort of intelligent recorder it is :)

- Original Message - 
From: Brook, James jbr...@upcbroadband.com

To: webobjects-dev@lists.apple.com
Cc: Fitzpatrick, Thomas thfitzpatr...@upcbroadband.com
Sent: Monday, March 07, 2011 6:18 PM
Subject: Remote recording application - Powered by WO and Wonder


I am sure that in the past I used to see lots more launch announcement 
e-mails on this list than I see these days. It is always good to read about 
new WebObjects powered products going live, so I thought I would share some 
details of ours and take the opportunity to thank the community.


In December we launched our remote recording application - 
http://www.upc.nl/televisie/opnemen-op-afstand/. It is a TV guide which 
allows UPC customers in the Netherlands to remotely set recordings on their 
digital video recorders. There is a web application, an iPhone/iPad app and 
a mobile web app. We now have tens of thousands of active users and are busy 
with the next phase of the project.


We use Project Wonder extensively, not just the core frameworks. In 
particular ERRest plays a major part. Thank you very much to those who have 
created such excellent frameworks and contributed to our success.


We use EOF and a relational database, and additionally we used BDB Java 
Edition. We found it easy to set up a replicated data store of POJOs with 
simple relationships and constraints running embedded inside our WebObjects 
application instances. BDB JE is well worth checking out if you need 
something like that.


Thank you to my team mates Ben, Thomas and Jedrzej who spent most of last 
summer making this complicated systems integration and product possible.


--
James Brook ___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: Remote recording application - Powered by WO and Wonder

2011-03-07 Thread Cheong Hee (Gmail)

Hi James

Thanks for the elaboration and good luck.

Cheers

Cheong Hee

- Original Message - 
From: Brook, James jbr...@upcbroadband.com
To: Cheong Hee (Gmail) chn...@gmail.com; 
webobjects-dev@lists.apple.com

Sent: Monday, March 07, 2011 8:05 PM
Subject: RE: Remote recording application - Powered by WO and Wonder


Cheong,

For the remote recording part of the application, nearly all of the 
intelligence is on the server side - in the WebObjects application of 
course. There is some functionality to prioritise recordings and avoid 
conflicts on the box and there is an 'inbox' on the server side so that 
recordings can be downloaded by the box at any time before an event starts 
if it cannot be contacted at the time that the recording is set. Recording 
status notifications can be sent to the user via e-mail or push 
notification. Soon the application will support making recordings for whole 
series. More intelligence is on the way!


Best regards
James


From: Cheong Hee (Gmail) [chn...@gmail.com]
Sent: 07 March 2011 11:41
To: Brook, James; webobjects-dev@lists.apple.com
Cc: Fitzpatrick, Thomas
Subject: Re: Remote recording application - Powered by WO and Wonder

Congratulations!!!  Just wonder what sort of intelligent recorder it is :)

- Original Message -
From: Brook, James jbr...@upcbroadband.com
To: webobjects-dev@lists.apple.com
Cc: Fitzpatrick, Thomas thfitzpatr...@upcbroadband.com
Sent: Monday, March 07, 2011 6:18 PM
Subject: Remote recording application - Powered by WO and Wonder


I am sure that in the past I used to see lots more launch announcement
e-mails on this list than I see these days. It is always good to read about
new WebObjects powered products going live, so I thought I would share some
details of ours and take the opportunity to thank the community.

In December we launched our remote recording application -
http://www.upc.nl/televisie/opnemen-op-afstand/. It is a TV guide which
allows UPC customers in the Netherlands to remotely set recordings on their
digital video recorders. There is a web application, an iPhone/iPad app and
a mobile web app. We now have tens of thousands of active users and are busy
with the next phase of the project.

We use Project Wonder extensively, not just the core frameworks. In
particular ERRest plays a major part. Thank you very much to those who have
created such excellent frameworks and contributed to our success.

We use EOF and a relational database, and additionally we used BDB Java
Edition. We found it easy to set up a replicated data store of POJOs with
simple relationships and constraints running embedded inside our WebObjects
application instances. BDB JE is well worth checking out if you need
something like that.

Thank you to my team mates Ben, Thomas and Jedrzej who spent most of last
summer making this complicated systems integration and product possible.

--
James Brook ___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: WO Group Emails are in literal HTML code and not parsed...

2011-01-10 Thread Cheong Hee (Gmail)
Just a thinker..may be the setting has changed in your 
webobjects-...@lists.apple.com.  I don't use yahoo account for wo since it 
could not forward to my local mailbox.  If you want to try, you could forward 
me another sample to cheong...@yahoo.com; the sample you posted looks good to 
me too.


  - Original Message - 
  From: Shravan Kumar. M 
  To: WO Dev Group 
  Sent: Tuesday, January 11, 2011 5:03 AM
  Subject: Re: WO Group Emails are in literal HTML code and not parsed...


  Thanks for your response Chuck.

  I use Yahoo! Mail since long time and I see this issue since last few months 
only. Now all my old WO messages as well look literal HTML!!



--
  From: Chuck Hill ch...@global-village.net
  To: Shravan Kumar. M mshravan_...@yahoo.com
  Cc: WO Dev Group webobjects-dev@lists.apple.com
  Sent: Sun, January 9, 2011 4:40:34 PM
  Subject: Re: WO Group Emails are in literal HTML code and not parsed...

  What posted looks fine to me.  Maybe you have something set wrong in your 
email reader?


  On Jan 9, 2011, at 4:31 PM, Shravan Kumar. M wrote:

   Hi Group,
   
   Hope some one has come across this issue, could you help me figure out the 
issue:
   
   All the group emails I receive at my yahoo a/c are in literal HTML i.e., 
the HTML code is not parsed and is difficult to read them. For Eg:
   





--


  ___
  Do not 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/chng34%40gmail.com

  This email sent to chn...@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: SQLSERVER PlugIn for WebObjects

2010-12-01 Thread Cheong Hee (Gmail)
Looks like you are still using FrontBase jdbc2Info.  Look into 
index.eomodeld, and try to change those to MSSQL jdbc2Info.


Cheers

Cheong Hee

- Original Message - 
From: Jérémy DE ROYER jeremy.dero...@ingencys.net

To: Chuck Hill ch...@global-village.net
Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Thursday, December 02, 2010 2:09 AM
Subject: Re: SQLSERVER PlugIn for WebObjects


I though this file was used to the plug in to translate the sql... like 
prototypes.


Jérémy

Le 1 déc. 2010 à 19:07, Chuck Hill a écrit :


Here is a list of column types valid for SQL Server 2005:

ERXMicrosoftPlugInJDBCInfo.plist


On Dec 1, 2010, at 10:05 AM, Jérémy DE ROYER wrote:


I was only using Frontbase... from now

And even if I am a early reader of your book. Prototypes are the thing I 
didn't use from now. I will have to change... all my models !


Hope it may help developpers who don't care about prototypes.

Jérémy

Le 1 déc. 2010 à 19:01, Chuck Hill a écrit :


You are doing two things wrong:

1. You are not using prototypes.  This is foolish.
http://wiki.objectstyle.org/confluence/display/WO/EOF-Modeling-Prototypes


2. The correct type is int not INTEGER.



Chuck


On Dec 1, 2010, at 9:44 AM, Jérémy DE ROYER wrote:


What I've done :
- download the framework from chuck's website
- copy in /Library/Frameworks
- add it to the build path in wolips
- create a new eomodel with Driver = 
com.microsoft.sqlserver.jdbc.SQLServerDriver and PlugIn = 
com.webobjects.jdbcadaptor.ERXMicrosoftPlugIn

- create a simple table with id (integer) and title (varchar)
{
attributes = (
{
columnName = ID;
externalType = INTEGER;
name = id;
valueClassName = NSNumber;
valueType = i;
},
{
columnName = TITLE;
externalType = VARCHAR;
name = title;
valueClassName = NSString;
width = 100;
}
);
attributesUsedForLocking = (id, title);
className = TestTable;
classProperties = (name);
externalName = TEST_TABLE;
fetchSpecificationDictionary = {};
internalInfo = {_javaClientClassName = TestTable; };
name = TestTable;
primaryKeyAttributes = (id);
}

- generate sql
(error)

Anything else to set up ?

Jérémy



Le 1 déc. 2010 à 18:34, Michael Hast a écrit :


Hi :

I am using Chucks SQLServer PlugIn. Below is from another email that I 
have saved:


On Apr 9, 2009, at 5:57 AM, David Avendasora wrote:


Hi Chuck,

I'm wondering if there is a more recent version of the
MicrosoftPlugin. I have a version you sent out on September 26th
last year. I'm upgrading to 5.4 finally, and it is still not in
Wonder (why, Anjo?).


I keep it up to date here for now:
http://www.gvcsitemaker.com/chill/ms_sql_server_eof_plugin

Also there is a probable explanation for why it is not in Wonder.

Chuck


-- Chuck Hill Senior Consultant / VP Development Practical 
WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems. 
http://www.global-village.net/products/practical_webobjects -- 
This SF.net email is sponsored by: High Quality Requirements in a 
Collaborative Environment. Download a free trial of Rational 
Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com 
___ Wonder-disc mailing 
list wonder-d...@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/wonder-disc


On 12/1/2010 10:29 AM, Jérémy DE ROYER wrote:

Hi,

No reverse engineer, just create a new database and generate SQL from 
eomodeler.


Jérémy

Le 1 déc. 2010 à 18:24, Chuck Hill a écrit :

Are you trying to reverse engineer a database?  I have not done 
anything to get that to work.


Chuck


On Dec 1, 2010, at 9:15 AM, Jérémy DE ROYER wrote:


Hello,

I was asked if we could use SQL Server as database server.

I've tried to set it up using MicrosoftPlugIn and 
ERXMicrosoftPlugIn and whatever I do or use, I get the error here 
after.


I've seen a file called ERXMicrosoftPlugInJDBCInfo.plist that 
should solve to problem but don't know how to set it.


Have someone succeded using SQL Server ? How ?

Jérémy DE ROYER

java.lang.RuntimeException: Failed to generate SQL.
at 
org.objectstyle.wolips.eomodeler.core.sql.EOFSQLGeneratorFactory$ReflectionSQLGenerator.generateSchemaCreationScript(EOFSQLGeneratorFactory.java:67)
at 
org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog.generateSql(GenerateSQLDialog.java:298)
at 
org.objectstyle.wolips.eomodeler.actions.GenerateSQLDialog$1.run(GenerateSQLDialog.java:279)

at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25

Re: Splitting an EOModel

2010-11-11 Thread Cheong Hee (Gmail)

Dear Dave

I thought this may work.  Copy and paste the entities first without their 
relationships.  After all entities exist, then go back and copy and paste 
their respective relationships.  The issue may be if there is many-to-many 
join table.  By doing this, you at least able to copy over quite some 
entities and left fewer relationships to patch up.


Cheers

Cheong Hee

- Original Message - 
From: David Avendasora webobje...@avendasora.com

To: Farrukh Ijaz farrukh.i...@fuegodigitalmedia.com
Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
Sent: Thursday, November 11, 2010 8:27 PM
Subject: Re: Splitting an EOModel


Thanks Farrukh,

I was hopping not to be messing around in the plists, but... sigh. It does 
work to work within Eclipse, but you have to work in the Navigator view 
where you can get to the .plist files, not that this is much better than 
working in the finder.


The biggest issue with working in the finder is that when I try to search 
the .plist files for the schema name that I want to move so I can find all 
the entities, spotlight apparently doesn't index .plist files so it doesn't 
find any. At least with Eclipse I can get a list of the plist files that are 
for the schema I want to split off.


It would be so much easier if Entity Modeler didn't kill any relationships 
where it can't find the destination entity in the same model when pasting. 
I'll create a Jira bug ticket.


Thanks again, Farrukh.

Dave


On Nov 11, 2010, at 4:17 AM, Farrukh Ijaz wrote:


Hi David,

Commets below:

Farrukh

On 2010-11-11, at 1:51 AM, David Avendasora wrote:


Hi all,

I've got an EOModel that spans several schemas in the database and I'd 
like to break it into several schema-specific EOModels. There seems to be 
no easy way to move Entities out of one model and into another other than 
copy-paste, but copy-paste doesn't modify the relationships to point back 
to the original model that the entities were copied out of, and on top of 
that, you can't change the model setting for a relationship after it is 
created.


Don't use Eclipse. You simply need a text editor to edit the 
index.eomodeld files and either use Finder or Terminal to move the files 
around. You just need to make sure after making the changes, your models 
are accessible within the classpath if the models reside in different 
frameworks).


Assuming you have a model called AllInOne EOModel and you want to split 
it to First EOModel, Second EOModel and Third EOModel.


Step 1: Open your AllInOne EOModel in Finder and select all the *.plist 
files that you want to move to First EOModel and drag them to First 
EOModel, Do the same for Second EOModel and Third EOModel.
Step 2: Copy the AllInOne EOModel's index.eomodeld file to First EOModel, 
Second EOModel and Third EOModel.
Step 3: Open the First EOModel's index.eomodeld file and delete the 
entries from the entities() section which do not belong to First EOModel. 
Do the same for Second EOModel and Third EOModel.

Step 4: Delete AllInOne EOModel from the project.

Open Eclipse, refresh the Resources Folder. Open First EOModel, Second 
EOModel and Third EOModel.


The model should be okay now.

All this requires careful movement and editing. Even if you get errors in 
Eclipse you'll understand that which entity you moved, defined in 
index.eomodeld but not available in the model.


Hope this helps.

Note: Don't use eclipse to move the Entities across the models.

Farrukh



Am I missing something or am I really going to have to redefine the 
cross-model relationships?


Thanks,

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

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






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

This email sent to chn...@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: wildcard Query

2010-11-10 Thread Cheong Hee (Gmail)
Hi Ken

So sorry that I misunderstood your question.  After spending some time, I think 
this is what you need.

   p = Pattern.compile(\\Q*\\E);
   m = p.matcher(input);
   if (m.find()) {
   System.err.println(test starts +
   with * signs...input:  + input);
   }

But then the downside is you will have to enumerate each string one at a time.

Cheers

Cheong Hee

  - Original Message - 
  From: ISHIMOTO Ken 
  To: Farrukh Ijaz 
  Cc: WebObjects Development 
  Sent: Wednesday, November 10, 2010 5:44 PM
  Subject: Re: wildcard Query


  Hi Farrukh,


  Sounds nice, I will take a look at that and give you feedback.




  On 2010/11/10, at 10:09, Farrukh Ijaz wrote:


Hi Ken,


I spent some time exploring all the possibilities at the EOF level but it 
looks like it does not work at the EOF level. I also inspected the 
PostgresPlugin and found that the escape character is | instead of \\ but 
still it doesn't work. If your data is not very large, you can do something 
like this.


create your own custom class for EOQualifierEvalution called 
RegExpEvaluation as follows:


public static class RegExpEvaluation implements EOQualifierEvaluation {


String key, pattern;


public RegExpEvaluation(String key, String pattern) {
this.key = key;
this.pattern = pattern;
}


public boolean evaluateWithObject(Object obj) {
if (obj instanceof NSKeyValueCoding) {
Object value = ((NSKeyValueCoding) obj).valueForKey(key);
return (value instanceof String)  ((String) value).matches(pattern);
}
return false;
}


}


Fetch all the rows for the entity and using ERXArrayUtilities method as 
follows:


EOFetchSpecification fs = new EOFetchSpecification(M_User.ENTITY_NAME, 
null, null);
NSArrayArticleDetail eoz = 
session().defaultEditingContext().objectsWithFetchSpecification(fs);
eoz = ERXArrayUtilities.filteredArrayWithQualifierEvaluation(eoz, new 
RegExpEvaluation(M_User.NAME, .*\\*.*));


Hope this may help.


Farrukh


On 2010-11-09, at 8:33 PM, ISHIMOTO Ken wrote:


  No


  On 2010/11/09, at 15:48, Farrukh Ijaz wrote:


Try using *[*]* and see it works?


Farrukh

Sent from my iPhone

On 2010-11-09, at 5:34 PM, ISHIMOTO Ken k...@ksroom.com wrote:


  Hi everyone,


  I am fighting with a Qualifier and my Question is Is there any way 
for query all Data with an  in.


  DataSample :


  Mike
  Chuck
  Dav*id
  Ken


  Like code bellow but the * is a Wildcard and won't work. 


  EOQualifier qualifier = M_User.NAME.contains(*);


  I would love to find any Record with *.




  Is there any trick or command to get all Objects with an * ?



  Thank you


  
  K's ROOM  (ISHIMOTO Ken)
  
  [E-Mail]  k...@ksroom.com
  [iChat:]   ibase_...@mac.com
  [HP]  http://www.ksroom.com/
  _
  This e-mail has not been scanned for viruses because it was written 
on an Mac,
  and there are NO Viruses on an Apple Computer.
  For further information visit http://www.apple.com




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

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








--


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

  This email sent to chn...@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: wildcard Query

2010-11-10 Thread Cheong Hee (Gmail)
I agreed that it had been better to have it all fetched from database with 
right sql statement that filtering out and get the name with * .
Since the * is usually the control character used to fetch all data from 
database, the name with * is quite an unusual case.
The other way  is as some suggested either to change the * to something 
else at accessor method and avoiding the * being stored.  This should be 
fine if database is all within own control.  However, for existing database 
that already has such name in the table, it may not be convenient to change 
them at accessor method.  The safest way to go i thought then will be grab 
all the names (that your one fetch for all coud b used), and parsing them 
through to grab the name with *. Unless the records are too many.


Cheers

Cheong Hee

- Original Message - 
From: Mark Wardle m...@wardle.org

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: ISHIMOTO Ken k...@ksroom.com; WebObjects Development 
webobjects-dev@lists.apple.com

Sent: Thursday, November 11, 2010 5:37 AM
Subject: Re: wildcard Query


I think I'd do this with raw SQL.

I needed to execute raw SQL to optimise a particular query and fetch.
I also wishes to avoid a trip to the database for each individual
fetch - one to identify the PKs and then one to fetch each enterprise
object. Therefore, not finding anything in Wonder, I asked the mailing
list (http://osdir.com/ml/webobjects-dev/2010-02/msg00236.html) and
wrote this:

/**
* Executes a raw SQL statement returning an array of EOGlobalIDs.
* The raw SQL should return sufficient columns to allow the raw row
to be converted into an
* enterprise object.
* You will usually need to convert column names to attribute names
to allow the raw rows
* to be converted properly.
*
* @param ec - editing context
* @param entityName - name of the entity that the raw rows will be
converted to
* @param sql - the raw SQL statement to be executed
* @param columns - array of attribute names to replace the column
names that will arrive from the database
* @return
*/
public static NSArrayEOGlobalID executeRawSql(EOEditingContext ec,
String entityName, String sql, NSArrayString columns) {
EOModelGroup modelGroup = ERXEOAccessUtilities.modelGroup(ec);
EOEntity entity = modelGroup.entityNamed(entityName);
String modelName = entity.model().name();
NSArrayNSDictionary?,? rawRows = EOUtilities.rawRowsForSQL(ec,
modelName, sql, columns);
NSMutableArrayEOGlobalID gids = new
NSMutableArrayEOGlobalID(rawRows.count());
for(NSDictionary?,? row : rawRows) {
EOGlobalID gid = entity.globalIDForRow(row);
if (gid==null) throw new NullPointerException(Could not fetch
global ID for raw row:  + row);
gids.add(gid);
}
return gids;
}

I then use ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs  to
convert all of this data into enterprise objects.

I'm sure this could all be optimised further, but it works and one
only has a single SELECT command issued against the database.

Best wishes,

Mark

On 10 November 2010 10:45, Cheong Hee (Gmail) chn...@gmail.com wrote:

Hi Ken

So sorry that I misunderstood your question. After spending some time,
I think this is what you need.

p = Pattern.compile(\\Q*\\E);
m = p.matcher(input);
if (m.find()) {
System.err.println(test starts +
 with * signs...input:  + input);
}
But then the downside is you will have to enumerate each string one at a
time.

Cheers

Cheong Hee


- Original Message -
From: ISHIMOTO Ken
To: Farrukh Ijaz
Cc: WebObjects Development
Sent: Wednesday, November 10, 2010 5:44 PM
Subject: Re: wildcard Query
Hi Farrukh,
Sounds nice, I will take a look at that and give you feedback.

On 2010/11/10, at 10:09, Farrukh Ijaz wrote:

Hi Ken,
I spent some time exploring all the possibilities at the EOF level but it
looks like it does not work at the EOF level. I also inspected the
PostgresPlugin and found that the escape character is | instead of \\
but still it doesn't work. If your data is not very large, you can do
something like this.
create your own custom class for EOQualifierEvalution called
RegExpEvaluation as follows:
public static class RegExpEvaluation implements EOQualifierEvaluation {
String key, pattern;
public RegExpEvaluation(String key, String pattern) {
this.key = key;
this.pattern = pattern;
}
public boolean evaluateWithObject(Object obj) {
if (obj instanceof NSKeyValueCoding) {
Object value = ((NSKeyValueCoding) obj).valueForKey(key);
return (value instanceof String)  ((String) value).matches(pattern);
}
return false;
}
}
Fetch all the rows for the entity and using ERXArrayUtilities method as
follows:
EOFetchSpecification fs = new EOFetchSpecification(M_User.ENTITY_NAME, 
null,

null);
NSArrayArticleDetail eoz =
session().defaultEditingContext().objectsWithFetchSpecification(fs);
eoz = ERXArrayUtilities.filteredArrayWithQualifierEvaluation(eoz, new
RegExpEvaluation(M_User.NAME, .*\\*.*));
Hope this may help.
Farrukh
On 2010-11-09, at 8:33 PM, ISHIMOTO Ken wrote:

No
On 2010/11/09, at 15:48, Farrukh Ijaz

Re: wildcard Query

2010-11-09 Thread Cheong Hee (Gmail)
May be go back to the basic quailifier - 
EOQualifier.qualifierWithQualifierFormat and use name like %@ with *?



  - Original Message - 
  From: ISHIMOTO Ken 
  To: WebObjects Development 
  Sent: Tuesday, November 09, 2010 10:34 PM
  Subject: wildcard Query


  Hi everyone,


  I am fighting with a Qualifier and my Question is Is there any way for query 
all Data with an * in.


  DataSample :


  Mike
  Chuck
  Dav*id
  Ken


  Like code bellow but the * is a Wildcard and won't work. 


  EOQualifier qualifier = M_User.NAME.contains(*);


  I would love to find any Record with *.




  Is there any trick or command to get all Objects with an * ?



  Thank you


  
  K's ROOM  (ISHIMOTO Ken)
  
  [E-Mail]  k...@ksroom.com
  [iChat:]   ibase_...@mac.com
  [HP]  http://www.ksroom.com/
  _
  This e-mail has not been scanned for viruses because it was written on an Mac,
  and there are NO Viruses on an Apple Computer.
  For further information visit http://www.apple.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/chng34%40gmail.com

  This email sent to chn...@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: Windows, Eclipse Helios, Wolips OH MY?!

2010-09-21 Thread Cheong Hee (Gmail)

Hi James

XP is storing wolips.properties in C:\Documents And Settings\(user 
name)\Application Data\WOLips.  May be Wins 7 too?


Cheers

Cheong Hee

- Original Message - 
From: James Cicenia ja...@jimijon.com

To: WebObjects-Dev List webobjects-dev@lists.apple.com
Sent: Wednesday, September 22, 2010 12:27 AM
Subject: Windows, Eclipse Helios, Wolips OH MY?!


It finally happened. I need to set up a developer on a Windows 7 box.

I copied all the frameworks and jars of the existing project and more over 
to a windows box.


Now, when I click to add libraries... it has no idea where my WebObjects 
Frameworks and more are?


I searched the box for wolips.properties but could not find it anywhere.

What do I need to do to setup Eclipse Helios, Windows 7, WOLips 3.6 to find 
the jars ?


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:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

This email sent to chn...@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: oracle.jdbc.LobStreamPosStandardCompliant

2010-09-21 Thread Cheong Hee (Gmail)


One other thing you may run into with 11g -- you should make sure that 
your DATE columns explicitly set valueType = D.  If you don't specify 
a valueType, you'll hit a problem where 11g now ignores the 
oracle.jdbc.V8Compatible property.


Thanks for this useful note...

Cheers

Cheong Hee 


___
Do not 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: deploying my first app

2010-09-15 Thread Cheong Hee (Gmail)

Good to see  welcome :)

- Original Message - 
From: Michael Gargano mgarg...@me.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: Apple WO-Dev webobjects-dev@lists.apple.com
Sent: Wednesday, September 15, 2010 1:54 PM
Subject: Re: deploying my first app


Thanks all.  I figured it out... I had my images in a dir called images, 
in WOLips the WOImage components found the images in that subdir without a 
problem, but when deploying I need to specify the subdirectory in the 
filename attribute.  I never thought of changing that since it worked in 
development.  Makes sense now though.


Thanks all.  Deployment now 100% successful.  :)
-Mike


On Sep 14, 2010, at 11:54 PM, Cheong Hee (Gmail) wrote:


Hi Mike

No images served may due to apache could not get the files from its 
document root.  In split installation, you will need to keep a copy of 
woa in the application directory and apache document root.  May be you 
could look at if both directories are exist.


Cheers

Cheong Hee

- Original Message - From: Michael Gargano mgarg...@me.com
To: Stefan Klein stefan.kl...@buero-sde.de
Cc: Apple WO-Dev webobjects-dev@lists.apple.com
Sent: Wednesday, September 15, 2010 8:33 AM
Subject: Re: deploying my first app



Hi Stefan,

That document is great, but it still doesn't explain why I have to 
create empty Properties files in the Resources directories for every 
framework my application references.  I got the app deployed and working 
after that (I had to turn off aliases as it was clobbering the /cgi-bin/ 
directory). The only problem I still having, aside from the Properties 
files, is that I can't get the images served.  I'm following the 
instructions for deploying a split install, but I don't see how apache 
is supposed to vend those images properly.  So all my images are broken 
links.


Thanks.
-Mike



On Sep 14, 2010, at 3:58 AM, Stefan Klein wrote:

Did you follow the description on: 
http://wiki.objectstyle.org/confluence/display/WO/Windows+Deployment+WO+5.3+-+WO+5.4


Stefan

Am 13.09.10 22:52, schrieb Michael Gargano:
I didn't know about that, so, that was good, but it still complained 
about the Properties files in the embedded frameworks.  :(  after 
adding them the app deploys, but I can't seem to get to it. 
frustrating.


-mike

Sent from my iPhone

On Sep 13, 2010, at 3:50 PM, Steve Peeryspe...@me.com  wrote:

I know nothing about deployment on Windows, but I would start by 
embedding all of your frameworks in your project. This way it should 
not be looking for anything on the server.


Right click on the project in Eclipse, select Properties,  select 
WOLips Deployment, and check the boxes to embed your frameworks.


Steve


On Sep 13, 2010, at 3:21 PM, Michael Gargano wrote:

okay, so I'm deploying my first WO test app to server and a few 
questions have come up


I built the dist on OS X and copied it over to a windows box with 
apache 2.2  using wotaskd.


first the classpaths for the wonder frameworks were set to the OS X 
paths, is there a better way to handle this rather than editing the 
classpath file in the woa by hand?


next when starting the app, it keeps failing and complaining about 
missing Properties files in almost every framework's Resources 
folder. what am I doing wrong here?


thanks.
-mike

Sent from my iPhone
___
Do not 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/speery%40me.com

This email sent to spe...@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:
http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de

This email sent to stefan.kl...@buero-sde.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:
http://lists.apple.com/mailman/options/webobjects-dev/mgargano%40me.com

This email sent to mgarg...@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:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

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

Re: deploying my first app

2010-09-14 Thread Cheong Hee (Gmail)

Hi Mike

No images served may due to apache could not get the files from its document 
root.  In split installation, you will need to keep a copy of woa in the 
application directory and apache document root.  May be you could look at if 
both directories are exist.


Cheers

Cheong Hee

- Original Message - 
From: Michael Gargano mgarg...@me.com

To: Stefan Klein stefan.kl...@buero-sde.de
Cc: Apple WO-Dev webobjects-dev@lists.apple.com
Sent: Wednesday, September 15, 2010 8:33 AM
Subject: Re: deploying my first app



Hi Stefan,

That document is great, but it still doesn't explain why I have to create 
empty Properties files in the Resources directories for every framework 
my application references.  I got the app deployed and working after that 
(I had to turn off aliases as it was clobbering the /cgi-bin/ directory). 
The only problem I still having, aside from the Properties files, is that 
I can't get the images served.  I'm following the instructions for 
deploying a split install, but I don't see how apache is supposed to vend 
those images properly.  So all my images are broken links.


Thanks.
-Mike



On Sep 14, 2010, at 3:58 AM, Stefan Klein wrote:

Did you follow the description on: 
http://wiki.objectstyle.org/confluence/display/WO/Windows+Deployment+WO+5.3+-+WO+5.4


Stefan

Am 13.09.10 22:52, schrieb Michael Gargano:
I didn't know about that, so, that was good, but it still complained 
about the Properties files in the embedded frameworks.  :(  after adding 
them the app deploys, but I can't seem to get to it.  frustrating.


-mike

Sent from my iPhone

On Sep 13, 2010, at 3:50 PM, Steve Peeryspe...@me.com  wrote:

I know nothing about deployment on Windows, but I would start by 
embedding all of your frameworks in your project. This way it should 
not be looking for anything on the server.


Right click on the project in Eclipse, select Properties,  select 
WOLips Deployment, and check the boxes to embed your frameworks.


Steve


On Sep 13, 2010, at 3:21 PM, Michael Gargano wrote:

okay, so I'm deploying my first WO test app to server and a few 
questions have come up


I built the dist on OS X and copied it over to a windows box with 
apache 2.2  using wotaskd.


first the classpaths for the wonder frameworks were set to the OS X 
paths, is there a better way to handle this rather than editing the 
classpath file in the woa by hand?


next when starting the app, it keeps failing and complaining about 
missing Properties files in almost every framework's Resources folder. 
what am I doing wrong here?


thanks.
-mike

Sent from my iPhone
___
Do not 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/speery%40me.com

This email sent to spe...@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:
http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de

This email sent to stefan.kl...@buero-sde.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:
http://lists.apple.com/mailman/options/webobjects-dev/mgargano%40me.com

This email sent to mgarg...@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:
http://lists.apple.com/mailman/options/webobjects-dev/chng34%40gmail.com

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


ERMailAttachment - need a public getBodyPart()

2010-09-08 Thread Cheong Hee (Gmail)
Hi

I need to extend ERMailDelivery, and keep the new class in a new package.  The 
getBodyPart of ERMailAttachment is not visible since it is defined as protected 
in er.javamail package.  The subclasses ERMailDataAttachment, 
ERMailFileTextAttachment and ERMailFileAttachment also keep the protect access 
level.  This may be a problem to those who would like to extend the 
ERMailDelivery class, make modification to finishMessagePreparation and store 
in a different package.  Has anyone in the same situation or understand the 
reason why getBodyPart is defined as protected?  May be Anjo will do :)

Cheers

Cheong Hee ___
Do not 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: ERMailAttachment - need a public getBodyPart()

2010-09-08 Thread Cheong Hee (Gmail)
There is no issue to override the protected method.  However, don't think I 
want to subclass ERMailAttachment, which has been generally used  in 
ERMailDelivery.  The code here in ERMailDelivery-finishMessagePrepration 
method:

ERMailAttachment attachment = (ERMailAttachment)en.nextElement ();
BodyPart bp = attachment.getBodyPart();
bp.setDisposition (Part.ATTACHMENT);
multipart.addBodyPart (bp);

getBodyPart could not be visible if I will have to override 
finishMessagePreparation in subclass ERMailDelivery (in another package).  Hope 
you get it, help my code please.
  

  - Original Message - 
  From: Farrukh Ijaz 
  To: Cheong Hee (Gmail) 
  Cc: WO-Apple-Dev 
  Sent: Wednesday, September 08, 2010 4:13 PM
  Subject: Re: ERMailAttachment - need a public getBodyPart() 




  On 2010-09-08, at 10:40 AM, Cheong Hee (Gmail) wrote:


Hi

I need to extend ERMailDelivery, and keep the new class in a new package.  
The getBodyPart of ERMailAttachment is not visible since it is defined as 
protected in er.javamail package.  The subclasses ERMailDataAttachment, 
ERMailFileTextAttachment and ERMailFileAttachment also keep the protect access 
level.  This may be a problem to those who would like to extend the 
ERMailDelivery class, make modification to finishMessagePreparation and store 
in a different package.  Has anyone in the same situation or understand the 
reason why getBodyPart is defined as protected?  May be Anjo will do :)


  Hi Cheong,


  You can override a protected non-static method as long as it's not marked 
final.


  A subclass inherits all of the public and protected members of its parent, no 
matter what package the subclass is in. If the subclass is in the same package 
as its parent, it also inherits the package-private members of the parent. You 
can use the inherited members as is, replace them, hide them, or supplement 
them with new members: [1]


  Farrukh


  References:


  [1] http://download.oracle.com/javase/tutorial/java/IandI/subclasses.html



Cheers

Cheong Hee
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:

http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com

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

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

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

Re: Windows 2003 server + Apache 2.2 deployment problem

2010-09-06 Thread Cheong Hee (Gmail)

Hi Mertz

WO version?  Deployment environment - tomcat? Is it an intermittence problem 
and affect all the users?  Need to have more info to think about if you 
don't mind.


Cheers

Cheong Hee

- Original Message - 
From: Mertz Stéphan s.me...@improve.fr

To: WebObjects-Dev List webobjects-dev@lists.apple.com
Sent: Tuesday, September 07, 2010 2:45 AM
Subject: Windows 2003 server + Apache 2.2 deployment problem


Hi,

We are facing a big problem of deployment. We have a lot of client 
de-connection (with http 500 error).

Here are the logs :

Apache log :
[Mon Sep 06 16:36:22 2010] [info] [client 10.11.36.74] (OS 10054)An existing 
connection was forcibly closed by the remote host.  : core_output_filter: 
writing data to the network


Application log :
[2010-9-6 16:36:24 CEST] WorkerThread7 WOWorkerThread id=7 
socket=Socket[addr=/127.0.0.1,port=2046,localport=2003] Exception while 
sending response: java.net.SocketException: Connection reset by peer: socket 
write error


There is no exception in our code.
If the user refreshes his navigator, the result page appears correctly.
Changing the Apache settings EnableMMAP and EnableSendfile has no effects.

Any idea ?

Stéphan ___
Do not 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/chng34%40gmail.com

This email sent to chn...@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: Weird mysql problem

2010-09-05 Thread Cheong Hee (Gmail)

My take is setting to lower case table is no.1 item to avoid issues later.  
Workbench sometimes couldn't generate values properly in my cases, view and 
edit my.cnf whenever necessary.

  I now have this in my /etc/my.cnf:


  lower_case_table_names = 1


  MySQL says this: 1: Table names are stored in lowercase on disk and name 
comparisons are not case sensitive. MySQL converts all table names to lowercase 
on storage and lookup. This behavior also applies to database names and table 
aliases.
  (http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html)

 ___
Do not 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: Configuring CentOS 5.5 for WebObjects

2010-08-13 Thread Cheong Hee (Gmail)
Hi Ken

I could not recall exactly but it sounded familiar.  May be you could try this:

In Monitor, go to Hosts Tab, then at Add Host add localhost as your host name.

Not sure if this could solve and will check on my RedHat server later to 
confirm.

Cheers

Cheong Hee

  - Original Message - 
  From: Ken - Watermark Studios 
  To: Pascal Robert 
  Cc: webobjects-dev@lists.apple.com 
  Sent: Friday, August 13, 2010 6:33 PM
  Subject: Re: Configuring CentOS 5.5 for WebObjects


  Okay, the URL in the host tab should be www.polestartv.com?


  How can I set up reverse DNS?


  Thanks,


  Ken





  On Aug 13, 2010, at 3:18 AM, Pascal Robert wrote:




Le 2010-08-13 à 06:05, Ken - Watermark Studios a écrit :


  ...
  I can log into javamonitor via: www.polestartv.com:56789
  In javamonitor, under the Host tab, I have 
www.polestartv.com/cgi-bin/WebObjects listed as the host name.



You have that URL in the Hosts tab? In the host tab, it should be just the 
host name, without /cgi-bin/... That URL goes to the Site tab.


  I can not log into wotaskd via: www.polestartv.com:1085
  I get the error Attempt to call Direct Action: defaultAction on wotaskd 
with incorrect password.



That is normal since you have put a password in Monitor.


  I can not access my application via: 
www.polestartv.com/cgi-bin/WebObjects/PUPPolestarUniversityPortal.woa
  I get the error The requested application was not found on this server.



At least you have the HTTP adaptor running.


   $ cat /etc/hosts 
  127.0.0.1 localhost.localdomain localhost
  ::1 localhost6.localdomain6 localhost6
  66.175.98.51web01.polestarpilates.com web01



Reserve DNS is not set :


mbp-pascal-robert-4:~ probert$ host 66.175.98.51
Host 51.98.175.66.in-addr.arpa. not found: 3(NXDOMAIN)


Fix this, WO (and a lot of other services) just love to have reserve DNS 
setup.


   $ cat /etc/init.d/webobjects 
  ...
  su $USER -c 
$NEXT_ROOT/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd -WOPort 
1085 
  su $USER -c 
$NEXT_ROOT/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor 
-WOPort 56789 
  ...

   $ sudo /usr/sbin/lsof -i tcp:1085 
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  java14594 appserver   49u  IPv6  63124   TCP *:webobjects (LISTEN)

   $ sudo /usr/sbin/lsof -i tcp:2001 
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  java14737 appserver   47u  IPv6  63212   TCP *:dc (LISTEN)

   $ sudo /usr/sbin/lsof -i tcp:56789 
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  java14603 appserver   49u  IPv6  63123   TCP *:56789 (LISTEN)
  java14603 appserver   51u  IPv6  65378   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57263 (ESTABLISHED)
  java14603 appserver   52u  IPv6  65384   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57264 (ESTABLISHED)
  java14603 appserver   62u  IPv6  65385   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57267 (ESTABLISHED)
  java14603 appserver   64r  IPv6  65386   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57266 (ESTABLISHED)
  java14603 appserver   65r  IPv6  65387   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57265 (ESTABLISHED)
  java14603 appserver  334u  IPv6  65337   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57262 (ESTABLISHED)

   $ ps auxwww | grep 1085 
  501  14594  0.2  0.9 1207768 58636 ?   Sl   00:49   0:04 java 
-DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local 
-DWOUserDirectory=/home/watermark -DWOEnvClassPath= 
-DWOApplicationClass=Application -DWOPlatform=UNIX -Dcom.webobjects.pid=14594 
-Dcom.sun.management.jmxremote=false -classpath WOBootstrap.jar 
com.webobjects._bootstrap.WOBootstrap -WOPort 1085
  501  14737  0.8  2.1 1224664 131040 ?  Sl   00:51   0:12 java 
-DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local 
-DWOUserDirectory=/opt/Library/WebObjects/JavaApplications/wotaskd.woa 
-DWOEnvClassPath= -DWOApplicationClass=com.digitalesdesign.pup.Application 
-DWOPlatform=UNIX -Dcom.webobjects.pid=14737 -classpath WOBootstrap.jar 
com.webobjects._bootstrap.WOBootstrap -WOPort 2001 -WOCachingEnabled YES 
-WODebuggingEnabled NO -WOOutputPath 
/opt/Local/Library/WebObjects/Logs/PUPPolestarUniversityPortal-1 
-WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 
-WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor 
WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 
-WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () 
-WOSessionTimeOut 3600 -WOApplicationName PUPPolestarUniversityPortal 
-WOMonitorEnabled YES -WONoPause YES -WOFrameworksBaseURL 
/WebObjects

Re: Configuring CentOS 5.5 for WebObjects

2010-08-13 Thread Cheong Hee (Gmail)
Yeah, this is just to narrow down the problem at least it should ensure the 
local instance is working.  For split installation, it should not set as that 
way.
  - Original Message - 
  From: Pascal Robert 
  To: Cheong Hee (Gmail) 
  Cc: Ken - Watermark Studios ; webobjects-dev@lists.apple.com 
  Sent: Friday, August 13, 2010 7:16 PM
  Subject: Re: Configuring CentOS 5.5 for WebObjects


  If you use localhost, JavaMonitor will be able to talk only to the local 
instance of wotaskd, you can't use Monitor to talk to multiple wotaskds in that 
setup.



Hi Ken

I could not recall exactly but it sounded familiar.  May be you could try 
this:

In Monitor, go to Hosts Tab, then at Add Host add localhost as your host 
name.

Not sure if this could solve and will check on my RedHat server later to 
confirm.

Cheers

Cheong Hee

  - Original Message -
  From: Ken - Watermark Studios
  To: Pascal Robert
  Cc: webobjects-dev@lists.apple.com
  Sent: Friday, August 13, 2010 6:33 PM
  Subject: Re: Configuring CentOS 5.5 for WebObjects


  Okay, the URL in the host tab should be www.polestartv.com?


  How can I set up reverse DNS?


  Thanks,


  Ken





  On Aug 13, 2010, at 3:18 AM, Pascal Robert wrote:




Le 2010-08-13 à 06:05, Ken - Watermark Studios a écrit :


  ...
  I can log into javamonitor via: www.polestartv.com:56789
  In javamonitor, under the Host tab, I have 
www.polestartv.com/cgi-bin/WebObjects listed as the host name.



You have that URL in the Hosts tab? In the host tab, it should be just 
the host name, without /cgi-bin/... That URL goes to the Site tab.


  I can not log into wotaskd via: www.polestartv.com:1085
  I get the error Attempt to call Direct Action: defaultAction on 
wotaskd with incorrect password.



That is normal since you have put a password in Monitor.


  I can not access my application via: 
www.polestartv.com/cgi-bin/WebObjects/PUPPolestarUniversityPortal.woa
  I get the error The requested application was not found on this 
server.



At least you have the HTTP adaptor running.


   $ cat /etc/hosts 
  127.0.0.1 localhost.localdomain localhost
  ::1 localhost6.localdomain6 localhost6
  66.175.98.51web01.polestarpilates.com web01



Reserve DNS is not set :


mbp-pascal-robert-4:~ probert$ host 66.175.98.51
Host 51.98.175.66.in-addr.arpa. not found: 3(NXDOMAIN)


Fix this, WO (and a lot of other services) just love to have reserve 
DNS setup.


   $ cat /etc/init.d/webobjects 
  ...
  su $USER -c 
$NEXT_ROOT/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd -WOPort 
1085 
  su $USER -c 
$NEXT_ROOT/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor 
-WOPort 56789 
  ...

   $ sudo /usr/sbin/lsof -i tcp:1085 
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  java14594 appserver   49u  IPv6  63124   TCP *:webobjects 
(LISTEN)

   $ sudo /usr/sbin/lsof -i tcp:2001 
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  java14737 appserver   47u  IPv6  63212   TCP *:dc (LISTEN)

   $ sudo /usr/sbin/lsof -i tcp:56789 
  COMMAND   PID  USER   FD   TYPE DEVICE SIZE NODE NAME
  java14603 appserver   49u  IPv6  63123   TCP *:56789 (LISTEN)
  java14603 appserver   51u  IPv6  65378   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57263 (ESTABLISHED)
  java14603 appserver   52u  IPv6  65384   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57264 (ESTABLISHED)
  java14603 appserver   62u  IPv6  65385   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57267 (ESTABLISHED)
  java14603 appserver   64r  IPv6  65386   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57266 (ESTABLISHED)
  java14603 appserver   65r  IPv6  65387   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57265 (ESTABLISHED)
  java14603 appserver  334u  IPv6  65337   TCP 
172.16.1.67:56789-c-71-197-123-64.hsd1.ca.comcast.net:57262 (ESTABLISHED)

   $ ps auxwww | grep 1085 
  501  14594  0.2  0.9 1207768 58636 ?   Sl   00:49   0:04 java 
-DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local 
-DWOUserDirectory=/home/watermark -DWOEnvClassPath= 
-DWOApplicationClass=Application -DWOPlatform=UNIX -Dcom.webobjects.pid=14594 
-Dcom.sun.management.jmxremote=false -classpath WOBootstrap.jar 
com.webobjects._bootstrap.WOBootstrap -WOPort 1085
  501  14737  0.8  2.1 1224664 131040 ?  Sl   00:51   0:12 java 
-DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local 
-DWOUserDirectory=/opt/Library/WebObjects

Re: postNotification and editingContext().saveChanges() /editingContext().revert()

2010-08-11 Thread Cheong Hee (Gmail)
You may already know this...If your thread belongs to the session, another 
option I think is MultiECLockManager.


Cheers

Cheong Hee

- Original Message - 
From: Farrukh Ijaz farrukh.i...@fuegodigitalmedia.com

To: Chuck Hill ch...@global-village.net
Cc: WebObjects-Dev List webobjects-dev@lists.apple.com
Sent: Thursday, August 12, 2010 5:47 AM
Subject: Re: postNotification and editingContext().saveChanges() 
/editingContext().revert()






Guessing, concurrent threads, and locking.  Never a good combination.


Thanks Chuck! Is there any choice then? Or every Workflow may have it's own 
editingContext() considering the ec would be lightweight and won't do 
anything else except modifying a single row?





On Aug 11, 2010, at 2:35 PM, Farrukh Ijaz wrote:

I am using ERXEC with default settings. I guess it takes care of the 
locking automatically.


Sent from my iPad

On 11-Aug-2010, at 11:58 PM, Chuck Hill ch...@global-village.net wrote:



On Aug 11, 2010, at 1:41 PM, Farrukh Ijaz wrote:




Sent from my iPad

On 11-Aug-2010, at 7:35 PM, Chuck Hill ch...@global-village.net 
wrote:




On Aug 11, 2010, at 2:11 AM, Farrukh Ijaz wrote:


Hi All,

Is it safe to invoke editingContext().saveChange() or 
editingContext().revert() in a method that is used through NSSelector 
and invoked by the NSNotificationCenter on postNotification()?



That likely depends on which notification.


Okay, here is the real scenario. I have developed a Workflow Engine 
which is capable to run multiple workflows in parallel in their 
individual threads. Each workflow has methods as start(), stop(), 
suspend(), and resume(). The behavior of these methods is understood. 
Everything remains in memory. Now in order to persist their state I 
have created a corresponding entity. There are two columns of the 
entity, status and serializedInstance which change at any stage and 
that is depending upon user actions and workflow code.


I have a workflow management dashboard which provides ability to view 
all the workflows defined in the system and to start, stop, resume and 
suspend. When I start the workflow, I call the method start() of the 
workflow entity, which internally triggers the associated workflow's 
start() method and also registers the entity to receive notifications 
from the workflow thread. The workflow thread post notifications such 
as when it completes the job or explicitly stopped, resumed, suspended 
etc. So upon these notifications, the workflow entity's onNotify() 
method is invoked which in turn based on the message, modifies the 
status column and serializedInstance column value and invokes, 
editingContext().saveChanges() inside the onNotify() method.


You will have to make sure that the EC is locked before touching any of 
the entity's persistent values or calling saveChanges()




I guess the story is too long but it is working fine so far. I just 
want to confirm that if this does not break anything at any stage or 
cause a deadlock situation?




Chuck

--
Chuck Hill Senior Consultant / VP Development

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

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









--
Chuck Hill Senior Consultant / VP Development

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

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









--
Chuck Hill Senior Consultant / VP Development

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

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








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

This email sent to chn...@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: two different databases at same time?

2010-08-06 Thread Cheong Hee (Gmail)
It should be quite straight forward.  To show it works, I have just tested 
with 2 model, each point to their own db.  It works as expected :)
The testing environment however is mysql, and wo5.2.4, with plain vanila 
without PW.  Don't think it is matter for test.


Just to add, the database url are defined in each model.

Cheers

Cheong Hee

- Original Message - 
From: Joe Little jmlit...@gmail.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: David LeBer dleber_wo...@codeferous.com; WO Dev Group 
webobjects-dev@lists.apple.com

Sent: Friday, August 06, 2010 1:07 PM
Subject: Re: two different databases at same time?


I just checked and my models do indeed have a complete URL, etc in
their default connection dictionaries.


On Thu, Aug 5, 2010 at 7:57 PM, Cheong Hee (Gmail) chn...@gmail.com wrote:

Will there make any difference if these connection dictionaries is defined
in respective model db url?

- Original Message - From: Joe Little jmlit...@gmail.com
To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee (Gmail) chn...@gmail.com; David LeBer
dleber_wo...@codeferous.com; WO Dev Group
webobjects-dev@lists.apple.com
Sent: Friday, August 06, 2010 2:17 AM
Subject: Re: two different databases at same time?


So, I'm starting to wonder if something broke/changed in Wonder. I've set 
up

test projects that list two DBs in the Properties file for two models, but
only one is ever added to the connection dictionary. Does there need to
workable values for the default database in the eomodeld directory itself?

This has worked for me before, with one framework model and one local
project model. This time, i have two models in one framework.


On Aug 4, 2010, at 7:26 PM, Joe Little jmlit...@gmail.com wrote:


You gave me a good clue. I may be using the same damn ec

On Aug 4, 2010, at 7:17 PM, Cheong Hee \(Gmail\) chn...@gmail.com
wrote:


When the question posted, I intended to find out if the different db
works in the same ec. I have not thought more on the storing and 
fetching.


I am not sure if this is right but merely bring it out for better
understanding. Please point out whichever does not seem right:

Said the Student table is in databaase A. The AdmitApplicant table is
stored in database B.
A row admitApplicantID is created in Student table and a relationship
should be defined, said admitApplicant. The modelling cross different
database should be fine.

If I understand what David mentioned, the EOF fetch through relationship
admitApplicant will fail. Therefore, I will assume that the fetch will 
have
to be done by getting the admitApplicant key from Student, and then use 
the
key to search the AdmitApplicant that is resided in database B. Good 
thing

is both could be done in the same ec.

Cheers

Cheong Hee

- Original Message - From: David LeBer
dleber_wo...@codeferous.com
To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee chn...@gmail.com; WO Dev Group
webobjects-dev@lists.apple.com
Sent: Thursday, August 05, 2010 2:36 AM
Subject: Re: two different databases at same time?



On 2010-08-04, at 2:26 PM, Joe Little wrote:


On Wed, Aug 4, 2010 at 11:20 AM, David LeBer
dleber_wo...@codeferous.com wrote:


On 2010-08-04, at 2:12 PM, Joe Little wrote:


Digging up an old thread. This is the first time I'm creating a
multi-database relation. When my migrations kick off to generate my
newer database that has a single relation to the old, it fails in
spectacular ways.

Specifically, it has this error:

Caused by: java.lang.RuntimeException: Failed to execute 'ALTER TABLE
STUDENT ADD CONSTRAINT STUDENT_admitApplicantID_ID_FK FOREIGN KEY
(admitApplicantID) REFERENCES ADMIT_APPLICANT (ID) DEFERRABLE
INITIALLY DEFERRED'.
PSQLException: ERROR: relation admit_applicant does not exist

student has a relation to admit_applicant, where student is
db2.student and admit_applicant is db1.admit_applicant

This is keyed off this migration line:

studentTable.addForeignKey(admitApplicantID, ADMIT_APPLICANT,
ID);


Don't do that.

EOF is fine with cross database relationships but your DB probably
isn't. So it won't like you trying to create a foreign key constraint 
to a

different database, so don't.


So, what is the alternative? Would a join table work -- I think that
still has foreign key constraints. Or is it simply stating a differ
type of join (not inner)? I haven't done this before so my lack of
clue is telling.


Sorry, I wasn't clear. Model the relationship in the EOModel, create a
vanilla row in the db that will act as a foreign key for the 
relationship,

but don't tell the db that it is a foreign key. Let EOF manage the
relationship for you.







Am I just missing some clue that others already have?

On Thu, Apr 1, 2010 at 8:17 PM, Cheong Hee chn...@gmail.com wrote:


Apparently I have complicated it by thinking of using multi ec to
handle
respective database connections. Thanks for clarification..

Cheers

Cheong Hee

- Original Message - From: David LeBer
dleber_wo...@codeferous.com

Re: two different databases at same time?

2010-08-06 Thread Cheong Hee (Gmail)
Could it be something else that is the culprit? If you think worth to cross 
examine, let me know so that I could repackage the test files into eclipse 
project and send over.


- Original Message - 
From: Cheong Hee (Gmail) chn...@gmail.com

To: Joe Little jmlit...@gmail.com
Cc: David LeBer dleber_wo...@codeferous.com; WO Dev Group 
webobjects-dev@lists.apple.com

Sent: Friday, August 06, 2010 3:09 PM
Subject: Re: two different databases at same time?


It should be quite straight forward.  To show it works, I have just tested 
with 2 model, each point to their own db.  It works as expected :)
The testing environment however is mysql, and wo5.2.4, with plain vanila 
without PW.  Don't think it is matter for test.


Just to add, the database url are defined in each model.

Cheers

Cheong Hee

- Original Message - 
From: Joe Little jmlit...@gmail.com

To: Cheong Hee (Gmail) chn...@gmail.com
Cc: David LeBer dleber_wo...@codeferous.com; WO Dev Group 
webobjects-dev@lists.apple.com

Sent: Friday, August 06, 2010 1:07 PM
Subject: Re: two different databases at same time?


I just checked and my models do indeed have a complete URL, etc in
their default connection dictionaries.


On Thu, Aug 5, 2010 at 7:57 PM, Cheong Hee (Gmail) chn...@gmail.com 
wrote:
Will there make any difference if these connection dictionaries is 
defined

in respective model db url?

- Original Message - From: Joe Little jmlit...@gmail.com
To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee (Gmail) chn...@gmail.com; David LeBer
dleber_wo...@codeferous.com; WO Dev Group
webobjects-dev@lists.apple.com
Sent: Friday, August 06, 2010 2:17 AM
Subject: Re: two different databases at same time?


So, I'm starting to wonder if something broke/changed in Wonder. I've set 
up
test projects that list two DBs in the Properties file for two models, 
but

only one is ever added to the connection dictionary. Does there need to
workable values for the default database in the eomodeld directory 
itself?


This has worked for me before, with one framework model and one local
project model. This time, i have two models in one framework.


On Aug 4, 2010, at 7:26 PM, Joe Little jmlit...@gmail.com wrote:


You gave me a good clue. I may be using the same damn ec

On Aug 4, 2010, at 7:17 PM, Cheong Hee \(Gmail\) chn...@gmail.com
wrote:


When the question posted, I intended to find out if the different db
works in the same ec. I have not thought more on the storing and 
fetching.


I am not sure if this is right but merely bring it out for better
understanding. Please point out whichever does not seem right:

Said the Student table is in databaase A. The AdmitApplicant table is
stored in database B.
A row admitApplicantID is created in Student table and a relationship
should be defined, said admitApplicant. The modelling cross different
database should be fine.

If I understand what David mentioned, the EOF fetch through 
relationship
admitApplicant will fail. Therefore, I will assume that the fetch will 
have
to be done by getting the admitApplicant key from Student, and then use 
the
key to search the AdmitApplicant that is resided in database B. Good 
thing

is both could be done in the same ec.

Cheers

Cheong Hee

- Original Message - From: David LeBer
dleber_wo...@codeferous.com
To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee chn...@gmail.com; WO Dev Group
webobjects-dev@lists.apple.com
Sent: Thursday, August 05, 2010 2:36 AM
Subject: Re: two different databases at same time?



On 2010-08-04, at 2:26 PM, Joe Little wrote:


On Wed, Aug 4, 2010 at 11:20 AM, David LeBer
dleber_wo...@codeferous.com wrote:


On 2010-08-04, at 2:12 PM, Joe Little wrote:


Digging up an old thread. This is the first time I'm creating a
multi-database relation. When my migrations kick off to generate my
newer database that has a single relation to the old, it fails in
spectacular ways.

Specifically, it has this error:

Caused by: java.lang.RuntimeException: Failed to execute 'ALTER 
TABLE

STUDENT ADD CONSTRAINT STUDENT_admitApplicantID_ID_FK FOREIGN KEY
(admitApplicantID) REFERENCES ADMIT_APPLICANT (ID) DEFERRABLE
INITIALLY DEFERRED'.
PSQLException: ERROR: relation admit_applicant does not exist

student has a relation to admit_applicant, where student is
db2.student and admit_applicant is db1.admit_applicant

This is keyed off this migration line:

studentTable.addForeignKey(admitApplicantID, ADMIT_APPLICANT,
ID);


Don't do that.

EOF is fine with cross database relationships but your DB probably
isn't. So it won't like you trying to create a foreign key constraint 
to a

different database, so don't.


So, what is the alternative? Would a join table work -- I think that
still has foreign key constraints. Or is it simply stating a differ
type of join (not inner)? I haven't done this before so my lack of
clue is telling.


Sorry, I wasn't clear. Model the relationship in the EOModel, create a
vanilla row in the db that will act as a foreign

Re: two different databases at same time?

2010-08-05 Thread Cheong Hee (Gmail)
Will there make any difference if these connection dictionaries is defined 
in respective model db url?


- Original Message - 
From: Joe Little jmlit...@gmail.com

To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee (Gmail) chn...@gmail.com; David LeBer 
dleber_wo...@codeferous.com; WO Dev Group 
webobjects-dev@lists.apple.com

Sent: Friday, August 06, 2010 2:17 AM
Subject: Re: two different databases at same time?


So, I'm starting to wonder if something broke/changed in Wonder. I've set up 
test projects that list two DBs in the Properties file for two models, but 
only one is ever added to the connection dictionary. Does there need to 
workable values for the default database in the eomodeld directory itself?


This has worked for me before, with one framework model and one local 
project model. This time, i have two models in one framework.



On Aug 4, 2010, at 7:26 PM, Joe Little jmlit...@gmail.com wrote:


You gave me a good clue. I may be using the same damn ec

On Aug 4, 2010, at 7:17 PM, Cheong Hee \(Gmail\) chn...@gmail.com 
wrote:


When the question posted, I intended to find out if the different db 
works in the same ec.  I have not thought more on the storing and 
fetching.


I am not sure if this is right but merely bring it out for better 
understanding.  Please point out whichever does not seem right:


Said the Student table is in databaase A.  The AdmitApplicant table is 
stored in database B.
A row admitApplicantID is created in Student table and a relationship 
should be defined, said admitApplicant.  The modelling cross different 
database should be fine.


If I understand what David mentioned, the EOF fetch through relationship 
admitApplicant will fail.  Therefore, I will assume that the fetch will 
have to be done by getting the admitApplicant key from Student, and then 
use the key to search the AdmitApplicant that is resided in database B. 
Good thing is both could be done in the same ec.


Cheers

Cheong Hee

- Original Message - From: David LeBer 
dleber_wo...@codeferous.com

To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee chn...@gmail.com; WO Dev Group 
webobjects-dev@lists.apple.com

Sent: Thursday, August 05, 2010 2:36 AM
Subject: Re: two different databases at same time?



On 2010-08-04, at 2:26 PM, Joe Little wrote:


On Wed, Aug 4, 2010 at 11:20 AM, David LeBer
dleber_wo...@codeferous.com wrote:


On 2010-08-04, at 2:12 PM, Joe Little wrote:


Digging up an old thread. This is the first time I'm creating a
multi-database relation. When my migrations kick off to generate my
newer database that has a single relation to the old, it fails in
spectacular ways.

Specifically, it has this error:

Caused by: java.lang.RuntimeException: Failed to execute 'ALTER TABLE
STUDENT ADD CONSTRAINT STUDENT_admitApplicantID_ID_FK FOREIGN KEY
(admitApplicantID) REFERENCES ADMIT_APPLICANT (ID) DEFERRABLE
INITIALLY DEFERRED'.
PSQLException: ERROR: relation admit_applicant does not exist

student has a relation to admit_applicant, where student is
db2.student and admit_applicant is db1.admit_applicant

This is keyed off this migration line:

studentTable.addForeignKey(admitApplicantID, ADMIT_APPLICANT, 
ID);


Don't do that.

EOF is fine with cross database relationships but your DB probably 
isn't. So it won't like you trying to create a foreign key constraint 
to a different database, so don't.


So, what is the alternative? Would a join table work -- I think that
still has foreign key constraints. Or is it simply stating a differ
type of join (not inner)? I haven't done this before so my lack of
clue is telling.


Sorry, I wasn't clear. Model the relationship in the EOModel, create a 
vanilla row in the db that will act as a foreign key for the 
relationship, but don't tell the db that it is a foreign key. Let EOF 
manage the relationship for you.








Am I just missing some clue that others already have?

On Thu, Apr 1, 2010 at 8:17 PM, Cheong Hee chn...@gmail.com wrote:
Apparently I have complicated it by thinking of using multi ec to 
handle

respective database connections.  Thanks for clarification..

Cheers

Cheong Hee

- Original Message - From: David LeBer
dleber_wo...@codeferous.com
To: Cheong Hee chn...@gmail.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Thursday, April 01, 2010 8:23 PM
Subject: Re: two different databases at same time?



On 2010-04-01, at 12:07 AM, Cheong Hee wrote:

Is there any pointers or sample code how these could be done to 
initiate

connection and save changes in respective ec?


You don't need multiple ec's unless you want them. Other than that 
it's

transparent.

EOEditingContext ec = ERXEC.newEditingContext();
Person p = (Person)EOUtitlites.createAndInsertInstance(ec,
Person.ENTITY_NAME); // Person entity persists in database A
Horse h = (Horse)EOUtitlites.createAndInsertInstance(ec, 
Horse.ENTITY_NAME);

// Horse entity persists in database B
// make chagnes to h and p
ec.saveChanges(); // p saved to database

Re: two different databases at same time?

2010-08-04 Thread Cheong Hee (Gmail)
When the question posted, I intended to find out if the different db works 
in the same ec.  I have not thought more on the storing and fetching.


I am not sure if this is right but merely bring it out for better 
understanding.  Please point out whichever does not seem right:


Said the Student table is in databaase A.  The AdmitApplicant table is 
stored in database B.
A row admitApplicantID is created in Student table and a relationship should 
be defined, said admitApplicant.  The modelling cross different database 
should be fine.


If I understand what David mentioned, the EOF fetch through relationship 
admitApplicant will fail.  Therefore, I will assume that the fetch will have 
to be done by getting the admitApplicant key from Student, and then use the 
key to search the AdmitApplicant that is resided in database B.  Good thing 
is both could be done in the same ec.


Cheers

Cheong Hee

- Original Message - 
From: David LeBer dleber_wo...@codeferous.com

To: Joe Little jmlit...@gmail.com
Cc: Cheong Hee chn...@gmail.com; WO Dev Group 
webobjects-dev@lists.apple.com

Sent: Thursday, August 05, 2010 2:36 AM
Subject: Re: two different databases at same time?



On 2010-08-04, at 2:26 PM, Joe Little wrote:


On Wed, Aug 4, 2010 at 11:20 AM, David LeBer
dleber_wo...@codeferous.com wrote:


On 2010-08-04, at 2:12 PM, Joe Little wrote:


Digging up an old thread. This is the first time I'm creating a
multi-database relation. When my migrations kick off to generate my
newer database that has a single relation to the old, it fails in
spectacular ways.

Specifically, it has this error:

Caused by: java.lang.RuntimeException: Failed to execute 'ALTER TABLE
STUDENT ADD CONSTRAINT STUDENT_admitApplicantID_ID_FK FOREIGN KEY
(admitApplicantID) REFERENCES ADMIT_APPLICANT (ID) DEFERRABLE
INITIALLY DEFERRED'.
PSQLException: ERROR: relation admit_applicant does not exist

student has a relation to admit_applicant, where student is
db2.student and admit_applicant is db1.admit_applicant

This is keyed off this migration line:

studentTable.addForeignKey(admitApplicantID, ADMIT_APPLICANT, ID);


Don't do that.

EOF is fine with cross database relationships but your DB probably isn't. 
So it won't like you trying to create a foreign key constraint to a 
different database, so don't.


So, what is the alternative? Would a join table work -- I think that
still has foreign key constraints. Or is it simply stating a differ
type of join (not inner)? I haven't done this before so my lack of
clue is telling.


Sorry, I wasn't clear. Model the relationship in the EOModel, create a 
vanilla row in the db that will act as a foreign key for the relationship, 
but don't tell the db that it is a foreign key. Let EOF manage the 
relationship for you.








Am I just missing some clue that others already have?

On Thu, Apr 1, 2010 at 8:17 PM, Cheong Hee chn...@gmail.com wrote:
Apparently I have complicated it by thinking of using multi ec to 
handle

respective database connections.  Thanks for clarification..

Cheers

Cheong Hee

- Original Message - From: David LeBer
dleber_wo...@codeferous.com
To: Cheong Hee chn...@gmail.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Thursday, April 01, 2010 8:23 PM
Subject: Re: two different databases at same time?



On 2010-04-01, at 12:07 AM, Cheong Hee wrote:

Is there any pointers or sample code how these could be done to 
initiate

connection and save changes in respective ec?


You don't need multiple ec's unless you want them. Other than that it's
transparent.

EOEditingContext ec = ERXEC.newEditingContext();
Person p = (Person)EOUtitlites.createAndInsertInstance(ec,
Person.ENTITY_NAME); // Person entity persists in database A
Horse h = (Horse)EOUtitlites.createAndInsertInstance(ec, 
Horse.ENTITY_NAME);

// Horse entity persists in database B
// make chagnes to h and p
ec.saveChanges(); // p saved to database A, h saved to database B

You can model cross database relationships as long as you don't try and
create a fetch based on them.



Cheers

Cheong Hee

- Original Message - From: Mark Ritchie 
mark.ritc...@mac.com

To: James Cicenia ja...@jimijon.com
Cc: WO Dev Group webobjects-dev@lists.apple.com
Sent: Thursday, April 01, 2010 1:05 AM
Subject: Re: two different databases at same time?



On 31/Mar/2010, at 8:15 AM, James Cicenia wrote:


Is it possible to use two different databases, I guess via two 
different

models?
I will need to connect to an Oracle big database on a remote server 
and

was
wondering if I could also use a mySQL or postgres database for user
control
on local server.


Yes, yes!  You can have multiple concurrent connections!  One for 
each

EOModel!
Just make sure that the entity names are unique across all EOModels!
Good luck!
M.
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update

Re: Which version of Eclipse for WO?

2010-07-08 Thread Cheong Hee

Hi Dave

Thanks for detail elaboration  Mike's efforts! Especially the third one, 
that will look for Wonder and WebObjects frameworks,  personally.


Cheers

Cheong Hee

- Original Message - 
From: David Avendasora webobje...@avendasora.com

To: Cheong Hee chn...@gmail.com
Cc: Richard Palmer r...@gs.net; WebObjects-Dev List 
webobjects-dev@lists.apple.com

Sent: Wednesday, July 07, 2010 8:18 PM
Subject: Re: Which version of Eclipse for WO?


Mike can correct me if I'm wrong, but I believe the current status of the 
builds is:


3.4 - Very stable, but has a few known bugs (reverse-engineering is broken 
in Entity Modeler, for one). No fixes or new development is being done.

3.5 - Mostly stable, no fixes or new development is being done.
3.6 - Somewhat unstable, but new features and bug fixes are being added. In 
other words, this is where all the cool kids are hanging out (not Chuck). 
But it is a bit risky...


Some great new features in 3.6:
1) cmd-shift-v to open Entity Modeler and jump directly to an Entity
2) Bundle-less builds (meaning Eclipse no longer has to create and keep 
in-sync a build directory).
3) Refined wolips.properties file management allowing you to change file 
contents directly in the project properties window.


The first is a great time-saver for when you are making changes to a model 
or just need to reference back a lot. The second should speed up general 
development performance since Eclipse is doing a lot less work. The third 
makes it more obvious where WOLips is looking for installed frameworks like 
WebObjects and Wonder.


In general, unless Mike says otherwise, I try to stay on whichever version 
he's currently using as he's the one that does a majority of the WOLips 
development and if WOLips is broken, it's broken for him and he'll fix it 
fast (usually).


So far I haven't noticed any show-stopper bugs in 3.6, but I'm just getting 
rolling with it.


Dave


On Jul 7, 2010, at 4:39 AM, Cheong Hee wrote:


Hi Dave

I may be amissed some key facts of previous discussion.  Thought we ought 
to wait for stable version 3.5, no?  Should we move to 3.5 or even 3.6 
now? Admire you guys have been moving fast... any chance Iron Man 3 out 
this year :)


Cheers

Cheong Hee

- Original Message - From: David Avendasora 
webobje...@avendasora.com

To: Richard Palmer r...@gs.net
Cc: WebObjects-Dev List webobjects-dev@lists.apple.com
Sent: Tuesday, July 06, 2010 9:19 PM
Subject: Re: Which version of Eclipse for WO?


I've used it with 3.5 with no problems, and have just started using it 
with 3.6.


Dave

On Jul 5, 2010, at 3:28 PM, Richard Palmer wrote:

Is Eclipse 3.4 the best version for JRebel Zero Turnaround and flushing 
D2W rules from the cache?


Does this stuff work well on any later version of Eclipse?

Richard Palmer

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

This email sent to webobje...@avendasora.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/chng34%40gmail.com

This email sent to chn...@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: Switching DB at runtime?

2010-07-07 Thread Cheong Hee
The setConnectionDictionary will have to be done at early stage.  Once the 
default editing context is created, it will be of effect.  This is confirmed 
from my code at least.


Cheers

Cheong Hee

- Original Message - 
From: Greg Bartnick gbartn...@gmail.com

To: Farrukh Ijaz farrukh.i...@fuegodigitalmedia.com
Cc: WebObjects-Dev Apple webobjects-dev@lists.apple.com
Sent: Wednesday, July 07, 2010 3:52 AM
Subject: Re: Switching DB at runtime?


Farrukh,

Take a look at the setConnectionDictionary method of the
com.webobjects.eoaccess.EOModel class.  Using that you would be able
to change the DB connection settings.  Right now I can't remember if
it will change an already connected db connection, but I know I use
that on start up of my apps to override settings.

-Greg


On Sat, Jul 3, 2010 at 1:25 AM, Farrukh Ijaz
farrukh.i...@fuegodigitalmedia.com wrote:

Question!

Is it possible to switch the DB settings of a running application using 
API (not the properties file) and the application start using the new DB 
from the next transaction. The DBs in this case are identicle in structure 
but data may differ.


Farrukh

Sent from my iPad ___
Do not 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/gbartnick%40gmail.com

This email sent to gbartn...@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/chng34%40gmail.com

This email sent to chn...@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: Which version of Eclipse for WO?

2010-07-07 Thread Cheong Hee

Hi Dave

I may be amissed some key facts of previous discussion.  Thought we ought to 
wait for stable version 3.5, no?  Should we move to 3.5 or even 3.6 now? 
Admire you guys have been moving fast... any chance Iron Man 3 out this year 
:)


Cheers

Cheong Hee

- Original Message - 
From: David Avendasora webobje...@avendasora.com

To: Richard Palmer r...@gs.net
Cc: WebObjects-Dev List webobjects-dev@lists.apple.com
Sent: Tuesday, July 06, 2010 9:19 PM
Subject: Re: Which version of Eclipse for WO?


I've used it with 3.5 with no problems, and have just started using it with 
3.6.


Dave

On Jul 5, 2010, at 3:28 PM, Richard Palmer wrote:

Is Eclipse 3.4 the best version for JRebel Zero Turnaround and flushing 
D2W rules from the cache?


Does this stuff work well on any later version of Eclipse?

Richard Palmer

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

This email sent to webobje...@avendasora.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/chng34%40gmail.com

This email sent to chn...@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: WODisplayGroup can't find displayObjects?

2010-06-30 Thread Cheong Hee
Hi Johann

Good that you reminded to check again though i had done and didn't suspect the 
batch counting subcomponent.  This batch subcomponent did a terrible variable 
synchronization - my fault - as it was working fine under WO5.2.  Now that when 
migrate to WO5.4, the problem is surfaced.  Thanks alot for pointer and 
sometimes the brain just could not work in one-way street.

Cheers and good day!

Cheong Hee

  - Original Message - 
  From: Johann Werner 
  To: Cheong Hee 
  Cc: webobjects-dev@lists.apple.com 
  Sent: Wednesday, June 30, 2010 2:01 PM
  Subject: Re: WODisplayGroup can't find displayObjects?


  Hi Cheong,


  I can't see anything suspicious. Do you use the display group in any other 
binding or in your java class? What's the full stack trace? You have a form on 
your page?


  jw




  Am 29.06.2010 um 18:36 schrieb Cheong Hee:


Hi Johann

Binding:

Repetition3: WORepetition {
item = user;
list = logOnUserDisplayGroup.displayedObjects;
index = sessionUserAdminWrapper.index;
}

{
WebObjects Release = WebObjects 5.0; 
encoding = UTF-8; 
variables = {
logOnUserDisplayGroup = {
class = WODisplayGroup; 
dataSource = {
class = EODatabaseDataSource; 
editingContext = session.defaultEditingContext; 
fetchSpecification = {
class = EOFetchSpecification; 
entityName = LogOnUser; 
isDeep = YES; 
prefetchingRelationshipKeyPaths = (); 
}; 
}; 
fetchesOnLoad = NO; 
formatForLikeQualifier = %...@*; 
numberOfObjectsPerBatch = 20; 
selectsFirstObjectAfterFetch = NO; 
sortOrdering = ({class = EOSortOrdering; key = vName; selectorName = 
compareAscending:; }); 
}; 
}; 



html:
webobject name = Repetition3
webobject name = GenericContainer1
td
webobject name = Conditional5webobject name = Image3 //webobject
webobject name = Conditional9webobject name = Image4 //webobject
/td
td align = LEFT valign = MIDDLE
webobject name = Hyperlink1webobject name = String6 //webobject
/td
td align = LEFTwebobject name = String3 //td
td align = LEFTwebobject name = String7 //td
td align = CENTER
webobject name = CheckBox3 /
webobject name = Conditional6webobject name = Image1 //webobject
webobject name = Conditional7webobject name = Image2 //webobject
/td
tdwebobject name = SubmitButton5 //td
tdwebobject name = SubmitButton7 //td
/webobject
/webobject


 
I have cross-checked with other components that contain display groups.  
But no clue.  The moment I added this display group into the component, the 
error will happen at appendToResponse.

Thanks,

Cheong Hee 
ps.  It is late night and I may not be able to response with more info 
later...
  - Original Message -
  From: Johann Werner
  To: Cheong Hee
  Cc: webobjects-dev@lists.apple.com
  Sent: Tuesday, June 29, 2010 6:52 PM
  Subject: Re: WODisplayGroup can't find displayObjects?


  Hi Cheong,


  the error says that you are trying to set a value for displayedObjects 
though this is not a settable value. Please post your bindings/html where you 
are using the display group so we can see what is exactly happening.


  jw




  Am 29.06.2010 um 12:31 schrieb Cheong Hee:


I spending hours on this matters but still could not figure out what 
has been gone wrong.  I have a repeatition that shows displayedObjects of a 
display group.  Checked wod, woo and coding and things looked normal.

Anyone to help why WODisplayGroup complains about displayedObjects 
variable not found?  The following is the short error message :~

[2010-6-29 18:11:30 SGT] WorkerThread0 
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
'com.webobjects.appserver.WODisplayGroup 0x1694eca takeValueForKey(): attempt 
to assign value to unknown key: 'displayedObjects'.

This class does not have an instance variable of the name 
displayedObjects or _displayedObjects, nor a method of the name 
setDisplayedObjects or _setDisplayedObjects' object 
'com.webobjects.appserver.WODisplayGroup 
datasource=com.webobjects.eoaccess.eodatabasedatasou...@9c8c3f delegate=Class: 
'com.webobjects.appserver.WODisplayGroup$Delegate' Object: null 
sortOrdering=( class com.webobjects.eocontrol.EOSortOrdering(vName 
compareAscending) ) qualifier=null localKeys=null 
insertedObjectDefaultValues={} numberOfObjectsPerBatch=20' key 
'displayedObjects'

at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleTakeValueForUnboundKey(NSKeyValueCoding.java:1399)

at 
com.webobjects.appserver.WODisplayGroup.handleTakeValueForUnboundKey(WODisplayGroup.java:3136)


 
Thanks for any pointer.

Cheong Hee






 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev

Re: WODisplayGroup can't find displayObjects?

2010-06-30 Thread Cheong Hee
got to be more careful with subcomponent bindings... especially when repetition 
is concerned (Kieran  wojingo's notes are referred).  lesson learned.

  - Original Message - 
  From: Amedeo Mantica 
  To: Johann Werner 
  Cc: Cheong Hee ; webobjects-dev@lists.apple.com 
  Sent: Tuesday, June 29, 2010 7:57 PM
  Subject: Re: WODisplayGroup can't find displayObjects?


  +1


  On 29/giu/2010, at 12.52, Johann Werner wrote:


Hi Cheong,


the error says that you are trying to set a value for displayedObjects 
though this is not a settable value. Please post your bindings/html where you 
are using the display group so we can see what is exactly happening.


jw




Am 29.06.2010 um 12:31 schrieb Cheong Hee:


  I spending hours on this matters but still could not figure out what has 
been gone wrong.  I have a repeatition that shows displayedObjects of a display 
group.  Checked wod, woo and coding and things looked normal.

  Anyone to help why WODisplayGroup complains about displayedObjects 
variable not found?  The following is the short error message :~

  [2010-6-29 18:11:30 SGT] WorkerThread0 
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message 
'com.webobjects.appserver.WODisplayGroup 0x1694eca takeValueForKey(): attempt 
to assign value to unknown key: 'displayedObjects'.

  This class does not have an instance variable of the name 
displayedObjects or _displayedObjects, nor a method of the name 
setDisplayedObjects or _setDisplayedObjects' object 
'com.webobjects.appserver.WODisplayGroup 
datasource=com.webobjects.eoaccess.eodatabasedatasou...@9c8c3f delegate=Class: 
'com.webobjects.appserver.WODisplayGroup$Delegate' Object: null 
sortOrdering=( class com.webobjects.eocontrol.EOSortOrdering(vName 
compareAscending) ) qualifier=null localKeys=null 
insertedObjectDefaultValues={} numberOfObjectsPerBatch=20' key 
'displayedObjects'

  at 
com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.handleTakeValueForUnboundKey(NSKeyValueCoding.java:1399)

  at 
com.webobjects.appserver.WODisplayGroup.handleTakeValueForUnboundKey(WODisplayGroup.java:3136)



  Thanks for any pointer.

  Cheong Hee




___
Do not 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/amedeomailing%40insigno.it

This email sent to amedeomail...@insigno.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/archive%40mail-archive.com

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

  1   2   3   >