ERRest: Multiple entries

2015-08-23 Thread Fred Opims
Hello!

I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
with JSON format.

For example, to create one entity User, I will execute the request with the
following post in the body {name:Fred} as shown in the image:


[image: Inline image 1]

Is there a way to create multiple entries in one time ?
By multiples entries, i mean an array of the same object.

Let's say :
{name:Freddy},
{name:Eric}
{name:Andre}
...
{name:Pascal}

I've tried to put the entries into an array but it does not work:
[{name:Freddy},{name:Eric},{name:Andre}]

How can I create 100 Users entities in one time ?

Thank you.

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

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

ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Fred Opims
Hello!
I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
with JSON format.
Is there a way to create multiple entries in one time with curl or any
other http client ?

Thank you!

Best!

Fred
 ___
Do not 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: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Fred Opims
Hi Paul!
Hi Michael!
Thank you all for your responses.
By multiples entries, i mean multiples post request to create an entity.
For example, to create one entity with HTTP Client, i'm doing as shown in
this image:
-Creating one entity User with the body {name:Fred}.

[image: Inline image 1]

But if i need to create 100 Users entities, i need to change the body 100
times in HTTP client which is not optimal.
{name:Freddy},
{name:Eric}
{name:Andre}
...
{name:Pascal}

Is there a way to create these 100 users in one time by putting theses 20
post in a file or somewhere else ?

Thank you.

Fred


On Tue, Aug 26, 2014 at 12:49 PM, Paul Yu p...@mac.com wrote:

 Fred

 What do you mean my multiple entries?  Multiple master objects?  or
 Master-Detail objects?

 Paul
 On Aug 26, 2014, at 11:07 AM, Michael Kondratov 
 mich...@aspireauctions.com wrote:

 It could be possible by creating a custom Rest parser.

 Michael Kondratov
 Aspire Auctions, Inc.
 216-231-5515

 On Aug 26, 2014, at 7:50 AM, Fred Opims ropims...@gmail.com wrote:

 Hello!
 I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
 with JSON format.
 Is there a way to create multiple entries in one time with curl or any
 other http client ?

 Thank you!

 Best!

 Fred
 ___
 Do not 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/michael%40aspireauctions.com

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

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

Re: ERRest: Is there a way to create multiple entries in one time

2014-08-26 Thread Fred Opims
Hi Michael!
Thanks you! I'll test it.
Best


On Tue, Aug 26, 2014 at 3:43 PM, Michael Kondratov 
mich...@aspireauctions.com wrote:

 Fred,
 You could put the names into a URL parameter then process it in the create
 section of rest controller.
 Michael Kondratov
 Aspire Auctions, Inc.
 www.aspireauctions.com
 216-231-5515

 On Aug 26, 2014, at 3:39 PM, Fred Opims ropims...@gmail.com wrote:

 Hi Paul!
 Hi Michael!
 Thank you all for your responses.
 By multiples entries, i mean multiples post request to create an entity.
 For example, to create one entity with HTTP Client, i'm doing as shown in
 this image:
 -Creating one entity User with the body {name:Fred}.

 Screen Shot 2014-08-26 at 3.25.41 PM.png

 But if i need to create 100 Users entities, i need to change the body 100
 times in HTTP client which is not optimal.
 {name:Freddy},
 {name:Eric}
 {name:Andre}
 ...
 {name:Pascal}

 Is there a way to create these 100 users in one time by putting theses 20
 post in a file or somewhere else ?

 Thank you.

 Fred


 On Tue, Aug 26, 2014 at 12:49 PM, Paul Yu p...@mac.com wrote:

 Fred

 What do you mean my multiple entries?  Multiple master objects?  or
 Master-Detail objects?

 Paul
 On Aug 26, 2014, at 11:07 AM, Michael Kondratov 
 mich...@aspireauctions.com wrote:

 It could be possible by creating a custom Rest parser.

  Michael Kondratov
 Aspire Auctions, Inc.
 216-231-5515

 On Aug 26, 2014, at 7:50 AM, Fred Opims ropims...@gmail.com wrote:

 Hello!
 I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
 with JSON format.
 Is there a way to create multiple entries in one time with curl or any
 other http client ?

 Thank you!

 Best!

 Fred
 ___
 Do not 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/michael%40aspireauctions.com

 This email sent to mich...@aspireauctions.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/michael%40aspireauctions.com

 This email sent to mich...@aspireauctions.com



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

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

ERRest: Is there a way to create multiple entries in one time

2014-08-22 Thread Fred Opims
Hello!
I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
with JSON format.
Is there a way to create multiple entries in one time with curl or any
other http client ?

Thank you!

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

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

ERRest: Is there a way to create multiple entries in one time

2014-08-21 Thread Fred Opims
Hello!
I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
with JSON format.
Is there a way to create multiple entries in one time with curl or any
other http client ?

Thank you!

Best!

Fred
 ___
Do not 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

How to fetch an entity from an id ?

2014-08-20 Thread Fred Opims
Hello!
I'm using ErRest and i would like to fetch an entity from an id.

So far  I'm using an keyName (attribute) to fetch an entity. For the case
i'm working on, I only have its id.

Do you know how to do that ?

Thank you

Best!

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

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

Re: How to fetch an entity from an id ?

2014-08-20 Thread Fred Opims
Thank you John!
I've used this format in an url.
But how can i fetch Person 100 with fetch methode directly in Java ?

Here are the fetch method provided in a ERXGenericRecord.

I have not found a method using the primary key.

public static ERXFetchSpecificationUser fetchSpec()
public static NSArrayUser fetchAllUsers(EOEditingContext editingContext)
public static NSArrayUser fetchAllUsers(EOEditingContext editingContext,
NSArrayEOSortOrdering sortOrderings)
public static NSArrayUser fetchUsers(EOEditingContext editingContext,
EOQualifier qualifier, NSArrayEOSortOrdering sortOrderings)
public static User fetchUser(EOEditingContext editingContext, String
keyName, Object value)
public static User fetchUser(EOEditingContext editingContext, EOQualifier
qualifier)
public static User fetchRequiredUser(EOEditingContext editingContext,
String keyName, Object value)
public static User fetchRequiredUser(EOEditingContext editingContext,
EOQualifier qualifier)

Thank you!



On Wed, Aug 20, 2014 at 2:27 PM, John Huss johnth...@gmail.com wrote:

 .../Person/100

 It's entityName/primaryKey


 On Wed, Aug 20, 2014 at 12:26 PM, Fred Opims ropims...@gmail.com wrote:

 Hello!
 I'm using ErRest and i would like to fetch an entity from an id.

 So far  I'm using an keyName (attribute) to fetch an entity. For the case
 i'm working on, I only have its id.

 Do you know how to do that ?

 Thank you

 Best!

 Fred

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

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

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



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

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

Re: How to fetch an entity from an id ?

2014-08-20 Thread Fred Opims
Thank you very much!
I will use thoses one!
Best!


On Wed, Aug 20, 2014 at 3:10 PM, Chuck Hill ch...@global-village.net
wrote:

  It is in EOUtilities

  static EOEnterpriseObject objectWithPrimaryKey(EOEditingContext ec,
 String entityName, NSDictionary pkDict)
   Fetches the Enterprise Object identified by the specified
 primary key dictionary.

   On 2014-08-20, 12:07 PM, Fred Opims wrote:

  Thank you John!
  I've used this format in an url.
  But how can i fetch Person 100 with fetch methode directly in Java ?

  Here are the fetch method provided in a ERXGenericRecord.

  I have not found a method using the primary key.

   public static ERXFetchSpecificationUser fetchSpec()
 public static NSArrayUser fetchAllUsers(EOEditingContext editingContext)
 public static NSArrayUser fetchAllUsers(EOEditingContext editingContext,
 NSArrayEOSortOrdering sortOrderings)
 public static NSArrayUser fetchUsers(EOEditingContext editingContext,
 EOQualifier qualifier, NSArrayEOSortOrdering sortOrderings)
 public static User fetchUser(EOEditingContext editingContext, String
 keyName, Object value)
 public static User fetchUser(EOEditingContext editingContext, EOQualifier
 qualifier)
 public static User fetchRequiredUser(EOEditingContext editingContext,
 String keyName, Object value)
 public static User fetchRequiredUser(EOEditingContext editingContext,
 EOQualifier qualifier)

  Thank you!



 On Wed, Aug 20, 2014 at 2:27 PM, John Huss johnth...@gmail.com wrote:

 .../Person/100

  It's entityName/primaryKey


  On Wed, Aug 20, 2014 at 12:26 PM, Fred Opims ropims...@gmail.com
 wrote:

