RE: Time Picker component for NSTimestamp

2011-08-03 Thread Ren, Kevin
 
Hi, Paul,

I am using jquery-1.6.2.js with the js from below site. but it's not for
WO web app. but i think it's easy to setup your date format to get
NSTimestap.

http://razum.si/jQuery-calendar/TimeCalendar.html

have a try, good luck,

kevin



> -Original Message-
> From: 
> webobjects-dev-bounces+kevin.ren=anz@lists.apple.com 
> [mailto:webobjects-dev-bounces+kevin.ren=anz.com@lists.apple.c
> om] On Behalf Of David LeBer
> Sent: Thursday, 4 August 2011 8:03 a.m.
> To: WebObjects-Dev Mailing List List
> Subject: Re: Time Picker component for NSTimestamp
> 
> Yeah...
> 
> This comes up periodically and I go off and search the 
> internets for a nice time setting widget (again) and fail to 
> find one (again) that I like enough to be willing to spend 
> the time wo-iffying.
> 
> So other than the EditDatePopup referenced by David (H) I 
> don't think there isn't anything that currently works for 
> date *and* time.
> 
> On 2011-08-03, at 3:40 PM, David Holt wrote:
> 
> > I think you might be able to use ERDEditDatePopup (ERD2W) 
> in a normal page.
> > 
> > I think you can set editTime = 1 in the bindings instead of 
> using rules.
> > 
> > David
> > 
> > 
> > 
> > On 2011-08-03, at 12:23 PM, Paul D Yu wrote:
> > 
> >> Yeah, I use AjaxDatePicker extensively in my app.  Now I 
> need an ability to set the time portion of the timestamp.
> >> 
> >> Paul
> >> On Aug 3, 2011, at 3:22 PM, Chuck Hill wrote:
> >> 
> >>> There is an AjaxDatePicker in Ajax.framework.  I don't 
> recall anything for the time.
> >>> 
> >>> 
> >>> On 2011-08-03, at 12:15 PM, Paul D Yu wrote:
> >>> 
>  Being a little lazy here, but has anyone created a date 
> + time setting component?
>  
>  I thought I just saw a commit in the last month or so???
>  
>  Thanks.
>  
>  Paul
> >>> -- 
> >>> Chuck Hill Senior Consultant / VP Development
> >>> 
> 
> ;david
> 
> --
> David LeBer
> Codeferous Software
> 'co-def-er-ous' adj. Literally 'code-bearing'
> site: http://codeferous.com
> blog: http://davidleber.net
> profile:  http://www.linkedin.com/in/davidleber
> twitter:  http://twitter.com/rebeld
> --
> Toronto Area Cocoa / WebObjects developers group:
> http://tacow.org
> 
> 
> 
> 
> 
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/kevin.re
> n%40anz.com
> 
> This email sent to kevin@anz.com
> 

"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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: WebObjects scalability question

2010-11-18 Thread Ren, Kevin
Hi Pascal,

> That's one of the top 5 questions people ask, but not much 
> answers. For the EOF cache, you can use the 
> ERJGroupsSynchronizer to synchronize EOs between instances.

Could you tell me what these top 5 questions are? 

Is it possible to know which one could have work around solution or
further solution in WO/Wonder sometimes in the future release?


Cheers

Kevin

"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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


A bit excited found one Chinese company in this year Survey[off-topic]

2010-10-20 Thread Ren, Kevin
Hi,

Is it possible to know who is this, how to contact with them? 

I think it's first time to see this.

Felt better, because I am Chinese as well.

Cheers

Kevin

"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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: inheritance problem...

2010-01-04 Thread Ren, Kevin

 HI,

What's the foreign key reference to these abstract parent class and child 
classes?

Kevin

> -Original Message-
> From: 
> webobjects-dev-bounces+kevin.ren=anz@lists.apple.com 
> [mailto:webobjects-dev-bounces+kevin.ren=anz@lists.apple.c
> om] On Behalf Of Tim Worman
> Sent: Tuesday, 5 January 2010 12:43 p.m.
> To: Chuck Hill
> Cc: WebObjects-Dev List
> Subject: Re: inheritance problem...
> 
> On Jan 4, 2010, at 3:27 PM, Chuck Hill wrote:
> 
> > 
> > On Jan 4, 2010, at 3:13 PM, Tim Worman wrote:
> > 
> >> Is it pretty much a certainty that the error I'm 
> experiencing is caused by a problem in my models? This 
> problem is a show stopper for me right now. Just for 
> refresher, the error is:
> >> 
> >> Error: java.lang.IllegalStateException: The object 
> with globalID _EOIntegralKeyGlobalID[Timesheet 
> (java.lang.Long)10253] could not be found in the database. 
> This could be result of a referential integrity problem with 
> the database. An empty fault could not be created because the 
> object's class could not be determined (e.g. the GID is 
> temporary or it is for an abstract entity)
> > 
> > Does a Timesheet with a 10253 actually exist in the 
> database?  Is Timesheet in an inheritance hierarchy?  If so, 
> check very, very carefully for a duplicated PK.
> 
> Timesheet is in an inheritance hierarchy. From the original 
> post, this is how Timesheet is modeled:
> 
> Timesheet (abstract parent)   <-< TimeEntry 
> (just a time entry on a timesheet)
> TimesheetExempt (child)
> TimesheetNonExempt(child)
> 
> Yes, there is a Timesheet with timesheet_id=10253. There are 
> no Timesheet with duplicate timesheet_id. The error is thrown 
> when TimeEntry.timesheet() is called.
> 
> Tim
> 
> > Chuck
> > 
> > 
> >> 
> >> I've tested the equality of the connection dictionaries of 
> the models and they are equal.
> >> 
> >> Tim Worman
> >> UCLA GSE&IS
> >> 
> >> 
> >> 
> >> On Dec 31, 2009, at 12:36 AM, Tim Worman wrote:
> >> 
> >>> On Dec 30, 2009, at 3:18 AM, David Avendasora wrote:
> >>> 
>  
>  On Dec 29, 2009, at 9:46 PM, Tim Worman wrote:
>  
> > OK, so, I've reviewed all the prototypes in use, data 
> types, etc. I did find some areas where my prototypes were 
> messed up so it was worth it to go through it all. The fk and 
> pk both are long values.
> > 
> > But I'm still getting the same error. This solution 
> also doesn't cross databases. It does crosses models at this 
> point. But the TimeEntry and Timesheet entities are in the same model.
>  
>  If TimeEntry and Timesheet are in the same model, what 
> crosses models? The inheritance hierarchy? What type of 
> Inheritance are you using?
>  
>  If you have two models that point to the same database 
> you have to be very careful to make sure that the connection 
> dictionaries of the two models are EXACTLY IDENTICAL (yelling 
> intended). This is very, very important. Otherwise they will 
> likely have different EODatabaseContexts which can cause all 
> manor of EOF confusion when it comes to assigning keys.
>  
>  Read this thread from way back in 2006 where Mike Schrag 
> seemed to 
>  have a similar problem (start at the beginning): 
>  
> http://lists.apple.com/archives/webobjects-dev//2006/May/msg00530.h
>  tml
> >>> 
> >>> Thanks Dave. But I still don't have a solution. I tested 
> all the models that refer to the same database. I'm testing 
> the equality of the connection dictionaries at app launch and 
> they all pass the connectionDictionary().equals() test. There 
> is another JNDI model that obviously refers to an LDAP data 
> source and necessarily the connection dictionary to that is different.
> >>> 
> >>> Any other ideas about what is causing the problem or 
> troubleshooting techniques you'd employ here? Obviously I'm 
> doing something wrong?
> >>> 
> >>> Tim
> >>> 
>  
>  Dave
>  
>  
> > 
> > Tim Worman
> > UCLA GSE&IS
> > 
> > 
> > On Dec 28, 2009, at 4:45 PM, msch...@mdimension.com wrote:
> > 
> >> Check cross database issues and also name sure the 
> types on your pk and fk match ... I notice that says your fk 
> is a long, make sure that matches the pk of the destination entity.
> >> 
> >> Sent from my iPhone
> >> 
> >> On Dec 28, 2009, at 7:33 PM, "Tim 
> Worman" wrote:
> >> 
> >>> ...or wondering if I've modeled something incorrectly.
> >>> 
> >>> I've got a model with these Entities:
> >>> 
> >>> Timesheet (abstract parent)   >- 
> TimeEntry (just a time entry on a timesheet)
> >>> TimesheetExempt (child)
> >>> TimesheetNonExempt(child)
> >>> 
> >>> Everything works fine until a given TimeEntry tries 
> to refer back to its timesheet by calling timesheet(). At 
> that point I get this error:
> >>> 
> >>> Error:java.lang.IllegalStateException: The 
> object with globalID _EOIntegralKe

RE: All In One Installer broken

2009-12-23 Thread Ren, Kevin
Hi,


I did download wo.jar from  http://web.me.com/pccdonl/wo.jar and run that on my 
Ubuntu9.10 VM.
The file is bigger than wo122009.jar which is not working as java -jar 
wo122009.jar ( invalid or corrupt jarfile wo122009.jar)

Anyway wo.jar is running behind my proxy. 
java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=5865 -jar wo.jar

Few issues still not fix, but you said fixed in email
http://lists.apple.com/archives/Webobjects-dev/2009/Dec/msg00318.html

So maybe this is not latest version.

Same major issue under Library folder and create blank wolips.properties file.
Got error when create wobuild.properties file, so half way in this file.
ke...@kevin> java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=5865 -jar wo.jar 
Shuffling file structure for Linux: Done
Installation Complete
Expanding: /tmp/eclipse6735828941915418630.tar into /home/kevin/Apple
An error occurred, you will have to create the 
/Library/wobuild.properties file yourself
The contents should be: 
ACK! ACK!  Bd JuJu! Not going to roll it back.
#This file stores the wo specific properties
#Sat May 31 23:07:20 EDT 2008
wo.wosystemroot=/home/kevin/Apple/System
wo.wolocalroot=/home/kevin/Apple
wo.woroot=/home/kevin/Apple
wo.dir.reference.api=/home/kevin/Apple/Developer/Documentation/WebObjects/Reference/API/

java.lang.NullPointerException
at java.util.regex.Matcher.appendReplacement(Matcher.java:699)
at java.util.regex.Matcher.replaceAll(Matcher.java:813)
at java.lang.String.replaceAll(String.java:2189)
at 
com.installshield.webobjects53.event.dialog.swing.PanelDaProgress1.installstuff(PanelDaProgress1.java:664)
at 
com.installshield.webobjects53.event.dialog.swing.PanelDaProgress1.initializeUIDaProgress(PanelDaProgress1.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
com.installshield.event.ActionSequenceEngine$ActionTask.invokeJavaMethod(Unknown
 Source)
at 
com.installshield.event.ActionSequenceEngine$ActionTask.executeAction(Unknown 
Source)
at com.installshield.event.ActionSequenceEngine$ActionTask.run(Unknown 
Source)
at com.installshield.event.ThreadPool.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
null
The Houdah Frameworks has been installed, it is source code, you will need to 
compile it.

Suggestion:
1. is it possible make it option install WebObjectsXXX.dmg from locale folder
2. option to install eclipse, 

After install I can create WOApplication, but not run, because properties file 
not setup correct. 
Is it possible open source for this little installer, quite interested in how 
to extract file under dmg under linux? I can do some test under ubuntu as well.

Questions: (not for this installer)
1. what's different between wobuild.properties and wolips.properties
2. What kind of file folder should be under Library, Local/Libray and 
System/Libarary? Could anyone post the picture on wiki.objectstyle.org as 
standard.
I know it could be modified in wolips.properties.

Thanks

kevin





"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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: All In One Installer broken

2009-12-23 Thread Ren, Kevin
Hi, 
 
I think you are behind proxy, try this
 
java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=5865 -jar wo.jar
 
good luck,
 
Kevin
 


  _  

From: webobjects-dev-bounces+kevin.ren=anz@lists.apple.com 
[mailto:webobjects-dev-bounces+kevin.ren=anz@lists.apple.com] On Behalf Of 
Amiel Montecillo
Sent: Thursday, 24 December 2009 3:24 a.m.
To: Don Lindsay
Cc: WebObjects Development
Subject: Re: All In One Installer broken


Hello Don,

I downloaded http://web.me.com/pccdonl/wo.jar just now and ran it on a 
windoze xp.

But I get this stacktrace:

P:\webobjects>java -jar wo.jar
java.net.UnknownHostException: download.info.apple.com
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 sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown 
Source)
at java.security.AccessController.doPrivileged(Native Method)
at 
sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at 
er.woinstaller.io.FileUtilities.writeUrlToFile(FileUtilities.java:27)
at 
er.woinstaller.WebObjectsRuntime.getInputStream(WebObjectsRuntime.java:119)
at er.woinstaller.Main.main(Main.java:45)
at 
com.installshield.webobjects53.event.dialog.swing.PanelDaProgress1.installstuff(PanelDaPr
ogress1.java:397)
at 
com.installshield.webobjects53.event.dialog.swing.PanelDaProgress1.initializeUIDaProgress
(PanelDaProgress1.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown 
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at 
com.installshield.event.ActionSequenceEngine$ActionTask.invokeJavaMethod(Unknown
 Source)
at 
com.installshield.event.ActionSequenceEngine$ActionTask.executeAction(Unknown 
Source)
at 
com.installshield.event.ActionSequenceEngine$ActionTask.run(Unknown Source)
at com.installshield.event.ThreadPool.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.UnknownHostException: download.info.apple.com
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at 
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown 
Source)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
at java.net.URLConnection.getContentLength(Unknown Source)
at 
er.woinstaller.io.FileUtilities.writeUrlToFile(FileUtilities.java:26)
... 13 more
Something went wrong, rolling back

Any idea what's happening?


On Thu, Dec 10, 2009 at 2:51 AM, Don Lindsay  wrote:


Hello; 

Then a file that the installer is expecting is no longer at 
webobjects.mdimension.com/wolips.  I have updated the setup, I do not have my 
vmware running so I cannot test it.  Can someone please download and test 
http://www.me.com/pccdonl/wo122009.jar for me?

Thanks

Don 

On Dec 9, 2009, at 11:05 AM, Daniel Roy wrote:


Hi all, 

Out of curiosity, I tried the installer Don mentioned 
on Snow Leopard, and it appears to be broken.  It downloads Eclipse (3.3.2) but 
fails on the WOLips download with:

  

Re: Learning Vertical Inheritance

2009-12-21 Thread Ren, Kevin
Hi, Dave,
Thanks for your reply,
>Yes. This is the problem with MySQL not being able to initially defer the 
>constraints. If you need to use MySQL, I suggest that you remove the Foreign 
>Key constraint between STUDENT and PERSON in the database and trust that EOF 
>will keep everything correct for you. 
In my case PERSON is abstract class not TABLE in DB, do you mean remove the 
Foreign Key constraint between Address and Home_address?
No problem with that sequence, problem is try insert STUDENT first instead of 
ADDRESS.
If it's MYSQL issue, why it's working sometimes with correct generated SQL, 
like address, home_addres then student.
If EOF, WOnder or somebody else have some code to check this order of the 
insert table name has the right sequence, that would be working.

>I would also suggest that you avoid using Vertical Inheritance if you can. It 
>is very inefficient when creating select statements in the database. It does 
>make the database more normalized, but at the cost of efficiency. In this 
>situation I would use Single Table Inheritance instead. 
I am just try to verify VI is working in EOF. Yes maybe need change to 
horizontal inheritance or Single Table Inheritance instead.

thanks


Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
>Phone: 04 4365363
Fax: 04 8028696





"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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

test

2009-12-20 Thread Ren, Kevin

Tried send topic twice, but no appeared there

Sorry about this,

Kevin


"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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: Could not store foreign character in MySQL with utf-8

2009-12-16 Thread Ren, Kevin
Hi,
did search in WO list and google found this,
 
http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Development-Localization+and+Internationalization
 
so far so good, everything is fine in database, phpmyadmin and browser. all get 
Chinese character.
 
thanks
 
Kevin
 
 


  _  

From: Cheong Hee (Gmail) [mailto:chn...@gmail.com] 
Sent: Wednesday, 16 December 2009 6:24 p.m.
To: Ren, Kevin; webobjects-dev@lists.apple.com
Subject: Re: Could not store foreign character in MySQL with utf-8


Hi Kevin
 
I have done some tests (has been postponed some time ago) on this 
subject.  Must acknowledge I am just a novice in multilingual web display.
 
Having said this, my test on the MySquirrel(?) DB on storing and 
fetching back the UTF-8 chinese characters seemed working fine.  All setting 
are equaivalen to yours, I checked twice.  It did stored the value correctly.  
The next item checkpoint I suggest is could it be the browser or platform 
related.  That's so much I know.
 
Cheers
 
Cheong Hee 
 
 

- Original Message - 
From: Ren, Kevin <mailto:kevin@anz.com>  
To: webobjects-dev@lists.apple.com 
Sent: Wednesday, December 16, 2009 7:31 AM
Subject: Could not store foreign character in MySQL with utf-8



Hi, all, 

Not sure this is MySQL setup thingy or WO application, 

In my.cnf file, I have 
[mysqld] 
# 
# * Basic Settings 
# 
default-character-set=utf8 
default-storage-engine=INNODB 

Database, table both setup charset=utf8 and char column 
collation is utf8_general_ci 


In WO JDBC URL, I have 

jdbc:mysql://156.13.128.28:3306/school?useUnicode=true&characterEncoding=UTF-8 

Any woo file, encoding= "UTF-8"; 

I can read Chinese character setup in html template and display 
correctly in web page. 
But in the textfield, after I type Chinese character and save, 
I got funny code like 晓文 in database, phpmyadmin and WO web page.

Not sure how you guys setup for  foreign character in MySQL and 
WO? 

thanks 

Xiaowen(Kevin) Ren 

Analyst Programmer 
Channel Applications, Retail Applications 
ANZ National Bank Ltd 
Level 6 ASB Tower 
2 Hunter Street 
PO Box 1791 
Wellington 
Phone: 04 4365363 
Fax: 04 8028696 



 

 

"This e-mail and any attachments to it (the "Communication") 
is, unless otherwise stated, confidential,  may contain copyright material and 
is for the use only of the intended recipient. If you receive the Communication 
in error, please notify the sender immediately by return e-mail, delete the 
Communication and the return e-mail, and do not read, copy, retransmit or 
otherwise deal with it. Any views expressed in the Communication are those of 
the individual sender only, unless expressly stated to be those of Australia 
and New Zealand Banking Group Limited ABN 11 005 357 522, or any of its related 
entities including ANZ National Bank Limited (together "ANZ"). ANZ does not 
accept liability in connection with the integrity of or errors in the 
Communication, computer virus, data corruption, interference or delay arising 
from or in respect of the Communication."


  _  




___
Do not post admin requests to the list. They will 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



"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together &quo

Could not store foreign character in MySQL with utf-8

2009-12-15 Thread Ren, Kevin

Hi, all,

Not sure this is MySQL setup thingy or WO application,

In my.cnf file, I have
[mysqld]
#
# * Basic Settings
#
default-character-set=utf8
default-storage-engine=INNODB

Database, table both setup charset=utf8 and char column collation is 
utf8_general_ci


In WO JDBC URL, I have
jdbc:mysql://156.13.128.28:3306/school?useUnicode=true&characterEncoding=UTF-8

Any woo file, encoding= "UTF-8"; 