Hello!
  I'm using ErRest and i would like to fetch an entity from an id.

  So far  I'm using an keyName (attribute) to fetch an entity. For the
 case i'm working on, I only have its id.

 Do you know how to do that ?

  Thank you

  Best!

  Fred

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

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

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




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

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

ERRest: Is there a way to create multiple entries in one time

2014-08-20 Thread Fred Opims
Hello!
I'm using ERRest  and  to create an entry, I'm using the POST HTTP method
with JSON format.
Is there a way to create multiple entries in one time with curl or any
other http client ?

Thank you!

Best!

Fred
 ___
Do not 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: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

2014-05-07 Thread Fred Opims
Hi !
I succeed to run some request on the application deployed on the server.
That means that the server can received ERRest request.

But for request involving  ERXKeyFilter, i have the same error message:

The request i’m sending is like this one:
http://somesite.ca/cgi-bin/WebObjects/SomeServer.woa/ra/highlight.json
POST
{
title: “TEST_3,
kind: 1,
length: 18s,
path: “some_url.m4v,
thumbnailPath: “some.png,
detail: “SOME DETAIL
  }




*Here is the response*:

er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V.

 ERROR er.rest.routes.ERXRouteController - Request failed:
/cgi-bin/WebObjects/SomeServer.woa/1/ra/highlight.json NoSuchMethodError:
er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V at
abc.app.rest.controllers.HighlightController.filter(HighlightController.java:68)
at
abc.app.rest.controllers.HighlightController.createAction(HighlightController.java:52)
... skipped 4 stack elements at
er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1372)
at
er.rest.routes.ERXRouteController.performActionNamed(ERXRouteController.java:1238)
... skipped 8 stack elements


Any ideas?

Thank you


On Tue, May 6, 2014 at 10:18 AM, Fred Opims ropims...@gmail.com wrote:

 ERRest.jar is on JavaMonitor.woa, wotaskd.woa and the  App.

 Here is the content of the Frameworks directory from the App

 ERExtensions.framework
 ERJars.framework
 ERPrototypes.framework
 ERRest.framework
 H2PlugIn.framework
 JavaEOAccess.framework
 JavaEOControl.framework
 JavaFoundation.framework
 JavaJDBCAdaptor.framework
 JavaWebObjects.framework
 JavaWOExtensions.framework
 JavaXML.framework
 PostgresqlPlugIn.framework
 WOOgnl.framework


 I used Ant to make my build and i followed this link to install Wonder on
 the server.
 http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux

 Thank you


 On Tue, May 6, 2014 at 9:57 AM, Pascal Robert prob...@macti.ca wrote:

 Do you have the ERRest.jar file elsewhere on the server? You can use the
 « find » command to find if it's the case (find / -name 'ERRest.jar' -ls)

 And are you building Wonder or did you download the frameworks from
 somewhere?

 - Mail original -
 De: Fred Opims ropims...@gmail.com
 À: Pascal Robert prob...@macti.ca
 Cc: WebObjects Development Webobjects-dev@lists.apple.com
 Envoyé: Mardi 6 Mai 2014 09:54:18
 Objet: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

 Hi Pascal!

 I confirm that the ERRest framework is in the Application's Frameworks
 directory,

 Here is the content of Contents/Unix:

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

 APPROOT/Resources/Java/
 APPROOT/Resources/Java/bscserver.jar

 APPROOT/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar

 APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar

 APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
 APPROOT/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar

 APPROOT/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
 APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar
 APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar
 APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/ERRest.jar

 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-beanutils-1.7.0.jar

 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-collections-3.2.1.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-lang-2.4.jar

 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-logging-1.1.1.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/ezmorph-1.0.6.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/json-lib-2.3-jdk15.jar
 APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/H2PlugIn.jar
 APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/h2-1.3.151.jar
 APPROOT/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar

 APPROOT/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar
 APPROOT/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar

Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

2014-05-06 Thread Fred Opims
Hi !
I made sure that my WO configuration are up to date and i follow the steps
written on
http://www.amazon.com/Learning-The-Wonders-introduction-applications/dp/3952423300
.
But i still have the same error message:
er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V
The WoAdaptorInfo has given  the following error message:
*The requested application was not found on this server.*

Do you have an idea?
Thank you!


On Mon, May 5, 2014 at 7:26 AM, Fred Opims ropims...@gmail.com wrote:

 Thank you Pascal!
 Yes i'm bundling my frameworks inside the application bundle. But i'm only
 using the BSCServer-Application.tar and BSCServer-WebServerResources.tar
 files for the deployment.
 Should i use rather application bundle ?
 Thank you!
 Best!



 On Mon, May 5, 2014 at 1:00 AM, Pascal Robert prob...@macti.ca wrote:

 Bonjour Fred,

 It looks like you have an older version of ERRest on the server. Do you
 bundle your frameworks inside the application bundle (the .woa) ? If not,
 you should do it.

  Hi!
  I’ve made a application with ERRest. I made some test my localhost
 server and it works great.
  I’ve tried to deploy on remote server. I could launch the application
 normally but when i try to post some data, i’ve got the following error:
 
  er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V.
 
  I’ve made some research on that but could not find something helping me.
  I’ve remove this line  aFilter.setAnonymousUpdateEnabled(true); on my
 controller just to what was happening and i got the following message:
 
  er.extensions.eof.ERXKeyFilter.setUnknownKeyIgnored(Z)V.
 
 
  When i use the following instruction,
  curl -X POST -d  -v '{title: “Toto,kind: 1,length:
 18s,path”:APath,thumbnailPath:https://dl.dropboxusercontent.com/,detail:
 Penalty ”}'
 http://opsoft.ca/cgi-bin/WebObjects/Server.woa/ra/highlight.json
  I’ve got a could not resolve for every key of my json
 
  [1/6]: title: Toto -- stdout
  --_curl_--title: Toto
  curl: (6) Could not resolve host: title
 
  [2/6]: kind: 1 -- stdout
  --_curl_--kind: 1
  curl: (6) Could not resolve host: “kind
  ...
 
 
  The same POST request works great in the local server but not in the
 remote one.
 
 
  Do you have an idea?
 
 
  Best!
 
  Fred
 
 
  ___
  Do not 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/archive%40mail-archive.com

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

Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

2014-05-06 Thread Fred Opims
Hi Pascal!

I confirm that the  ERRest framework is in the Application's Frameworks
directory,

Here is the content of Contents/Unix:

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

APPROOT/Resources/Java/
APPROOT/Resources/Java/bscserver.jar

APPROOT/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
APPROOT/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar
APPROOT/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar
APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar
APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/ERRest.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-beanutils-1.7.0.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-collections-3.2.1.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-lang-2.4.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-logging-1.1.1.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/ezmorph-1.0.6.jar
APPROOT/Frameworks/ERRest.framework/Resources/Java/json-lib-2.3-jdk15.jar
APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/H2PlugIn.jar
APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/h2-1.3.151.jar
APPROOT/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
APPROOT/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar
APPROOT/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar
APPROOT/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
APPROOT/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar
APPROOT/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar
APPROOT/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar
APPROOT/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar
APPROOT/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar
APPROOT/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar
APPROOT/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar
APPROOT/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
APPROOT/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
APPROOT/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar

Thank you!


On Tue, May 6, 2014 at 8:41 AM, Pascal Robert prob...@macti.ca wrote:

 It looks like a classpath problem. In your deployed application, can you
 send your UNIXClasspath.txt (located in Contents/UNIX/), or if you are
 deploying on OS X, the MacOSClassPath.txt file located in Contents/MacOS.
 And please confirm that the ERRest framework is located in the Frameworks
 directory of the deployed application.

 - Mail original -
 De: Fred Opims ropims...@gmail.com
 À: Pascal Robert prob...@macti.ca
 Cc: WebObjects Development Webobjects-dev@lists.apple.com
 Envoyé: Mardi 6 Mai 2014 07:10:53
 Objet: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

 Hi !
 I made sure that my WO configuration are up to date and i follow the steps
 written on
 http://www.amazon.com/Learning-The-Wonders-introduction-applications/dp/3952423300.
 But i still have the same error message:
 er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V
 The WoAdaptorInfo has given the following error message:
 The requested application was not found on this server.

 Do you have an idea?
 Thank you!


 On Mon, May 5, 2014 at 7:26 AM, Fred Opims  ropims...@gmail.com  wrote:



 Thank you Pascal!
 Yes i'm bundling my frameworks inside the application bundle. But i'm only
 using the BSCServer-Application.tar and BSCServer-WebServerResources.tar
 files for the deployment.
 Should i use rather application bundle ?
 Thank you!
 Best!



 On Mon, May 5, 2014 at 1:00 AM, Pascal Robert  prob...@macti.ca  wrote:

 blockquote
 Bonjour Fred,

 It looks

Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

2014-05-06 Thread Fred Opims
ERRest.jar is on JavaMonitor.woa, wotaskd.woa and the  App.

Here is the content of the Frameworks directory from the App

ERExtensions.framework
ERJars.framework
ERPrototypes.framework
ERRest.framework
H2PlugIn.framework
JavaEOAccess.framework
JavaEOControl.framework
JavaFoundation.framework
JavaJDBCAdaptor.framework
JavaWebObjects.framework
JavaWOExtensions.framework
JavaXML.framework
PostgresqlPlugIn.framework
WOOgnl.framework


I used Ant to make my build and i followed this link to install Wonder on
the server.
http://wiki.wocommunity.org/display/documentation/Deploying+on+Linux

Thank you


On Tue, May 6, 2014 at 9:57 AM, Pascal Robert prob...@macti.ca wrote:

 Do you have the ERRest.jar file elsewhere on the server? You can use the «
 find » command to find if it's the case (find / -name 'ERRest.jar' -ls)

 And are you building Wonder or did you download the frameworks from
 somewhere?

 - Mail original -
 De: Fred Opims ropims...@gmail.com
 À: Pascal Robert prob...@macti.ca
 Cc: WebObjects Development Webobjects-dev@lists.apple.com
 Envoyé: Mardi 6 Mai 2014 09:54:18
 Objet: Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

 Hi Pascal!

 I confirm that the ERRest framework is in the Application's Frameworks
 directory,

 Here is the content of Contents/Unix:

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

 APPROOT/Resources/Java/
 APPROOT/Resources/Java/bscserver.jar

 APPROOT/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar

 APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5-sources.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.5.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar

 APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2-sources.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/joda-time-1.6.2.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/junit-4.8.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/log4j-1.2.16.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/ognl-2.6.7.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-api-1.5.0.jar
 APPROOT/Frameworks/ERJars.framework/Resources/Java/slf4j-log4j12-1.5.0.jar
 APPROOT/Frameworks/ERPrototypes.framework/Resources/Java/ERPrototypes.jar

 APPROOT/Frameworks/JavaWOExtensions.framework/Resources/Java/JavaWOExtensions.jar
 APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl.jar
 APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl53.jar
 APPROOT/Frameworks/WOOgnl.framework/Resources/Java/WOOgnl54.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/ERRest.jar

 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-beanutils-1.7.0.jar

 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-collections-3.2.1.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-lang-2.4.jar

 APPROOT/Frameworks/ERRest.framework/Resources/Java/commons-logging-1.1.1.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/ezmorph-1.0.6.jar
 APPROOT/Frameworks/ERRest.framework/Resources/Java/json-lib-2.3-jdk15.jar
 APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/H2PlugIn.jar
 APPROOT/Frameworks/H2PlugIn.framework/Resources/Java/h2-1.3.151.jar
 APPROOT/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar

 APPROOT/Frameworks/PostgresqlPlugIn.framework/Resources/Java/PostgresqlPlugIn.jar
 APPROOT/Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar

 APPROOT/Frameworks/JavaEOAccess.framework/WebServerResources/Java/JavaEOAccess.jar
 APPROOT/Frameworks/JavaEOControl.framework/Resources/Java/javaeocontrol.jar

 APPROOT/Frameworks/JavaEOControl.framework/WebServerResources/Java/JavaEOControl.jar

 APPROOT/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.jar

 APPROOT/Frameworks/JavaFoundation.framework/WebServerResources/Java/JavaFoundation.jar

 APPROOT/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar

 APPROOT/Frameworks/JavaJDBCAdaptor.framework/WebServerResources/Java/JavaJDBCAdaptor.jar

 APPROOT/Frameworks/JavaWebObjects.framework/Resources/Java/javawebobjects.jar

 APPROOT/Frameworks/JavaWebObjects.framework/WebServerResources/Java/JavaWebObjects.jar
 APPROOT/Frameworks/JavaXML.framework/Resources/Java/javaxml.jar
 APPROOT/Frameworks/JavaXML.framework/WebServerResources/Java/javaxml.jar

 Thank you!


 On Tue, May 6, 2014 at 8:41 AM, Pascal Robert  prob...@macti.ca  wrote:


 It looks like a classpath problem. In your deployed application, can you
 send your UNIXClasspath.txt (located in Contents/UNIX/), or if you are
 deploying on OS X, the MacOSClassPath.txt file located in Contents/MacOS.
 And please confirm that the ERRest framework is located

Re: ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

2014-05-05 Thread Fred Opims
Thank you Pascal!
Yes i'm bundling my frameworks inside the application bundle. But i'm only
using the BSCServer-Application.tar and BSCServer-WebServerResources.tar
files for the deployment.
Should i use rather application bundle ?
Thank you!
Best!



On Mon, May 5, 2014 at 1:00 AM, Pascal Robert prob...@macti.ca wrote:

 Bonjour Fred,

 It looks like you have an older version of ERRest on the server. Do you
 bundle your frameworks inside the application bundle (the .woa) ? If not,
 you should do it.

  Hi!
  I’ve made a application with ERRest. I made some test my localhost
 server and it works great.
  I’ve tried to deploy on remote server. I could launch the application
 normally but when i try to post some data, i’ve got the following error:
 
  er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V.
 
  I’ve made some research on that but could not find something helping me.
  I’ve remove this line  aFilter.setAnonymousUpdateEnabled(true); on my
 controller just to what was happening and i got the following message:
 
  er.extensions.eof.ERXKeyFilter.setUnknownKeyIgnored(Z)V.
 
 
  When i use the following instruction,
  curl -X POST -d  -v '{title: “Toto,kind: 1,length:
 18s,path”:APath,thumbnailPath:https://dl.dropboxusercontent.com/,detail:
 Penalty ”}'
 http://opsoft.ca/cgi-bin/WebObjects/Server.woa/ra/highlight.json
  I’ve got a could not resolve for every key of my json
 
  [1/6]: title: Toto -- stdout
  --_curl_--title: Toto
  curl: (6) Could not resolve host: title
 
  [2/6]: kind: 1 -- stdout
  --_curl_--kind: 1
  curl: (6) Could not resolve host: “kind
  ...
 
 
  The same POST request works great in the local server but not in the
 remote one.
 
 
  Do you have an idea?
 
 
  Best!
 
  Fred
 
 
  ___
  Do not 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/archive%40mail-archive.com

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

ERXKeyFilter.setAnonymousUpdateEnabled(Z)V on remote server

2014-05-04 Thread Fred Opims
Hi!
I’ve made a application with ERRest. I made some test my localhost server
and it works great.
I’ve tried to deploy on remote server. I could launch the application
normally but when i try to post some data, i’ve got the following error:

er.extensions.eof.ERXKeyFilter.setAnonymousUpdateEnabled(Z)V.

I’ve made some research on that but could not find something helping me.
I’ve remove this line  aFilter.setAnonymousUpdateEnabled(true); on my
controller just to what was happening and i got the following message:

er.extensions.eof.ERXKeyFilter.setUnknownKeyIgnored(Z)V.


When i use the following instruction,
curl -X POST -d  -v '{title: “Toto,kind: 1,length:
18s,path”:APath,thumbnailPath:https://dl.dropboxusercontent.com/,detail:
Penalty ”}'
http://opsoft.ca/cgi-bin/WebObjects/Server.woa/ra/highlight.json
I’ve got a could not resolve for every key of my json

[1/6]: title: Toto -- stdout
--_curl_--title: Toto
curl: (6) Could not resolve host: title

[2/6]: kind: 1 -- stdout
--_curl_--kind: 1
curl: (6) Could not resolve host: “kind
...


The same POST request works great in the local server but not in the remote
one.


Do you have an idea?


Best!

Fred
 ___
Do not 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: Ant built issue: The framework name 'ERJars' does not exist.

2014-05-02 Thread Fred Opims
Hi Dave!
Thank you!
The wolips.properties file i sent you was coming from ~/Library/Application
Support/WOLips/
This was a only place where this file exists.
So i put the entry wolips.properties=~/Library/Application Support/WOLips/  in
my build.properties. But i got an new error message The properties
'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that
your ~/Library/Application Support/WOLips/wolips.properties is correct
So i change the wolips.properties value many time (even by hardcoding) but
this new error message was still there.
Then i copy the wolips.properties (from /Library/Application Support/WOLips/ )
and i past it in my project folder at the same level than my
build.properties file. The previous message (The properties
'wo.system.frameworks' and 'wo.local.frameworks') disappear and the
first one came back (The framework name 'ERJars' does not exist.)
Should i have wolips.properties file somewhere else (in addition to the one
located in  ~/Library/Application Support/WOLips/)?
Thank you very much!