I can read Chinese character setup in html template and display correctly in 
web page.
But in the textfield, after I type Chinese character and save, I got funny code 
like 晓文 in database, phpmyadmin and WO web page.

Not sure how you guys setup for  foreign character in MySQL and WO?

thanks

Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
>Phone: 04 4365363
Fax: 04 8028696





"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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: NullPointerException in many-many relationship cross two models

2009-12-14 Thread Ren, Kevin
Cool, thanks

Kevin 

> -Original Message-
> From: Chuck Hill [mailto:ch...@global-village.net] 
> Sent: Tuesday, 15 December 2009 5:00 p.m.
> To: Ren, Kevin
> Cc: webobjects-dev@lists.apple.com
> Subject: Re: NullPointerException in many-many relationship 
> cross two models
> 
> For WebObjects and Java, UTF-8.  Not sure what 
> MySquirrelyDatabase needs.
> 
> 
> 
> 
> On Dec 14, 2009, at 7:51 PM, Ren, Kevin wrote:
> 
> >
> > yes, this confused me. In my.cnf default-character-set=utf8
> >
> > I did google search someone said  characterEncoding=UTF8 working, 
> > others said characterEncoding=UTF-8.
> >
> > Not sure which one is right?
> >
> >
> > Kevin
> >
> >> -Original Message-
> >> From: Chuck Hill [mailto:ch...@global-village.net]
> >> Sent: Tuesday, 15 December 2009 4:42 p.m.
> >> To: Ran, Kevin
> >> Cc: webobjects-dev@lists.apple.com
> >> Subject: Re: NullPointerException in many-many 
> relationship cross two 
> >> models
> >>
> >>
> >> On Dec 14, 2009, at 7:37 PM, Ren, Kevin wrote:
> >>
> >>>
> >>> Hi,
> >>>
> >>> You are brilliant, guys. It's simple copy/past error in the URL.
> >>>
> >>> jdbc:mysql://156.13.128.28:3306/school?
> >>> useUnicode=true&characterEncoding=UTF8
> >>>
> >>> One was using characterEncoding=UTF-8 instead of UTF8, 
> causing this 
> >>> problem.
> >>>
> >>> Now I change them both to UTF8 and works,
> >>
> >>
> >> UTF-8 is the correct form
> >>
> >>
> >> Chuck
> >>
> >>
> >>>> -Original Message-
> >>>> From:
> >>>> webobjects-dev-bounces+kevin.ren=anz@lists.apple.com
> >>>> [mailto:webobjects-dev-bounces+kevin.ren=anz@lists.apple.c
> >>>> om] On Behalf Of Mike Schrag
> >>>> Sent: Tuesday, 15 December 2009 4:25 p.m.
> >>>> To: Development WebObjects
> >>>> Subject: Re: NullPointerException in many-many
> >> relationship cross two
> >>>> models
> >>>>
> >>>> same connection dictionary like "i think they're the same
> >> because the
> >>>> url is the same" or same like "i tested with
> >>>> .equals(..) at runtime and it returns true thereby 
> proving they're 
> >>>> the same" (technically they don't have to be exactly
> >> .equals, but if
> >>>> they are .equals, they are same-enough)
> >>>>
> >>>> On Dec 14, 2009, at 10:22 PM, Ren, Kevin wrote:
> >>>>
> >>>>>
> >>>>> HI,
> >>>>>
> >>>>> I checked that, they are same connection dictionary,
> >>>> because this just moral test example.
> >>>>>
> >>>>> Not using WOnder,
> >>>>>
> >>>>> Thanks
> >>>>>
> >>>>> Kevin
> >>>>>
> >>>>>> -Original Message-
> >>>>>> From: Chuck Hill [mailto:ch...@global-village.net]
> >>>>>> Sent: Tuesday, 15 December 2009 4:18 p.m.
> >>>>>> To: Ren, Kevin
> >>>>>> Cc: webobjects-dev@lists.apple.com
> >>>>>> Subject: Re: NullPointerException in many-many
> >>>> relationship cross two
> >>>>>> models
> >>>>>>
> >>>>>> Both models need to have the exact (and I _do_ mean
> >> _exact_) same
> >>>>>> connection dictionary.  The dictionaries must be equals().
> >>>> This is
> >>>>>> most easily accomplished by setting the programatically
> >>>> when the app
> >>>>>> loads.  Wonder, of course, does this.
> >>>>>>
> >>>>>>
> >>>>>> Chuck
> >>>>>>
> >>>>>>
> >>>>>> On Dec 14, 2009, at 3:30 PM, Ren, Kevin wrote:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> There is m-m relationship between A and B entities 
> which are in 
> >>>>>>> different models, but in same database. I can create and
> >>>>>> platen this
> >>>>>>> relationship in E

RE: NullPointerException in many-many relationship cross two models

2009-12-14 Thread Ren, Kevin

 yes, this confused me. In my.cnf default-character-set=utf8

I did google search someone said  characterEncoding=UTF8 working, others said 
characterEncoding=UTF-8.

Not sure which one is right?


Kevin

> -Original Message-
> From: Chuck Hill [mailto:ch...@global-village.net] 
> Sent: Tuesday, 15 December 2009 4:42 p.m.
> To: Ran, Kevin
> Cc: webobjects-dev@lists.apple.com
> Subject: Re: NullPointerException in many-many relationship 
> cross two models
> 
> 
> On Dec 14, 2009, at 7:37 PM, Ren, Kevin wrote:
> 
> >
> > Hi,
> >
> > You are brilliant, guys. It's simple copy/past error in the URL.
> >
> > jdbc:mysql://156.13.128.28:3306/school? 
> > useUnicode=true&characterEncoding=UTF8
> >
> > One was using characterEncoding=UTF-8 instead of UTF8, causing this 
> > problem.
> >
> > Now I change them both to UTF8 and works,
> 
> 
> UTF-8 is the correct form
> 
> 
> Chuck
> 
> 
> >> -Original Message-
> >> From:
> >> webobjects-dev-bounces+kevin.ren=anz@lists.apple.com
> >> [mailto:webobjects-dev-bounces+kevin.ren=anz@lists.apple.c
> >> om] On Behalf Of Mike Schrag
> >> Sent: Tuesday, 15 December 2009 4:25 p.m.
> >> To: Development WebObjects
> >> Subject: Re: NullPointerException in many-many 
> relationship cross two 
> >> models
> >>
> >> same connection dictionary like "i think they're the same 
> because the 
> >> url is the same" or same like "i tested with
> >> .equals(..) at runtime and it returns true thereby proving they're 
> >> the same" (technically they don't have to be exactly 
> .equals, but if 
> >> they are .equals, they are same-enough)
> >>
> >> On Dec 14, 2009, at 10:22 PM, Ren, Kevin wrote:
> >>
> >>>
> >>> HI,
> >>>
> >>> I checked that, they are same connection dictionary,
> >> because this just moral test example.
> >>>
> >>> Not using WOnder,
> >>>
> >>> Thanks
> >>>
> >>> Kevin
> >>>
> >>>> -Original Message-
> >>>> From: Chuck Hill [mailto:ch...@global-village.net]
> >>>> Sent: Tuesday, 15 December 2009 4:18 p.m.
> >>>> To: Ren, Kevin
> >>>> Cc: webobjects-dev@lists.apple.com
> >>>> Subject: Re: NullPointerException in many-many
> >> relationship cross two
> >>>> models
> >>>>
> >>>> Both models need to have the exact (and I _do_ mean 
> _exact_) same 
> >>>> connection dictionary.  The dictionaries must be equals().
> >> This is
> >>>> most easily accomplished by setting the programatically
> >> when the app
> >>>> loads.  Wonder, of course, does this.
> >>>>
> >>>>
> >>>> Chuck
> >>>>
> >>>>
> >>>> On Dec 14, 2009, at 3:30 PM, Ren, Kevin wrote:
> >>>>> Hi,
> >>>>>
> >>>>> There is m-m relationship between A and B entities which are in 
> >>>>> different models, but in same database. I can create and
> >>>> platen this
> >>>>> relationship in EOModler and got AB table as well.
> >>>>>
> >>>>> AB is in the same DB and only has compound PK like A_ID 
> and B_ID.
> >>>>>
> >>>>> When I tried to do saveChanges got this error
> >>>>>
> >>>>>
> >>>>> [2009-12-15 12:6:48 NZDT]  
> >>>>> java.lang.NullPointerException
> >>>>>   at
> >>>>> com
> >>>>> .webobjects
> >>>>> .eoaccess
> >>>>> .EODatabaseContext
> >>>>>
> >>>>
> >> 
> .primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:
> >>>>> 4845)
> >>>>>
> >>>>>   at
> >>>>> com
> >>>>> .webobjects
> >>>>> .eoaccess
> >>>>> .EODatabaseContext
> >>>>> .databaseOperationForIntermediateRowFromSourceObject
> >>>>> (EODatabaseContext.java:4863)
> >>>>>
> >>>>>   at
> >>>>> com
> >>>>> .webobjects
> >>>>> .eoaccess
> >>>>> .EODatabaseContext
> >>>>> .r

RE: NullPointerException in many-many relationship cross two models

2009-12-14 Thread Ren, Kevin

 Hi,

You are brilliant, guys. It's simple copy/past error in the URL.

jdbc:mysql://156.13.128.28:3306/school?useUnicode=true&characterEncoding=UTF8

One was using characterEncoding=UTF-8 instead of UTF8, causing this problem.

Now I change them both to UTF8 and works, 

Thanks,


kevin


> -Original Message-
> From: 
> webobjects-dev-bounces+kevin.ren=anz@lists.apple.com 
> [mailto:webobjects-dev-bounces+kevin.ren=anz@lists.apple.c
> om] On Behalf Of Mike Schrag
> Sent: Tuesday, 15 December 2009 4:25 p.m.
> To: Development WebObjects
> Subject: Re: NullPointerException in many-many relationship 
> cross two models
> 
> same connection dictionary like "i think they're the same 
> because the url is the same" or same like "i tested with 
> .equals(..) at runtime and it returns true thereby proving 
> they're the same" (technically they don't have to be exactly 
> .equals, but if they are .equals, they are same-enough)
> 
> On Dec 14, 2009, at 10:22 PM, Ren, Kevin wrote:
> 
> > 
> > HI,
> > 
> > I checked that, they are same connection dictionary, 
> because this just moral test example.
> > 
> > Not using WOnder,
> > 
> > Thanks
> > 
> > Kevin
> > 
> >> -Original Message-
> >> From: Chuck Hill [mailto:ch...@global-village.net]
> >> Sent: Tuesday, 15 December 2009 4:18 p.m.
> >> To: Ren, Kevin
> >> Cc: webobjects-dev@lists.apple.com
> >> Subject: Re: NullPointerException in many-many 
> relationship cross two 
> >> models
> >> 
> >> Both models need to have the exact (and I _do_ mean _exact_) same 
> >> connection dictionary.  The dictionaries must be equals(). 
>  This is 
> >> most easily accomplished by setting the programatically 
> when the app 
> >> loads.  Wonder, of course, does this.
> >> 
> >> 
> >> Chuck
> >> 
> >> 
> >> On Dec 14, 2009, at 3:30 PM, Ren, Kevin wrote:
> >>> Hi,
> >>> 
> >>> There is m-m relationship between A and B entities which are in 
> >>> different models, but in same database. I can create and
> >> platen this
> >>> relationship in EOModler and got AB table as well.
> >>> 
> >>> AB is in the same DB and only has compound PK like A_ID and B_ID.
> >>> 
> >>> When I tried to do saveChanges got this error
> >>> 
> >>> 
> >>> [2009-12-15 12:6:48 NZDT]  
> >>> java.lang.NullPointerException
> >>>at
> >>> com
> >>> .webobjects
> >>> .eoaccess
> >>> .EODatabaseContext
> >>> 
> >> 
> .primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java: 
> >>> 4845)
> >>> 
> >>>at
> >>> com
> >>> .webobjects
> >>> .eoaccess
> >>> .EODatabaseContext
> >>> .databaseOperationForIntermediateRowFromSourceObject
> >>> (EODatabaseContext.java:4863)
> >>> 
> >>>at
> >>> com
> >>> .webobjects
> >>> .eoaccess
> >>> .EODatabaseContext
> >>> .recordInsertForIntermediateRowFromSourceObject
> >>> (EODatabaseContext.java:4888)
> >>> 
> >>>at
> >>> com
> >>> .webobjects
> >>> .eoaccess
> >>> .EODatabaseContext
> >>> .relayAttributesInRelationshipSourceObjectDestinationObject
> >>> (EODatabaseContext.java:4913)
> >>> 
> >>>at
> >>> com
> >>> .webobjects
> >>> .eoaccess
> >>> .EODatabaseContext
> >>> .relayAttributesInRelationshipSourceObjectDestinationObjects
> >>> (EODatabaseContext.java:4966)
> >>> 
> >>>at
> >>> com
> >>> .webobjects
> >>> .eoaccess
> >>> .EODatabaseContext
> >>> .recordChangesInEditingContext(EODatabaseContext.java:6036)
> >>>at
> >>> com
> >>> .webobjects
> >>> .eocontrol
> >>> .EOObjectStoreCoordinator
> >>> .saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
> >>> 
> >>>at
> >>> com
> >>> .webobjects
> >>> 
> .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> >>> 
> >>> 
> >>> And I found only updateObjects could has two entities's 
> de

RE: NullPointerException in many-many relationship cross two models

2009-12-14 Thread Ren, Kevin

 HI,

I checked that, they are same connection dictionary, because this just moral 
test example.

Not using WOnder,

Thanks

Kevin

> -Original Message-
> From: Chuck Hill [mailto:ch...@global-village.net] 
> Sent: Tuesday, 15 December 2009 4:18 p.m.
> To: Ren, Kevin
> Cc: webobjects-dev@lists.apple.com
> Subject: Re: NullPointerException in many-many relationship 
> cross two models
> 
> Both models need to have the exact (and I _do_ mean _exact_) 
> same connection dictionary.  The dictionaries must be 
> equals().  This is most easily accomplished by setting the 
> programatically when the app loads.  Wonder, of course, does this.
> 
> 
> Chuck
> 
> 
> On Dec 14, 2009, at 3:30 PM, Ren, Kevin wrote:
> > Hi,
> >
> > There is m-m relationship between A and B entities which are in 
> > different models, but in same database. I can create and 
> platen this 
> > relationship in EOModler and got AB table as well.
> >
> > AB is in the same DB and only has compound PK like A_ID and B_ID.
> >
> > When I tried to do saveChanges got this error
> >
> >
> > [2009-12-15 12:6:48 NZDT]  
> > java.lang.NullPointerException
> > at
> > com
> > .webobjects
> > .eoaccess
> > .EODatabaseContext
> > 
> .primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java: 
> > 4845)
> >
> > at
> > com
> > .webobjects
> > .eoaccess
> > .EODatabaseContext
> > .databaseOperationForIntermediateRowFromSourceObject
> > (EODatabaseContext.java:4863)
> >
> > at
> > com
> > .webobjects
> > .eoaccess
> > .EODatabaseContext
> > .recordInsertForIntermediateRowFromSourceObject
> > (EODatabaseContext.java:4888)
> >
> > at
> > com
> > .webobjects
> > .eoaccess
> > .EODatabaseContext
> > .relayAttributesInRelationshipSourceObjectDestinationObject
> > (EODatabaseContext.java:4913)
> >
> > at
> > com
> > .webobjects
> > .eoaccess
> > .EODatabaseContext
> > .relayAttributesInRelationshipSourceObjectDestinationObjects
> > (EODatabaseContext.java:4966)
> >
> > at
> > com
> > .webobjects
> > .eoaccess
> > .EODatabaseContext
> > .recordChangesInEditingContext(EODatabaseContext.java:6036)
> > at
> > com
> > .webobjects
> > .eocontrol
> > .EOObjectStoreCoordinator
> > .saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
> >
> > at
> > com
> > .webobjects
> > .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> >
> >
> > And I found only updateObjects could has two entities's details and 
> > insertedObjects does not print out anything.
> >
> > Not sure this does not work in across models or something else need 
> > setup?
> >
> > thanks
> >
> >
> >
> > Xiaowen(Kevin) Ren
> >
> > Analyst Programmer
> > Channel Applications, Retail Applications ANZ National Bank 
> Ltd Level 
> > 6 ASB Tower
> > 2 Hunter Street
> > PO Box 1791
> > Wellington
> > Phone: 04 4365363
> > Fax: 04 8028696
> >
> >
> >
> >
> >
> > "This e-mail and any attachments to it (the "Communication") is, 
> > unless otherwise stated, confidential,  may contain 
> copyright material 
> > and is for the use only of the intended recipient. If you 
> receive the 
> > Communication in error, please notify the sender 
> immediately by return 
> > e-mail, delete the Communication and the return e-mail, and do not 
> > read, copy, retransmit or otherwise deal with it. Any views 
> expressed 
> > in the Communication are those of the individual sender 
> only, unless 
> > expressly stated to be those of Australia and New Zealand Banking 
> > Group Limited ABN 11 005 357 522, or any of its related entities 
> > including ANZ National Bank Limited (together "ANZ"). ANZ does not 
> > accept liability in connection with the integrity of or 
> errors in the 
> > Communication, computer virus, data corruption, 
> interference or delay 
> > arising from or in respect of the Communication."
> >
> > ___
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> > 
> http://lists.apple.com/mailman/options/webobjects-dev/chil

NullPointerException in many-many relationship cross two models

2009-12-14 Thread Ren, Kevin

Hi,

There is m-m relationship between A and B entities which are in different 
models, but in same database. I can create and platen this relationship in 
EOModler and got AB table as well.
AB is in the same DB and only has compound PK like A_ID and B_ID.

When I tried to do saveChanges got this error


[2009-12-15 12:6:48 NZDT]  java.lang.NullPointerException
at 
com.webobjects.eoaccess.EODatabaseContext.primaryKeyForIntermediateRowFromSourceObject(EODatabaseContext.java:4845)
at 
com.webobjects.eoaccess.EODatabaseContext.databaseOperationForIntermediateRowFromSourceObject(EODatabaseContext.java:4863)
at 
com.webobjects.eoaccess.EODatabaseContext.recordInsertForIntermediateRowFromSourceObject(EODatabaseContext.java:4888)
at 
com.webobjects.eoaccess.EODatabaseContext.relayAttributesInRelationshipSourceObjectDestinationObject(EODatabaseContext.java:4913)
at 
com.webobjects.eoaccess.EODatabaseContext.relayAttributesInRelationshipSourceObjectDestinationObjects(EODatabaseContext.java:4966)
at 
com.webobjects.eoaccess.EODatabaseContext.recordChangesInEditingContext(EODatabaseContext.java:6036)
at 
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:373)
at 
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)


And I found only updateObjects could has two entities's details and 
insertedObjects does not print out anything.

Not sure this does not work in across models or something else need setup?

thanks



Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
Phone: 04 4365363
Fax: 04 8028696





"This e-mail and any attachments to it (the "Communication") is, unless 
otherwise stated, confidential,  may contain copyright material and is for the 
use only of the intended recipient. If you receive the Communication in error, 
please notify the sender immediately by return e-mail, delete the Communication 
and the return e-mail, and do not read, copy, retransmit or otherwise deal with 
it. Any views expressed in the Communication are those of the individual sender 
only, unless expressly stated to be those of Australia and New Zealand Banking 
Group Limited ABN 11 005 357 522, or any of its related entities including ANZ 
National Bank Limited (together "ANZ"). ANZ does not accept liability in 
connection with the integrity of or errors in the Communication, computer 
virus, data corruption, interference or delay arising from or in respect of the 
Communication."
 ___