On Thu, May 1, 2014 at 7:19 PM, David Avendasora
webobje...@avendasora.comwrote:

 Sorry for the delay in getting back to you.

 Yep. See. In that build.properties file you do *not* have a
 wolips.properties entry.

 wolips.properties=/path/to/wolips.properties


  If you don’t have it in there, the only place Ant will look for it is in:

 ~/Library/Application Support/WOLips/wolips.properties

 Where did you get the wolips.properties file from that you attached
 earlier?

 Dave

 On May 1, 2014, at 11:01 AM, Fred Opims ropims...@gmail.com wrote:

 Here you are. It was not hidden.
 Thank you very much!!




 On Thu, May 1, 2014 at 10:55 AM, David Avendasora 
 webobje...@avendasora.com wrote:

 Can you include one last file, your build.properties file. It is in the
 root of your project, but unless you tell Eclipse to show it, it is being
 hidden. Either grab it from the finder, or change the filter settings.

 Dave

 On May 1, 2014, at 10:23 AM, Fred Opims ropims...@gmail.com wrote:

 hi! Here are my files: wolips.543.properties, wolips.properties and
 build.xml.
 To build, i'm following the step written in this link:
 http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant#
 build.xml -Run As- Ant Build...

 Screen Shot 2014-05-01 at 10.21.04 AM.png


 On Thu, May 1, 2014 at 10:14 AM, David Avendasora 
 webobje...@avendasora.com wrote:

 Can you paste the contents of your wolips.properties file here? That
 would really help the debugging.

 Also, how are you building the app? Inside Eclipse using the Run As… Ant
 Build…?

 Dave

 On May 1, 2014, at 10:10 AM, Fred Opims ropims...@gmail.com wrote:

 Hi Dave
 Thank you for your response.
 My build.properties file already point to the wolips.properies file. I
 tried to hardcode the path  (to be sure that it really point to the file),
 but i'm always having the same message.
 I read many threads related to this error and i followed some steps, but
 no success.
 Any idea ?
 Best


 On Thu, May 1, 2014 at 9:51 AM, David Avendasora 
 webobje...@avendasora.com wrote:

  … you want to use the settings in your wolips.properties file …


 I mean:

 … you want *Ant* to use the settings in your wolips.properties file …



 On May 1, 2014, at 9:47 AM, David Avendasora webobje...@avendasora.com
 wrote:

 Little known fact: If you want to use the settings in your
 wolips.properties file, your build.properties file needs a property that
 points to the wolips.properties file. Otherwise Ant doesn’t know anything
 about it.

 wolips.properties=/path/to/wolips.properties

 Dave


 On May 1, 2014, at 7:28 AM, Fred Opims ropims...@gmail.com wrote:

 Hi All!
 I’m trying to make an install of my webObject app, but i’ve a got the
 following error: ...build.xml:206: The framework name 'ERJars' does
 not exist.
 I’ve seen some thread talking about the same issue.
 The value of wo.local.frameworks in my wolips.properties didn’t have
 wonder frameworks in it. The only frameworks inside was
 JavaMonitorSupport.framework.
 So i’ve manually put ERJars-5.0.jar and ERJars.frameoworks but i’ve
 still have the same message error.
 Do you have any idea ?

 Regards

 Fred
 ___
 Do not 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/webobjects%40avendasora.com

 This email sent to webobje...@avendasora.com



 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.







 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc

Re: Ant built issue: The framework name 'ERJars' does not exist.

2014-05-02 Thread Fred Opims
Hi Dave!
Thank you very much!
I've finally succeed to make the build.
I don't know why but Eclipse prefers using wolips.543.properties files
rather than wolips.properties. I could not change the Wolips Properies file
value (in Wolips pane) to wolips.properties. Eclipse didn't allow me to do
that. So as you wrote on the Wiki, i needed to make sure that the
build.properties knows where wolips.543.properties were.
After that, i've tried to to have the same configuration you've set in the
Wolips Pane.
I had to copy some frameworks in some specific location.
And now it works.
Thank you very much for your time!!



On Fri, May 2, 2014 at 11:06 AM, David Avendasora webobje...@avendasora.com
 wrote:

 Okay, now looking over all the files together, I may have found the issue!

 I see in the wolips.properties file you have:

 wo.local.frameworks=/Library/Frameworks

 in wolips.543.properties file you have:


 wo.local.frameworks=/Library/WebObjects/Versions/WebObjects543/System/Library/Frameworks

 Which is the one you want to use? I’m guessing that the
 wolips.543.properties one is.

 You should set the WOLips preferences to point to the same file as you put
 in the build.properties file, just to make sure both Eclipse and Ant are
 using the same set of both WO and Wonder frameworks.

 I’ve updated the Wik page on building frameworks to be more clear about
 the role of the wolips.properties file. Most of what is there also applies
 to building Applications.



 http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant

 Dave




 On May 2, 2014, at 6:59 AM, Fred Opims ropims...@gmail.com wrote:

 Hi Dave!
 Thank you!
 The wolips.properties file i sent you was coming from ~/Library/Application
 Support/WOLips/
 This was a only place where this file exists.
 So i put the entry wolips.properties=~/Library/Application Support/WOLips/  in
 my build.properties. But i got an new error message The properties
 'wo.system.frameworks' and 'wo.local.frameworks' must be set. Check that
 your ~/Library/Application Support/WOLips/wolips.properties is correct
 So i change the wolips.properties value many time (even by hardcoding) but
 this new error message was still there.
 Then i copy the wolips.properties (from /Library/Application
 Support/WOLips/ ) and i past it in my project folder at the same level
 than my build.properties file. The previous message (The properties
 'wo.system.frameworks' and 'wo.local.frameworks') disappear and the
 first one came back (The framework name 'ERJars' does not exist.)
 Should i have wolips.properties file somewhere else (in addition to the
 one located in  ~/Library/Application Support/WOLips/)?
 Thank you very much!


 On Thu, May 1, 2014 at 7:19 PM, David Avendasora 
 webobje...@avendasora.com wrote:

 Sorry for the delay in getting back to you.

 Yep. See. In that build.properties file you do *not* have a
 wolips.properties entry.

  wolips.properties=/path/to/wolips.properties


  If you don’t have it in there, the only place Ant will look for it is in:

 ~/Library/Application Support/WOLips/wolips.properties

 Where did you get the wolips.properties file from that you attached
 earlier?

 Dave

 On May 1, 2014, at 11:01 AM, Fred Opims ropims...@gmail.com wrote:

 Here you are. It was not hidden.
 Thank you very much!!




 On Thu, May 1, 2014 at 10:55 AM, David Avendasora 
 webobje...@avendasora.com wrote:

 Can you include one last file, your build.properties file. It is in the
 root of your project, but unless you tell Eclipse to show it, it is being
 hidden. Either grab it from the finder, or change the filter settings.

 Dave

 On May 1, 2014, at 10:23 AM, Fred Opims ropims...@gmail.com wrote:

 hi! Here are my files: wolips.543.properties, wolips.properties and
 build.xml.
 To build, i'm following the step written in this link:
 http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant#
 build.xml -Run As- Ant Build...

 Screen Shot 2014-05-01 at 10.21.04 AM.png


 On Thu, May 1, 2014 at 10:14 AM, David Avendasora 
 webobje...@avendasora.com wrote:

 Can you paste the contents of your wolips.properties file here? That
 would really help the debugging.

 Also, how are you building the app? Inside Eclipse using the Run As…
 Ant Build…?

 Dave

 On May 1, 2014, at 10:10 AM, Fred Opims ropims...@gmail.com wrote:

 Hi Dave
 Thank you for your response.
 My build.properties file already point to the wolips.properies file. I
 tried to hardcode the path  (to be sure that it really point to the file),
 but i'm always having the same message.
 I read many threads related to this error and i followed some steps,
 but no success.
 Any idea ?
 Best


 On Thu, May 1, 2014 at 9:51 AM, David Avendasora 
 webobje...@avendasora.com wrote:

  … you want to use the settings in your wolips.properties file …


 I mean:

 … you want *Ant* to use the settings in your wolips.properties file …



 On May 1, 2014, at 9:47 AM, David

Ant built issue: The framework name 'ERJars' does not exist.

2014-05-01 Thread Fred Opims
Hi All!
I’m trying to make an install of my webObject app, but i’ve a got the
following error: ...build.xml:206: The framework name 'ERJars' does not
exist.
I’ve seen some thread talking about the same issue.
The value of wo.local.frameworks in my wolips.properties didn’t have wonder
frameworks in it. The only frameworks inside was
JavaMonitorSupport.framework.
So i’ve manually put ERJars-5.0.jar and ERJars.frameoworks but i’ve still
have the same message error.
Do you have any idea ?