Do not post admin requests to the list. They will 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: Eclipse3.5 + WOlips for 3.5= Question

2009-06-29 Thread Ren, Kevin
I did deselect these two, but after got error message in install details
page, then the "Finish" button was not enabled.
 
This time I am not select these two at the beginning page, so works.
 
 
thanks, I can try Eclips3.5 with WOlips now,
 
Kevin

  _  

From: Q [mailto:qdo...@gmail.com] 
Sent: Monday, 29 June 2009 5:40 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Eclipse3.5 + WOlips for 3.5= Question



On 29/06/2009, at 2:16 PM, Ren, Kevin wrote:



Hi, 

Tried to play arroud new version of Eclipse3.5 with Wolips 3.5, 

"Install New Software" in eclipse, and setup link to
http://webobjects.mdimension.com/wolips/eclipse_3_5/
<http://webobjects.mdimension.com/wolips/eclipse_3_5/>  


couldnot install "standard install" after press "NEXT" and got
meesage, 

Cannot complete the install because one or more required items
could not be found. 
  Missing requirement: 1246248545321 0.0.0.1246248545321
requires 'org.objectstyle.wolips.goodies.win.feature.feature.group
[3.4.5827]' but it could not be found


OR 

Cannot complete the install because one or more required items
could not be found. 
  Missing requirement: 1246248764940 0.0.0.1246248764940
requires 'org.objectstyle.wolips.goodies.mac.feature.feature.group
[3.4.5827]' but it could not be found.

I am using Ubuntu.

Uncheck the Mac and Win goodies features.



-- 

Seeya...Q




Quinton Dolan - qdo...@gmail.com

Gold Coast, QLD, Australia (GMT+10)

Ph: +61 419 729 806







"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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

Eclipse3.5 + WOlips for 3.5= Question

2009-06-28 Thread Ren, Kevin

Hi,

Tried to play arroud new version of Eclipse3.5 with Wolips 3.5, 

"Install New Software" in eclipse, and setup link to
http://webobjects.mdimension.com/wolips/eclipse_3_5/


couldnot install "standard install" after press "NEXT" and got meesage, 

Cannot complete the install because one or more required items could not
be found.
  Missing requirement: 1246248545321 0.0.0.1246248545321 requires
'org.objectstyle.wolips.goodies.win.feature.feature.group [3.4.5827]'
but it could not be found


OR

Cannot complete the install because one or more required items could not
be found.
  Missing requirement: 1246248764940 0.0.0.1246248764940 requires
'org.objectstyle.wolips.goodies.mac.feature.feature.group [3.4.5827]'
but it could not be found.

I am using Ubuntu.

Thanks

kevin





"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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: upgrading w/ eclipse 3.4.2

2009-04-16 Thread Ren, Kevin
Hi, Dennis,
delete files under
~/eclipse/p2/org.eclipse.equinox.p2.core/cache/
~/eclipse/p2/org.eclipse.equinox.p2.metadata.repository/cache/
 
donot delete cache dir.
 
it's better try reinstall wolips first. if it's still failed do the
first step, just in case broken something else you interested in your
eclipse.
 
 good luck
 
kevin
 


  _  

From: Gaastra Dennis - WO Lists [mailto:webobjects_li...@webappz.com] 
Sent: Friday, 17 April 2009 4:02 a.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: upgrading w/ eclipse 3.4.2


Hi Kevin,


What is the full path of the "p2" dir? Can we just do a "rm -r *" in
there?


Thanks.


Dennis.



On 15-Apr-09, at 1:33 PM, Ren, Kevin wrote:


What I did( from memory)
1. delete anything under cache dir in p2
2. remove wolips from "Software updates->Available software
list"
3.refresh and restart eclipse
4. add wolips(link) again in available software
5. refresh and update to latest version
 
 
hopeful is help and working. it's not wolips problem, i think
it's eclipse issue.
 
cheers
 
Kevin 

  _  

From:
webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Gaastra Dennis - WO Lists
Sent: Thursday, 16 April 2009 8:10 a.m.
To: Mike Schrag
Cc: WebObjects Development
Subject: Re: upgrading w/ eclipse 3.4.2


Hi Mike, 

Do you suggest a re-install to upgrade from nightly 3.4.5693
then? Thanks.



With Kind Regards,

Dennis Gaastra, 






On 15-Apr-09, at 12:14 PM, Mike Schrag wrote:


yes, but only made changes to nightly, so whatever was
broken originally would continue to be broken for you if you're on
stable.

On Apr 15, 2009, at 3:07 PM, Tim Worman wrote:



Right, but I think I've been having this problem
since before there was a new stable? Ever since I updated to Eclipse
3.4.2, the updater "sees" an update for WOLips but then I get the errors
everyone is reporting when I actually try to update.



Tim



On Apr 15, 2009, at 11:38 AM, Mike Schrag wrote:



stable wouldn't have changed, so i'm not
surprised ... stable is just a snapshot of whenever it was made -- it
never changes until a new stable is pushed



On Apr 15, 2009, at 2:18 PM, Tim Worman
wrote:



I'm still having the same issue and I'm
trying to go from the last stable I got (prior to the issue) to the
newer stable.



Tim


UCLA GSE&IS



On Apr 15, 2009, at 11:10 AM, Gaastra
Dennis - WO Lists wrote:



Yes, 3.4.2; see picture attached:







With Kind Regards,



Dennis Gaastra,





On 15-Apr-09, at 11:00 AM, Mike Schrag
wrote:



and you're trying to upgrade from an
eclipse 3.4 + nightly to a new nightly, right?  not from eclipse 3.3, or
from stable to nightly?



On Apr 15, 2009, at 1:49 PM, Gaastra
Dennis - WO Lists wrote:



Hi Mike,



Thanks for trying, but still not
working: there is still a huge list of "no repository found containing
... /3.4.5719" lines.



With Kind Regards,



Dennis Gaastra,


Chief Technology Officer,


WEBAPPZ Systems, Inc.




This message contains confidential
information and is intended only for the individual named. If you 

RE: upgrading w/ eclipse 3.4.2

2009-04-15 Thread Ren, Kevin
What I did( from memory)
1. delete anything under cache dir in p2
2. remove wolips from "Software updates->Available software list"
3.refresh and restart eclipse
4. add wolips(link) again in available software
5. refresh and update to latest version
 
 
hopeful is help and working. it's not wolips problem, i think it's
eclipse issue.
 
cheers
 
Kevin 

  _  

From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Gaastra Dennis - WO Lists
Sent: Thursday, 16 April 2009 8:10 a.m.
To: Mike Schrag
Cc: WebObjects Development
Subject: Re: upgrading w/ eclipse 3.4.2


Hi Mike, 

Do you suggest a re-install to upgrade from nightly 3.4.5693 then?
Thanks.


With Kind Regards,

Dennis Gaastra, 






On 15-Apr-09, at 12:14 PM, Mike Schrag wrote:


yes, but only made changes to nightly, so whatever was broken
originally would continue to be broken for you if you're on stable.

On Apr 15, 2009, at 3:07 PM, Tim Worman wrote:



Right, but I think I've been having this problem since
before there was a new stable? Ever since I updated to Eclipse 3.4.2,
the updater "sees" an update for WOLips but then I get the errors
everyone is reporting when I actually try to update.



Tim



On Apr 15, 2009, at 11:38 AM, Mike Schrag wrote:



stable wouldn't have changed, so i'm not
surprised ... stable is just a snapshot of whenever it was made -- it
never changes until a new stable is pushed



On Apr 15, 2009, at 2:18 PM, Tim Worman wrote:



I'm still having the same issue and I'm
trying to go from the last stable I got (prior to the issue) to the
newer stable.



Tim


UCLA GSE&IS



On Apr 15, 2009, at 11:10 AM, Gaastra
Dennis - WO Lists wrote:



Yes, 3.4.2; see picture attached:







With Kind Regards,



Dennis Gaastra,





On 15-Apr-09, at 11:00 AM, Mike Schrag
wrote:



and you're trying to upgrade from an
eclipse 3.4 + nightly to a new nightly, right?  not from eclipse 3.3, or
from stable to nightly?



On Apr 15, 2009, at 1:49 PM, Gaastra
Dennis - WO Lists wrote:



Hi Mike,



Thanks for trying, but still not
working: there is still a huge list of "no repository found containing
... /3.4.5719" lines.



With Kind Regards,



Dennis Gaastra,


Chief Technology Officer,


WEBAPPZ Systems, Inc.




This message contains confidential
information and is intended only for the individual named. If you are
not the named addressee you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately by e-mail if you have
received this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message, which arise as a result of e-mail transmission. If verification
is required please request a hard-copy version. WEBAPPZ Systems, Inc.,
726 - 1489 Marine Drive, West Vancouver, BC, CANADA V7T 1B8,
www.webappz.com






On 15-Apr-09, at 10:22 AM, Mike Schrag
wrote:



i was able to upgrade my wolips from
eclipse 3.4.2 just now ... the people that were having problems try
again and see what happens?



ms




___
 

RE: refreshing data...?

2009-03-30 Thread Ren, Kevin
1.  
 ec = (EOEditingContext)(session().defaultEditingContext());
  contactList =
(NSArray)EOUtilities.objectsForEntityNamed(ec,"Contact"); 

2.
EOFetchSpecification fs = new
EOFetchSpecification("Contact",qual,nameOrderingArray);
fs.setRefreshesRefetchedObjects(true);
 contactList =
session().defaultEditingContext().objectsWithFetchSpecification(fs);


If qual and nameOrderingArray are null in option 2, I think they are
same,

kevin



-Original Message-
From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Theodore Petrosky
Sent: Tuesday, 31 March 2009 3:18 p.m.
To: webobjects-dev@lists.apple.com
Subject: refreshing data...?


I am a relative neophyte using webobjects. I am also just starting with
wonder lots of fun.

I have a database driven app that I sometimes update through my cocoa
app. I would like to do my fetch and be sure I get fresh queries from
the database? I am doing my queries like this:

contactList = Contact.fetchNotDeleted(contactEO);

it returns an array. my problem is that if I were to update the table
from my cocoa app this array is not coming from the database but from
cache. I want to set up to do a query from the database all the time.

is there a simple solution?

Ted


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

This email sent to kevin@anznational.co.nz


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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 does concurrency control work in WO?

2009-03-29 Thread Ren, Kevin
Hi, thanks for you guys replay so fast.

After doing the Google search in last Friday, I got link to
http://terminalapp.net/dr-optimistic-locking/  
And want to understand more about concurrency issue in WO by code, so
that 's the reason I am asking here.

Also try to understand what's diff between multi-EOF and DB connection
pool in J2EE, (like weblogic, tomcat or webshpere).
Further how is J2EE world solve this concurrency issue?

WONDER is just trying fix the problem or Apple can accept it in WO
release?


Thanks for your time,

Kevin


-Original Message-
From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Guido Neitzer
Sent: Monday, 30 March 2009 9:26 a.m.
To: Ren, Kevin
Cc: WebObjects Development
Subject: Re: How does concurrency control work in WO?

On 29. Mar. 2009, at 13:08 , Ren, Kevin wrote:

> I think it's about EOF professing.
> But if you have both, that's great.

First of all: What EXACTLY is your goal?

There are several ways of dealing with concurrency:

1. Switch on concurrent request handling with the property:

-DWOAllowsConcurrentRequestHandling=true

Note that this was set through JavaMonitor with the -D property
notation.

Using concurrent request handling has several implications (see EOF
part).

2. Use more instances. This might be the least painful way in regard of
locking issues, but the most painful in regard of data freshness.

3. Define your bottlenecks better.

4. Use multiple EOF connections to the database (Wonder has ways of
doing this automatically).


As soon as you have concurrent request handling you need to deal with
the following:

- Data freshness
- Caching
- Locking
- Valid data (Which write wins? Dealing with freshness again.)


You get most of this for free if you use ProjectWonder, which I highly
recommend. You need to use correct locking of your editing contexts (see
ERXEC from Wonder or MultiECLockManager, search on Google for more
information).

If you just enable concurrent request handling, EOF will still stay
single threaded for one instance as long as you don't use for example a
new object store coordinator for long running transactions.

Be aware that all this will bring you into dead locking and data
freshness hell as long as you don't really know, what you're doing OR as
long as you don't use the "make me and the gods of EOF happy features"
from Wonder.

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

This email sent to kevin@anznational.co.nz


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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 does concurrency control work in WO?

2009-03-29 Thread Ren, Kevin
 I think it's about EOF professing.
But if you have both, that's great.

Thanks

Kevin

-Original Message-
From: Andrew Lindesay [mailto:a...@lindesay.co.nz] 
Sent: Monday, 30 March 2009 8:44 a.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: How does concurrency control work in WO?

Hello Kevin;

What aspect of WebObjects are you asking about -- web requests, EOF
processing, ?

cheers.

> Is there any example code for learning this concurrency control in 
> WO5.4?
>

___
Andrew Lindesay
www.lindesay.co.nz



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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


How does concurrency control work in WO?

2009-03-29 Thread Ren, Kevin

Hi,

Is there any example code for learning this concurrency control in
WO5.4?

Thanks

kevin


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

RE: Eclipse+wolips nightly update failed

2009-03-18 Thread Ren, Kevin
 I am in Eclipse 3.4.2, not sure when upgrade from 3.4.1
Maybe this is the reason?


Kevin

-Original Message-
From: Gaastra Dennis - WO Lists [mailto:webobjects_li...@webappz.com] 
Sent: Thursday, 19 March 2009 1:43 p.m.
To: WebObjects-Dev Mailing List List
Cc: TW; Ren, Kevin; Mike Schrag
Subject: Re: Eclipse+wolips nightly update failed

We have the same problem here as well.
Is this due to the fact that we are running Eclipse 3.4.2 instead of
3.4.1?

With Kind Regards,

Dennis Gaastra,
Chief Technology Officer,
WEBAPPZ Systems, Inc.



On 18-Mar-09, at 4:26 PM, David Holt wrote:

> It happened to me last night as well. I'm stuck at 3.4.5693
>
> David
>
> On 18-Mar-09, at 4:17 PM, TW wrote:
>
>> There's been a couple threads about this - this is the first response

>> with an explanation. :-) However, I get this every single time I 
>> check for updates. And the last time I had it happen, I had to 
>> re-install Eclipse to fix it.
>>
>> Tim
>> UCLA GSE&IS
>>
>> On Mar 18, 2009, at 3:07 PM, Q wrote:
>>
>>> Restart eclipse. This can happen if the build on the mdimension 
>>> server is a newer build than when eclipse last checked and cached 
>>> the site.xml from the update url.
>>>
>>> On 19/03/2009, at 8:01 AM, Ren, Kevin wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> I got Eclipse3.4 and WOlips install on Ubuntu, and got update 
>>>> failed after 3.4.5693
>>>>
>>>> Tried this morning and got this message in eclipse3.4
>>>>
>>>> An error  occurred while collecting items to be installed No 
>>>> repository found containing: org.objectstyle.wolips/
>>>> osgi.bundle/3.4.5697
>>>> No repository found containing: org.objectstyle.wolips.ant/
>>>> osgi.bundle/3.4.5697
>>>> No repository found containing: org.objectstyle.wolips.apieditor/
>>>> osgi.bundle/3.4.5697
>>>> 
>>>>
>>>> Sounds like anything related to osgi
>>>>
>>>>
>>>> Anybody have idea,
>>>>
>>>> Thanks
>>>>
>>>> Kevin
>>>>
>>>>
>>>>
>>>> "This communication is confidential and may contain privileged 
>>>> and/or copyright material. If you are not the intended recipient 
>>>> you must not use, disclose, copy or retain it. If you have received

>>>> it in error please immediately notify me by return email, delete 
>>>> the emails and destroy any hard copies. ANZ National Bank Limited 
>>>> does not guarantee the integrity of this communication, or that it 
>>>> is free from errors, viruses or interference."
>>>>
>>>> ___
>>>> Do not post admin requests to the list. They will 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%40gmai
>>>> l.com
>>>>
>>>> This email sent to qdo...@gmail.com
>>>
>>>
>>>
>>> --
>>> Seeya...Q
>>>
>>> Quinton Dolan - qdo...@gmail.com
>>> Gold Coast, QLD, Australia (GMT+10)
>>> Ph: +61 419 729 806
>>>
>>>
>>>
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/lists%40thetim
>>> my.com
>>>
>>> This email sent to li...@thetimmy.com
>>
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> 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/webobjects_lists
> %40webappz.com
>
> This email sent to webobjects_li...@webappz.com



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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


Eclipse+wolips stable update failed

2009-03-18 Thread Ren, Kevin

Hi,

I got Eclipse3.4 and WOlips install on Ubuntu, and got update failed
after 3.4.5693

Tried this morning and got this message in eclipse3.4

An error  occurred while collecting items to be installed
 No repository found containing:
org.objectstyle.wolips/osgi.bundle/3.4.5697
 No repository found containing:
org.objectstyle.wolips.ant/osgi.bundle/3.4.5697
 No repository found containing:
org.objectstyle.wolips.apieditor/osgi.bundle/3.4.5697


Sounds like anything related to osgi


Anybody have idea,

Thanks

Kevin



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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 run WONDER example source in Eclipse+WOLips

2008-12-15 Thread Ren, Kevin
I download the latest version Wonder, extract got Wonder(source),
Wonder-latest-Frameworks-54 and Wonder-latest-Applications-54.
I read the wiki page, but it's for old wonder not for this latest
version, like not common dir, all frameworks is in separate folder.
 
I copy/past all frameworks under Wonder-latest-Frameworks-54 to
/Library/Frameworks, so any project could import/or link these wonder
frameworks.
 
copy all example source past to my workspace, like
Wonder/Example/Ajax/AjaxExample ...
 
import project under my workspace in Eclipse, I got all example project,
and in referenced libraries, I can see the refer lib.
 
So no problem I can see. clean my workspace as well. but still got that
message,
 
any suggestion, where I am wrong?
 
 
thanks
 
Kevin

  _  

From: Kieran Kelleher [mailto:kieran_li...@mac.com] 
Sent: Tuesday, 16 December 2008 3:03 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: How to run WONDER example source in Eclipse+WOLips


You seem to be using old version of Wonder. If you are working with
Wonder in your Workspace, why not download the latest source. Use the
procedure outlined here: 

http://wiki.objectstyle.org/confluence/display/WONDER/Download+Wonder+So
urce%2C+Build+and+Install

and

http://wiki.objectstyle.org/confluence/display/WONDER/Working+with+Wonde
r+source+in+Eclipse

On Dec 15, 2008, at 7:51 PM, Ren, Kevin wrote:


Hi, 

Eclipse3.4+Wolips3.4.5588 nightlybuild 

I installed WONDER framework to /Library/Frameworks, then I can
create new WO app or Wonder App. 

I copied all examples source from Wonder/Examples to my eclipse
workspace, and then import to Eclipse. 

All good, not red cross stick in the project. I found all
libraries under "Referenced Libraries", looks all good. 

But when I try run the application "AjaxExample" , I got
message: 

[2008-12-16 12:40:57 GMT+12:00]  Initialized :
er.extensions.ERXExtensions 
[2008-12-16 12:41:0 GMT+12:00]  A fatal exception
occurred: null 
[2008-12-16 12:41:0 GMT+12:00] 
java.lang.ExceptionInInitializerError 
at
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAs
Stream(WOResourceManager.java:116) 
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOPr
operties.java:317) 
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:574
3) 
at
com.webobjects.appserver.WOApplication.(WOApplication.java:779) 
at
er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplicatio
n.java:22) 
at
er.extensions.appserver.ERXApplication.(ERXApplication.java:804) 
at Application.(Application.java:19) 
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39) 
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27) 
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494) 
at java.lang.Class.newInstance0(Class.java:350) 
at java.lang.Class.newInstance(Class.java:303) 
at
com.webobjects.appserver.WOApplication.main(WOApplication.java:547) 
at
er.extensions.appserver.ERXApplication.main(ERXApplication.java:592) 
at Application.main(Application.java:15) 
Caused by: java.lang.IllegalStateException: Main bundle
'Properties' file can't be read.  Did you run as a Java Application
instead of a WOApplication in WOLips?

Please post your deployment configuration in the Wonder mailing
list. 
at
er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplicati
on.java:505) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) 
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) 
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:585) 
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:1
22) 
at
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNot
ificationCenter.java:588) 
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
cationCenter.java:532) 
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
cationCenter.java:562) 
at
com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:1819) 
at
com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(NSBundle.jav
a:490) 
at
com.webobjects

How to run WONDER example source in Eclipse+WOLips

2008-12-15 Thread Ren, Kevin
Hi,

Eclipse3.4+Wolips3.4.5588 nightlybuild

I installed WONDER framework to /Library/Frameworks, then I can create
new WO app or Wonder App.

I copied all examples source from Wonder/Examples to my eclipse
workspace, and then import to Eclipse.

All good, not red cross stick in the project. I found all libraries
under "Referenced Libraries", looks all good.

But when I try run the application "AjaxExample" , I got message:

[2008-12-16 12:40:57 GMT+12:00]  Initialized :
er.extensions.ERXExtensions
[2008-12-16 12:41:0 GMT+12:00]  A fatal exception occurred: null
[2008-12-16 12:41:0 GMT+12:00] 
java.lang.ExceptionInInitializerError
at
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAs
Stream(WOResourceManager.java:116)
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOPr
operties.java:317)
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:574
3)
at
com.webobjects.appserver.WOApplication.(WOApplication.java:779)
at
er.extensions.appserver.ajax.ERXAjaxApplication.(ERXAjaxApplicatio
n.java:22)
at
er.extensions.appserver.ERXApplication.(ERXApplication.java:804)
at Application.(Application.java:19)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at
er.extensions.appserver.ERXApplication.main(ERXApplication.java:592)
at Application.main(Application.java:15)
Caused by: java.lang.IllegalStateException: Main bundle 'Properties'
file can't be read.  Did you run as a Java Application instead of a
WOApplication in WOLips?
Please post your deployment configuration in the Wonder mailing list.
at
er.extensions.appserver.ERXApplication$Loader.bundleDidLoad(ERXApplicati
on.java:505)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:1
22)
at
com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNot
ificationCenter.java:588)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
cationCenter.java:532)
at
com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi
cationCenter.java:562)
at
com.webobjects.foundation.NSBundle.postNotification(NSBundle.java:1819)
at
com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(NSBundle.jav
a:490)
at
com.webobjects.foundation.NSBundle.(NSBundle.java:2109)
... 16 more

Any idea, which lib I need import to the project? The same message for
all other examples source.

thanks


kevin


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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: Nightlybuild + HelloWorld with non-used Frameworks --broken

2008-12-11 Thread Ren, Kevin
yes, you are right, I added ERExtensions and ERJars. and all works.
 
i just wanted to test the deploy for extra frameworks yesterday, so just
random add the top one. didn't think about dependent frameworks.
 
thanks
 
Kevin

  _  

From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Mike Schrag
Sent: Friday, 12 December 2008 11:20 a.m.
To: WebObjects Apple Dev
Subject: Re: Nightlybuild + HelloWorld with non-used Frameworks --broken



Then I just "Add Library" from local framework dir, like Ajax
framework, then broken,
 
 no new component, nothing changed in any code, so I think no
dependency to Ajax or ERX.

You can't use Ajax framework without also adding ERExtensions and
ERJars.


I will try the new version later, but I don't think so. It's
working yesterday. only changed is new nightlybuild WOLips.

"it worked until i replaced my entire development environment"

Please read what I wrote earlier today about transitive dependencies.
Your applications must include all of your children framework's
dependent frameworks.

ms

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

RE: PATH is different between dev and deployment, make deploy failed(WO5.4.3)

2008-12-11 Thread Ren, Kevin
 In new WOLips3.4 version, in build.properties, I added

embed.System=true
embed.Local=true

So I can all frameworks under Contents/Frameworks dir.

All good, don't care what's in  UNIXClassPath.txt

Maybe need read doc somewhere I missed. :-)

Thanks
Kevin


-Original Message-
From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Andrew Lindesay
Sent: Thursday, 11 December 2008 4:20 p.m.
To: WebObjects (Group)
Subject: RE: PATH is different between dev and deployment,make deploy
failed(WO5.4.3)

Hello Kevin;

I tend to use "jar frameworks" and I do this -- where I have removed
variable-substitution to illustrate the point better;













Otherwise I think the  (sp?) element has an attribute to
embed the frameworks on it called "embed" which you can set to "true".
See the following information and examples;

http://wiki.objectstyle.org/confluence/display/WOL/WOApplication

cheers.

On 11/12/2008, at 4:07 PM, Ren, Kevin wrote:

> Yes, I found in the /System/Library/WebObjects/JavaApplications, all 
> *.jar are seating under Contents/Extensions How could I do it, do I 
> need change something in the build.xml?

___
Andrew Lindesay
www.lindesay.co.nz

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

This email sent to kevin@anznational.co.nz


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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: Nightlybuild + HelloWorld with non-used Frameworks --broken

2008-12-11 Thread Ren, Kevin
Hi, mike,
 
I just created new "WebObjects Application", called HelloWorld.
All works in development.
 
Then I just "Add Library" from local framework dir, like Ajax framework,
then broken,
 
 no new component, nothing changed in any code, so I think no dependency
to Ajax or ERX.
 
Wonder version is update at 7, Dec, 2008.
I will try the new version later, but I don't think so. It's working
yesterday. only changed is new nightlybuild WOLips.
 
 
thanks
 
kevin

  _  

From: webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.com
[mailto:webobjects-dev-bounces+kevin.ren=anznational.co...@lists.apple.c
om] On Behalf Of Mike Schrag
Sent: Friday, 12 December 2008 10:46 a.m.
To: WebObjects Apple Dev
Subject: Re: Nightlybuild + HelloWorld with non-used Frameworks --broken



The reason is I added non-used Ajax Framework in the build path,
but it's working with WOLips 3.4.5581. 

After I removed this non-used Ajax framework, The simple
HelloWorld is running fine. 

Any idea the reason?

well two things here, one is that that package name is the old name from
wonder, so I don't know if you're just using an old version of Wonder,
or what.  but if we set that problem aside (since you say it worked
before), my guess would be missing transitive dependencies ... does your
app depend on ERX directly or were you inheriting it from Ajax?

ms

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will 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

Nightlybuild + HelloWorld with non-used Frameworks --broken

2008-12-11 Thread Ren, Kevin

Hi,

I just updated WOLips to 3.4.5582 this morning, then run my simple
HelloWorld which was working with old WOLips 3.4.5581.

I got this 
[2008-12-12 9:22:41 GMT+12:00]  A fatal exception occurred:
er/extensions/ERXFrameworkPrincipal
[2008-12-12 9:22:41 GMT+12:00]  java.lang.NoClassDefFoundError:
er/extensions/ERXFrameworkPrincipal
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com.webobjects.foundation._NSUtilities._classWithPartialName(_NSUtilitie
s.java:350)
at
com.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:3
34)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:2410
)
at
com.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:71
9)
at
com.webobjects.foundation.NSBundle.(NSBundle.java:376)
at
com.webobjects.appserver.WOResourceManager.__getJavaWebObjectsResourceAs
Stream(WOResourceManager.java:116)
at
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOPr
operties.java:317)
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:574
3)
at
com.webobjects.appserver.WOApplication.(WOApplication.java:779)
at your.app.Application.(Application.java:13)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
at your.app.Application.main(Application.java:10)

The reason is I added non-used Ajax Framework in the build path, but
it's working with WOLips 3.4.5581.

After I removed this non-used Ajax framework, The simple HelloWorld is
running fine.

Any idea the reason?


Thanks


Kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

RE: PATH is different between dev and deployment, make deploy failed(WO5.4.3)

2008-12-10 Thread Ren, Kevin
 Yes, I found in the /System/Library/WebObjects/JavaApplications, all
*.jar are seating under Contents/Extensions

How could I do it, do I need change something in the build.xml?

Thanks


Kevin

-Original Message-
From: Andrew Lindesay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 11 December 2008 3:58 p.m.
To: Ren, Kevin
Cc: WebObjects (Group)
Subject: Re: PATH is different between dev and deployment, make deploy
failed(WO5.4.3)

Hello Kevin;

You can bundle the local frameworks as well as WebObjects frameworks
into the ".woa".  This means that in deployment there is no LOCALROOT
used.

cheers.

> Yes, that's may fix some problem, but
> For local framework, it's
> LOCALROOTLibrary/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
> That's wrong,  need fix it somewhere,

___
Andrew Lindesay
www.lindesay.co.nz



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


RE: PATH is different between dev and deployment, make deploy failed(WO5.4.3)

2008-12-10 Thread Ren, Kevin
Yes, that's may fix some problem, but

For local framework, it's 
LOCALROOTLibrary/Frameworks/Ajax.framework/Resources/Java/Ajax.jar

That's wrong,  need fix it somewhere,

Thanks
Kevin 


-Original Message-
From: Andrew Lindesay [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 11 December 2008 3:31 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: PATH is different between dev and deployment, make deploy
failed(WO5.4.3)

Hello Kevin;

I suggest that you simply put all of the WebObjects frameworks directly
into the ".woa" bundle and then you don't need to worry about where they
are in the deployment system.

cheers.

On 11/12/2008, at 3:23 PM, Ren, Kevin wrote:

> Hi,
>
>
> Eclipse3.4+WOLips nightly build+WO5.4.3 in Ubuntu
>
> Simple HelloWorld.woa
>
> In development build path, the javafoundation.jar, 
> javajdbcadaptor.jar,javawebobjects.jar Are point to
Whatever/Apple/ 
> System/Library/Frameworks directory, all good.
>
> After application built, install it to Whatever/Apple/Library/ 
> WebObjects/Applications.
>
> After I run the application I got path error. Like
> java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication
>
> I found it's quite different between WO5.4.3 and WO5.3 in 
> UnixClassPath.txt and HelloWorld script,
>
> In UnixClassPath.txt, the path is point to
>
> WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/
> javafoundation.jar
> ...
> but when I look HelloWorld script, I found
>
> #
> # Depending upon the platform, provide default values for the path # 
> abstractions (we call these values "shorthands").
> #
> if [ "${PLATFORM_TYPE}" = "Rhapsody" ] then
> LOCALROOT=/Local
> WOROOT=/System
> elif [ "$PLATFORM_TYPE" = "Darwin" ]
> then
> LOCALROOT=
> WOROOT=/System
> else
> WOROOT=${NEXT_ROOT}
> LOCALROOT=${NEXT_ROOT}/Local
> Fi
>
>
> That's meant WOROOT=Whatever/Apple,
>
> I got error message, like:
> java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication
>
>
> I change it to WOROOT=${NEXT_ROOT}/System, then I can start my 
> HelloWorld, fixed problem.
>
>
> If I add local framework, in UnixClassPath.txt, looks like 
> LOCALROOTLibrary/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
> , so no LOCALROOTLibrary definition in HelloWorld script.
>
> So I want to know how these UnixClassPath.txt or MacOSCalssPath.txt 
> and HelloWorld scripts generated, then I can fix for all applications 
> during the build, not one by one fix script.
>
> Anyone have idea? No problem for development, only build for 
> deployment.
>
> Thanks
>
>
> Kevin
>
>
>
>
>
>
> "This communication is confidential and may contain privileged and/ or

> copyright material. If you are not the intended recipient you must not

> use, disclose, copy or retain it. If you have received it in error 
> please immediately notify me by return email, delete the emails and 
> destroy any hard copies. ANZ National Bank Limited does not guarantee 
> the integrity of this communication, or that it is free from errors, 
> viruses or interference."
>
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/apl%40lindesay.c
> o.nz
>
> This email sent to [EMAIL PROTECTED]

___
Andrew Lindesay
www.lindesay.co.nz



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


PATH is different between dev and deployment, make deploy failed(WO5.4.3)

2008-12-10 Thread Ren, Kevin
Hi,


Eclipse3.4+WOLips nightly build+WO5.4.3 in Ubuntu

Simple HelloWorld.woa

In development build path, the javafoundation.jar,
javajdbcadaptor.jar,javawebobjects.jar Are point to
Whatever/Apple/System/Library/Frameworks directory, all good.

After application built, install it to
Whatever/Apple/Library/WebObjects/Applications.

After I run the application I got path error. Like
java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication

I found it's quite different between WO5.4.3 and WO5.3 in
UnixClassPath.txt and HelloWorld script, 

In UnixClassPath.txt, the path is point to 

WOROOT/Library/Frameworks/JavaFoundation.framework/Resources/Java/javafo
undation.jar
...
but when I look HelloWorld script, I found

#
# Depending upon the platform, provide default values for the path
# abstractions (we call these values "shorthands").
#
if [ "${PLATFORM_TYPE}" = "Rhapsody" ]
then
LOCALROOT=/Local
WOROOT=/System
elif [ "$PLATFORM_TYPE" = "Darwin" ]
then
LOCALROOT=
WOROOT=/System
else
WOROOT=${NEXT_ROOT}
LOCALROOT=${NEXT_ROOT}/Local
Fi


That's meant WOROOT=Whatever/Apple, 

I got error message, like:
java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication


I change it to WOROOT=${NEXT_ROOT}/System, then I can start my
HelloWorld, fixed problem.


If I add local framework, in UnixClassPath.txt, looks like
LOCALROOTLibrary/Frameworks/Ajax.framework/Resources/Java/Ajax.jar
, so no LOCALROOTLibrary definition in HelloWorld script.

So I want to know how these UnixClassPath.txt or MacOSCalssPath.txt and
HelloWorld scripts generated, then I can fix for all applications during
the build, not one by one fix script.

Anyone have idea? No problem for development, only build for deployment.

Thanks


Kevin






"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

FW: Missing ERXApplicationand ERXSession

2008-12-07 Thread Ren, Kevin

I changed 
import er.extensions.ERXSession;
import er.extensions.ERXApplication;

TO
import er.extensions.appserver.ERXSession;
import er.extensions.appserver.ERXApplication;

And then  it's working, is it bug or have to it manually?

Kevin
> __ 
> From:     Ren, Kevin  
> Sent: Monday, 8 December 2008 3:52 p.m.
> To:   'webobjects-dev@lists.apple.com'
> Subject:  Missing ERXApplicationand ERXSession
> 
> 
> Hi,
> 
> I just reinstalled everything from scratch, like Eclipse3.4, WO5.4.3
> and WOlipse nightlubuild 3.4.5581.
> 
> I can created and run simple "hello World " application under WO
> application and WOnder application.
> 
> But when I created new WOnderD2W application, I got some compile
> error. Sounds like couldn't find ERXApplication and ERXSession.
> 
> I installed WOnder framework under /Library/Frameworks
> In the code, import them from er.extensions, but I could NOT find them
> under ERExtensions.framework,
> 
> I missed something in my installation, or property file, anyone have
> any idea?
> 
> Thanks
> 
> Kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Missing ERXApplicationand ERXSession

2008-12-07 Thread Ren, Kevin

Hi,

I just reinstalled everything from scratch, like Eclipse3.4, WO5.4.3 and
WOlipse nightlubuild 3.4.5581.

I can created and run simple "hello World " application under WO
application and WOnder application.

But when I created new WOnderD2W application, I got some compile error.
Sounds like couldn't find ERXApplication and ERXSession.

I installed WOnder framework under /Library/Frameworks
In the code, import them from er.extensions, but I could NOT find them
under ERExtensions.framework,

I missed something in my installation, or property file, anyone have any
idea?

Thanks

Kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: About instance's integrity. (was Re: Webobjects-dev Digest, Vol 5, Issue 1141)

2008-11-30 Thread Ren, Kevin
 

Hi,

One part I want to clear in this interest thread,


>> I am a Windows WO user.


>> I got lots of problems from Projectbuilder.e.g. compiling 
>> issues,adding multiple files,package handling...

>Eclipse/WOLips has been available for over two years. Have you not
checked the wiki? This is actively developed and used by most. If you
find issues .. submit a bug report and it will get fixed.

>> For me it seems that apple abandoned Windows users.

>'ve mentioned this already - so I'll say it once again. They've stopped
developing the tools on *all* platforms for WO (ProjectBuilder etc). You
now use Eclipse. This is the way forward.


Is that means I can use WO (Eclipse and WOLips) legally in Windows? No
license problem for development?

Thanks


Kevin
"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


RE: Webobjects5.4.1 deploy on Linux

2008-07-15 Thread Ren, Kevin
Yes, you are right. 
I copied/past all Frameworks from /System/Library/Frameworks to
/Library/Frameworks in my machine B.
I forgot doing it in Machine A.


Is it only option? 
Could I  change the "Generated path" to point
/System/Library/Frameworks, if yes , how?

Thanks

Kevin

-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 16 July 2008 1:26 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Webobjects5.4.1 deploy on Linux

Check
/home/xiaowen/Apple/Library/Frameworks/JavaWebObjects.framework/
Resources/Java/javawebobjects.jar

It is missing, corrupt, or has the wrong file permissions.


On Jul 15, 2008, at 6:20 PM, Ren, Kevin wrote:

> HI,
>
> I built Apache2.2 WO adaptor for WO5.4.1 on my Ubuntu8.04( called 
> Machine A).
> I got the old WO( 5.4 or 5.3 ) with Apache2.2 on Ubuntu7.10 (called 
> machine B).
> Apache2.2 restart no problem.
>
> Development no problem, I build MySchool in Machine A and WOHelloWorld

> in machine B.
>
> Both could be deployed/started in machine B.
> But both failed in machine A.
>
> I got this message: in Machine A.
>
> [EMAIL PROTECTED]> ./MySchool.woa/MySchool & [2] 8275 [EMAIL PROTECTED]>

> Reading UNIXClassPath.txt ...
> Launching MySchool.woa ...
> java -DWORootDirectory="/home/xiaowen/Apple" - 
> DWOLocalRootDirectory="/home/xiaowen/Apple/Local" - 
> DWOUserDirectory="/home/xiaowen/Apple/Library/WebObjects/
> Applications" -DWOEnvClassPath="/usr/local/tomcat/common/lib/jsp-
> api.jar:/usr/local/tomcat/common/lib/servlet-api.jar" - 
> DWOApplicationClass=school.app.Application -DWOPlatform=UNIX -
> Dcom.webobjects.pid=8275 -classpath WOBootstrap.jar 
> com.webobjects._bootstrap.WOBootstrap
>
> Loading /home/xiaowen/Apple/Library/WebObjects/Applications/
> MySchool.woa/Contents/UNIX/UNIXClassPath.txt
> Generated classpath:
>   /home/xiaowen/Apple/Library/WebObjects/Applications/MySchool.woa/
> Contents/Resources/Java/
>   /home/xiaowen/Apple/Library/WebObjects/Applications/MySchool.woa/
> Contents/Resources/Java/myschool.jar
>   /home/xiaowen/Apple/Library/Frameworks/JavaEOAccess.framework/
> Resources/Java/javaeoaccess.jar
>   /home/xiaowen/Apple/Library/Frameworks/JavaEOControl.framework/
> Resources/Java/javaeocontrol.jar
>   /home/xiaowen/Apple/Library/Frameworks/JavaFoundation.framework/
> Resources/Java/javafoundation.jar
>   /home/xiaowen/Apple/Library/Frameworks/JavaJDBCAdaptor.framework/
> Resources/Java/javajdbcadaptor.jar
>   /home/xiaowen/Apple/Library/Frameworks/JavaWebObjects.framework/
> Resources/Java/javawebobjects.jar
>   /home/xiaowen/Apple/Library/Frameworks/JavaXML.framework/Resources/
> Java/javaxml.jar
>   /usr/local/tomcat/common/lib/jsp-api.jar
>   /usr/local/tomcat/common/lib/servlet-api.jar
> java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
> 124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java: 
> 260)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
>
> [EMAIL PROTECTED]> ./WOHelloWorld.woa/WOHelloWorld & [2] 8874 
> [EMAIL PROTECTED]> Reading UNIXClassPath.txt ...
> Launching WOHelloWorld.woa ...
> java -DWORootDirectory="/home/xiaowen/Apple" - 
> DWOLocalRootDirectory="/home/xiaowen/Apple/Local" - 
> DWOUserDirectory="/home/xiaowen/Apple/Library/WebObjects/
> Applications" -classpath "/home/xiaowen/Apple/Library/WebObjects/
> Applications/WOHelloWorld.woa/Contents/Resources/Java/:/home/xiaowen/
> Apple/Library/WebObjects/Applications/WOHelloWorld.woa/Contents/
> Resources/Java/wohelloworld.jar:/home/xiaowen/Apple/Library/
> Frameworks/JavaEOAccess.framework/Resources/Java/javaeoaccess.jar:/
> home/xiaowen/Apple/Library/Frameworks/JavaEOControl.framework/
> Resources/Java/javaeocontrol.jar:/home/xiaowen/Apple/Library/
> Frameworks/JavaFoundation.framework/Resources/Java/
> javafoundation.jar:/home/xiaowen/Apple/Library/Frameworks/
> JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/home/
> xiaowen/Apple/Library/Frameworks/J