Regards

Fred
 ___
Do not 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: Ant built issue: The framework name 'ERJars' does not exist.

2014-05-01 Thread Fred Opims
Hi Dave
Thank you for your response.
My build.properties file already point to the wolips.properies file. I
tried to hardcode the path  (to be sure that it really point to the file),
but i'm always having the same message.
I read many threads related to this error and i followed some steps, but no
success.
Any idea ?
Best


On Thu, May 1, 2014 at 9:51 AM, David Avendasora
webobje...@avendasora.comwrote:

  … you want to use the settings in your wolips.properties file …


 I mean:

 … you want *Ant* to use the settings in your wolips.properties file …



 On May 1, 2014, at 9:47 AM, David Avendasora webobje...@avendasora.com
 wrote:

 Little known fact: If you want to use the settings in your
 wolips.properties file, your build.properties file needs a property that
 points to the wolips.properties file. Otherwise Ant doesn’t know anything
 about it.

 wolips.properties=/path/to/wolips.properties

 Dave


 On May 1, 2014, at 7:28 AM, Fred Opims ropims...@gmail.com wrote:

 Hi All!
 I’m trying to make an install of my webObject app, but i’ve a got the
 following error: ...build.xml:206: The framework name 'ERJars' does not
 exist.
 I’ve seen some thread talking about the same issue.
 The value of wo.local.frameworks in my wolips.properties didn’t have
 wonder frameworks in it. The only frameworks inside was
 JavaMonitorSupport.framework.
 So i’ve manually put ERJars-5.0.jar and ERJars.frameoworks but i’ve still
 have the same message error.
 Do you have any idea ?

 Regards

 Fred
 ___
 Do not 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/webobjects%40avendasora.com

 This email sent to webobje...@avendasora.com



 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.







 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.






 ___
Do not 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: Ant built issue: The framework name 'ERJars' does not exist.

2014-05-01 Thread Fred Opims
Here you are. It was not hidden.
Thank you very much!!




On Thu, May 1, 2014 at 10:55 AM, David Avendasora webobje...@avendasora.com
 wrote:

 Can you include one last file, your build.properties file. It is in the
 root of your project, but unless you tell Eclipse to show it, it is being
 hidden. Either grab it from the finder, or change the filter settings.

 Dave

 On May 1, 2014, at 10:23 AM, Fred Opims ropims...@gmail.com wrote:

 hi! Here are my files: wolips.543.properties, wolips.properties and
 build.xml.
 To build, i'm following the step written in this link:
 http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant#
 build.xml -Run As- Ant Build...

 Screen Shot 2014-05-01 at 10.21.04 AM.png


 On Thu, May 1, 2014 at 10:14 AM, David Avendasora 
 webobje...@avendasora.com wrote:

 Can you paste the contents of your wolips.properties file here? That
 would really help the debugging.

 Also, how are you building the app? Inside Eclipse using the Run As… Ant
 Build…?

 Dave

 On May 1, 2014, at 10:10 AM, Fred Opims ropims...@gmail.com wrote:

 Hi Dave
 Thank you for your response.
 My build.properties file already point to the wolips.properies file. I
 tried to hardcode the path  (to be sure that it really point to the file),
 but i'm always having the same message.
 I read many threads related to this error and i followed some steps, but
 no success.
 Any idea ?
 Best


 On Thu, May 1, 2014 at 9:51 AM, David Avendasora 
 webobje...@avendasora.com wrote:

  … you want to use the settings in your wolips.properties file …


 I mean:

 … you want *Ant* to use the settings in your wolips.properties file …



 On May 1, 2014, at 9:47 AM, David Avendasora webobje...@avendasora.com
 wrote:

 Little known fact: If you want to use the settings in your
 wolips.properties file, your build.properties file needs a property that
 points to the wolips.properties file. Otherwise Ant doesn’t know anything
 about it.

 wolips.properties=/path/to/wolips.properties

 Dave


 On May 1, 2014, at 7:28 AM, Fred Opims ropims...@gmail.com wrote:

 Hi All!
 I’m trying to make an install of my webObject app, but i’ve a got the
 following error: ...build.xml:206: The framework name 'ERJars' does not
 exist.
 I’ve seen some thread talking about the same issue.
 The value of wo.local.frameworks in my wolips.properties didn’t have
 wonder frameworks in it. The only frameworks inside was
 JavaMonitorSupport.framework.
 So i’ve manually put ERJars-5.0.jar and ERJars.frameoworks but i’ve
 still have the same message error.
 Do you have any idea ?

 Regards

 Fred
 ___
 Do not 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/webobjects%40avendasora.com

 This email sent to webobje...@avendasora.com



 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.







 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.








 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.






 wolips.543.propertieswolips.propertiesbuild.xml



 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.








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

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

Re: Ant built issue: The framework name 'ERJars' does not exist.

2014-05-01 Thread Fred Opims
HI Aaron!
I've tried Wolips and Tools but i've still got the error same message.
I've also set the permission on many folder containing the frameworks
(Root, ...Library/Frameworks/,...Library/WebObjects/Applications) but still
the same issue.