Webobjects5.4.1 deploy on Linux

2008-07-15 Thread Ren, Kevin
> HI, 
> 
> I built Apache2.2 WO adaptor for WO5.4.1 on my Ubuntu8.04( called
> Machine A).
> I got the old WO( 5.4 or 5.3 ) with Apache2.2 on Ubuntu7.10 (called
> machine B).
> Apache2.2 restart no problem.
> 
> Development no problem, I build MySchool in Machine A and WOHelloWorld
> in machine B.
> 
> Both could be deployed/started in machine B.
> But both failed in machine A.
> 
> I got this message: in Machine A.
> 
> [EMAIL PROTECTED]> ./MySchool.woa/MySchool &
> [2] 8275
> [EMAIL PROTECTED]> Reading UNIXClassPath.txt ...
> Launching MySchool.woa ...
> java -DWORootDirectory="/home/xiaowen/Apple"
> -DWOLocalRootDirectory="/home/xiaowen/Apple/Local"
> -DWOUserDirectory="/home/xiaowen/Apple/Library/WebObjects/Applications
> "
> -DWOEnvClassPath="/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/
> tomcat/common/lib/servlet-api.jar"
> -DWOApplicationClass=school.app.Application -DWOPlatform=UNIX
> -Dcom.webobjects.pid=8275 -classpath WOBootstrap.jar
> com.webobjects._bootstrap.WOBootstrap
> Loading
> /home/xiaowen/Apple/Library/WebObjects/Applications/MySchool.woa/Conte
> nts/UNIX/UNIXClassPath.txt
> Generated classpath: 
>  
> /home/xiaowen/Apple/Library/WebObjects/Applications/MySchool.woa/Conte
> nts/Resources/Java/
>  
> /home/xiaowen/Apple/Library/WebObjects/Applications/MySchool.woa/Conte
> nts/Resources/Java/myschool.jar
>  
> /home/xiaowen/Apple/Library/Frameworks/JavaEOAccess.framework/Resource
> s/Java/javaeoaccess.jar
>  
> /home/xiaowen/Apple/Library/Frameworks/JavaEOControl.framework/Resourc
> es/Java/javaeocontrol.jar
>  
> /home/xiaowen/Apple/Library/Frameworks/JavaFoundation.framework/Resour
> ces/Java/javafoundation.jar
>  
> /home/xiaowen/Apple/Library/Frameworks/JavaJDBCAdaptor.framework/Resou
> rces/Java/javajdbcadaptor.jar
>  
> /home/xiaowen/Apple/Library/Frameworks/JavaWebObjects.framework/Resour
> ces/Java/javawebobjects.jar
>  
> /home/xiaowen/Apple/Library/Frameworks/JavaXML.framework/Resources/Jav
> a/javaxml.jar
>   /usr/local/tomcat/common/lib/jsp-api.jar
>   /usr/local/tomcat/common/lib/servlet-api.jar
> java.lang.NoClassDefFoundError: com/webobjects/appserver/WOApplication
>   at java.lang.ClassLoader.defineClass1(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>   at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124
> )
>   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>   at
> com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
> 
> [EMAIL PROTECTED]> ./WOHelloWorld.woa/WOHelloWorld &
> [2] 8874
> [EMAIL PROTECTED]> Reading UNIXClassPath.txt ...
> Launching WOHelloWorld.woa ...
> java -DWORootDirectory="/home/xiaowen/Apple"
> -DWOLocalRootDirectory="/home/xiaowen/Apple/Local"
> -DWOUserDirectory="/home/xiaowen/Apple/Library/WebObjects/Applications
> " -classpath
> "/home/xiaowen/Apple/Library/WebObjects/Applications/WOHelloWorld.woa/
> Contents/Resources/Java/:/home/xiaowen/Apple/Library/WebObjects/Applic
> ations/WOHelloWorld.woa/Contents/Resources/Java/wohelloworld.jar:/home
> /xiaowen/Apple/Library/Frameworks/JavaEOAccess.framework/Resources/Jav
> a/javaeoaccess.jar:/home/xiaowen/Apple/Library/Frameworks/JavaEOContro
> l.framework/Resources/Java/javaeocontrol.jar:/home/xiaowen/Apple/Libra
> ry/Frameworks/JavaFoundation.framework/Resources/Java/javafoundation.j
> ar:/home/xiaowen/Apple/Library/Frameworks/JavaJDBCAdaptor.framework/Re
> sources/Java/javajdbcadaptor.jar:/home/xiaowen/Apple/Library/Framework
> s/JavaWebObjects.framework/Resources/Java/javawebobjects.jar:/home/xia
> owen/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml
> .jar:/usr/local/tomcat/common/lib/jsp-api.jar:/usr/local/tomcat/common
> /lib/servlet-api.jar" your.app.Application
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/webobjects/appserver/WOApplication
>   at java.lang.ClassLoader.defineClass1(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>   at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124
> )
>   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
>   at java.l

Open used vs. Open Source

2008-06-30 Thread Ren, Kevin

Hi, 

I remember lots of people talking about Open Source after WOWODC in the
last year.
Nobody body mention it this year, I understand Apple has good keeping
secret manner. 

Is it possible open used instead of Open source?

The question is from WO is  proprietary frameworks. If it's open used
for non-apple developer, lots of people could know WO and Apple.
Buy Apple, Xservermaybe

Currently the deployment is open used/free for non-Apple environment,
why not for development?


Thanks,

Kevin



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Code question

2008-06-29 Thread Ren, Kevin
Hi, 

I have these code could not compiled 

Said "the character '<' must be escaped"

How to fix it?





HomeURL :  WOActionURL { action = homeActionURL; }
HomeImage: WOImage {
filename = "home.jpg";
width="125"; 
height="75"; 
border="0";
}


thanks

Kevin 


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Question about WOImage binding value

2008-06-25 Thread Ren, Kevin

Hi, 

Actually it's validation error for my old application code

PictureImage : WOImage {
value =  getPictureImage;

}

I found couldn't get the "value" in the list for binding, and but in the
documentation:

value
Image data in the form of a WOElement object. This data can come from a
database, a file, or
memory.

Bug?

Kevin




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: How to fill the WOLips binding validation rules?

2008-06-25 Thread Ren, Kevin
thanks, david,
 
i did try that, but didn't work.
.* and .*.DisplayGroup\.selectedObject\..*
 
is that right?
 
kevin
 

  _  

From: David Holt [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 26 June 2008 2:05 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: How to fill the WOLips binding validation rules?


Hi Kevin 

The component regex needs to be .*
The Valid Binding Regex is what is typed below (there are two separate
entries).

David


On 25-Jun-08, at 6:37 PM, Ren, Kevin wrote:


Hi, 


I did search in the list: 
"WODisplayGroup bindings aren't complete for selectedObject or
masterObject " 

Chuck mentioned: 
Go to the WOLips binding validation rules preferences and tell
it to not validate key paths with displayGroup.selectedObject in them.

And David Holt said: 
.*.DisplayGroup\.selectedObject\..*
.*.DisplayGroup\.masterObject\..* 


But in the WOlips - "Binding Validation Rules", there are two
fields: 
Component Regx and Valid Binding Regex, 

What value should be there for this WODisplayGroup bindings, 


Thanks 


kevin 







 

"This communication is confidential and may contain privileged
and/or copyright material. If you are not the intended recipient you
must not use, disclose, copy or retain it. If you have received it in
error please immediately notify me by return email, delete the emails
and destroy any hard copies. ANZ National Bank Limited does not
guarantee the integrity of this communication, or that it is free from
errors, viruses or interference."

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

This email sent to [EMAIL PROTECTED]



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

How to fill the WOLips binding validation rules?

2008-06-25 Thread Ren, Kevin
Hi,


I did search in the list:
"WODisplayGroup bindings aren't complete for selectedObject or
masterObject "

Chuck mentioned:
Go to the WOLips binding validation rules preferences and tell it to not
validate key paths with displayGroup.selectedObject in them.

And David Holt said:
.*.DisplayGroup\.selectedObject\..* 
.*.DisplayGroup\.masterObject\..* 


But in the WOlips - "Binding Validation Rules", there are two fields:
Component Regx and Valid Binding Regex,

What value should be there for this WODisplayGroup bindings,


Thanks


kevin

 




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

FW: Entity Modeller == EOModeler?- vertical inheritance(solved?)

2008-06-22 Thread Ren, Kevin
Sorry, failed. Only can delete.

I remembered it's succeed. Maybe I did too much change, so forgot make
clean build.

I gave up,

"Vertical is the least efficient and the least used hence has a higher
probability of bugs." 

Thanks

Kevin

> __ 
> From: Ren, Kevin  
> Sent: Monday, 23 June 2008 12:03 p.m.
> To:   'webobjects-dev@lists.apple.com'
> Subject:  Entity Modeller == EOModeler?- vertical
> inheritance(solved?)
> 
> Hi,
> 
> Problem solved for this, but not sure for all "vertical inheritance".
> 
> What I done 
> 1. ALTER TABLE EMPLOYEE ADD CONSTRAINT EMPLOYEE_ADDRESS_FK FOREIGN KEY
> (ADDRESS_ID) REFERENCES ADDRESS (ADDRESS_ID);
> 2. ALTER TABLE WORK_ADDRESS ADD CONSTRAINT WORK_ADDRESS_ADDRESS_FK
> FOREIGN KEY (ADDRESS_ID) REFERENCES ADDRESS (ADDRESS_ID);
> 
> After this I can insert and delete Teacher with workAddress.
> 
> Maybe just one scenario for "vertical inheritance", because I found in
> the list:
> Chuck's comment of "Vertical is the least efficient and the least used
> hence has a higher probability of bugs." 
> 
> Hopeful that's all "vertical inheritance".
> 
> Thanks
> 
> Kevin
> 
> 
> 
> 
> 
> 
> 
> My question is coming from "SQL generation" in Entity Modeler. 
> When I am playing the code with
> Apple/example/SophisticatedDatabaseExample.
> 
> Copied from README:
> The SophisticatedDatabaseExample demonstrates the use of inheritance,
> flattening, and multiple models.
> 
> The Person class is abstract. Student, Parent and Employee inherit
> from Person using horizontal inheritance. 
> The Admin,Staff, Teacher classes all inherit from Employee using
> single-table inheritance. 
> The HomeAddress, WorkAddress, and BillingAddress inherit from Address
> using vertical inheritance.
> 
> The relationship between Student and ScheduledCourse is an example of
> a many-to-many "flattened" relationship. The normal indirect "join"
> table values are extracted into each side of the relationship, giving
> the appearance of a direct many-to-many relationship between
> entities(classes). This relationship is interesting because Student is
> an entity in the School model but ScheduledClass is an entity in the
> Course model. 
> 

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Entity Modeller == EOModeler?- vertical inheritance(solved?)

2008-06-22 Thread Ren, Kevin
Hi,

Problem solved for this, but not sure for all "vertical inheritance".

What I done 
1. ALTER TABLE EMPLOYEE ADD CONSTRAINT EMPLOYEE_ADDRESS_FK FOREIGN KEY
(ADDRESS_ID) REFERENCES ADDRESS (ADDRESS_ID);
2. ALTER TABLE WORK_ADDRESS ADD CONSTRAINT WORK_ADDRESS_ADDRESS_FK
FOREIGN KEY (ADDRESS_ID) REFERENCES ADDRESS (ADDRESS_ID);

After this I can insert and delete Teacher with workAddress.

Maybe just one scenario for "vertical inheritance", because I found in
the list:
Chuck's comment of "Vertical is the least efficient and the least used
hence has a higher probability of bugs." 

Hopeful that's all "vertical inheritance".

Thanks

Kevin







My question is coming from "SQL generation" in Entity Modeler. 
When I am playing the code with
Apple/example/SophisticatedDatabaseExample.

Copied from README:
The SophisticatedDatabaseExample demonstrates the use of inheritance,
flattening, and multiple models.

The Person class is abstract. Student, Parent and Employee inherit from
Person using horizontal inheritance. 
The Admin,Staff, Teacher classes all inherit from Employee using
single-table inheritance. 
The HomeAddress, WorkAddress, and BillingAddress inherit from Address
using vertical inheritance.

The relationship between Student and ScheduledCourse is an example of a
many-to-many "flattened" relationship. The normal indirect "join" table
values are extracted into each side of the relationship, giving the
appearance of a direct many-to-many relationship between
entities(classes). This relationship is interesting because Student is
an entity in the School model but ScheduledClass is an entity in the
Course model. 


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Entity Modeller == EOModeler?

2008-06-19 Thread Ren, Kevin
OK, I understand that, thanks, ray.
I am using mySQL, not derby by default.
I have to manually add constraints by myself. 
 
In the example, 
The HomeAddress, WorkAddress, and BillingAddress inherit from Address
using vertical inheritance. 
1.How to write foreign key constraints for them?
 
Teacher/Employee has workAddress
2. Is there foreign key constraints between Employee and Address or
workaddress?
 
I added constraints for EMPLOYEE_ADDRESS, broken the insertion when i
create new teacher with workaddress.
Deleted this constraints OR add constraints EMPLOYEE_WORKADDRESS, insert
succeed, 
but broken the code EOUtilities.objectsForEntityNamed(ec, "Teacher");
after restart app.
 
error message:
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: The object with globalID
_EOIntegralKeyGlobalID[Address (java.lang.Integer)49] could not be found
in the database. This could be result of a referential integrity problem
with the database. An empty fault could not be created because the
object's class could not be determined (e.g. the GID is temporary or it
is for an abstract entity).
 
 
how to fix it? thanks,
 
kevin


On Jun 18, 2008, at 7:33 PM, Ren, Kevin wrote:



Hi, 

My question is coming from "SQL generation" in Entity Modeler. 
When I am playing the code with
Apple/example/SophisticatedDatabaseExample.

Both EOModeler and Entity Modeler take the approach that they are
speaking JDBC, not any database-specific SQL. There are, of course,
plugins that can make the behavior of any of the EOAdaptors more
sophisticated. I do not think that Entity Modeler promises to do
everything it could do to create the optimal SQL for any particular
database and schema.

A couple of things. If you know what you want, you can probably add the
proper constraints yourself. EOF's primary job is to give you an object
graph, not to do database design.

Also, if you want to suggest changes to any of the plugins in PWO, you
could. The new SQL implemented there would have to not break anyone
else.

I would also ask if all the complexity allowed in your database needs to
have a place in the model. A model provides an abstraction. Perhaps the
model could be kept simpler for greater flexibility in the future.

But then again, EOF and Entity Modeler could always do better. Sometimes
the tools just really do the most minimal job and more could be done.

cheers - ray




Copied from README: 
The SophisticatedDatabaseExample demonstrates the use of
inheritance, flattening, and multiple models. 

The Person class is abstract. Student, Parent and Employee
inherit from Person using horizontal inheritance. 
The Admin,Staff, Teacher classes all inherit from Employee using
single-table inheritance. 
The HomeAddress, WorkAddress, and BillingAddress inherit from
Address using vertical inheritance. 

The relationship between Student and ScheduledCourse is an
example of a many-to-many "flattened" relationship. The normal indirect
"join" table values are extracted into each side of the relationship,
giving the appearance of a direct many-to-many relationship between
entities(classes). This relationship is interesting because Student is
an entity in the School model but ScheduledClass is an entity in the
Course model. 

When I tried to create foreign key constraints using "Generate
SQL", I only got some constraints, not all of them. 
All I got from two models: 
ALTER TABLE SCHEDULED_CLASS ADD CONSTRAINT
SCHEDULED_CLASS_SCHEDULE_FK FOREIGN KEY (SCHEDULE_ID) REFERENCES
SCHEDULE (SCHEDULE_ID);

ALTER TABLE SCHEDULED_CLASS ADD CONSTRAINT
SCHEDULED_CLASS_COURSE_FK FOREIGN KEY (COURSE_ID) REFERENCES COURSE
(COURSE_ID);

ALTER TABLE SCHEDULED_CLASS ADD CONSTRAINT
SCHEDULED_CLASS_CLASSROOM_FK FOREIGN KEY (CLASSROOM_ID) REFERENCES
CLASSROOM (CLASSROOM_ID);



ALTER TABLE STUDENTPARENT ADD CONSTRAINT
STUDENTPARENT_STUDENT_FK FOREIGN KEY (PARENT_ID) REFERENCES STUDENT
(PERSON_ID);

ALTER TABLE STUDENTPARENT ADD CONSTRAINT STUDENTPARENT_PARENT_FK
FOREIGN KEY (PARENT_ID) REFERENCES PARENT (PERSON_ID); 

ALTER TABLE STUDENT_SCHEDULED_CLASS ADD CONSTRAINT
STUDENT_SCHEDULED_CLASS_STUDENT_FK FOREIGN KEY (STUDENT_ID) REFERENCES
STUDENT (PERSON_ID);