On Thu, May 1, 2014 at 5:02 PM, Aaron Rosenzweig aa...@chatnbike.comwrote:

 Hey Fred,

 I never picked the menu you did.

 Try instead:
 WOLips Ant Tools - Install
   *Aaron Rosenzweig* / Chat 'n Bike http://www.chatnbike.com
 *e:*  aa...@chatnbike.com  *t:*  (301) 956-2319   [image: Chat 'n Bike]  
 [image:
 Chat 'n Bike]

 On May 1, 2014, at 10:23 AM, Fred Opims ropims...@gmail.com wrote:

 hi! Here are my files: wolips.543.properties, wolips.properties and
 build.xml.
 To build, i'm following the step written in this link:
 http://wiki.wocommunity.org/display/documentation/Building+and+Installing+a+Framework+with+Ant#
 build.xml -Run As- Ant Build...

 Screen Shot 2014-05-01 at 10.21.04 AM.png


 On Thu, May 1, 2014 at 10:14 AM, David Avendasora 
 webobje...@avendasora.com wrote:

 Can you paste the contents of your wolips.properties file here? That
 would really help the debugging.

 Also, how are you building the app? Inside Eclipse using the Run As… Ant
 Build…?

 Dave

 On May 1, 2014, at 10:10 AM, Fred Opims ropims...@gmail.com wrote:

 Hi Dave
 Thank you for your response.
 My build.properties file already point to the wolips.properies file. I
 tried to hardcode the path  (to be sure that it really point to the file),
 but i'm always having the same message.
 I read many threads related to this error and i followed some steps, but
 no success.
 Any idea ?
 Best


 On Thu, May 1, 2014 at 9:51 AM, David Avendasora 
 webobje...@avendasora.com wrote:

  … you want to use the settings in your wolips.properties file …


 I mean:

 … you want *Ant* to use the settings in your wolips.properties file …



 On May 1, 2014, at 9:47 AM, David Avendasora webobje...@avendasora.com
 wrote:

 Little known fact: If you want to use the settings in your
 wolips.properties file, your build.properties file needs a property that
 points to the wolips.properties file. Otherwise Ant doesn’t know anything
 about it.

 wolips.properties=/path/to/wolips.properties

 Dave


 On May 1, 2014, at 7:28 AM, Fred Opims ropims...@gmail.com wrote:

 Hi All!
 I’m trying to make an install of my webObject app, but i’ve a got the
 following error: ...build.xml:206: The framework name 'ERJars' does not
 exist.
 I’ve seen some thread talking about the same issue.
 The value of wo.local.frameworks in my wolips.properties didn’t have
 wonder frameworks in it. The only frameworks inside was
 JavaMonitorSupport.framework.
 So i’ve manually put ERJars-5.0.jar and ERJars.frameoworks but i’ve
 still have the same message error.
 Do you have any idea ?

 Regards

 Fred
 ___
 Do not 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/webobjects%40avendasora.com

 This email sent to webobje...@avendasora.com



 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.







 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.








 —
 *WebObjects** - so easy that even Dave Avendasora can do it!™*
 —
 *David Avendasora*
 Senior Software Abuser
 Nekesto, Inc.






 wolips.543.propertieswolips.propertiesbuild.xml
 ___

 Do not 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/aaron%40chatnbike.com

 This email sent to aa...@chatnbike.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: Request failed on ERXRouteController

2014-04-03 Thread Fred Opims
Thank you Jesse. My database was corrupted. It works now.
Best

 On Apr 1, 2014, at 10:11 PM, Jesse Tayler jtay...@oeinc.com wrote:
 
 what’s your backtrace?
 
 
 
 On Mar 31, 2014, at 3:08 AM, Fred Opims ropims...@gmail.com wrote:
 
 Hello!
 I’m beginning on webObject and i have one basic question about ERRest.
 I’m following the instructions given on My first Rest Project but i always 
 have the following error message: 
 ERROR er.rest.routes.ERXRouteController  - Request failed: 
 /cgi-bin/WebObjects/BlogRest.woa, 405.
 I’m able to run successfully  BlogDemo or BlogRest  samples available on 
 github but when i try to create a new ERREst project, i’m always having this 
 message.
 Do you have an idea how to fix it ?
 
 Thank you!
 Best
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
 
 This email sent to jtay...@oeinc.com
 
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Request failed on ERXRouteController

2014-03-31 Thread Fred Opims
Hello!
I'm beginning on webObject and i have one basic question about ERRest.
I'm following the instructions given on My first Rest
Projecthttp://wiki.wocommunity.org/display/WEB/Your+First+Rest+Project#YourFirstRestProject-Databasestructure
but
i always have the following error message:
ERROR er.rest.routes.ERXRouteController  - Request failed:
/cgi-bin/WebObjects/BlogRest.woa, 405.
I'm able to run successfully  BlogDemo or BlogRest  samples available on
github but when i try to create a new ERREst project, i'm always having
this message.
Do you have an idea how to fix it ?

Thank you!
Best
 ___
Do not 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: Request failed on ERXRouteController

2014-03-31 Thread Fred Opims
Hi Theodore!
 I finally succeed to make it run. My database was corrupted. While i was 
trying to fix it, i created my project (same name) without delering the 
database.  So i have to delete it.
Thank you!
Best!


 On Mar 31, 2014, at 4:32 PM, Theodore Petrosky tedp...@yahoo.com wrote:
 
 I imported your tutorial, ran it and I got the same message. So I found the 
 rest tutorial on the wiki.
 
 I think you need to add some data to your database. I would recommend that 
 you follow the instructions that follow Adding posts and authors with curl. 
 
 you need posts!! I added an author and a post and followed the instructions
 
 curl -X GET 
 http://127.0.0.1:52169/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.json
 [{id:1,type:BlogEntry,content:some content here and 
 now,creationDate:2014-03-31T11:18:02Z,lastModified:2014-03-31T11:18:02Z,title:first
  
 blog,author:{id:1,type:Author,email:t...@lkj.com,firstName:ted,lastName:petro}}]
 
 
 add some authors and posts. Your example is working.
 
 from safari
 
 http://127.0.0.1:52169/cgi-bin/WebObjects/BlogRest.woa/ra/blogEntries.html
 
 [NSMutableArray
   [BlogEntry id=1 type=BlogEntry
 [content=some content here and now]
 [creationDate=2014-03-31 15:18:02 Etc/GMT]
 [lastModified=2014-03-31 15:18:02 Etc/GMT]
 [title=first blog]
 [author id=1 type=Author
   [email=t...@lkj.com]
   [firstName=ted]
   [lastName=petro]
 ]
   ]
 ]
 
 and this is from your blogRest tutorial. I did no editing.
 
 Ted
 
 
 On Mar 31, 2014, at 9:47 AM, Fred Opims ropims...@gmail.com wrote:
 
 Hi Bogdan!
 Thank you for response.
 I’ve put ERXRest.striMode=false, and i have the following message.
 Request failed: /cgi-bin/WebObjects/BlogRest.woa, There is no route for the 
 path ''.
 
 I’m adding some route as mentioned in the tutorial, but still have the same 
 message.
 I’m following the tutorial step by step and i can’t go further than section 
 “Adding HTML Views for blogs post.
 Do i need to do something else ?
 I’ve attached the code i did so far. 
 
 Thank you very much
 
 BlogRest.zip
 
 
 On Mar 31, 2014, at 8:20 AM, Bogdan Zlatanov bogdan.zlata...@gmail.com 
 wrote:
 
 Hello,
 
 It looks like you are trying to call an unknown action. There should be a 
 stack trace, following the ERROR er.rest.routes.ERXRouteController  - 
 Request failed: /cgi-bin/WebObjects/BlogRest.woa, 405. message, which 
 should point you in the right direction.
 
 If not, try running the application with ERXRest.strictMode=false. You 
 should get a FileNotFoundException with a bit more details on what that 
 unknown method is.
 
 Cheers,
 Bogdan Zlatanov
 
 On Mon, 31 Mar 2014 08:59:45 +0200, dev ropims...@gmail.com wrote:
 
 Hello!
 I’m beginning on webObject and i have one basic question about ERRest.
 I’m following the instructions given on My first Rest Project but i always 
 have the following error message: 
 ERROR er.rest.routes.ERXRouteController  - Request failed: 
 /cgi-bin/WebObjects/BlogRest.woa, 405.
 I’m able to run successfully  BlogDemo or BlogRest  samples available on 
 github but when i try to create a new ERREst project, i’m always having 
 this message.
 Do you have an idea how to fix it ?
 
 Thank you!
 Best
 ___
 Do not 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/archive%40mail-archive.com

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

Fetching to-one-relationship: How to use willRead and willReadRelationship?

2011-06-26 Thread Fred Opims
Hi!
I have some problem to a to-one relationship.
I have an Entity with 3 properties ( color, brand, model) and one
relationship Responsable,

When i make a fetch, i'm able to access to all propeties, but i can't access
to relation responsable.
Here is the code

String imm = vehicule.immatriculation();  //Access OK
String marque = vehicule.marque(); //Access OK
String modele = vehicule.modele(); //Access OK

When i do
Responsable resp = vehicule.responsable(); i have a
_objectFaultWithSnapshotRelationshipEditingContext exception.

In the WebObject Entreprise Objects Programming Guide, it is written that
the fault is fired when the relationship's data is needed.

But when i do the following, i still have the same
_objectFaultWithSnapshotRelationshipEditingContext exception.

String name= vehicule.responsable().name();
String firstname= vehicule.responsable().firstname();

It is also written to call willRead() before accessing to the relationship's
data.

So i did:
  vehicule.willRead();
String name= vehicule.responsable().name();
String firstname= vehicule.responsable().firstname();

But it doesn't work. Same exception

After that, in Vehicule.java i did the following as suggested in the doc:

public class Vehicule extends _Vehicule {
@SuppressWarnings(unused)
private static Logger log = Logger.getLogger(Vehicule.class);

 public com.package.Responsable responsable() {
 willRead();
return super.responsable();
 }

public static boolean usesDeferredFaultCreation() {

return true;

}
}

I made sure the my model is valid and that data in the database are well
set.

Can you tell me please if i'm using willRead the right way? How can i access
to this relationship?

Thank you very much!

Fred
 ___
Do not post admin requests to the list. They will 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: Fetching to-one-relationship: How to use willRead and willReadRelationship?

2011-06-26 Thread Fred Opims
Hi Chuck!
Thank you for the quick response! .

I made sure that Responsable primary Key is the Vehicule foreign Key and i
have validated the model.

Here is the stack trace

Jun 26 20:17:15 TicketManagmentServer[54345] WARN
er.extensions.eof.ERXModelGroup  - Clearing previous class descriptions
Jun 26 20:17:15 TicketManagmentServer[54345] WARN
er.extensions.eof.ERXModelGroup  - The EOModel 'erprototypes' has an empty
connection dictionary.
Jun 26 20:17:15 TicketManagmentServer[54345] WARN
er.extensions.eof.ERXModelGroup  - The EOModel 'erprototypes' has an empty
connection dictionary.
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - Using JDBCPlugIn
'com.webobjects.jdbcadaptor.PostgresqlPlugIn' for JDBCAdaptor@2019733318
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - Using JDBCPlugIn
'com.webobjects.jdbcadaptor.PostgresqlPlugIn' for JDBCAdaptor@1901677475
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  connecting with
dictionary: {plugin = Postgresql; username = postgres; driver =
org.postgresql.Driver; password = password deleted for log; URL =
jdbc:postgresql://localhost/TicketManagment; }
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - fetching JDBC
Info with JDBCContext@1433183189
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  connecting with
dictionary: {plugin = Postgresql; username = postgres; driver =
org.postgresql.Driver; password = password deleted for log; URL =
jdbc:postgresql://localhost/TicketManagment; }
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  === Begin
Internal Transaction
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -
evaluateExpression: com.webobjects.jdbcadaptor.PostgresqlExpression:
SELECT t0.annee, t0.couleur, t0.immatriculation, t0.marque, t0.modele,
t0.numero_serie, t0.responsable_id, t0.statut_id, t0.sujet_id, t0.type FROM
Vehicule t0 WHERE t0.immatriculation like ?::text ESCAPE '|' ORDER BY
t0.immatriculation ASC withBindings: 1:667PTS(immatriculation)
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - 1 row(s)
processed
Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  === Commit
Internal Transaction
Jun 26 20:17:16 TicketManagmentServer[54345] WARN  NSLog  -
com.opsoft.tms.app.DirectAction: Exception in performActionNamed() on the
action HandleNewCreatedTicket with the message:
java.lang.NullPointerException
Jun 26 20:17:16 TicketManagmentServer[54345] ERROR
er.directtoweb.ERD2WDirectAction  - Error with action
HandleNewCreatedTicket:java.lang.NullPointerException,
formValues:{createTicket = (); imageData.mimetype =
(application/octet-stream); imageData = (class
com.webobjects.appserver._private.WOInputStreamData (offset=0, length=768,
data=[60]'', [63]'?', [120]'x', [109]'m', [108]'l', [32]' ', [118]'v',
[101]'e', [114]'r', [115]'s', [105]'i', [111]'o', [110]'n', [61]'=',
[34]'', [49]'1', [46]'.', [48]'0', [34]'', [32]' ', [101]'e', [110]'n',
[99]'c', [111]'o', [100]'d', [105]'i', [110]'n', [103]'g', [61]'=',
[34]''...)); imageData.filename = (ticket.plist); }
NullPointerException
  at
com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
 ... skipped 1 stack elements
  at
com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
  at
com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
  at
er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:409)
  at
com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
  at
er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:205)
  at
com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
  at com.opsoft.tms._Vehicule.responsable(_Vehicule.java:93)
  at com.opsoft.tms.Vehicule.responsable(Vehicule.java:11)
  at
com.opsoft.tms.app.DirectAction.getDictionaryFromVehicule(DirectAction.java:400)
  at
com.opsoft.tms.app.DirectAction.vehiculesFromImmatriculation(DirectAction.java:380)
  at
com.opsoft.tms.app.DirectAction.HandleNewCreatedTicketAction(DirectAction.java:183)
 ... skipped 4 stack elements
  at
com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:144)
  at
er.extensions.appserver.ERXDirectAction.performActionNamed(ERXDirectAction.java:401)
  at
er.directtoweb.ERD2WDirectAction.performActionNamed(ERD2WDirectAction.java:449)
  ... skipped 9 stack elements


On Sun, Jun 26, 2011 at 8:12 PM, Chuck Hill ch...@global-village.netwrote:

 Hi Fred,


 On Jun 26, 2011, at 5:01 PM, Fred Opims wrote:

  Hi!
  I have some problem to a to-one relationship.
  I have an Entity with 3 properties ( color, brand, model) and one
 relationship Responsable,
 
  When i make a fetch, i'm able to access to all propeties, but i can't
 access to relation responsable.
  Here

Re: Fetching to-one-relationship: How to use willRead and willReadRelationship?

2011-06-26 Thread Fred Opims
Hi Chuck!
I found the problem! Entity Responsable is a subclass of Person entity. So
Responsable had two primary keys : responsable_id and person_id.
But the relationship was based only on responsable_id, that's  why i got the
exception.
To fix the problem, i have removed the constraint primary key on person_id
and i kept it on responsable_id because i need  responsable_id to be set as
primary key in postgresql database!

Thank you for you light .


On Sun, Jun 26, 2011 at 8:47 PM, Chuck Hill ch...@global-village.netwrote:

 That sure looks  like a model problem.  It  could be that one of the plist
 files is damaged.  Open up the plist files for the two related entities and
 see if they contain what Entity Modeler is showing.

 Have you renamed any entities or attributes?



 Chuck

 On Jun 26, 2011, at 5:21 PM, Fred Opims wrote:

 Hi Chuck!
 Thank you for the quick response! .

 I made sure that Responsable primary Key is the Vehicule foreign Key and i
 have validated the model.

 Here is the stack trace

 Jun 26 20:17:15 TicketManagmentServer[54345] WARN
 er.extensions.eof.ERXModelGroup  - Clearing previous class descriptions
 Jun 26 20:17:15 TicketManagmentServer[54345] WARN
 er.extensions.eof.ERXModelGroup  - The EOModel 'erprototypes' has an empty
 connection dictionary.
 Jun 26 20:17:15 TicketManagmentServer[54345] WARN
 er.extensions.eof.ERXModelGroup  - The EOModel 'erprototypes' has an empty
 connection dictionary.
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - Using
 JDBCPlugIn 'com.webobjects.jdbcadaptor.PostgresqlPlugIn' for JDBCAdaptor@
 2019733318
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - Using
 JDBCPlugIn 'com.webobjects.jdbcadaptor.PostgresqlPlugIn' for
 JDBCAdaptor@1901677475
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  connecting
 with dictionary: {plugin = Postgresql; username = postgres; driver =
 org.postgresql.Driver; password = password deleted for log; URL =
 jdbc:postgresql://localhost/TicketManagment; }
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - fetching JDBC
 Info with JDBCContext@1433183189
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  connecting
 with dictionary: {plugin = Postgresql; username = postgres; driver =
 org.postgresql.Driver; password = password deleted for log; URL =
 jdbc:postgresql://localhost/TicketManagment; }
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  === Begin
 Internal Transaction
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -
 evaluateExpression: com.webobjects.jdbcadaptor.PostgresqlExpression:
 SELECT t0.annee, t0.couleur, t0.immatriculation, t0.marque, t0.modele,
 t0.numero_serie, t0.responsable_id, t0.statut_id, t0.sujet_id, t0.type FROM
 Vehicule t0 WHERE t0.immatriculation like ?::text ESCAPE '|' ORDER BY
 t0.immatriculation ASC withBindings: 1:667PTS(immatriculation)
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - 1 row(s)
 processed
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  === Commit
 Internal Transaction
 Jun 26 20:17:16 TicketManagmentServer[54345] WARN  NSLog  -
 com.opsoft.tms.app.DirectAction: Exception in performActionNamed() on the
 action HandleNewCreatedTicket with the message:
 java.lang.NullPointerException
 Jun 26 20:17:16 TicketManagmentServer[54345] ERROR
 er.directtoweb.ERD2WDirectAction  - Error with action
 HandleNewCreatedTicket:java.lang.NullPointerException,
 formValues:{createTicket = (); imageData.mimetype =
 (application/octet-stream); imageData = (class
 com.webobjects.appserver._private.WOInputStreamData (offset=0, length=768,
 data=[60]'', [63]'?', [120]'x', [109]'m', [108]'l', [32]' ', [118]'v',
 [101]'e', [114]'r', [115]'s', [105]'i', [111]'o', [110]'n', [61]'=',
 [34]'', [49]'1', [46]'.', [48]'0', [34]'', [32]' ', [101]'e', [110]'n',
 [99]'c', [111]'o', [100]'d', [105]'i', [110]'n', [103]'g', [61]'=',
 [34]''...)); imageData.filename = (ticket.plist); }
 NullPointerException
   at
 com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
  ... skipped 1 stack elements
   at
 com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
   at
 com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
   at
 er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:409)
   at
 com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
   at
 er.extensions.eof.ERXGenericRecord$TouchingBinding.valueInObject(ERXGenericRecord.java:205)
   at
 com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
   at com.opsoft.tms._Vehicule.responsable(_Vehicule.java:93)
   at com.opsoft.tms.Vehicule.responsable(Vehicule.java:11)
   at
 com.opsoft.tms.app.DirectAction.getDictionaryFromVehicule

Re: Fetching to-one-relationship: How to use willRead and willReadRelationship?

2011-06-26 Thread Fred Opims
Hi Check!
One stone two birds. Thanks for you advice.
 I will set the same primary key for both person and Responsable.

Thanks!

On Sun, Jun 26, 2011 at 9:33 PM, Chuck Hill ch...@global-village.netwrote:

 Hi Fred,


 On Jun 26, 2011, at 6:28 PM, Fred Opims wrote:

 Hi Chuck!

 I found the problem! Entity Responsable is a subclass of Person entity. So
 Responsable had two primary keys : responsable_id and person_id.


 I think you are doing something wrong there in the model.  The superclass
 and subclasses all MUST have the same PK.  Responsable must use person_id as
  the PK.  If you don't do that, EOF is going to be very, very confused.


 Chuck




 But the relationship was based only on responsable_id, that's  why i got
 the exception.
 To fix the problem, i have removed the constraint primary key on person_id
 and i kept it on responsable_id because i need  responsable_id to be set as
 primary key in postgresql database!

 Thank you for you light .


 On Sun, Jun 26, 2011 at 8:47 PM, Chuck Hill ch...@global-village.netwrote:

 That sure looks  like a model problem.  It  could be that one of the plist
 files is damaged.  Open up the plist files for the two related entities and
 see if they contain what Entity Modeler is showing.

 Have you renamed any entities or attributes?



 Chuck

 On Jun 26, 2011, at 5:21 PM, Fred Opims wrote:

 Hi Chuck!
 Thank you for the quick response! .

 I made sure that Responsable primary Key is the Vehicule foreign Key and i
 have validated the model.

 Here is the stack trace

 Jun 26 20:17:15 TicketManagmentServer[54345] WARN
 er.extensions.eof.ERXModelGroup  - Clearing previous class descriptions
 Jun 26 20:17:15 TicketManagmentServer[54345] WARN
 er.extensions.eof.ERXModelGroup  - The EOModel 'erprototypes' has an empty
 connection dictionary.
 Jun 26 20:17:15 TicketManagmentServer[54345] WARN
 er.extensions.eof.ERXModelGroup  - The EOModel 'erprototypes' has an empty
 connection dictionary.
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - Using
 JDBCPlugIn 'com.webobjects.jdbcadaptor.PostgresqlPlugIn' for JDBCAdaptor@
 2019733318
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - Using
 JDBCPlugIn 'com.webobjects.jdbcadaptor.PostgresqlPlugIn' for
 JDBCAdaptor@1901677475
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  connecting
 with dictionary: {plugin = Postgresql; username = postgres; driver =
 org.postgresql.Driver; password = password deleted for log; URL =
 jdbc:postgresql://localhost/TicketManagment; }
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - fetching JDBC
 Info with JDBCContext@1433183189
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  connecting
 with dictionary: {plugin = Postgresql; username = postgres; driver =
 org.postgresql.Driver; password = password deleted for log; URL =
 jdbc:postgresql://localhost/TicketManagment; }
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  === Begin
 Internal Transaction
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -
 evaluateExpression: com.webobjects.jdbcadaptor.PostgresqlExpression:
 SELECT t0.annee, t0.couleur, t0.immatriculation, t0.marque, t0.modele,
 t0.numero_serie, t0.responsable_id, t0.statut_id, t0.sujet_id, t0.type FROM
 Vehicule t0 WHERE t0.immatriculation like ?::text ESCAPE '|' ORDER BY
 t0.immatriculation ASC withBindings: 1:667PTS(immatriculation)
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  - 1 row(s)
 processed
 Jun 26 20:17:16 TicketManagmentServer[54345] DEBUG NSLog  -  === Commit
 Internal Transaction
 Jun 26 20:17:16 TicketManagmentServer[54345] WARN  NSLog  -
 com.opsoft.tms.app.DirectAction: Exception in performActionNamed() on the
 action HandleNewCreatedTicket with the message:
 java.lang.NullPointerException
 Jun 26 20:17:16 TicketManagmentServer[54345] ERROR
 er.directtoweb.ERD2WDirectAction  - Error with action
 HandleNewCreatedTicket:java.lang.NullPointerException,
 formValues:{createTicket = (); imageData.mimetype =
 (application/octet-stream); imageData = (class
 com.webobjects.appserver._private.WOInputStreamData (offset=0, length=768,
 data=[60]'', [63]'?', [120]'x', [109]'m', [108]'l', [32]' ', [118]'v',
 [101]'e', [114]'r', [115]'s', [105]'i', [111]'o', [110]'n', [61]'=',
 [34]'', [49]'1', [46]'.', [48]'0', [34]'', [32]' ', [101]'e', [110]'n',
 [99]'c', [111]'o', [100]'d', [105]'i', [110]'n', [103]'g', [61]'=',
 [34]''...)); imageData.filename = (ticket.plist); }
 NullPointerException
   at
 com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2356)
  ... skipped 1 stack elements
   at
 com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
   at
 com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
   at
 er.extensions.eof.ERXGenericRecord.willReadRelationship(ERXGenericRecord.java:409

How to create plist from ERXGenericRecord ?

2011-06-25 Thread Fred Opims
Hi!
I have an iPhone application that talks with a webOject application using
Entreprise Object.
From iPhone application to the WOObject application, i'm using a plist to
send data. It works great! I can parse my plist and feed my EO entity.
I want to use plist to send data in the other way but i don't know how.

I want to convert any fetch result into a Plist or a dictionary but i
haven't found a way to do that.
Is there a way to do this from a ERXGenericRecord ?
I tried with ERXPropertyListSerialization, but i couldn't use it with a
ERXGenericRecord.
Can you help me please?
Thank you!
Fred
 ___
Do not post admin requests to the list. They will 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: How to create plist from ERXGenericRecord ?

2011-06-25 Thread Fred Opims
Thanks Paul! I will check it!

On Sat, Jun 25, 2011 at 8:19 AM, Paul D Yu p...@mac.com wrote:

 Fred

 ERXRest framework is your friend.

 Look at the WOnder example for send plist, bplist in both directions.

 Paul
 On Jun 25, 2011, at 8:06 AM, Fred Opims wrote:

 Hi!
 I have an iPhone application that talks with a webOject application using
 Entreprise Object.
 From iPhone application to the WOObject application, i'm using a plist to
 send data. It works great! I can parse my plist and feed my EO entity.
 I want to use plist to send data in the other way but i don't know how.

 I want to convert any fetch result into a Plist or a dictionary but i
 haven't found a way to do that.
 Is there a way to do this from a ERXGenericRecord ?
 I tried with ERXPropertyListSerialization, but i couldn't use it with a
 ERXGenericRecord.
 Can you help me please?
 Thank you!
 Fred

  ___
 Do not post admin requests to the list. They will 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/archive%40mail-archive.com

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


Re: ERModernLook is not the default skin for new D2W project!

2011-03-06 Thread Fred Opims
Thanks David! You were right! I didn't have the good version of Eclipse! I
installed the version 3.6.2 of Eclipse and 3.6.6 of WOLips and it works!

Thank you!

On Sat, Mar 5, 2011 at 1:02 PM, David Holt programming...@mac.com wrote:


 On 2011-03-05, at 6:38 AM, Fred Opims wrote:

  Hi!
 
  I want to use ERModernLook Skin in my new D2W project but every project
 created has the old skin.
 
  I ran the ERModerMoviesDemo and the ERModerLook skin is well displayed!
 
  I realized that some ER libraries (ERModernLook, H2Pluggin)  are not
 included by default in the new projects.
 
  Even when i include them manually, the ERModernLook skin is not
 displayed.
 
  Is there a way to set the ERModernLook skin as default?
 

  I have Eclipse 5.4.3 and the i just installed Wonder this morning.

 Eclipse 3.6.1
 WOLips 3.6.6




 This version of WOLips will give you the correct template. BUT you will
 still have to clean the resulting project up a little by adding folders for
 Libraries and WebServerResources manually.


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



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

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

ERModernLook is not the default skin for new D2W project!

2011-03-05 Thread Fred Opims
Hi!

I want to use ERModernLook Skin in my new D2W project but every project
created has the old skin.

I ran the ERModerMoviesDemo and the ERModerLook skin is well displayed!

I realized that some ER libraries (ERModernLook, H2Pluggin)  are not
included by default in the new projects.

Even when i include them manually, the ERModernLook skin is not displayed.

Is there a way to set the ERModernLook skin as default?

I have Eclipse 5.4.3 and the i just installed Wonder this morning.


Thank you!
 ___
Do not post admin requests to the list. They will 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: ERModernLook is not the default skin for new D2W project!

2011-03-05 Thread Fred Opims
Yes i have removed ERNeutralLook in the libraries and i changed the value of
Rhs Value from ERNeutralLook  to ERModernLook; but same result.: the
modern look is not displayed. Still the old one.

Thanks

On Sat, Mar 5, 2011 at 11:25 AM, Jesse Tayler jtay...@oeinc.com wrote:

 did you uninstall any frameworks for other 'looks' ??

 me thinks rules get confused and such, so you typically have to remove
 frameworks if you switch to a different look.

 at least I think that's what I experienced.


 On Mar 5, 2011, at 9:38 AM, Fred Opims wrote:

  Hi!
 
  I want to use ERModernLook Skin in my new D2W project but every project
 created has the old skin.
 
  I ran the ERModerMoviesDemo and the ERModerLook skin is well displayed!
 
  I realized that some ER libraries (ERModernLook, H2Pluggin)  are not
 included by default in the new projects.
 
  Even when i include them manually, the ERModernLook skin is not
 displayed.
 
  Is there a way to set the ERModernLook skin as default?
 
  I have Eclipse 5.4.3 and the i just installed Wonder this morning.
 
 
  Thank you! ___
  Do not post admin requests to the list. They will be ignored.
  Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
  Help/Unsubscribe/Update your Subscription:
 
 http://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
 
  This email sent to jtay...@oeinc.com


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

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