I think some foreign key constraints are missing, like 
SCHEDULED_CLASS and TEACHER(EMPLOYEE), EMPLOYEE and ADDRESS,
STUDENT and STUDENT_SCHEDULED_CLASS . 

Is it bug in Entity Modeler or somewhere couldn't figure out the
horizontal/vertical  inheritance in the model? 


Thanks 

Kevin 





 

"This communication is confidential and may contain privileged
and/or copyright material. If you are not the intended recipient you
must not use, disclose, copy or retain it. If you have received it in
err

Entity Modeller == EOModeler?

2008-06-18 Thread Ren, Kevin

Hi,

My question is coming from "SQL generation" in Entity Modeler. 
When I am playing the code with
Apple/example/SophisticatedDatabaseExample.

Copied from README:
The SophisticatedDatabaseExample demonstrates the use of inheritance,
flattening, and multiple models.

The Person class is abstract. Student, Parent and Employee inherit from
Person using horizontal inheritance. 
The Admin,Staff, Teacher classes all inherit from Employee using
single-table inheritance. 
The HomeAddress, WorkAddress, and BillingAddress inherit from Address
using vertical inheritance.

The relationship between Student and ScheduledCourse is an example of a
many-to-many "flattened" relationship. The normal indirect "join" table
values are extracted into each side of the relationship, giving the
appearance of a direct many-to-many relationship between
entities(classes). This relationship is interesting because Student is
an entity in the School model but ScheduledClass is an entity in the
Course model. 

When I tried to create foreign key constraints using "Generate SQL", I
only got some constraints, not all of them.
All I got from two models:
ALTER TABLE SCHEDULED_CLASS ADD CONSTRAINT SCHEDULED_CLASS_SCHEDULE_FK
FOREIGN KEY (SCHEDULE_ID) REFERENCES SCHEDULE (SCHEDULE_ID);

ALTER TABLE SCHEDULED_CLASS ADD CONSTRAINT SCHEDULED_CLASS_COURSE_FK
FOREIGN KEY (COURSE_ID) REFERENCES COURSE (COURSE_ID);

ALTER TABLE SCHEDULED_CLASS ADD CONSTRAINT SCHEDULED_CLASS_CLASSROOM_FK
FOREIGN KEY (CLASSROOM_ID) REFERENCES CLASSROOM (CLASSROOM_ID);



ALTER TABLE STUDENTPARENT ADD CONSTRAINT STUDENTPARENT_STUDENT_FK
FOREIGN KEY (PARENT_ID) REFERENCES STUDENT (PERSON_ID);

ALTER TABLE STUDENTPARENT ADD CONSTRAINT STUDENTPARENT_PARENT_FK FOREIGN
KEY (PARENT_ID) REFERENCES PARENT (PERSON_ID);

ALTER TABLE STUDENT_SCHEDULED_CLASS ADD CONSTRAINT
STUDENT_SCHEDULED_CLASS_STUDENT_FK FOREIGN KEY (STUDENT_ID) REFERENCES
STUDENT (PERSON_ID);

I think some foreign key constraints are missing, like
SCHEDULED_CLASS and TEACHER(EMPLOYEE), EMPLOYEE and ADDRESS, STUDENT and
STUDENT_SCHEDULED_CLASS .

Is it bug in Entity Modeler or somewhere couldn't figure out the
horizontal/vertical  inheritance in the model?


Thanks

Kevin




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Question about create/modify Relationship in Entity Modeller

2008-06-12 Thread Ren, Kevin
Hi,

Not sure is this a bug or what I setup is wrong.

There are two models in my Resource dir, when I create relationship
between two entities in these two models, no problem.
I can see the two models in the drop down list.

But after I created relationship, I click the relationship, the details
display in the Properties in the left, but the Model and Destination in
the Basic tab are not editable.

I have to create new relationship.

thanks


Kevin


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Install WO 5.3/WOLips on Ubuntu

2008-05-27 Thread Ren, Kevin
 Hi,

1. install java-1.5-sun and in eclipse->Preferences->java->installed
JREs-> select java-1.5-sun not java-1.5.0-gcj-4.2 coming with Ubuntu.
2. should be wobuild.properties

>   at java.lang.Class.initializeClass(libgcj.so.81)
I think it's using java-1.5.0-gcj-4.2 

Good luck,
kevin

-Original Message-
From: Qi Yang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 28 May 2008 10:33 a.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Install WO 5.3/WOLips on Ubuntu

Hi Kevin,

Thanks for the reply, I came across your mails in the mailing list
before, I do have java 1.5, and my wobuild.properties is setup right as
far as I can tell... is it suppose to be named build.properties instead?
Oh and I didn't really bother to put link to API reference docs in
proper place, thinking it won't matter...

Do you have other resources/links to troubleshoot this? if you don't
remember what exactly you did to fix it?

I'll try to verify everything and get back...

Thanks again,

Qi

On 27-May-08, at 4:45 PM, Ren, Kevin wrote:

> Hi,
>
> I got this before,but couldn't remember how to fix it.
> 1. check your java version, should be sun-java 1.5, not java coming 
> with ubuntu.
> 2. build.properties
>
> wo.wosystemroot=/home/xiaowen/Apple/System
> wo.wolocalroot=/home/xiaowen/Apple
> wo.woroot=/home/xiaowen/Apple
> wo.dir.reference.api=/home/xiaowen/Apple/Developer/Documentation/
> DocSets
> /com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/
> Res
> ources/Documents/reference/
>
>
> Give a try, good luck
>
> kevin
>
>
> -Original Message-
> Behalf Of Qi Yang
> Sent: Wednesday, 28 May 2008 7:51 a.m.
> Subject: Install WO 5.3/WOLips on Ubuntu
>
> Hi all,
> I'm trying to set up a WO build environment on Ubuntu 8.04 with  
> WO5.3. I
> tried following guides from http://wiki.objectstyle.org/confluence/
> and mostly:
> http://wiki.objectstyle.org/confluence/display/WOL/Usage+for+Other 
> +*NIX
>
> however, after I installed eclipse + WOLips, copied the frameworks in
> place and fixed wobuild.properties, I can't correctly build even a
> default sample project from WOLips. First the build path is  
> incomplete,
> WOLips only sees a subset of all the frameworks in
> .../System/Library/Frameworks. There are more than 20, but WOLips only
> sees about 8.
>
> So to resolve the reference problems I added the other jars I can  
> see in
> System/Library/Frameworks and Library/WebObjects/Lib manually through
> adding external JAR. Then I no longer have build path problem or
> reference error, but when I try to build the project in Eclipse I  
> always
> get the following exception:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com.webobjects.foundation.NSTimeZone
>   at java.lang.Class.initializeClass(libgcj.so.81)
>   at com.webobjects.foundation.NSLog
> $PrintStreamLogger.(NSLog.java:1643)
> [...]
>   at
> com.webobjects.foundation._NSUtilities.(_NSUtilities.java:154)
> [...]
>   at
> com.webobjects.appserver.WOApplication.(WOApplication.java: 
> 165)
> [...]
> From some googling this seem occured before on other people's ubuntu
> setup, but I have yet to find any solution for this. What am I doing
> wrong here? or has any one else got WO5.3 + WOLips working on ubuntu
> 8.04?
>
> I'll really appreciate any input, thank you for your time,
>
> Qi
>
> This email sent to [EMAIL PROTECTED]
>
> "This communication is confidential and may contain privileged and/ 
> or copyright material. If you are not the intended recipient you  
> must not use, disclose, copy or retain it. If you have received it  
> in error please immediately notify me by return email, delete the  
> emails and destroy any hard copies. ANZ National Bank Limited does  
> not guarantee the integrity of this communication, or that it is  
> free from errors, viruses or interference."



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Question about missing close tag

2008-04-29 Thread Ren, Kevin
Hi,

I tried to play some example code from WODER and somewhere else, and got
lots of error about this missing close tag.

Like this



How could I turn off this checking in Eclips/WOlips?

thanks


Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
> Phone: 04 4944174
Fax: 04 8028696




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Simple WOLipseTest app error?

2008-03-24 Thread Ren, Kevin

Hi,

WO54/Eclipse/WOlips

When I run WOLipsTest following tutorial, I got error message 
Exception in thread "main" java.lang.NoClassDefFoundError:
com/webobjects/eocontrol/EOEventCenter$EventRecordingHandler

Any one know what's problem?

Thanks


Kevin




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Build Path question on WO54/WOLips/Eclipse

2008-03-24 Thread Ren, Kevin
Hi,

I just reinstalled everything WO54/WOlips/Eclipse on my Ubuntu7.10. got
two questions.
My understanding in WO54, Library folder is mixed with old Local folder.
So not necessary to create Local folder.
So question 1: What's different between Library and System/Library?

In the Eclipse, I couldn't build my first app and I found libraries not
in the path. Add them...
Yes, Build path ->Libraries -> Add Library ->WebObjects Frameworks
->Next ->
Question 2: I got three options here, User Home(Empty), Local (Empty)
and System with some frameworks from /Library/Frameworks rather than
System/Library/frameworks. Is it bug or I can add new options/framework
in here?

Thanks


Kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Questions after new install WO541{SOLVED?}

2008-03-19 Thread Ren, Kevin
That's the buildpath problem.

I "Add External JARs" from /home/xiaowen/Apple/Library/WebObjects/lib 
Problem fixed.

In WO5.3 these are list under Libraries->WebObjects Frameworks, but now
it's nothing there.

So is there any problem with new wobuild.properties from WOLips

Thanks

Kevin



-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 20 March 2008 3:21 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Questions after new install WO541


On Mar 19, 2008, at 7:14 PM, Ren, Kevin wrote:
>
> Hi,
>
> After I installed WO5.4.1 on Ubuntu, I got some questions. Not sure my

> missing something or ...
>
> I copy/past Developer, Library and System folders to my home dir, like

> /home/kevin/Apple Install WOlips following the Tutorial in 
> objectstyle.org website.
> All good and I created new App called WOLipsTest,
>
> But when I open project, Couldn't compile , sounds like not find some 
> javafoundation class
>
> Questions:
> 1. if only talking about development, do I need to create/build 
> WOAdaptor for WO541 and Apache2.2,  and start Apache2?
>

Not if you are only using direct connect or if you are deploying as a  
servlet.


>
> 2. remember Eclipse/WOlips created /Library/wobuild.properties file,  
> this time when I open it
> I only got
> wo.wosystemroot=/home/xiaowen/Apple
> wo.wolocalroot=/home/xiaowen/Apple/Local
> wo.woroot=/home/xiaowen/Apple
> wo.dir.reference.api=/home/xiaowen/Apple/Developer/Documentation/ 
> WebObjects/Reference/API/
>
>
>
Above you said /home/kevin.  These need to match where you copied the  
files.



> Where is wo.dir Stuff, do we need that or not in WO541?
>
That file is correct.  WOLips has been cleaned up.

Chuck


-- 

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.
http://www.global-village.net/products/practical_webobjects







"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


java.lang.NoClassDefFoundError: com.webobjects.foundation.NSTimeZone

2008-03-19 Thread Ren, Kevin

Hi, 

I want to test my new installed WO541/WOLips, so following the tutorial
created project and component with NSTimestamp.

In HTML




In WOD
ApplicationName : WOString {
value = application.name;
}

Now : WOString {
value = now;
dateformat = "%m/%d/%y";
}

Greeting : MyComponent {

}

In Java
public NSTimestamp now(){
return new
NSTimestamp(2008,1,1,1,0,0,NSTimeZone.getDefault());
}
OR
public NSTimestamp now(){
return new NSTimestamp();
}

When I run app, got error
Exception in thread "main" java.lang.NoClassDefFoundError:
com.webobjects.foundation.NSTimeZone
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.foundation.NSTimestamp.(NSTimestamp.java:1481)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.foundation.NSLog$PrintStreamLogger.(NSLog.java:1917
)
   at com.webobjects.foundation.NSLog.(NSLog.java:670)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.foundation._NSUtilities.(_NSUtilities.java:196)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at
com.webobjects.appserver.WOApplication.(WOApplication.java:322)
   at java.lang.Class.initializeClass(libgcj.so.81)
   at java.lang.Class.initializeClass(libgcj.so.81)


Anyone know what's problem?

Thanks

kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Questions after new install WO541

2008-03-19 Thread Ren, Kevin

Hi,

After I installed WO5.4.1 on Ubuntu, I got some questions. Not sure my
missing something or ...

I copy/past Developer, Library and System folders to my home dir, like
/home/kevin/Apple
Install WOlips following the Tutorial in objectstyle.org website.
All good and I created new App called WOLipsTest, 

But when I open project, Couldn't compile , sounds like not find some
javafoundation class

Questions:
1. if only talking about development, do I need to create/build
WOAdaptor for WO541 and Apache2.2,  and start Apache2?
2. remember Eclipse/WOlips created /Library/wobuild.properties file,
this time when I open it 
I only got
wo.wosystemroot=/home/xiaowen/Apple
wo.wolocalroot=/home/xiaowen/Apple/Local
wo.woroot=/home/xiaowen/Apple
wo.dir.reference.api=/home/xiaowen/Apple/Developer/Documentation/WebObje
cts/Reference/API/

Where is wo.dir Stuff, do we need that or not in WO541?


Thanks

kevin



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Question about WODirectConnectEnabled=false/true

2008-01-06 Thread Ren, Kevin

HI,
What's different about set WODirectConnectEnabled=false/true?
I deploy my WOHelloworld app in development mode after succeed build.

1. WODirectConnectEnabled=true

[2008-01-04 15:52:01 NZDT] 
WOUserDirectory=/home/kevin/workspace/WOHelloWorld/build/WOHelloWorld.wo
a
[2008-01-04 15:52:01 NZDT]  WODisplayExceptionPages=true
[2008-01-04 15:52:01 NZDT]  
[2008-01-04 15:52:01 NZDT]  Created adaptor of class
WODefaultAdaptor on port 53019 and address kevin-desktop/127.0.0.1 with
WOWorkerThread minimum of 16 and maximum of 256
[2008-01-04 15:52:01 NZDT]  NSBundle is unable to find
"ExtensionsForResources.plist" in the main bundle.  Ignoring optional
configuration file.
[2008-01-04 15:52:01 NZDT]  *** The application has found the
following opened, development-mode ProjectBuilderWO projects:
()
[2008-01-04 15:52:01 NZDT]  Application project found: Will locate
resources in '/home/kevin/workspace/WOHelloWorld' rather than
'/home/kevin/workspace/WOHelloWorld/build/WOHelloWorld.woa' .
[2008-01-04 15:52:01 NZDT]  Creating LifebeatThread now with:
WOHelloWorld 53019 kevin-desktop/127.0.0.1 1085 3
Welcome to WOHelloWorld !
[2008-01-04 15:52:01 NZDT]  The URL for webserver connect is:
http://127.0.0.1/cgi-bin/WebObjects/WOHelloWorld.woa/-53019
The URL for direct connect is:
http://127.0.0.1:53019/cgi-bin/WebObjects/WOHelloWorld.woa
[2008-01-04 15:52:01 NZDT]  null
[2008-01-04 15:52:01 NZDT]  Waiting for requests...

The second link works for me
http://127.0.0.1:53019/cgi-bin/WebObjects/WOHelloWorld.woa
But the first one
http://127.0.0.1/cgi-bin/WebObjects/WOHelloWorld.woa/-53019 changed to 
https://127.0.0.1/cgi-bin/WebObjects/WOHelloWorld.woa/-53019 in my
broswer,because I use SSL with apache
And gave me message:

The requested application was not found on this server.

2. WODirectConnectEnabled=false
I only got http://127.0.0.1/cgi-bin/WebObjects/WOHelloWorld.woa/-53019
link, changed to https:// with the same error message:

The requested application was not found on this server.


3. Apache not setup correct? Or I need setup some other parameters for
deploy.

Thanks


kevin



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

WOComponent editor not display correct WO components

2008-01-06 Thread Ren, Kevin

Hi,

This is happened after I create lproj folder under Components folder.
Like
 
Components
--Chinese.lproj
--English.lproj
--German.lproj


I created new folders under components like English.lproj and German.lproj. 
then created new main.wo and Hello.wo under theses new folders.
 
But when I double click the same component Main.wo under the different lproj 
folders, Eclipse/WOComponents Editor always display the  bottom one under the 
Components dir .
I closed all of components and click again. and the same result, only open  the 
 bottom one under the Components dir . 
 
It's always open Main.wo or Hello.wo under German.lproj, even the highlight is 
still on the correct main.wo, hello.wo component node.
 sounds like cached somewhere in Eclipse/Wolips.
 
Is this bug in WOlips or I couldn't create component with the same name in 
different folders? Or i need setup some preference to clear some cached 
component?
 
thanks
 
Kevin


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: How to create lproj in Eclipse/WOLips for HelloWorld

2008-01-03 Thread Ren, Kevin
Thanks Uli, couldn't see your picture, but never mind.
I created folders under components like English.lproj and German.lproj. then 
create new main.wo and Hello.wo under theses new folders.
 
But when I double click the same component Main.wo under the different folders, 
Eclipse/WOComponents Editor always display the  bottom one under the Components 
dir .
I closed all of components and click again. and the same result, only open  the 
 bottom one under the Components dir . 
 
Like
 
Components
--Chinese.lproj
--English.lproj
--German.lproj
 
It's always open Main.wo or Hello.wo under German.lproj, even the highlight is 
on the English or Chinese main.wo, hello.wo
 sounds like cached somewhere in Eclipse/Wolips.
 
Is this bug in WOlips or I couldn't create component with the same name in 
different folder? Or i need setup some preference to clear some cached 
component?
 
thanks
 
Kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Simple HelloWorld example app question

2008-01-03 Thread Ren, Kevin
 
Problem solved by manually create everything from scratch rather than
copy/past existing html, wod code from Examples dir.

Thanks,

kevin 
-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 3 January 2008 3:15 p.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Simple HelloWorld example app question


On Jan 2, 2008, at 6:03 PM, Ren, Kevin wrote:
> 
>

> [2008-01-03 14:46:42 NZDT]  Waiting for requests...
>
> Everything is fine, after app is deploied. If I did not setup 
>   in hello.html I can see the 
> first page.
>
> But if I setup myForm tag, after I copy/past the URL to browser I got 
> error, detail like below.
>
> [2008-01-03 14:46:49 NZDT] 
> :  
> Exception occurred while handling request:
>
> com.webobjects.foundation.NSForwardException
> [com.webobjects.appserver._private.WODeclarationFormatException]
>  no declaration for dynamic element (or
> component) named myForm:  
>  parsing template for Component : 'file:/home/kevin/Apple/Local/ 
> Library/WebObjects/Applications/HelloWorld.woa/Contents/Resources/
> English.lproj/Main.wo/':
>
> com.webobjects.appserver._private.WODeclarationFormatException:  
>  no declaration for dynamic element (or
> component) named myForm
>
> [2008-01-03 14:46:49 NZDT]  
> com.webobjects.foundation.NSForwardException for
> com.webobjects.appserver._private.WODeclarationFormatException:  
>  no declaration for dynamic element (or
> component) named myForm
>
> Do I need give some values for WOForm in WO5.3?
>
Yes, if you are using that syntax in the HTML file.

> I just gave empty in the code like
> myForm:WOForm{
> }
>
> The same result in the development-mode which is I setup in Ubuntu, do

> I lost some framework?
>
No.  It sounds like you are have a difference in case (MyForm vs
myForm), or you are adding this to the wrong .wod file.  It needs to go
in Resources/English.lproj/Main.wo/Main.wod

Chuck


-- 

Practical WebObjects - for developers who want to increase their overall
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Simple HelloWorld example app question

2008-01-02 Thread Ren, Kevin
Hi, 

I just create simple Helloworld app and copy/past most code from Example
dir, and only one English.lproj folder under components.
Deploy on Ubuntu linux:

[EMAIL PROTECTED]:~/Apple/Local/Library/WebObjects/Applications/HelloW
orld.woa$ ./HelloWorld -WOPort  &
[1] 32599
[EMAIL PROTECTED]:~/Apple/Local/Library/WebObjects/Applications/HelloW
orld.woa$ Reading UNIXClassPath.txt ...
Launching HelloWorld.woa ...
java -DWORootDirectory="/home/kevin/Apple"
-DWOLocalRootDirectory="/home/kevin/Apple/Local"
-DWOUserDirectory="/home/kevin/Apple/Local/Library/WebObjects/Applicatio
ns/HelloWorld.woa" -classpath
"/home/kevin/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa/
Contents/Resources/Java/:/home/kevin/Apple/Local/Library/WebObjects/Appl
ications/HelloWorld.woa/Contents/Resources/Java/helloworld.jar:/home/kev
in/Apple/Library/Frameworks/JavaEOAccess.framework/Resources/Java/javaeo
access.jar:/home/kevin/Apple/Library/Frameworks/JavaEOControl.framework/
Resources/Java/javaeocontrol.jar:/home/kevin/Apple/Library/Frameworks/Ja
vaFoundation.framework/Resources/Java/javafoundation.jar:/home/kevin/App
le/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/javajdbca
daptor.jar:/home/kevin/Apple/Library/Frameworks/JavaWebObjects.framework
/Resources/Java/javawebobjects.jar:/home/kevin/Apple/Library/Frameworks/
JavaXML.framework/Resources/Java/javaxml.jar"
webobjectsexamples.helloworld.Application -WOPort 
[2008-01-03 14:46:42 NZDT]  WOMaxIOBufferSize=8196
[2008-01-03 14:46:42 NZDT]  WOWorkerThreadCountMin=16
[2008-01-03 14:46:42 NZDT]  WOSocketMonitorSleepTime=50
[2008-01-03 14:46:42 NZDT]  WODirectConnectEnabled=true
[2008-01-03 14:46:42 NZDT]  WOIncludeCommentsInResponse=true
[2008-01-03 14:46:42 NZDT]  WOWorkerThreadCount=8
[2008-01-03 14:46:42 NZDT] 
WOAdaptorURL=http://localhost/cgi-bin/WebObjects
[2008-01-03 14:46:42 NZDT]  WODebuggingEnabled=true
[2008-01-03 14:46:42 NZDT]  WOListenQueueSize=128
[2008-01-03 14:46:42 NZDT]  WOMissingResourceSearchEnabled=true
[2008-01-03 14:46:42 NZDT] 
WOSessionStoreClassName=WOServerSessionStore
[2008-01-03 14:46:42 NZDT]  WOContextClassName=WOContext
[2008-01-03 14:46:42 NZDT]  WOCachingEnabled=false
[2008-01-03 14:46:42 NZDT]  WOAcceptMalformedCookies=false
[2008-01-03 14:46:42 NZDT]  NSProjectSearchPath=("..")
[2008-01-03 14:46:42 NZDT]  WOMonitorEnabled=false
[2008-01-03 14:46:42 NZDT]  WOAllowRapidTurnaround=true
[2008-01-03 14:46:42 NZDT]  WORootDirectory=/home/kevin/Apple
[2008-01-03 14:46:42 NZDT] 
WOLocalRootDirectory=/home/kevin/Apple/Local
[2008-01-03 14:46:42 NZDT]  WOGenerateWSDL=true
[2008-01-03 14:46:42 NZDT]  WOWorkerThreadCountMax=256
[2008-01-03 14:46:42 NZDT] 
WOAllowsConcurrentRequestHandling=false
[2008-01-03 14:46:42 NZDT]  WOAdaptor=WODefaultAdaptor
[2008-01-03 14:46:42 NZDT]  WOSessionTimeOut=3600
[2008-01-03 14:46:42 NZDT]  WOMaxSocketIdleTime=18
[2008-01-03 14:46:42 NZDT]  WODefaultUndoStackLimit=10
[2008-01-03 14:46:42 NZDT]  WOAutoOpenClientApplication=true
[2008-01-03 14:46:42 NZDT]  WOAutoOpenInBrowser=true
[2008-01-03 14:46:42 NZDT]  WOApplicationBaseURL=/WebObjects
[2008-01-03 14:46:42 NZDT]  WOMaxHeaders=200
[2008-01-03 14:46:42 NZDT]  WOLifebeatEnabled=true
[2008-01-03 14:46:42 NZDT]  WOAllowsCacheControlHeader=true
[2008-01-03 14:46:42 NZDT]  WOSMTPHost=smtp
[2008-01-03 14:46:42 NZDT] 
WOFrameworksBaseURL=/WebObjects/Frameworks
[2008-01-03 14:46:42 NZDT]  WOStatisticsStoreSessionMax=50
[2008-01-03 14:46:42 NZDT]  WOAdditionalAdaptors=()
[2008-01-03 14:46:42 NZDT]  WOLifebeatDestinationPort=1085
[2008-01-03 14:46:42 NZDT]  WOPort=
[2008-01-03 14:46:42 NZDT]  WOLifebeatInterval=30
[2008-01-03 14:46:42 NZDT]  WOSocketCacheSize=100
[2008-01-03 14:46:42 NZDT] 
WOUserDirectory=/home/kevin/Apple/Local/Library/WebObjects/Applications/
HelloWorld.woa
[2008-01-03 14:46:42 NZDT]  WODisplayExceptionPages=true
[2008-01-03 14:46:42 NZDT]  
[2008-01-03 14:46:42 NZDT]  Created adaptor of class
WODefaultAdaptor on port  and address kevin-desktop/127.0.0.1 with
WOWorkerThread minimum of 16 and maximum of 256
[2008-01-03 14:46:42 NZDT]  NSBundle is unable to find
"ExtensionsForResources.plist" in the main bundle.  Ignoring optional
configuration file.
[2008-01-03 14:46:42 NZDT]  Creating LifebeatThread now with:
HelloWorld  kevin-desktop/127.0.0.1 1085 3
Welcome to HelloWorld !
[2008-01-03 14:46:42 NZDT]  null
[2008-01-03 14:46:42 NZDT]  Your application is not running on a
supported development platform. AutoLaunch will not work.
Your application's URL is:
http://kevin-desktop:/cgi-bin/WebObjects/HelloWorld.woa
[2008-01-03 14:46:42 NZDT]  Waiting for requests...

Everything is fine, after app is deploied. If I did not setup   in hello.html I can see the first page.
But if I setup myForm tag, after I copy/past the URL to browser I got
error, detail like below.

[2008-01-03 14:46:49 NZDT] 
: Exception
occurred while handling request:
com.webobjects.foundation.NSForwardException
[com

How to create lproj in Eclipse/WOLips for HelloWorld

2007-12-27 Thread Ren, Kevin

Hi,

I want to create HelloWorld from scratch from eclipse/Wolips, but the
same functional as Apple example HelloWorld app.

1. created WO Application not D2W application(is that right?) 
2. Main component is created by default in Components dir ??
3. I copied/past the code from Exampl to my new java, like Application,
Session and DirectAction.java

My questions:
1. how to create lproj from Eclipse/WOLips like in Example/HelloWorld
2. if can't how to create multiple (Hello.wo and Main.wo)?

thanks

Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
> Phone: 04 4944174
Fax: 04 8028696




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Error message [Connection reset by peer: Amount read didn't match content-length]

2007-12-27 Thread Ren, Kevin
NO WOFileUPload, just the button to do normal "Search" or Create "NEW"
instance of recipe.

Thanks

Kevin 



-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Friday, 28 December 2007 8:09 a.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Error message [Connection reset by peer: Amount read didn't
match content-length]

Are you using a WOFileUpload on that page?


On Dec 26, 2007, at 6:44 PM, Ren, Kevin wrote:

> Hi, After I manually migrated my existing application from old
> WO5.1 to WO5.3, I could run/start the web application.
>
> I have to moved the EOModel to Resources dir to let the application 
> loading the Eomodel, otherwise broken with DB.
>
> But when I clicked "Search" or  created "NEW" instance I got below 
> error message in WOLips console.
>
> Amount is the attribute of one table, but not sure this "Amount" is my

> column or not. It's declared varchar2 and datatype String.
>
> [2007-12-27 15:30:22 NZDT] 
> :  
> Exception occurred while handling request:
>
> com.webobjects.foundation.NSForwardException [java.io.IOException] 
> Connection reset by peer: Amount read didn't match content-length
>
> [2007-12-27 15:30:22 NZDT]  
> com.webobjects.foundation.NSForwardException for
> java.io.IOException: Connection reset by peer: Amount read didn't 
> match content-length
>
> at
> com.webobjects.appserver._private.WONoCopyPushbackInputStream.read
> (WONoCopyPushbackInputStream.java:175)
> at
> com.webobjects.appserver._private.WOInputStreamData._extractBytesFromI
> nputStream(WOInputStreamData.java:105)
> at
> com.webobjects.appserver._private.WOInputStreamData.bytesNoCopy
> (WOInputStreamData.java:137)
> at com.webobjects.foundation.NSData._bytesNoCopy
> (NSData.java:502)
> at com.webobjects.appserver.WOMessage.contentString
> (WOMessage.java:649)
> at com.webobjects.appserver.WORequest._formDataFromContent
> (WORequest.java:671)
> at
> com.webobjects.appserver.WORequest._getFormValuesFromURLEncoding
> (WORequest.java:1280)
> at com.webobjects.appserver.WORequest.formValues
> (WORequest.java:1390)
> at com.webobjects.appserver.WORequest._hasFormValues
> (WORequest.java:1190)
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
> ithPreparedPage(WOComponentRequestHandler.java:188)
>
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
> ithPreparedSession(WOComponentRequestHandler.java:287)
>
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW
> ithPreparedApplication(WOComponentRequestHandler.java:322)
>
> at
> com.webobjects.appserver._private.WOComponentRequestHandler._handleReq
> uest(WOComponentRequestHandler.java:358)
>
> at
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ
> est(WOComponentRequestHandler.java:432)
>
> at com.webobjects.appserver.WOApplication.dispatchRequest
> (WOApplication.java:1306)
> at com.webobjects.appserver._private.WOWorkerThread.runOnce
> (WOWorkerThread.java:173)
> at com.webobjects.appserver._private.WOWorkerThread.run
> (WOWorkerThread.java:254)
> at java.lang.Thread.run(Thread.java:595)
>
> Any idea?
>
>
> Anyway merry Christmas and happy new year
>
>
>
> Xiaowen(Kevin) Ren
>
> Analyst Programmer
> Channel Applications, Retail Applications ANZ National Bank Ltd Level 
> 6 ASB Tower
> 2 Hunter Street
> PO Box 1791
> Wellington
> Phone: 04 4944174
> Fax: 04 8028696
>
>
>
>
> "This communication is confidential and may contain privileged and/ or

> copyright material. If you are not the intended recipient you must not

> use, disclose, copy or retain it. If you have received it in error 
> please immediately notify me by return email, delete the emails and 
> destroy any hard copies. ANZ National Bank Limited does not guarantee 
> the integrity of this communication, or that it is free from errors, 
> viruses or interference."
>
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%
> 40global-village.net
>
> This email sent to [EMAIL PROTECTED]

-- 

Practical WebObjects - for developers who want to increase their overall
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_we

Error message [Connection reset by peer: Amount read didn't match content-length]

2007-12-26 Thread Ren, Kevin
Hi, After I manually migrated my existing application from old WO5.1 to
WO5.3, I could run/start the web application. 

I have to moved the EOModel to Resources dir to let the application
loading the Eomodel, otherwise broken with DB.

But when I clicked "Search" or  created "NEW" instance I got below error
message in WOLips console.

Amount is the attribute of one table, but not sure this "Amount" is my
column or not. It's declared varchar2 and datatype String.

[2007-12-27 15:30:22 NZDT] 
: Exception
occurred while handling request:
com.webobjects.foundation.NSForwardException [java.io.IOException]
Connection reset by peer: Amount read didn't match content-length
[2007-12-27 15:30:22 NZDT] 
com.webobjects.foundation.NSForwardException for java.io.IOException:
Connection reset by peer: Amount read didn't match content-length
at
com.webobjects.appserver._private.WONoCopyPushbackInputStream.read(WONoC
opyPushbackInputStream.java:175)
at
com.webobjects.appserver._private.WOInputStreamData._extractBytesFromInp
utStream(WOInputStreamData.java:105)
at
com.webobjects.appserver._private.WOInputStreamData.bytesNoCopy(WOInputS
treamData.java:137)
at
com.webobjects.foundation.NSData._bytesNoCopy(NSData.java:502)
at
com.webobjects.appserver.WOMessage.contentString(WOMessage.java:649)
at
com.webobjects.appserver.WORequest._formDataFromContent(WORequest.java:6
71)
at
com.webobjects.appserver.WORequest._getFormValuesFromURLEncoding(WOReque
st.java:1280)
at
com.webobjects.appserver.WORequest.formValues(WORequest.java:1390)
at
com.webobjects.appserver.WORequest._hasFormValues(WORequest.java:1190)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedPage(WOComponentRequestHandler.java:188)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedSession(WOComponentRequestHandler.java:287)
at
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit
hPreparedApplication(WOComponentRequestHandler.java:322)
at
com.webobjects.appserver._private.WOComponentRequestHandler._handleReque
st(WOComponentRequestHandler.java:358)
at
com.webobjects.appserver._private.WOComponentRequestHandler.handleReques
t(WOComponentRequestHandler.java:432)
at
com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav
a:1306)
at
com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.
java:173)
at
com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java
:254)
at java.lang.Thread.run(Thread.java:595)

Any idea?


Anyway merry Christmas and happy new year



Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
> Phone: 04 4944174
Fax: 04 8028696




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Where is the best dir to put my jdbc.jar?

2007-12-20 Thread Ren, Kevin

First all I am running in Ubuntu with Wo5.3.
I put my jdbc.jar to   /usr/lib/jvm/java-1.5.0-sun/jre/lib/ext, because
it's easy to test after install app.

Build succeed, even before I put jdbc.jar to that folder. Is that OK? I
just wondering why Eomodeler not check jdbc.jar over there.

When I run the app, I could get my first website page. 
But after I clicked button try to retrieve data from DB, I got error
message:



Application: RecipeSite
Error: com.webobjects.foundation.NSForwardException exception
Reason:
com.webobjects.foundation.NSForwardException
[java.lang.IllegalArgumentException] There is no model containing entity
'Recipe' in the default model group. Unable to create
EODatabaseDataSource.


What's that mean?do I need setup something in eomodeler?
Thanks

kevin





-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Friday, 21 December 2007 11:45 a.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Where is the best dir to put my jdbc.jar?

JDBC drivers should go in the Java Extensions directory.  The exact
directory depends on the OS.

On Dec 20, 2007, at 2:31 PM, Ren, Kevin wrote:

>
> /Library/java/Extentions/
>
That one on OS X

> /Library/Webobjects/Extentsions
>
Not there.

> My jvm dir like
> /usr/lib/jvm/java-1.5.0-sun/ext
> /usr/lib/jvm/java-1.5.0-sun/jre/lib/ext
>
Probably the second one, it really depends on what you use to launch the
app.

Chuck

-- 

Practical WebObjects - for developers who want to increase their overall
knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Where is the best dir to put my jdbc.jar?

2007-12-20 Thread Ren, Kevin

/Library/java/Extentions/
/Library/Webobjects/Extentsions

My jvm dir like
/usr/lib/jvm/java-1.5.0-sun/ext
/usr/lib/jvm/java-1.5.0-sun/jre/lib/ext


So many choices, which one is best for dev or deploy?

thanks

Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
> Phone: 04 4944174
Fax: 04 8028696




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Velocity EOGenerator create package problem

2007-12-20 Thread Ren, Kevin
That's working perfect. thanks, Mike.
 
Could I see these templates in built-in package?I couldn't find it.
Otherwise I have to download latest version from somewhere, because I
may change a little bit in templates.
 
thanks
 
Kevin

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
om] On Behalf Of Mike Schrag
Sent: Thursday, 20 December 2007 5:17 p.m.
To: WebObjects (Group)
Subject: Re: Velocity EOGenerator create package problem



 templates download from
http://webobjects.mdimension.com/wolips/EOGenerator/Velocity%20EOGenerat
or%20Templates/
 

These were the original samples, but there are actually built-in
templates (newer versions of these) ... To get started, you should not
actually need the templates from the mdimension.com site and you can try
the ones that are built-in.  In particular, the Entity.java template is
probably different in that the definition of the class changed to
"extends ${prefixClassNameWithOptionalPackage}" which I give 97.2% odds
that this does not match what is in the templates from that example.

ms

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Velocity EOGenerator create package problem

2007-12-19 Thread Ren, Kevin
from i understood today:
I have to put the whole class name in eomodel like recipe.eo.Recipe
instead of just recipe. is that right?
 
Now i clean my old recipe/eo folder. sorry make confused i have one
Recipe table/class and use package name recipe as well.
 
built with superclass package=base, then I got two folders/packages. one
recipe.eo and recipe.eo.base.
 


1)  When you say you "from recipe.eo package could not access
recipe.eo.base package", I'm not sure what this means.  EXACTLY what
error are you getting. 
 
for example in my Ingredient class:
public class Ingredient extends _Ingredient{
 
}
error message: "_Ingredient class cannot be resolved to a type"
because it's sit in recipe.eo.base folder/package.
 
2) If your underscore file is generating a package name that is wrong,
then your templates are wrong.  Either you are overriding the default
templates that are inside of WOLips with your own that are old and
wrong, or you are not up-to-date on your WOlips. 
 
 templates download from
http://webobjects.mdimension.com/wolips/EOGenerator/Velocity%20EOGenerat
or%20Templates/
 
 
in the templates they are same as 

#if ($entity.packageName)
package $entity.packageName;

#end

WOlips version is 3.3.4750

 thanks
 
kevin 

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Migration code to Eclips/Wolips question

2007-12-19 Thread Ren, Kevin
 thank you guys, but my code is older than Xcode.
I have to manually migrate them,because I am working on Ubuntu not mac.

One more question about WOdisplayGroup.

In my java code, I have
Public WODisplayGroup recipeDisplayGroup;

In wod file
RecipeName:WOTextField{
value= recipeDisplayGroup.selectedObject.recipeName;
}
The recipeName is the attribute in Recipe table/class.

In woo file:
{
"WebObjects Release" = "WebObjects 5.0"; 
encoding = NSUTF8StringEncoding; 
variables = {
recipeDisplayGroup = {
class = WODisplayGroup; 
dataSource = {
class = EODatabaseDataSource; 
editingContext = "session.defaultEditingContext"; 
fetchSpecification = {
class = EOFetchSpecification; 
entityName = Recipe; 
prefetchingRelationshipKeyPaths = (); 
}; 
}; 
fetchesOnLoad = NO; 
formatForLikeQualifier = "*%@"; 
numberOfObjectsPerBatch = 0; 
selectsFirstObjectAfterFetch = YES; 
}; 
}; 
}

I got error message:

There is no key 'recipeName' for the keypath 
'recipeDisplayGroup.selectedObject' in RecipeEditor_C

So I selected "Has detail data source" woo file changed to 
{
"WebObjects Release" = "WebObjects 5.0"; 
encoding = NSUTF8StringEncoding; 
variables = {
recipeDisplayGroup = {
class = WODisplayGroup; 
dataSource = {class = EODetailDataSource; masterClassDescription = 
Recipe; }; 
fetchesOnLoad = NO; 
formatForLikeQualifier = "*%@"; 
numberOfObjectsPerBatch = 0; 
selectsFirstObjectAfterFetch = YES; 
}; 
}; 
}

Build suceed, but I got warning message:
Unable to verify key 'recipeName' because the keypath 
'recipeDisplayGroup.selectedObject' in RecipeEditor_C is a collection


Anything wrong in my code? Because it's migrated from my old WO app.

thanks

kevin


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pascal Robert
Sent: Thursday, 20 December 2007 3:07 p.m.
To: WebObjects (Group)
Subject: Re: Migration code to Eclips/Wolips question


Le 07-12-19 à 21:00, Chuck Hill a écrit :

>
> On Dec 19, 2007, at 5:52 PM, Mike Schrag wrote:
>
>>> http://wiki.objectstyle.org/confluence/display/WOL/Migrating+from
>>> +XCode+to+WOLips
>> I would recommend this as well with the exception that I would say to 
>> ALWAYS use Pascal's XcodeMigration script.  No offense to Chuck, but 
>> Pascal's application is just a more thorough migration procedure (I 
>> think Chuck would agree, FWIW :) ).  I used Pascal's on quite a few 
>> client conversions and it worked /nearly/ flawlessly, and the parts 
>> that didn't work flawlessly, Pascal recently fixed.

And other fixes are coming.  We are finally migrating a big chunk
(+50) of projects at work, and I found a couple of bugs.  And the MacRoman to 
UTF-8 conversion do no only the Java class but also the components (it change 
the value of the encoding key value in the .woo, and change the encoding of the 
.html file to UTF-8).

>
> Chuck does agree.  Mine was a quick hack to show how it could be done 
> very easily.  Pascal's is a much more thorough process.
>
> Although I really like the name :-), should we just remove the fleeto 
> reference from that page?

I would like to use your script to flee out some snow.  It was fun two weeks 
ago when we got 40 cm, but we got an another 40 cm last Sunday, now it's a big 
mess.

But still, if someone only have one or two small projects to migrate, Chuck's 
script or a manual migration is faster than my script. 
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kevin.ren%40anznational.co.nz

This email sent to [EMAIL PROTECTED]


"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


RE: Velocity EOGenerator create package problem

2007-12-19 Thread Ren, Kevin
OK, i got it. i put the whole name in the eomodel, like Tobias said
e.g.: recipe.eo.Ingredient instead of just Ingredient.
All generated in recipe/eo dir and with package name.
but it's bit painful if there are more table/classes. 
 
is it possible to setup packagename argument in the EOGenerator command
or turn on create package functionality?
 
i did further, tried the new feature, setup "superclass package" field
to base and generated two folders, but the same package name "package
recipe.eo".
got problem because from recipe.eo package could not access
recipe.eo.base package, (couldnot see _Recipe class) 
AND in recipe.eo.base class the package name is  "package recipe.eo" the
same as recipe.eo class from eomodel.
 
What i did wrong?
 
thanks
 
 
kevin

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
om] On Behalf Of Mike Schrag
Sent: Thursday, 20 December 2007 12:31 p.m.
To: WebObjects (Group)
Subject: Re: Velocity EOGenerator create package problem


Velocity EOGenerator totally ignores the -createPackage flag -- it
always creates packages (because it's the right thing to do).  It
determines the package name to use from the class name you set in your
EOModel file.  The "superclass package" field is a new feature that lets
you specify, for instance "base", which will put your _Files in
the.package.of.your.entity.base._YourEntity (while the non underscore
file goes to the.package.of.your.entity.YourEntity).  Long story short,
you probably want superclass package blank and you need to specify your
package in the Class Name field of your Entity. 

ms


On Dec 19, 2007, at 6:23 PM, Ren, Kevin wrote:



Hi, 

This is my .eogen content: 

-destination Source/recipe/eo -java -javaTemplate _Entity.java
-model recipe.eomodeld -subclassDestination Source/recipe/eo
-subclassTemplates Entity.java -templatedir Templates -verbose

Run EOGeberate command, all good created all java classes for me
in recipe/eo dir, but without any package code on the top.

I selected create package option, but didn't put anything in
"Superclass package". 

Is this bug in Velgen not pick up package name in the code? 

I tried different way to setup "superclass package" to
recipe.eo, still couldn't get package detail on the top of generated
java class.


Thanks 


Kevin 



 

"This communication is confidential and may contain privileged
and/or copyright material. If you are not the intended recipient you
must not use, disclose, copy or retain it. If you have received it in
error please immediately notify me by return email, delete the emails
and destroy any hard copies. ANZ National Bank Limited does not
guarantee the integrity of this communication, or that it is free from
errors, viruses or interference."

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

http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimensi
on.com

This email sent to [EMAIL PROTECTED]



"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Velocity EOGenerator create package problem

2007-12-19 Thread Ren, Kevin

Hi,

This is my .eogen content:

-destination Source/recipe/eo -java -javaTemplate _Entity.java -model
recipe.eomodeld -subclassDestination Source/recipe/eo -subclassTemplates
Entity.java -templatedir Templates -verbose

Run EOGeberate command, all good created all java classes for me in
recipe/eo dir, but without any package code on the top.
I selected create package option, but didn't put anything in "Superclass
package".

Is this bug in Velgen not pick up package name in the code?

I tried different way to setup "superclass package" to recipe.eo, still
couldn't get package detail on the top of generated java class.


Thanks


Kevin

"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Migration code to Eclips/Wolips question

2007-12-19 Thread Ren, Kevin
Hi, guys

I got Eclips/WOLips question here:

I tried to upgrade my old WO application code to Eclipse/WOLips
environment.  is there any tools or code available?, code is before
Xcode project.

Anyway, I manually copy the code to new project, for example in
CategoryEditor component, I copied java code to new "sources" dir and
html, wod and woo code to "components" dir.

When I opened WO node in Wolips, got problem, something like couldnot
access/find any key/variable is declared "protected" in java code. Only
can find "public" key.

After I modified the key/variable to "public", the wod file still could
not see it, but when I pressed "Ctrl+SPACE" it 's available in the list.
I have to select and overwrite it again.

is this bug in WOlips? Or "public" ONLY? I need to change all of them to
"public"? 
Or I haven't finish this migration, I know I did not put the file name
in the PD.project file. I remember that should be pick up automatically.
Is that matter if not in this file?

Thanks


Kevin




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Velocity EOGenerator+Eclipse+Wolips question

2007-12-18 Thread Ren, Kevin

Hi,

I installed the latest version WOLips with Velocity EOGenerator, created
my eomodel, followed the instruction I could generate my java and
subclass java file, like Category.java and _Category.java, All good.

But from my Eclipse platform I couldn't see the _XXX.java file, is there
any property need to setup in Eclipse.

I think this is eclipse question,

thanks

Xiaowen(Kevin) Ren

Analyst Programmer
Channel Applications, Retail Applications
ANZ National Bank Ltd
Level 6 ASB Tower
2 Hunter Street 
PO Box 1791
Wellington
> Phone: 04 4944174
Fax: 04 8028696




"This communication is confidential and may contain privileged and/or copyright 
material. If you are not the intended recipient you must not use, disclose, 
copy or retain it. If you have received it in error please immediately notify 
me by return email, delete the emails and destroy any hard copies. ANZ National 
Bank Limited does not guarantee the integrity of this communication, or that it 
is free from errors, viruses or interference."
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

RE: Blank page after deploy on Ubuntu

2007-08-27 Thread Ren, Kevin
 
Hi, 

There is nothing in the page, no code after "View Code". No exception
throw. No R-R loop
I'm just wondering something wrong in my apache config, but don't know
what's wrong...

I did search in the archive list, somebody said might be something wrong
in the classpath, so that's why I post them in the email.
I could n't see anything wrong, and app is launched.

Help! maybe somebody in deployment list?


kevin



-Original Message-
From: Chuck Hill [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 28 August 2007 4:17 a.m.
To: Ren, Kevin
Cc: webobjects-dev@lists.apple.com
Subject: Re: Blank page after deploy on Ubuntu


On Aug 26, 2007, at 8:53 PM, Ren, Kevin wrote:

> Hi,
>
> I followed the "How_to" link, built WO-Apache adaptor for Ubuntu and 
> run wotaskd and JavaMonitor applications, Everything looks fine. I 
> could got my 1085 configuration page and get JavaMonitor page to 
> configure application.
>
> But after I deploy HelloWorld App, I got app running but when click 
> URL, only have blank page in my FireFox browser.
> Anyone has idea what's going wrong?
Your app is throwing an exception very early or very late in the R-R
loop.  Override dispatchRequest in Application and performAction in
DirectAction to catch and log Throwable.  That should show what is
failing.  You _will_ need to have the Output Path configured for the
application.


Chuck


>
> FOR wotaskd
>
> [EMAIL PROTECTED]:/opt/Apple/Library/WebObjects/
> JavaApplications/wotaskd.woa$ Reading UNIXClassPath.txt ...
> Launching wotaskd.woa ...
> java -DWORootDirectory="/opt/Apple"
> -DWOLocalRootDirectory="/opt/Apple/Local"
> -DWOUserDirectory="/opt/Apple/Library/WebObjects/JavaApplications/
> wotaskd.woa"
> -classpath " /opt/Apple/Library/WebObjects/JavaApplications/
> wotaskd.woa/Contents/Resources/Java/wotaskd.jar:
> /opt/Apple/Library/Frameworks/JavaEOControl.framework/Resources/
> Java/javaeocontrol.jar:
> /opt/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/
> javaxml.jar:
> /opt/Apple/Library/PrivateFrameworks/JavaMonitor.framework/
> Resources/Java/javamonitor.jar:
> /opt/Apple/Library/Frameworks/JavaFoundation.framework/Resources/
> Java/javafoundation.jar:
> /opt/Apple/Library/Frameworks/JavaWOExtensions.framework/Resources/
> Java/JavaWOExtensions.jar:
> /opt/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/
> Java/javawebobjects.jar:
> /home/xiaowen/Library/Java:
> /opt/Apple/Local/Library/Java:
> /opt/Apple/Library/Java:
> /Network/Library/Java:
> /opt/Apple/Library/Frameworks/JavaVM.framework/Classes/classes.jar:
> /opt/Apple/Library/Frameworks/JavaVM.framework/Classes/ui.jar:
> /usr/local/tomcat/common/lib/jsp-api.jar:
> /usr/local/tomcat/common/lib/servlet-api.jar"Application
> [2007-08-26 19:42:06 NZST]  Multicast Response Disabled
> [2007-08-26 19:42:06 NZST]  Created UDP socket; listening 
> for requests...
> [2007-08-26 19:42:06 NZST]  The URL for webserver connect is:
> http://xiaowen-desktop/cgi-bin/WebObjects/wotaskd.woa/-1085
> The URL for direct connect is:
> http://xiaowen-desktop:1085/cgi-bin/WebObjects/wotaskd.woa
> [2007-08-26 19:42:06 NZST]  Waiting for requests...
>
>
> FOR JavaMonitor
>
> [EMAIL PROTECTED]:/opt/Apple/Library/WebObjects/
> JavaApplications/JavaMonitor.woa$ sudo ./JavaMonitor & [2] 19950 
> [EMAIL PROTECTED]:/opt/Apple/Library/WebObjects/
> JavaApplications/JavaMonitor.woa$ Reading UNIXClassPath.txt ...
> Launching JavaMonitor.woa ...
> java -DWORootDirectory="/opt/Apple"
> -DWOLocalRootDirectory="/opt/Apple/Local"
> -DWOUserDirectory="/opt/Apple/Library/WebObjects/JavaApplications/
> JavaMonitor.woa"
> -classpath "
> /opt/Apple/Library/WebObjects/JavaApplications/JavaMonitor.woa/
> Contents/Resources/Java/javamonitor.jar:
> /opt/Apple/Library/Frameworks/JavaEOControl.framework/Resources/
> Java/javaeocontrol.jar:
> /opt/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/
> javaxml.jar:
> /opt/Apple/Library/PrivateFrameworks/JavaMonitor.framework/
> Resources/Java/javamonitor.jar:
> /opt/Apple/Library/Frameworks/JavaFoundation.framework/Resources/
> Java/javafoundation.jar:
> /opt/Apple/Library/Frameworks/JavaWOExtensions.framework/Resources/
> Java/JavaWOExtensions.jar:
> /opt/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/
> Java/javawebobjects.jar:
> /home/xiaowen/Library/Java:
> /opt/Apple/Local/Library/Java:
> /opt/Apple/Library/Java:
> /Network/Library/Java:
> /opt/Apple/Library/Frameworks/JavaVM.framework/Classes/classes.jar:
> /opt/Apple/Library/Frameworks/JavaVM.framework/Classes/ui.jar:
> /usr/local/tomcat/common/lib/jsp-api.jar:
> /usr/local/tomcat/co

Blank page after deploy on Ubuntu

2007-08-26 Thread Ren, Kevin
Hi, 

I followed the "How_to" link, built WO-Apache adaptor for Ubuntu and run
wotaskd and JavaMonitor applications, 
Everything looks fine. I could got my 1085 configuration page and get
JavaMonitor page to configure application. 

But after I deploy HelloWorld App, I got app running but when click URL,
only have blank page in my FireFox browser. 
Anyone has idea what's going wrong? 


FOR wotaskd 

[EMAIL PROTECTED]:/opt/Apple/Library/WebObjects/JavaApplications/w
otaskd.woa$ Reading UNIXClassPath.txt ... 
Launching wotaskd.woa ... 
java -DWORootDirectory="/opt/Apple" 
-DWOLocalRootDirectory="/opt/Apple/Local" 
-DWOUserDirectory="/opt/Apple/Library/WebObjects/JavaApplications/wotask
d.woa" 
-classpath "
/opt/Apple/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Reso
urces/Java/wotaskd.jar: 
/opt/Apple/Library/Frameworks/JavaEOControl.framework/Resources/Java/jav
aeocontrol.jar: 
/opt/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.j
ar: 
/opt/Apple/Library/PrivateFrameworks/JavaMonitor.framework/Resources/Jav
a/javamonitor.jar: 
/opt/Apple/Library/Frameworks/JavaFoundation.framework/Resources/Java/ja
vafoundation.jar: 
/opt/Apple/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar: 
/opt/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ja
vawebobjects.jar: 
/home/xiaowen/Library/Java: 
/opt/Apple/Local/Library/Java: 
/opt/Apple/Library/Java: 
/Network/Library/Java: 
/opt/Apple/Library/Frameworks/JavaVM.framework/Classes/classes.jar: 
/opt/Apple/Library/Frameworks/JavaVM.framework/Classes/ui.jar: 
/usr/local/tomcat/common/lib/jsp-api.jar: 
/usr/local/tomcat/common/lib/servlet-api.jar"Application 
[2007-08-26 19:42:06 NZST]  Multicast Response Disabled 
[2007-08-26 19:42:06 NZST]  Created UDP socket; listening for
requests... 
[2007-08-26 19:42:06 NZST]  The URL for webserver connect is: 
http://xiaowen-desktop/cgi-bin/WebObjects/wotaskd.woa/-1085 
The URL for direct connect is: 
http://xiaowen-desktop:1085/cgi-bin/WebObjects/wotaskd.woa 
[2007-08-26 19:42:06 NZST]  Waiting for requests... 


FOR JavaMonitor 

[EMAIL PROTECTED]:/opt/Apple/Library/WebObjects/JavaApplications/J
avaMonitor.woa$ sudo ./JavaMonitor & 
[2] 19950 
[EMAIL PROTECTED]:/opt/Apple/Library/WebObjects/JavaApplications/J
avaMonitor.woa$ Reading UNIXClassPath.txt ... 
Launching JavaMonitor.woa ... 
java -DWORootDirectory="/opt/Apple" 
-DWOLocalRootDirectory="/opt/Apple/Local" 
-DWOUserDirectory="/opt/Apple/Library/WebObjects/JavaApplications/JavaMo
nitor.woa" 
-classpath " 
/opt/Apple/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/
Resources/Java/javamonitor.jar: 
/opt/Apple/Library/Frameworks/JavaEOControl.framework/Resources/Java/jav
aeocontrol.jar: 
/opt/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.j
ar: 
/opt/Apple/Library/PrivateFrameworks/JavaMonitor.framework/Resources/Jav
a/javamonitor.jar: 
/opt/Apple/Library/Frameworks/JavaFoundation.framework/Resources/Java/ja
vafoundation.jar: 
/opt/Apple/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar: 
/opt/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/Java/ja
vawebobjects.jar: 
/home/xiaowen/Library/Java: 
/opt/Apple/Local/Library/Java: 
/opt/Apple/Library/Java: 
/Network/Library/Java: 
/opt/Apple/Library/Frameworks/JavaVM.framework/Classes/classes.jar: 
/opt/Apple/Library/Frameworks/JavaVM.framework/Classes/ui.jar: 
/usr/local/tomcat/common/lib/jsp-api.jar: 
/usr/local/tomcat/common/lib/servlet-api.jar" Application 
[2007-08-26 19:47:07 NZST]  Creating LifebeatThread now with:
JavaMonitor 48632 xiaowen-desktop/127.0.1.1 1085 3

[2007-08-26 19:47:07 NZST]  Your application is not running on a
supported development platform. AutoLaunch will not work.

Your application's URL is: 
http://xiaowen-desktop:48632/cgi-bin/WebObjects/JavaMonitor.woa 
[2007-08-26 19:47:07 NZST]  Waiting for requests... 


FOR HelloWorld 

[EMAIL PROTECTED]:/opt/Apple/Local/Library/WebObjects/Applications
/HelloWorld.woa$ Reading UNIXClassPath.txt ... 
Launching HelloWorld.woa ... 
java -DWORootDirectory="/opt/Apple" 
-DWOLocalRootDirectory="/opt/Apple/Local" 
-DWOUserDirectory="/opt/Apple/Local/Library/WebObjects/Applications/Hell
oWorld.woa" 
-classpath " 
/opt/Apple/Local/Library/WebObjects/Applications/HelloWorld.woa/Contents
/Resources/Java/helloworld.jar: 
/opt/Apple/Library/Frameworks/JavaFoundation.framework/Resources/Java/ja
vafoundation.jar: 
/opt/Apple/Library/Frameworks/JavaXML.framework/Resources/Java/javaxml.j
ar: 
/opt/Apple/Library/Frameworks/JavaEOControl.framework/Resources/Java/jav
aeocontrol.jar: 
/opt/Apple/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/Java/j
avajdbcadaptor.jar: 
/opt/Apple/Library/Frameworks/JavaEOAccess.framework/Resources/Java/java
eoaccess.jar: 
/opt/Apple/Library/Frameworks/JavaWOExtensions.framework/Resources/Java/
JavaWOExtensions.jar: 
/opt/Apple/Library/Frameworks/JavaWebObjects.framework/Resources/Java/