Re: Installing WO 543 on Linux
afaik, you will need to define the ip address use in JavaMonitor. See if it help adding a line to /etc/hosts, e.g: 192.168.1.10yourserver.domain.com servername Cheers Cheong Hee - Original Message - From: "David Griffith" To: "Cheong Hee (Gmail)" Cc: Sent: Wednesday, November 11, 2009 3:29 PM Subject: Re: Installing WO 543 on Linux /etc/hosts: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 Does there need to be a specific entry here for 192.168.1.10? (server ip address) SiteConfig.xml: UNIX 192.168.1.10 followed by entries for the two apps I have added in, followed by: YESviewRefreshEnabled> /app/WebObjects 60 On Nov 11, 2009, at 6:35 AM, Cheong Hee (Gmail) wrote: Hi David What is your /etc/hosts file and SiteConfig.xml look like? May be it is IP address issue. Cheers Cheong Hee Yes, as I said, I can run it from the command line (as appserver) and it runs fine. I can access it on the specified port no problem. The app operates as it should. It just refuses to start from JavaMonitor. I also added JavaMonitor in there to see would it start but got the same result. No start, no log. Does the Logs folder is writable by the appserver user? Try to write a file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/ somefilename.txt). > Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
/etc/hosts: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 Does there need to be a specific entry here for 192.168.1.10? (server ip address) SiteConfig.xml: UNIX 192.168.1.10 followed by entries for the two apps I have added in, followed by: YESviewRefreshEnabled> /app/WebObjects 60 On Nov 11, 2009, at 6:35 AM, Cheong Hee (Gmail) wrote: Hi David What is your /etc/hosts file and SiteConfig.xml look like? May be it is IP address issue. Cheers Cheong Hee Yes, as I said, I can run it from the command line (as appserver) and it runs fine. I can access it on the specified port no problem. The app operates as it should. It just refuses to start from JavaMonitor. I also added JavaMonitor in there to see would it start but got the same result. No start, no log. Does the Logs folder is writable by the appserver user? Try to write a file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/ somefilename.txt). > Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com This email sent to da...@infinityspain.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
On 11/11/2009, at 4:52 PM, Jeff Schmitz wrote: Actually it's method I defined in my custom WOComponent that all my other WOComponents inherit from. public Session Session() { return (Session)super.session(); } Don't ask me why I capitalized it. I _do_ understand why you capitalised it prior to java1.5 (many people used mySession() for such things). But nowadays just do this: @Override public Session session() { return (Session)super.session(); } That way you won't have two methods available for auto-completion in your components that do the same thing -- and it's just the right thing to do, not to mention dumping a non-standard naming convention :). with regards, -- Lachlan Deck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JSON and WebObjects
Hello Don; The framework will deal with EO serialisation for you. Watch the WOWODC-2009 video on this subject and check out the sample code which was shown in the video; http://homepage.mac.com/andrewlindesay/le/downloads/JSONRPCHandsOn-SessionCode-1sep2009.zip I think John Lennard is doing some foo like this at the moment... John? cheers. > I am wanting to pass EO Objects back and forth to an AJAX web application. > We have a need where the entire front wend web application will be designed > by graphics designers, no developers involved, then it will be turned over to > the Developers to make sure all the bits are filled in. (management's words > not mine). But the developers cannot modify the design. > The way I expected would be the easiest to implement would be to use JSON and > AJAX, to receive objects to populate the interface. ___ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
Actually it's method I defined in my custom WOComponent that all my other WOComponents inherit from. public Session Session() { return (Session)super.session(); } Don't ask me why I capitalized it. Jeff On Nov 10, 2009, at 11:47 PM, Lachlan Deck wrote: On 11/11/2009, at 4:36 PM, Jeff Schmitz wrote: Session() returns the session object, I should have been more specific: - why does it have a capital-letter prefix? Is that a mistyped email (i.e., you meant to type session() rather than Session()). - or do you have some static method that figures out the current session somehow? called from within appendToResponse in my WOComponent. They return the name of the current pool. That part seems to be working as I can see the cookie is getting set in the browser. ok. It just never gets returned to me. Do what chuck suggests .. log out the headers. On Nov 10, 2009, at 11:31 PM, Lachlan Deck wrote: On 11/11/2009, at 4:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). And what do Session() and Session().getPoolName() each return? with regards, -- Lachlan Deck with regards, -- Lachlan Deck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
On 11/11/2009, at 4:36 PM, Jeff Schmitz wrote: Session() returns the session object, I should have been more specific: - why does it have a capital-letter prefix? Is that a mistyped email (i.e., you meant to type session() rather than Session()). - or do you have some static method that figures out the current session somehow? called from within appendToResponse in my WOComponent. They return the name of the current pool. That part seems to be working as I can see the cookie is getting set in the browser. ok. It just never gets returned to me. Do what chuck suggests .. log out the headers. On Nov 10, 2009, at 11:31 PM, Lachlan Deck wrote: On 11/11/2009, at 4:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session ().getPoolName(), "/", null, expires, true); response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey ("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). And what do Session() and Session().getPoolName() each return? with regards, -- Lachlan Deck with regards, -- Lachlan Deck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
That didn't take long. It's the last flag for the cookie constructor. Need to set it false. Thanks again for the help. Jeff On Nov 10, 2009, at 11:40 PM, Jeff Schmitz wrote: Yes, beat me by about a minute. I just noticed the security column was checked for that cookie in the browser. Now I just have to figure out why it's making it secure. Thanks! Jeff On Nov 10, 2009, at 11:37 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:31 PM, Lachlan Deck wrote: On 11/11/2009, at 4:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); erm. Look at that last param. isSecure. That does not mean "Yeah, I think some security would be nice!" It means, only send this cookie over an HTTPS connection. I will be guessing that you are using just HTTP for testing. Do I win? Chuck response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). And what do Session() and Session().getPoolName() each return? with regards, -- Lachlan Deck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jeffandmonica%40mac.com This email sent to jeffandmon...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
Yes, beat me by about a minute. I just noticed the security column was checked for that cookie in the browser. Now I just have to figure out why it's making it secure. Thanks! Jeff On Nov 10, 2009, at 11:37 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:31 PM, Lachlan Deck wrote: On 11/11/2009, at 4:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); erm. Look at that last param. isSecure. That does not mean "Yeah, I think some security would be nice!" It means, only send this cookie over an HTTPS connection. I will be guessing that you are using just HTTP for testing. Do I win? Chuck response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). And what do Session() and Session().getPoolName() each return? with regards, -- Lachlan Deck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
On Nov 10, 2009, at 9:31 PM, Lachlan Deck wrote: On 11/11/2009, at 4:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); erm. Look at that last param. isSecure. That does not mean "Yeah, I think some security would be nice!" It means, only send this cookie over an HTTPS connection. I will be guessing that you are using just HTTP for testing. Do I win? Chuck response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). And what do Session() and Session().getPoolName() each return? with regards, -- Lachlan Deck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
Hi David What is your /etc/hosts file and SiteConfig.xml look like? May be it is IP address issue. Cheers Cheong Hee Yes, as I said, I can run it from the command line (as appserver) and it runs fine. I can access it on the specified port no problem. The app operates as it should. It just refuses to start from JavaMonitor. I also added JavaMonitor in there to see would it start but got the same result. No start, no log. Does the Logs folder is writable by the appserver user? Try to write a file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/ somefilename.txt). > Regards, David. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
Nope, not there (see below). But this is interesting. I used Safari this time, and it shows 2 cookies for localhost, jforumUserId=49 which is in the headers, and POOL=BIG, which is not. Why would one get passed on, and not the other. Both have expiration dates in 2010. Nov 10 23:25:32 netBrackets[] (ERXNSLogLog4jBridge.java:40) INFO NSLog - Headers: {remote_host = ("::1"); server_software = ("Apache/ 2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.7l DAV/2"); cookie = ("jforumUserId=49"); user-agent = ("Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/ 4.0.3 Safari/531.9"); document_root = ("/Library/WebServer/ Documents"); server_name = ("localhost"); accept = ("application/ xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/ *;q=0.5"); remote_addr = ("::1"); referer = ("http://localhost/cgi-bin/WebObjects/netBrackets.woa/- "); x-webobjects-adaptor-version = ("Apache"); x-webobjects-request-id = ("4afa36e500d80009"); x-webobjects-request-method = ("GET"); server_admin = ("y...@example.com"); script_filename = ("/cgi-bin"); server_port = ("0"); accept-encoding = ("gzip, deflate"); remote_port = ("50241"); host = ("localhost"); accept-language = ("en-us"); connection = ("close"); } On Nov 10, 2009, at 11:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). Chuck On Jan 10, 2008, at 8:24 PM, Guido Neitzer wrote: On 10.01.2008, at 19:17, Chuck Hill wrote: Maybe you are ... I have Yojimbo and my own notes ... ;-) Well, that's smart, ain't it? ;-) 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/jeffandmonica%40mac.com This email sent to jeffandmon...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: Can't retrieve cookies (closer, but not there yet)
On 11/11/2009, at 4:22 PM, Chuck Hill wrote: On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session ().getPoolName(), "/", null, expires, true); response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey ("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). And what do Session() and Session().getPoolName() each return? with regards, -- Lachlan Deck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Can't retrieve cookies (closer, but not there yet)
On Nov 10, 2009, at 9:11 PM, Jeff Schmitz wrote: Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? NSLog.out.appendln(this.request().headers()); See it in there? If so, you are retrieving it wrong. If is not there, the browser is not sending it, or you are looking for it in wrong request (somehow). Chuck On Jan 10, 2008, at 8:24 PM, Guido Neitzer wrote: On 10.01.2008, at 19:17, Chuck Hill wrote: Maybe you are ... I have Yojimbo and my own notes ... ;-) Well, that's smart, ain't it? ;-) 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/jeffandmonica%40mac.com This email sent to jeffandmon...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: Can't retrieve cookies (closer, but not there yet)
Holy resurrected thread batman. I never did get cookies working, and I'd REALLY like to figure out why. I've got a brand new dev machine, running Eclipse 3.4, WOLips 3.4.5830. Everything is running great through apache, with DirectConnect Disabled and a nice URL of: http://localhost/cgi-bin/WebObjects/netBrackets.woa/- I'm using WOCookie to set my cookie: NSTimestamp expires = new NSTimestamp() .timestampByAddingGregorianUnits(1, 0, 0, 0, 0, 0); WOCookie poolCookie = new WOCookie("POOL", Session().getPoolName(), "/", null, expires, true); response.addCookie(poolCookie); I look in my Browser (Firefox) and the cookie is there, saved under host "localhost" with an expiration of next year. Then, in my DirectAction function I try to retrieve the cookie: String poolName = (String) this.request().cookieValueForKey("POOL"); And NO DICE. No cookies returned at all. And this seems so simple. any ideas? Thanks, Jeff On Jan 10, 2008, at 8:24 PM, Guido Neitzer wrote: On 10.01.2008, at 19:17, Chuck Hill wrote: Maybe you are ... I have Yojimbo and my own notes ... ;-) Well, that's smart, ain't it? ;-) 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/jeffandmonica%40mac.com This email sent to jeffandmon...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
Set up wotaskd logging by editing SpawnOfWoTaskd.sh .. as outlined here . BTW, just output that log to /tmp because inability to write this will cause your app launch to definitely fail. So sth like this: #!/bin/sh #$@ 1>/dev/null 2>&1 & LOG=/tmp/SpawnOfWotaskd.log echo "" >>${LOG} echo "date: `date`" >>${LOG} echo "args: $@" >>${LOG} $@ 1>>${LOG} 2>&1 & On Nov 10, 2009, at 7:06 PM, David Griffith wrote: Yep, no problem there. On Nov 11, 2009, at 1:04 AM, Pascal Robert wrote: ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JSON and WebObjects
On Nov 10, 2009, at 8:05 PM, Don Lindsay wrote: Hello Chuck; Already did that. When I go to WOWODC, the slideshow loads but then never does it anything, just plays the same overview screen for 15 minutes. You mean the one marked *** PREVIEW *** Using JSON-RPC with WebObjects*** PREVIEW ***? And a few links down are Andrew's very popular code and examples. Chuck On Nov 10, 2009, at 10:56 PM, Chuck Hill wrote: http://www.google.com/search?client=safari&rls=en&q=Webobjects+JSON ? On Nov 10, 2009, at 7:50 PM, Don Lindsay wrote: Hello; I am looking to play with some JSON implementations with WebObjects. Unfortunately I have not been able to find much information or examples. I searched through google and the Wiki, without much success Any hints on where to go to find information and small examples? Don ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JSON and WebObjects
Hello Chuck; Already did that. When I go to WOWODC, the slideshow loads but then never does it anything, just plays the same overview screen for 15 minutes. On Nov 10, 2009, at 10:56 PM, Chuck Hill wrote: http://www.google.com/search?client=safari&rls=en&q=Webobjects+JSON ? On Nov 10, 2009, at 7:50 PM, Don Lindsay wrote: Hello; I am looking to play with some JSON implementations with WebObjects. Unfortunately I have not been able to find much information or examples. I searched through google and the Wiki, without much success Any hints on where to go to find information and small examples? Don ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: JSON and WebObjects
I am wanting to pass EO Objects back and forth to an AJAX web application. We have a need where the entire front wend web application will be designed by graphics designers, no developers involved, then it will be turned over to the Developers to make sure all the bits are filled in. (management's words not mine). But the developers cannot modify the design. The way I expected would be the easiest to implement would be to use JSON and AJAX, to receive objects to populate the interface. Don On Nov 10, 2009, at 11:01 PM, Andrew Lindesay wrote: Hello Don; You will be happy to know that I've got some quite good material in this space. Check out my WOWODC-2009 video and or look at LEWOStuff; http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf (6.10.1 LEJSONFormat) (7.20 JSON-RPC) There are also a range of clients for various platforms included. The JSON serialisation and deserialisation can be used separately from the JSON-RPC infrastructure as well. Do you have a specific thing you want to do? cheers. I am looking to play with some JSON implementations with WebObjects. Unfortunately I have not been able to find much information or examples. I searched through google and the Wiki, without much success Any hints on where to go to find information and small examples? ___ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JSON and WebObjects
Hello Don; You will be happy to know that I've got some quite good material in this space. Check out my WOWODC-2009 video and or look at LEWOStuff; http://homepage.mac.com/andrewlindesay/le/manuals/lewostuff/LEWOStuffOverview.pdf (6.10.1 LEJSONFormat) (7.20 JSON-RPC) There are also a range of clients for various platforms included. The JSON serialisation and deserialisation can be used separately from the JSON-RPC infrastructure as well. Do you have a specific thing you want to do? cheers. > I am looking to play with some JSON implementations with WebObjects. > Unfortunately I have not been able to find much information or examples. I > searched through google and the Wiki, without much success > Any hints on where to go to find information and small examples? ___ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: JSON and WebObjects
http://www.google.com/search?client=safari&rls=en&q=Webobjects+JSON ? On Nov 10, 2009, at 7:50 PM, Don Lindsay wrote: Hello; I am looking to play with some JSON implementations with WebObjects. Unfortunately I have not been able to find much information or examples. I searched through google and the Wiki, without much success Any hints on where to go to find information and small examples? Don ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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
JSON and WebObjects
Hello; I am looking to play with some JSON implementations with WebObjects. Unfortunately I have not been able to find much information or examples. I searched through google and the Wiki, without much success Any hints on where to go to find information and small examples? Don ___ Do not post admin requests to the list. They will 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: Huge many-to-many relationship
On Nov 10, 2009, at 3:03 PM, Kieran Kelleher wrote: I think I know the answer, but I don't like the answer, so I am going to ask it anyway, in case there is some way for me to get a different answer than the one I don't like! ;-) OK, I have a huge many-to-many relationship with a Join ERXGenericRecord with the usual flatten relationships and not really considered in my logic (except for some count methods) List <--A-->> JoinListRecipient <<--B--> Recipient The B side of the join is usually very small, no more than 100 in that relationship. The A side of the join is under 500 for 98% of List EOs, however the others can be up to 1 or 2 million. Do I really have to write my EO logic to actively maintain JoinListRecipient EOs and get rid of the flattened relationships as shown here? List <--A-- JoinListRecipient <<--B--> Recipient or is there some other answer that I might like? Don't model list.recipients and fetch it when you need it. You should not need to make any other changes related to the Join ERXGenericRecord. Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
I think it's good...I think I downloaded it on 11/2, but hadn't installed it. All is well in the world again. :P The steak and beers are piling up. -Lon On Tue, Nov 10, 2009 at 6:46 PM, Chuck Hill wrote: > > On Nov 10, 2009, at 5:11 PM, Lon Varscsak wrote: > > I was trying to torture you, but it is worth a look. >> >> haha...I need a good kick sometimes. >> >> I fixed a Wonder (WOExceptionPage!) bug in that recently, when was your >> last Wonder update? >> >> Hmm, it looks like 11/2. >> > > Should have that fix then: > r10130 | chillatgvc | 2009-10-24 19:31:27 -0700 (Sat, 24 Oct 2009) | 1 line > > Wonder-378 Bad Direct Action URL Creates Zombie Session > > > Maybe you can do some verification of this? > > Chuck > > > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
On Nov 10, 2009, at 5:11 PM, Lon Varscsak wrote: I was trying to torture you, but it is worth a look. haha...I need a good kick sometimes. I fixed a Wonder (WOExceptionPage!) bug in that recently, when was your last Wonder update? Hmm, it looks like 11/2. Should have that fix then: r10130 | chillatgvc | 2009-10-24 19:31:27 -0700 (Sat, 24 Oct 2009) | 1 line Wonder-378 Bad Direct Action URL Creates Zombie Session Maybe you can do some verification of this? Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
> > I was trying to torture you, but it is worth a look. haha...I need a good kick sometimes. > I fixed a Wonder (WOExceptionPage!) bug in that recently, when was your > last Wonder update? > Hmm, it looks like 11/2. -Lon ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
On Nov 10, 2009, at 4:59 PM, Lon Varscsak wrote: >> Yes, wosids in cookies. It's possible it's sending something to the >> server without a cookie but I don't know what that is specifically. > > You could... look? I assumed you were just torturing me and wasn't worth the look. I was trying to torture you, but it is worth a look. Actually, I'm pretty sure there's a resource in the css that needs a forward slash. favicon.ico could be another >> So what's the magical-chuck-1-line-o-code fix? :P > > Don't use IE 7. :-P > > A good start is to not create sessions to handle errors. Start by finding > out if this is happening and where the error is happening. Log a stack > trace from the session constructor? Yes, I did this some where back when I was trying to restore a session from a "clean" urlhere's what I found: I think that WOExceptionPage is generating a link that's a component action, that is ultimately creating a session: at er .extensions .appserver .ERXApplication.handleActionRequestError(ERXApplication.java:1621) I fixed a Wonder (WOExceptionPage!) bug in that recently, when was your last Wonder update? Chuck at your.app.Application.createSessionForRequest(Application.java:19) at com .webobjects .appserver .WOApplication._initializeSessionInContext(WOApplication.java:2110) at com.webobjects.appserver.WOContext.session(WOContext.java:369) at com.webobjects.appserver.WOContext.componentActionURL(WOContext.java: 1208) at com .webobjects .appserver ._private .WOHyperlink._appendComponentActionURLToResponse(WOHyperlink.java:183) at com .webobjects .appserver ._private.WOHyperlink.appendAttributesToResponse(WOHyperlink.java:219) at er .extensions .components ._private.ERXHyperlink.appendAttributesToResponse(ERXHyperlink.java: 84) at com .webobjects .appserver ._private .WOHTMLDynamicElement ._appendOpenTagToResponse(WOHTMLDynamicElement.java:493) at com .webobjects .appserver ._private.WOHyperlink._appendOpenTagToResponse(WOHyperlink.java:133) at com .webobjects .appserver ._private .WOHTMLDynamicElement.appendToResponse(WOHTMLDynamicElement.java:443) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WOConditional.appendToResponse(WOConditional.java:94) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1122) at com .webobjects .appserver ._private .WOComponentReference.appendToResponse(WOComponentReference.java:135) at com .webobjects .appserver ._private .WODynamicGroup.appendChildrenToResponse(WODynamicGroup.java:126) at com .webobjects .appserver ._private.WODynamicGroup.appendToResponse(WODynamicGroup.java:136) at com .webobjects.appserver.WOComponent.appendToResponse(WOComponent.java: 1122) at com .webobjects .appserver.WOComponent._appendPageToResponse(WOComponent.java:1574) at com .webobjects .appserver.WOComponent._generateResponseInContext(WOComponent.java: 1543) at com .webobjects.appserver.WOComponent.generateResponse(WOComponent.java: 1538) at com .webobjects .woextensions.WOExceptionPage.generateResponse(WOExceptionPage.java: 38) at com .webobjects.appserver.WOApplication._handleError(WOApplication.java: 3095) at com .webobjects .appserver.WOApplication.handleException(WOApplication.java:3245) at er .extensions .appserver.ERXApplication.handleException(ERXApplication.java:1673) at er .extensions .appserver .ERXApplication.handleActionRequestError(ERXApplication.java:1621) at com .webobjects .appserver ._private .WOActionRequestHandler._handleRequest(WOActionRequestHandler.java: 287) at com .webobjects .appserver ._private .WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:158) at er .extensions .appserver .ERXDirectActionRequestHandler .handleRequest(ERXDirectActionRequestHandler.java:124) at com .webobjects .appserver.WOApplication.dispatchRequest(WOApplication.java:1687) at er .extensions .appserver .ERXApplication.dispatchRequestImmediately(ERXApplication.java:1887) at er .extensions .appserver.ERXApplication.dispatchRequest(ERXApplication.java:1852) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144) at com .webobjects .appserver._private.WOWorkerThread.run(WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613) -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___
Re: IE 7 and https problems
>> Yes, wosids in cookies. It's possible it's sending something to the >> server without a cookie but I don't know what that is specifically. > > You could... look? I assumed you were just torturing me and wasn't worth the look. Actually, I'm pretty sure there's a resource in the css that needs a forward slash. favicon.ico could be another >> So what's the magical-chuck-1-line-o-code fix? :P > > Don't use IE 7. :-P > > A good start is to not create sessions to handle errors. Start by finding > out if this is happening and where the error is happening. Log a stack > trace from the session constructor? Yes, I did this some where back when I was trying to restore a session from a "clean" urlhere's what I found: I think that WOExceptionPage is generating a link that's a component action, that is ultimately creating a session: at your.app.Application.createSessionForRequest(Application.java:19) at com.webobjects.appserver.WOApplication._initializeSessionInContext( WOApplication.java:2110) at com.webobjects.appserver.WOContext.session(WOContext.java:369) at com.webobjects.appserver.WOContext.componentActionURL(WOContext.java:1208 ) at com.webobjects.appserver._private.WOHyperlink._appendComponentActionURLToResponse( WOHyperlink.java:183) at com.webobjects.appserver._private.WOHyperlink.appendAttributesToResponse( WOHyperlink.java:219) at er.extensions.components._private.ERXHyperlink.appendAttributesToResponse( ERXHyperlink.java:84) at com.webobjects.appserver._private.WOHTMLDynamicElement._appendOpenTagToResponse( WOHTMLDynamicElement.java:493) at com.webobjects.appserver._private.WOHyperlink._appendOpenTagToResponse( WOHyperlink.java:133) at com.webobjects.appserver._private.WOHTMLDynamicElement.appendToResponse( WOHTMLDynamicElement.java:443) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse( WODynamicGroup.java:126) at com.webobjects.appserver._private.WOConditional.appendToResponse( WOConditional.java:94) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse( WODynamicGroup.java:126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse( WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse( WOComponent.java:1122) at com.webobjects.appserver._private.WOComponentReference.appendToResponse( WOComponentReference.java:135) at com.webobjects.appserver._private.WODynamicGroup.appendChildrenToResponse( WODynamicGroup.java:126) at com.webobjects.appserver._private.WODynamicGroup.appendToResponse( WODynamicGroup.java:136) at com.webobjects.appserver.WOComponent.appendToResponse( WOComponent.java:1122) at com.webobjects.appserver.WOComponent._appendPageToResponse( WOComponent.java:1574) at com.webobjects.appserver.WOComponent._generateResponseInContext( WOComponent.java:1543) at com.webobjects.appserver.WOComponent.generateResponse( WOComponent.java:1538) at com.webobjects.woextensions.WOExceptionPage.generateResponse( WOExceptionPage.java:38) at com.webobjects.appserver.WOApplication._handleError( WOApplication.java:3095) at com.webobjects.appserver.WOApplication.handleException( WOApplication.java:3245) at er.extensions.appserver.ERXApplication.handleException( ERXApplication.java:1673) at er.extensions.appserver.ERXApplication.handleActionRequestError( ERXApplication.java:1621) at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest( WOActionRequestHandler.java:287) at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest( WOActionRequestHandler.java:158) at er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest( ERXDirectActionRequestHandler.java:124) at com.webobjects.appserver.WOApplication.dispatchRequest( WOApplication.java:1687) at er.extensions.appserver.ERXApplication.dispatchRequestImmediately( ERXApplication.java:1887) at er.extensions.appserver.ERXApplication.dispatchRequest( ERXApplication.java:1852) at com.webobjects.appserver._private.WOWorkerThread.runOnce( WOWorkerThread.java:144) at com.webobjects.appserver._private.WOWorkerThread.run( WOWorkerThread.java:226) at java.lang.Thread.run(Thread.java:613) ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
On Nov 10, 2009, at 4:32 PM, Lon Varscsak wrote: Yes, wosids in cookies. It's possible it's sending something to the server without a cookie but I don't know what that is specifically. You could... look? So what's the magical-chuck-1-line-o-code fix? :P Don't use IE 7. :-P A good start is to not create sessions to handle errors. Start by finding out if this is happening and where the error is happening. Log a stack trace from the session constructor? Chuck On Tue, Nov 10, 2009 at 5:24 PM, Chuck Hill village.net> wrote: On Nov 10, 2009, at 4:16 PM, Lon Varscsak wrote: I'm stumped. I have a new app (WO 5.4.3 using Wonder from a couple of weeks ago) that when I access via IE 7 (or IE 8 in compatibility mode) it seems to create new sessions when accessing those links "those links"??? and throws a "You backtracked too far." message.: http://grab.by/rwY IE 8, Firefox, Safari all behave appropriately. Am I missing something obvious (and no, I can't just not run IE 7 :D). First guess: you are using cookies for the session ID and it is sending some spurious crap to the server without a cookie, and the app is creating a session to handle the error and returning a new cookie. Then when you click on the next link... BLAMMO! Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
Yes, wosids in cookies. It's possible it's sending something to the server without a cookie but I don't know what that is specifically. So what's the magical-chuck-1-line-o-code fix? :P -Lon On Tue, Nov 10, 2009 at 5:24 PM, Chuck Hill wrote: > > On Nov 10, 2009, at 4:16 PM, Lon Varscsak wrote: > >> I'm stumped. I have a new app (WO 5.4.3 using Wonder from a couple of >> weeks ago) that when I access via IE 7 (or IE 8 in compatibility mode) >> it seems to create new sessions when accessing those links > > "those links"??? > > >> and throws a "You backtracked too far." message.: >> >> http://grab.by/rwY >> >> IE 8, Firefox, Safari all behave appropriately. Am I missing >> something obvious (and no, I can't just not run IE 7 :D). > > > First guess: you are using cookies for the session ID and it is sending some > spurious crap to the server without a cookie, and the app is creating a > session to handle the error and returning a new cookie. Then when you click > on the next link... BLAMMO! > > > Chuck > > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall > knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > > ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
On Nov 10, 2009, at 4:16 PM, Lon Varscsak wrote: I'm stumped. I have a new app (WO 5.4.3 using Wonder from a couple of weeks ago) that when I access via IE 7 (or IE 8 in compatibility mode) it seems to create new sessions when accessing those links "those links"??? and throws a "You backtracked too far." message.: http://grab.by/rwY IE 8, Firefox, Safari all behave appropriately. Am I missing something obvious (and no, I can't just not run IE 7 :D). First guess: you are using cookies for the session ID and it is sending some spurious crap to the server without a cookie, and the app is creating a session to handle the error and returning a new cookie. Then when you click on the next link... BLAMMO! Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: IE 7 and https problems
Now, I'm not sure 100% that it's just https...it appears to have problems with component actions on hyperlinks. Ugh. -Lon On Tue, Nov 10, 2009 at 5:16 PM, Lon Varscsak wrote: > I'm stumped. I have a new app (WO 5.4.3 using Wonder from a couple of > weeks ago) that when I access via IE 7 (or IE 8 in compatibility mode) > it seems to create new sessions when accessing those links and throws > a "You backtracked too far." message.: > > http://grab.by/rwY > > IE 8, Firefox, Safari all behave appropriately. Am I missing > something obvious (and no, I can't just not run IE 7 :D). > > -Lon > ___ Do not post admin requests to the list. They will 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
IE 7 and https problems
I'm stumped. I have a new app (WO 5.4.3 using Wonder from a couple of weeks ago) that when I access via IE 7 (or IE 8 in compatibility mode) it seems to create new sessions when accessing those links and throws a "You backtracked too far." message.: http://grab.by/rwY IE 8, Firefox, Safari all behave appropriately. Am I missing something obvious (and no, I can't just not run IE 7 :D). -Lon ___ Do not post admin requests to the list. They will 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: Immediate redirect of one page to another
Mm coffee! On Nov 10, 2009, at 4:00 PM, Paul Hoadley wrote: On 11/11/2009, at 10:23 AM, Paul Hoadley wrote: component="$redirectTo" /> ... But clearly I can't. I want to handle it _in that page_. (Obviously I could make the preceding page choose, but ideally I want a solution where the present page decides whether to redirect itself or not.) What's the WO way to do this? I just can't see it. Yep, not enough coffee. public void appendToResponse(WOResponse response, WOContext context) { if (shouldRedirect()) { response.setContent(redirectTo().generateResponse().content()); } else { super.appendToResponse(response, context); } } Nothing to see here. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: Installing WO 543 on Linux
Yep, no problem there. On Nov 11, 2009, at 1:04 AM, Pascal Robert wrote: - "David Griffith" a écrit : > Hi Pascal, > Yes, as I said, I can run it from the command line (as appserver) and it runs fine. I can access it on the specified port no problem. The app operates as it should. It just refuses to start from JavaMonitor. I also added JavaMonitor in there to see would it start but got the same result. No start, no log. Does the Logs folder is writable by the appserver user? Try to write a file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/ somefilename.txt). > Regards, David. > On Nov 11, 2009, at 12:57 AM, Pascal Robert wrote: > > - "David Griffith" a écrit : > > Ok, I have managed to get the app up and running finally :-) At least, I can launch it from the command line on a specific port and connect to it and use it. > > Now, I want to have it added to JavaMonitor and be able to start/stop it from there. I've added it, set the log path, and tried to start it. No go. Won't have it. Just keeps trying to start and won't start or stop. Neither does it write any log file. > > Obviously I also want to be able to access it like: > > http://192.168.1.10/app/WebObjects/appname as I won't have open ports on the server. > > JavaMonitor is started and running on port 56789. Host is 192.168.1.10. Adaptor URL is /app/WebObjects > > Where to start looking for clues? > File permissions... Try to start your app under appserver by command line and good chance that your app won't start. > > Regards, David. > > On Nov 10, 2009, at 10:19 PM, David Griffith wrote: > > By the way, can someone tell me what the DWOEnvClassPath is? It seems to be picked up from the $CLASSPATH env variable, which on our existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ lib/classes.zip" but that classes.zip file does not exist. Is this relevant? > > Regards, David. > > On Nov 10, 2009, at 10:12 AM, David Griffith wrote: > > Thanks Bogdan, that's where I went wrong. Doh. I put them in / Library/Frameworks instead of /Local/Library/Frameworks. Have another problem now, of course, but I'll look into it later and post if I can't sort it myself. > > Thanks for your help, > > Dave. > > On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: > > Hi David, > > On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? > > > > David. > > > > On Nov 10, 2009, at 1:21 AM, John Bruce wrote: > > > > ok you either need to define LOCALROOT or just change the path to be > > exact - I'm assuming /opt for your WebObjects install so the extact > > path would be something like > > > > /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar > > > > If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/Local/Library/ Frameworks/ERExtensions.framework ( pay attention to the Local ). > > > > the part about moving ERExtensions.jar above javafoundation.jar was > > not to do with resolving the location issue but rather just making > > sure the jars are loaded inthe right order (once the paths are correct > > of course :) ) > > > > On Tue, Nov 10, 2009 at 12:04 AM, David Griffith > > wrote: > > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar > > > > > > I've moved ERExtensions to appear above JavaFoundation, still the same. The > > above is the second line I believe, with JavaFoundation coming further down. > > > > > > On Nov 10, 2009, at 12:56 AM, John Bruce wrote: > > > > Hi David, > > > > Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? > > > > Also ERExtensions.jar needs to appear before the entry for > > javafoundation.jar. > > > > Cheers, > > > > John > > > > On Mon, Nov 9, 2009 at 11:47 PM, David Griffith > > wrote: > > > > Well I think I figured out how to set that value, but this is what I am > > getting still: > > > > java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication > > at java.lang.ClassLoader.defineClass1(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:616) > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > > at java.net.URLClassLoader.access$000(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:303) > > at java.lang.ClassLoader.loa
Re: Installing WO 543 on Linux
- "David Griffith" a écrit : > Hi Pascal, > Yes, as I said, I can run it from the command line (as appserver) and it runs fine. I can access it on the specified port no problem. The app operates as it should. It just refuses to start from JavaMonitor. I also added JavaMonitor in there to see would it start but got the same result. No start, no log. Does the Logs folder is writable by the appserver user? Try to write a file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/somefilename.txt). > Regards, David. > On Nov 11, 2009, at 12:57 AM, Pascal Robert wrote: > > - "David Griffith" < da...@infinityspain.com > a écrit : > > Ok, I have managed to get the app up and running finally :-) At least, I > > can launch it from the command line on a specific port and connect to it > > and use it. > > Now, I want to have it added to JavaMonitor and be able to start/stop it from there. I've added it, set the log path, and tried to start it. No go. Won't have it. Just keeps trying to start and won't start or stop. Neither does it write any log file. > > Obviously I also want to be able to access it like: > > http://192.168.1.10/app/WebObjects/appname as I won't have open ports on the server. > > JavaMonitor is started and running on port 56789. Host is 192.168.1.10. Adaptor URL is /app/WebObjects > > Where to start looking for clues? > File permissions... Try to start your app under appserver by command line and good chance that your app won't start. > > Regards, David. > > On Nov 10, 2009, at 10:19 PM, David Griffith wrote: > > By the way, can someone tell me what the DWOEnvClassPath is? It seems to be > > picked up from the $CLASSPATH env variable, which on our existing > > deployment server seems to be set to > > ".:/usr/java/jre1.5.0_06/lib/classes.zip" but that classes.zip file does > > not exist. Is this relevant? > > Regards, David. > > On Nov 10, 2009, at 10:12 AM, David Griffith wrote: > > Thanks Bogdan, that's where I went wrong. Doh. I put them in > > /Library/Frameworks instead of /Local/Library/Frameworks. Have another > > problem now, of course, but I'll look into it later and post if I can't > > sort it myself. > > Thanks for your help, > > Dave. > > On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: > > Hi David, > > On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? > > > > David. > > > > On Nov 10, 2009, at 1:21 AM, John Bruce wrote: > > > > ok you either need to define LOCALROOT or just change the path to be > > exact - I'm assuming /opt for your WebObjects install so the extact > > path would be something like > > > > /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar > > > > > > If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/ Local /Library/Frameworks/ERExtensions.framework ( pay attention to the Local ). > > > > the part about moving ERExtensions.jar above javafoundation.jar was > > not to do with resolving the location issue but rather just making > > sure the jars are loaded inthe right order (once the paths are correct > > of course :) ) > > > > On Tue, Nov 10, 2009 at 12:04 AM, David Griffith > > < da...@infinityspain.com > wrote: > > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar > > > > > > I've moved ERExtensions to appear above JavaFoundation, still the same. The > > above is the second line I believe, with JavaFoundation coming further down. > > > > > > On Nov 10, 2009, at 12:56 AM, John Bruce wrote: > > > > Hi David, > > > > Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? > > > > Also ERExtensions.jar needs to appear before the entry for > > javafoundation.jar. > > > > Cheers, > > > > John > > > > On Mon, Nov 9, 2009 at 11:47 PM, David Griffith < da...@infinityspain.com > > > wrote: > > > > Well I think I figured out how to set that value, but this is what I am > > getting still: > > > > java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication > > at java.lang.ClassLoader.defineClass1(Native Method) > > at java.lang.ClassLoader.defineClass(ClassLoader.java:616) > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > > at java.net.URLClassLoader.access$000(URLClassLoader.java:56) > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader
Re: Installing WO 543 on Linux
Hi Pascal, Yes, as I said, I can run it from the command line (as appserver) and it runs fine. I can access it on the specified port no problem. The app operates as it should. It just refuses to start from JavaMonitor. I also added JavaMonitor in there to see would it start but got the same result. No start, no log. Regards, David. On Nov 11, 2009, at 12:57 AM, Pascal Robert wrote: - "David Griffith" a écrit : > Ok, I have managed to get the app up and running finally :-) At least, I can launch it from the command line on a specific port and connect to it and use it. > Now, I want to have it added to JavaMonitor and be able to start/stop it from there. I've added it, set the log path, and tried to start it. No go. Won't have it. Just keeps trying to start and won't start or stop. Neither does it write any log file. > Obviously I also want to be able to access it like: > http://192.168.1.10/app/WebObjects/appname as I won't have open ports on the server. > JavaMonitor is started and running on port 56789. Host is 192.168.1.10. Adaptor URL is /app/WebObjects > Where to start looking for clues? File permissions... Try to start your app under appserver by command line and good chance that your app won't start. > Regards, David. > On Nov 10, 2009, at 10:19 PM, David Griffith wrote: > By the way, can someone tell me what the DWOEnvClassPath is? It seems to be picked up from the $CLASSPATH env variable, which on our existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ lib/classes.zip" but that classes.zip file does not exist. Is this relevant? > Regards, David. > On Nov 10, 2009, at 10:12 AM, David Griffith wrote: > Thanks Bogdan, that's where I went wrong. Doh. I put them in / Library/Frameworks instead of /Local/Library/Frameworks. Have another problem now, of course, but I'll look into it later and post if I can't sort it myself. > Thanks for your help, > Dave. > On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: > Hi David, > On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? > > David. > > On Nov 10, 2009, at 1:21 AM, John Bruce wrote: > > ok you either need to define LOCALROOT or just change the path to be > exact - I'm assuming /opt for your WebObjects install so the extact > path would be something like > > /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar > > If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/Local/Library/ Frameworks/ERExtensions.framework ( pay attention to the Local ). > > the part about moving ERExtensions.jar above javafoundation.jar was > not to do with resolving the location issue but rather just making > sure the jars are loaded inthe right order (once the paths are correct > of course :) ) > > On Tue, Nov 10, 2009 at 12:04 AM, David Griffith > wrote: > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar > > > I've moved ERExtensions to appear above JavaFoundation, still the same. The > above is the second line I believe, with JavaFoundation coming further down. > > > On Nov 10, 2009, at 12:56 AM, John Bruce wrote: > > Hi David, > > Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? > > Also ERExtensions.jar needs to appear before the entry for > javafoundation.jar. > > Cheers, > > John > > On Mon, Nov 9, 2009 at 11:47 PM, David Griffith > wrote: > > Well I think I figured out how to set that value, but this is what I am > getting still: > > java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:616) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(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:303) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) > Caused by: java.lang.ClassNotFoundException: > er.extensions.appserver.ERXApplication > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassL
Re: Immediate redirect of one page to another
On 11/11/2009, at 10:23 AM, Paul Hoadley wrote: component="$redirectTo" /> ... But clearly I can't. I want to handle it _in that page_. (Obviously I could make the preceding page choose, but ideally I want a solution where the present page decides whether to redirect itself or not.) What's the WO way to do this? I just can't see it. Yep, not enough coffee. public void appendToResponse(WOResponse response, WOContext context) { if (shouldRedirect()) { response.setContent(redirectTo().generateResponse().content()); } else { super.appendToResponse(response, context); } } Nothing to see here. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ ___ Do not post admin requests to the list. They will 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: Installing WO 543 on Linux
- "David Griffith" a écrit : > Ok, I have managed to get the app up and running finally :-) At least, I can > launch it from the command line on a specific port and connect to it and use > it. > Now, I want to have it added to JavaMonitor and be able to start/stop it from there. I've added it, set the log path, and tried to start it. No go. Won't have it. Just keeps trying to start and won't start or stop. Neither does it write any log file. > Obviously I also want to be able to access it like: > http://192.168.1.10/app/WebObjects/appname as I won't have open ports on the server. > JavaMonitor is started and running on port 56789. Host is 192.168.1.10. Adaptor URL is /app/WebObjects > Where to start looking for clues? File permissions... Try to start your app under appserver by command line and good chance that your app won't start. > Regards, David. > On Nov 10, 2009, at 10:19 PM, David Griffith wrote: > By the way, can someone tell me what the DWOEnvClassPath is? It seems to be > picked up from the $CLASSPATH env variable, which on our existing deployment > server seems to be set to ".:/usr/java/jre1.5.0_06/lib/classes.zip" but that > classes.zip file does not exist. Is this relevant? > Regards, David. > On Nov 10, 2009, at 10:12 AM, David Griffith wrote: > Thanks Bogdan, that's where I went wrong. Doh. I put them in > /Library/Frameworks instead of /Local/Library/Frameworks. Have another > problem now, of course, but I'll look into it later and post if I can't sort > it myself. > Thanks for your help, > Dave. > On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: > Hi David, > On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? > > David. > > On Nov 10, 2009, at 1:21 AM, John Bruce wrote: > > ok you either need to define LOCALROOT or just change the path to be > exact - I'm assuming /opt for your WebObjects install so the extact > path would be something like > > /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar > > > If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/ Local /Library/Frameworks/ERExtensions.framework ( pay attention to the Local ). > > the part about moving ERExtensions.jar above javafoundation.jar was > not to do with resolving the location issue but rather just making > sure the jars are loaded inthe right order (once the paths are correct > of course :) ) > > On Tue, Nov 10, 2009 at 12:04 AM, David Griffith > < da...@infinityspain.com > wrote: > LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar > > > I've moved ERExtensions to appear above JavaFoundation, still the same. The > above is the second line I believe, with JavaFoundation coming further down. > > > On Nov 10, 2009, at 12:56 AM, John Bruce wrote: > > Hi David, > > Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? > > Also ERExtensions.jar needs to appear before the entry for > javafoundation.jar. > > Cheers, > > John > > On Mon, Nov 9, 2009 at 11:47 PM, David Griffith < da...@infinityspain.com > > wrote: > > Well I think I figured out how to set that value, but this is what I am > getting still: > > java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:616) > at > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > at java.net.URLClassLoader.access$000(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:303) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) > Caused by: java.lang.ClassNotFoundException: > er.extensions.appserver.ERXApplication > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > at java.lang.ClassLoader.loadClass(ClassLoader.java:303) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) > ... 11 more > > > On Nov 9, 2009, at 11:35 PM, David
Immediate redirect of one page to another
Hello, I suspect I haven't had enough coffee yet... What I want to do is cause an immediate re-direct of a requested page to a different page under certain conditions. It would be nice to handle it within the HTML template, but any solution is fine by me. I was thinking I could do something like this: component="$redirectTo" /> ... But clearly I can't. I want to handle it _in that page_. (Obviously I could make the preceding page choose, but ideally I want a solution where the present page decides whether to redirect itself or not.) What's the WO way to do this? I just can't see it. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ ___ Do not post admin requests to the list. They will 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: Installing WO 543 on Linux
Ok, I have managed to get the app up and running finally :-) At least, I can launch it from the command line on a specific port and connect to it and use it. Now, I want to have it added to JavaMonitor and be able to start/stop it from there. I've added it, set the log path, and tried to start it. No go. Won't have it. Just keeps trying to start and won't start or stop. Neither does it write any log file. Obviously I also want to be able to access it like: http://192.168.1.10/app/WebObjects/appname as I won't have open ports on the server. JavaMonitor is started and running on port 56789. Host is 192.168.1.10. Adaptor URL is /app/WebObjects Where to start looking for clues? Regards, David. On Nov 10, 2009, at 10:19 PM, David Griffith wrote: By the way, can someone tell me what the DWOEnvClassPath is? It seems to be picked up from the $CLASSPATH env variable, which on our existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ lib/classes.zip" but that classes.zip file does not exist. Is this relevant? Regards, David. On Nov 10, 2009, at 10:12 AM, David Griffith wrote: Thanks Bogdan, that's where I went wrong. Doh. I put them in / Library/Frameworks instead of /Local/Library/Frameworks. Have another problem now, of course, but I'll look into it later and post if I can't sort it myself. Thanks for your help, Dave. On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: Hi David, On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? David. On Nov 10, 2009, at 1:21 AM, John Bruce wrote: ok you either need to define LOCALROOT or just change the path to be exact - I'm assuming /opt for your WebObjects install so the extact path would be something like /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/Local/Library/ Frameworks/ERExtensions.framework ( pay attention to the Local ). the part about moving ERExtensions.jar above javafoundation.jar was not to do with resolving the location issue but rather just making sure the jars are loaded inthe right order (once the paths are correct of course :) ) On Tue, Nov 10, 2009 at 12:04 AM, David Griffith wrote: LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar I've moved ERExtensions to appear above JavaFoundation, still the same. The above is the second line I believe, with JavaFoundation coming further down. On Nov 10, 2009, at 12:56 AM, John Bruce wrote: Hi David, Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? Also ERExtensions.jar needs to appear before the entry for javafoundation.jar. Cheers, John On Mon, Nov 9, 2009 at 11:47 PM, David Griffith > wrote: Well I think I figured out how to set that value, but this is what I am getting still: java.lang.NoClassDefFoundError: er/extensions/appserver/ ERXApplication at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(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:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.webobjects._bootstrap.WOBootstrap.main (WOBootstrap.java:84) Caused by: java.lang.ClassNotFoundException: er.extensions.appserver.ERXApplication at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 316) ... 11 more On Nov 9, 2009, at 11:35 PM, David Griffith wrote: I've noticed that when I manually launch this app on my new local server, I get: -DWOEnvClassPath="" Whereas on development machine, or the existing deployment server, I get: -DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip" Where is this value set or how do I set it? It seems that this is causing the errors I'm getting, i.e. NoClassDef for Application etc. Regards, David. On Nov 9, 2009, at 10:58 PM, John Bruce wrote: Hi David, If exporting the NEXT_ROOT doe
Re: Numbers Only in WOTextField
On Nov 10, 2009, at 3:21 PM, David Avendasora wrote: > > On Nov 10, 2009, at 3:07 PM, Chuck Hill wrote: > >> On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: >> >>> Never mind! Great minds think alike, right Lon? >>> >>> http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html >> >> And not so great minds don't read the docs? :-P > > What?! There's docs now? :-P > >> WOTextField extends WODynamicElement, not WOComponent. WODynamicElement >> same same, but very different. No have template. >> >> The WODynamicElements are not really intended to be sub-classed. There were >> not written with that in mind. You will pretty much have to re-implement >> it. The other approach is to wrap it in a WOComponent and, yes, pass in all >> the possible bindings. > > Yeah, I jumpt to a conclusion. I saw the subject "Subclassing a Component" > and that you had responded with something that wasn't quite completely clear > to me at first and thought, well it must be just over my head. I'll figure it > out eventually. > > Once I figured out that it wasn't at all what I was talking about, you (and > Ricardo) had already busted me. > > Dave > >> x` >> >> You might also be able to add to the bindings in Application using >> public WOElement dynamicElementWithName(String aName, >> NSDictionary someAssociations, WOElement anElement, >> NSArray aLanguageArray) >> >> >> Chuck >> >> >>> On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: >>> Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave 100 : (task = 'edit' and (smartAttribute.className = 'java.lang.Number' or smartAttribute.className = 'java.math.BigDecimal')) => componentName = DavesJSEditNumberThingy [Assignment] (^_~)d [<--Thumbs up!] Ramsey smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Huge many-to-many relationship
I think I know the answer, but I don't like the answer, so I am going to ask it anyway, in case there is some way for me to get a different answer than the one I don't like! ;-) OK, I have a huge many-to-many relationship with a Join ERXGenericRecord with the usual flatten relationships and not really considered in my logic (except for some count methods) List <--A-->> JoinListRecipient <<--B--> Recipient The B side of the join is usually very small, no more than 100 in that relationship. The A side of the join is under 500 for 98% of List EOs, however the others can be up to 1 or 2 million. Do I really have to write my EO logic to actively maintain JoinListRecipient EOs and get rid of the flattened relationships as shown here? List <--A-- JoinListRecipient <<--B--> Recipient or is there some other answer that I might like? ___ Do not post admin requests to the list. They will 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: compound pk
On 10/Nov/2009, at 10:25 AM, Mike Schrag wrote: why do you guys have to make my life difficult no reason for asking :) Hey Mike! Um, well, you did ask! ;-) Historically, the need to have compound pk's has usually been an artifact of some poor database design which was already entrenched. When I could not otherwise avoid it, I generated the needed pk's on the fly, as needed. Best! Mark __ The key, the whole key and nothing but the key! So help me Codd! ___ Do not post admin requests to the list. They will 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: Numbers Only in WOTextField
Hi Kieran, Where can I find that - I'd love to watch it Regards, David. On Nov 10, 2009, at 10:19 PM, Kieran Kelleher wrote: David, Easy way ... just make a custom stateless reusable component "SmartNumberTextField.wo" or whatever you want to call it. Make it binding compatible with WOtextfield so you can just change the component name in wod. I do this for date fields. I have one component WKDateField that has a default date formatter and a javascript calendar widget. When I want to change the widget behaviour or switch to a different calendar widget, I just change the one component. Basically you should be building a framework of reusable stateless WOComponents that you can re-use in apps over and over. The goal is "do not repeat yourself" and productivity. BTW, use Wonder AjaxUtils or ERIncludeOncePerRequest (or whatever that's called) to stuff the javsscript snippet into the head or the page only once. Also, for inspiration on Reusable Components, it is worthwhile to watch Session 614 "Reusable Components" from WWDC 2003. Regards, Kieran On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@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/david%40infinityspain.com This email sent to da...@infinityspain.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Numbers Only in WOTextField
David, Easy way ... just make a custom stateless reusable component "SmartNumberTextField.wo" or whatever you want to call it. Make it binding compatible with WOtextfield so you can just change the component name in wod. I do this for date fields. I have one component WKDateField that has a default date formatter and a javascript calendar widget. When I want to change the widget behaviour or switch to a different calendar widget, I just change the one component. Basically you should be building a framework of reusable stateless WOComponents that you can re-use in apps over and over. The goal is "do not repeat yourself" and productivity. BTW, use Wonder AjaxUtils or ERIncludeOncePerRequest (or whatever that's called) to stuff the javsscript snippet into the head or the page only once. Also, for inspiration on Reusable Components, it is worthwhile to watch Session 614 "Reusable Components" from WWDC 2003. Regards, Kieran On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Installing WO 543 on Linux
By the way, can someone tell me what the DWOEnvClassPath is? It seems to be picked up from the $CLASSPATH env variable, which on our existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ lib/classes.zip" but that classes.zip file does not exist. Is this relevant? Regards, David. On Nov 10, 2009, at 10:12 AM, David Griffith wrote: Thanks Bogdan, that's where I went wrong. Doh. I put them in / Library/Frameworks instead of /Local/Library/Frameworks. Have another problem now, of course, but I'll look into it later and post if I can't sort it myself. Thanks for your help, Dave. On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: Hi David, On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? David. On Nov 10, 2009, at 1:21 AM, John Bruce wrote: ok you either need to define LOCALROOT or just change the path to be exact - I'm assuming /opt for your WebObjects install so the extact path would be something like /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/Local/Library/ Frameworks/ERExtensions.framework ( pay attention to the Local ). the part about moving ERExtensions.jar above javafoundation.jar was not to do with resolving the location issue but rather just making sure the jars are loaded inthe right order (once the paths are correct of course :) ) On Tue, Nov 10, 2009 at 12:04 AM, David Griffith wrote: LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar I've moved ERExtensions to appear above JavaFoundation, still the same. The above is the second line I believe, with JavaFoundation coming further down. On Nov 10, 2009, at 12:56 AM, John Bruce wrote: Hi David, Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? Also ERExtensions.jar needs to appear before the entry for javafoundation.jar. Cheers, John On Mon, Nov 9, 2009 at 11:47 PM, David Griffith > wrote: Well I think I figured out how to set that value, but this is what I am getting still: java.lang.NoClassDefFoundError: er/extensions/appserver/ ERXApplication at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(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:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.webobjects._bootstrap.WOBootstrap.main (WOBootstrap.java:84) Caused by: java.lang.ClassNotFoundException: er.extensions.appserver.ERXApplication at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 316) ... 11 more On Nov 9, 2009, at 11:35 PM, David Griffith wrote: I've noticed that when I manually launch this app on my new local server, I get: -DWOEnvClassPath="" Whereas on development machine, or the existing deployment server, I get: -DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip" Where is this value set or how do I set it? It seems that this is causing the errors I'm getting, i.e. NoClassDef for Application etc. Regards, David. On Nov 9, 2009, at 10:58 PM, John Bruce wrote: Hi David, If exporting the NEXT_ROOT doens't work you can also edit the UNIXClassPath.txt file which is inside your woa in the Contents/UNIX directory. There you can set the path to the frameworks explicity which should solve the problem for now while you work on the NEXT_ROOT issue. In my build / deploy process I embed the frameworks (as well as the particular WO version that app is using) inside a directory and set the path explicity in the file. That way I can depoy different apps that use differnt WO versions alongside each other. Cheers, John On Mon, Nov 9, 2009 at 9:30 PM, David Griffith > wrote: Hi John, I did have an error in the path to the apps, I've fixed that and it works great now. To start the apps I mean. I can connect to JavaMonitor on port 56789. I've installed all the Wonder
Re: Class loading problem - taking forever
On Nov 10, 2009, at 7:20 AM, John Huss wrote: I have an app that is taking an extremely long time to startup and start responding to requests (5-10 minutes). It appears to be spending a huge amount of time in NSBundle.searchAllBundlesForClassWithName, which has the ominous logging message: "NSBundle.searchAllBundlesForClassWithName was invoked. **This affects performance very badly.** " What causes this method to be invoked? It seems to be called in other apps that work fine so I'm not sure if this is important or not. I don't think that message could be the cause of a 5-10 minute delay. A delay that long sounds more like a static initializer block that is timing out on something (connecting to a port?). Try and get a thread dump while it is hung, that will likely point directly to the culprit. For the time-being I've worked around the issue by calling _NSUtilities.setClassForName for a bunch of classes, but I'm not sure why this is necessary since I'm not doing that in other apps. Are there other classes in the relevant bundle/jar that have static initializers? Is this on the same or different machines? If different, could be a block on some outgoing connection. And in general this makes me think it would be better to do _NSUtilities.setClassForName for everything in Wonder for instance - if there is a performance (startup time) benefit. That messages looks more normal than concerning to me Chuck -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will 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: compound pk
but never mind ... the existence of you two crazy people means i had to rethink my no-reason. that, within a couple minutes of posting, two people pop up and actually have depended on this means that the actual number must be a lot more. ms On Nov 10, 2009, at 3:43 PM, Mike Schrag wrote: why do you guys have to make my life difficult no reason for asking :) Just curious ? Can't believe. probably a good idea to never trust my smiley-faced adorned "no reason"s ms ___ Do not post admin requests to the list. They will 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%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: compound pk
why do you guys have to make my life difficult no reason for asking :) Just curious ? Can't believe. probably a good idea to never trust my smiley-faced adorned "no reason"s ms ___ Do not post admin requests to the list. They will 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: Numbers Only in WOTextField
I have a reusable solution that solves this problem but it's experimental so use at your own risk. If you go to http://www.kahalawai.com/MoAjax On the left hand side there is a navigation, choose the link at the bottom "JS Form Validation". best, Johnny On Nov 10, 2009, at 10:21 AM, David Avendasora wrote: On Nov 10, 2009, at 3:07 PM, Chuck Hill wrote: On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/ msg00342.html And not so great minds don't read the docs? :-P What?! There's docs now? :-P WOTextField extends WODynamicElement, not WOComponent. WODynamicElement same same, but very different. No have template. The WODynamicElements are not really intended to be sub-classed. There were not written with that in mind. You will pretty much have to re-implement it. The other approach is to wrap it in a WOComponent and, yes, pass in all the possible bindings. Yeah, I jumpt to a conclusion. I saw the subject "Subclassing a Component" and that you had responded with something that wasn't quite completely clear to me at first and thought, well it must be just over my head. I'll figure it out eventually. Once I figured out that it wasn't at all what I was talking about, you (and Ricardo) had already busted me. Dave x` You might also be able to add to the bindings in Application using public WOElement dynamicElementWithName(String aName, NSDictionary someAssociations, WOElement anElement, NSArray aLanguageArray) Chuck On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com This email sent to jlmil...@kahalawai.com Johnny Miller Kahalawai Media Corp http://www.kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: compound pk
Mike Schrag schrieb: why do you guys have to make my life difficult no reason for asking :) Just curious ? Can't believe. ms On Nov 10, 2009, at 10:53 AM, Stefan Klein wrote: HI Mike, I did something strange :-) some years ago under WO5.2. In the PK generation some values were added automatically like user, valid_from dates ... . Why are you asking ? Stefan Mike Schrag schrieb: has anyone ever had a scenario where they've had an entity with a compound PK where they needed PK generation for some strange reason? i can't come up with any scenario where this would actually work, but i thought i'd toss the question out to the masses ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Numbers Only in WOTextField
On Nov 10, 2009, at 3:07 PM, Chuck Hill wrote: On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html And not so great minds don't read the docs? :-P What?! There's docs now? :-P WOTextField extends WODynamicElement, not WOComponent. WODynamicElement same same, but very different. No have template. The WODynamicElements are not really intended to be sub-classed. There were not written with that in mind. You will pretty much have to re-implement it. The other approach is to wrap it in a WOComponent and, yes, pass in all the possible bindings. Yeah, I jumpt to a conclusion. I saw the subject "Subclassing a Component" and that you had responded with something that wasn't quite completely clear to me at first and thought, well it must be just over my head. I'll figure it out eventually. Once I figured out that it wasn't at all what I was talking about, you (and Ricardo) had already busted me. Dave x` You might also be able to add to the bindings in Application using public WOElement dynamicElementWithName(String aName, NSDictionary someAssociations, WOElement anElement, NSArray aLanguageArray) Chuck On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Numbers Only in WOTextField
On Nov 10, 2009, at 11:52 AM, David Avendasora wrote: Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html And not so great minds don't read the docs? :-P WOTextField extends WODynamicElement, not WOComponent. WODynamicElement same same, but very different. No have template. The WODynamicElements are not really intended to be sub-classed. There were not written with that in mind. You will pretty much have to re-implement it. The other approach is to wrap it in a WOComponent and, yes, pass in all the possible bindings. You might also be able to add to the bindings in Application using public WOElement dynamicElementWithName(String aName, NSDictionary someAssociations, WOElement anElement, NSArray aLanguageArray) Chuck On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Numbers Only in WOTextField
Just curious... How is ERXComponentUtilities.inheritTemplateFrom used to solve your problem? :-) On Nov 10, 2009, at 2:52 PM, David Avendasora wrote: > Never mind! Great minds think alike, right Lon? > > http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html > > Dave > > On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: > >> Hi all, >> >> Okay, brace yourselves, this isn't a Java Client testimonial! >> >> There are lots of places in our Web apps where we have a WOTextField that >> should only ever be given numbers. I don't want to deal with any chance that >> anything other than numbers will be passed on the server, so I added this >> javascript to the page: >> >> >> >> >> >> And added this binding to the WOTextField: onkeypress="return >> isNumberKey(event)" >> >> This works great. Exactly what I want, but I have literally hundreds of >> places that I need to use this, and since the code will always be the same, >> is it possible to simply extend WOTextField so all I have to do is simply >> replace calls to WOTextField with MYNumberField without having to manually >> pass through all of WOTextField's bindings (value = ^val) >> >> Thanks! >> >> Dave >> >> >> David Avendasora >> Senior Software Engineer >> K12, Inc. >> >> * >> WebObjects Documentation Wiki : >> http://wiki.objectstyle.org/confluence/display/WO/ >> * >> WebObjects API: >> http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html >> * >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com >> >> This email sent to webobje...@avendasora.com > > David Avendasora > Senior Software Engineer > K12, Inc. > > * > WebObjects Documentation Wiki : > http://wiki.objectstyle.org/confluence/display/WO/ > * > WebObjects API: > http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html > * > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com > > This email sent to rpar...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Numbers Only in WOTextField
Never mind! Great minds think alike, right Lon? http://lists.apple.com/archives/webobjects-dev/2009/Oct/msg00342.html Dave On Nov 10, 2009, at 2:29 PM, David Avendasora wrote: Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Numbers Only in WOTextField
Hi all, Okay, brace yourselves, this isn't a Java Client testimonial! There are lots of places in our Web apps where we have a WOTextField that should only ever be given numbers. I don't want to deal with any chance that anything other than numbers will be passed on the server, so I added this javascript to the page: And added this binding to the WOTextField: onkeypress="return isNumberKey(event)" This works great. Exactly what I want, but I have literally hundreds of places that I need to use this, and since the code will always be the same, is it possible to simply extend WOTextField so all I have to do is simply replace calls to WOTextField with MYNumberField without having to manually pass through all of WOTextField's bindings (value = ^val) Thanks! Dave David Avendasora Senior Software Engineer K12, Inc. * WebObjects Documentation Wiki : http://wiki.objectstyle.org/confluence/display/WO/ * WebObjects API: http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html * ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: compound pk
why do you guys have to make my life difficult no reason for asking :) ms On Nov 10, 2009, at 10:53 AM, Stefan Klein wrote: HI Mike, I did something strange :-) some years ago under WO5.2. In the PK generation some values were added automatically like user, valid_from dates ... . Why are you asking ? Stefan Mike Schrag schrieb: has anyone ever had a scenario where they've had an entity with a compound PK where they needed PK generation for some strange reason? i can't come up with any scenario where this would actually work, but i thought i'd toss the question out to the masses ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: compound pk
Hi Mike, Had a situation recently on a app where some entities were using compound primary keys. Most of the time they were read only but there was a new process added that duplicated some of these entities (using EOCopying). In that case some values in the compound primary key needed to stay the same and others would be different (some had 3 attributes as part of the key). Before refactoring these entites we would do the copy and specify the primary key dictionary in the entiy retaining the fixed attributes and use generated values for the changable ones. It worked most of the time but in the end we just changed those entities to use single primary keys in the more standard way. So I guess my point is that automatic compound primary key generation could be useful when duplicating objects that use them. Also if you arn't in a position to alter the db schema then you might not be able to change to single primary keys and being able to insert objects in that situation would be nice without having the manually create the ok dictionary. Cheers, John On Tue, Nov 10, 2009 at 3:43 PM, Mike Schrag wrote: > has anyone ever had a scenario where they've had an entity with a compound > PK where they needed PK generation for some strange reason? i can't come up > with any scenario where this would actually work, but i thought i'd toss the > question out to the masses > > ms > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/wolists%40gmail.com > > This email sent to woli...@gmail.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: compound pk
HI Mike, I did something strange :-) some years ago under WO5.2. In the PK generation some values were added automatically like user, valid_from dates ... . Why are you asking ? Stefan Mike Schrag schrieb: has anyone ever had a scenario where they've had an entity with a compound PK where they needed PK generation for some strange reason? i can't come up with any scenario where this would actually work, but i thought i'd toss the question out to the masses ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
compound pk
has anyone ever had a scenario where they've had an entity with a compound PK where they needed PK generation for some strange reason? i can't come up with any scenario where this would actually work, but i thought i'd toss the question out to the masses ms ___ Do not post admin requests to the list. They will 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: Uses for D2JC (was: Gianduia and WO)
On 2009-11-10, at 10:02 AM, Anjo Krank wrote: The assistants are an excellent example of how easy it is to hit a stone wall. I remember I re-created my first project 5 times, because I simply couldn't figure how the various things influenced each other. Had I known about the rules up-front, I'd at least would have had a chance to to things in a more systematic way... What the default stuff gives is a fancy way to navigate your data, much like mysqladmin or the like, only with objects. From there on to a "real" app, it's not a cliff, it's a missile cruise... Cheers, Anjo D2W is a huge and horribly opaque beast, and I love it so :-) I understand the desire for some illumination on the topic, some help easing into the technology, unfortunately, I don't believe the assistant is it. Assistant gives you the false sense that you are actually getting somewhere, and then you hit a wall, and you discover you aren't. I tried to learn from it's rules, it was a horrible soul crushing experience. My sense is that the number of options in a D2JC are constrained by the JC architecture, and in this case the assistant would work well because it could cover all options and you would never need to actually touch the rules manually. Because of the extensible nature of D2W (the look/components you use are controlled by and at the same time extend the rules) the assistant can never come close to understanding all of the options available. That means in D2W you will NEED to edit the rules manually. Am 10.11.2009 um 15:42 schrieb David Avendasora: On Nov 10, 2009, at 7:31 AM, Johan Henselmans wrote: I have heard the 'Assistant produces horrible rules use RuleModeler' over and over again by very outspoken, well versed into the Direct To Web technology developers that have tweaked the rulegeneration and parsing themselves (Anjo and Guido come to mind). They might be right about the WebAssistant, but that means that people that are not well versed in that technology do not have a possibility to learn how these rules work. 'Read the source code of the available rules' is for a lot of people not the first idea that comes to mind I the want to learn a new technology that is supposed to be based on rules. I think that one of the reasons that there seems to be a lack of new WebObjects developers (according to Pascal's research) has to do with the falling away of these gentle tools: displaygroups that were automagically generated, WebAssistant that made you whip up a crude interface to a database in an hour. I remember one of the CodeFab guys telling learning WebObjects is not difficult because of the steep learning curve, but because there is a learning cliff. A gentler introduction (like the WebAssistant was) into the whole rulesystem really helped people to get into WebObjects. I would be nice if these tools should at least not be broken (like they are now with the D2WebService Assisant, the D2WebAssistant) until something as gentle came up. I think this is a really excellent point. This is one of the major reasons I didn't walk away from WO when I first started. I didn't experience the learning "cliff" at all. I had a fully functional WO app without needing to learn a single piece of WO/EOF. I was then able to take small steps to understand WebObjects/EOF piece-by- piece. I first tried to set a default value and learned the whole "awakeFromInsertion" side of things. Then I quickly learned the situations in which you don't want to have a reverse to-many relationship by simply running my app and seeing how long it took to set an Entitie's "Type" when there were thousands of items with that Type. Then it was the implications of an object owning the destination of it's relationship and then the basics of WO's built- in validation system. It turned the cliff into a gentle slope I learned a huge amount of EOF before I ever even touched a .wo file. By the time I created my first Web components I understood exactly where to put UI logic and where to put business logic. I now use D2JC differently than I did when I was first learning WO, but it was fundamental to my being able to wrap my head around what EOF was and how it was so fundamentally different from other technologies I had used in the past. I didn't have to learn anything about components or editing contexts before I could implement my business logic. D2JC managed all of that for me. I think a great flow for a newcomer to learn WO is: Reverse Engineer an existing DB Launch a D2JC App that uses that model Learn how the basics of EOF work and the implications of various model settings by changing model stettings and seeing immedately how those changes impact the D2JC app's behavior. Add basic custom business logic (defaults, validation, etc) Create a Web App. As far as the rules generated by the Assistant being horrible, I have
Class loading problem - taking forever
I have an app that is taking an extremely long time to startup and start responding to requests (5-10 minutes). It appears to be spending a huge amount of time in NSBundle.searchAllBundlesForClassWithName, which has the ominous logging message: "NSBundle.searchAllBundlesForClassWithName was invoked. **This affects performance very badly.** " What causes this method to be invoked? It seems to be called in other apps that work fine so I'm not sure if this is important or not. For the time-being I've worked around the issue by calling _NSUtilities.setClassForName for a bunch of classes, but I'm not sure why this is necessary since I'm not doing that in other apps. And in general this makes me think it would be better to do _NSUtilities.setClassForName for everything in Wonder for instance - if there is a performance (startup time) benefit. John ___ Do not post admin requests to the list. They will 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: Uses for D2JC (was: Gianduia and WO)
The assistants are an excellent example of how easy it is to hit a stone wall. I remember I re-created my first project 5 times, because I simply couldn't figure how the various things influenced each other. Had I known about the rules up-front, I'd at least would have had a chance to to things in a more systematic way... What the default stuff gives is a fancy way to navigate your data, much like mysqladmin or the like, only with objects. From there on to a "real" app, it's not a cliff, it's a missile cruise... Cheers, Anjo Am 10.11.2009 um 15:42 schrieb David Avendasora: On Nov 10, 2009, at 7:31 AM, Johan Henselmans wrote: I have heard the 'Assistant produces horrible rules use RuleModeler' over and over again by very outspoken, well versed into the Direct To Web technology developers that have tweaked the rulegeneration and parsing themselves (Anjo and Guido come to mind). They might be right about the WebAssistant, but that means that people that are not well versed in that technology do not have a possibility to learn how these rules work. 'Read the source code of the available rules' is for a lot of people not the first idea that comes to mind I the want to learn a new technology that is supposed to be based on rules. I think that one of the reasons that there seems to be a lack of new WebObjects developers (according to Pascal's research) has to do with the falling away of these gentle tools: displaygroups that were automagically generated, WebAssistant that made you whip up a crude interface to a database in an hour. I remember one of the CodeFab guys telling learning WebObjects is not difficult because of the steep learning curve, but because there is a learning cliff. A gentler introduction (like the WebAssistant was) into the whole rulesystem really helped people to get into WebObjects. I would be nice if these tools should at least not be broken (like they are now with the D2WebService Assisant, the D2WebAssistant) until something as gentle came up. I think this is a really excellent point. This is one of the major reasons I didn't walk away from WO when I first started. I didn't experience the learning "cliff" at all. I had a fully functional WO app without needing to learn a single piece of WO/EOF. I was then able to take small steps to understand WebObjects/EOF piece-by- piece. I first tried to set a default value and learned the whole "awakeFromInsertion" side of things. Then I quickly learned the situations in which you don't want to have a reverse to-many relationship by simply running my app and seeing how long it took to set an Entitie's "Type" when there were thousands of items with that Type. Then it was the implications of an object owning the destination of it's relationship and then the basics of WO's built- in validation system. It turned the cliff into a gentle slope I learned a huge amount of EOF before I ever even touched a .wo file. By the time I created my first Web components I understood exactly where to put UI logic and where to put business logic. I now use D2JC differently than I did when I was first learning WO, but it was fundamental to my being able to wrap my head around what EOF was and how it was so fundamentally different from other technologies I had used in the past. I didn't have to learn anything about components or editing contexts before I could implement my business logic. D2JC managed all of that for me. I think a great flow for a newcomer to learn WO is: Reverse Engineer an existing DB Launch a D2JC App that uses that model Learn how the basics of EOF work and the implications of various model settings by changing model stettings and seeing immedately how those changes impact the D2JC app's behavior. Add basic custom business logic (defaults, validation, etc) Create a Web App. As far as the rules generated by the Assistant being horrible, I have to admin that don't really know, because I've never had to go in and modify those rules. The few custom rules I have created are in a completely separate file and I use RuleModeler to manage those. Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/anjo%40krank.net This email sent to a...@krank.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Uses for D2JC (was: Gianduia and WO)
On Nov 10, 2009, at 7:31 AM, Johan Henselmans wrote: I have heard the 'Assistant produces horrible rules use RuleModeler' over and over again by very outspoken, well versed into the Direct To Web technology developers that have tweaked the rulegeneration and parsing themselves (Anjo and Guido come to mind). They might be right about the WebAssistant, but that means that people that are not well versed in that technology do not have a possibility to learn how these rules work. 'Read the source code of the available rules' is for a lot of people not the first idea that comes to mind I the want to learn a new technology that is supposed to be based on rules. I think that one of the reasons that there seems to be a lack of new WebObjects developers (according to Pascal's research) has to do with the falling away of these gentle tools: displaygroups that were automagically generated, WebAssistant that made you whip up a crude interface to a database in an hour. I remember one of the CodeFab guys telling learning WebObjects is not difficult because of the steep learning curve, but because there is a learning cliff. A gentler introduction (like the WebAssistant was) into the whole rulesystem really helped people to get into WebObjects. I would be nice if these tools should at least not be broken (like they are now with the D2WebService Assisant, the D2WebAssistant) until something as gentle came up. I think this is a really excellent point. This is one of the major reasons I didn't walk away from WO when I first started. I didn't experience the learning "cliff" at all. I had a fully functional WO app without needing to learn a single piece of WO/EOF. I was then able to take small steps to understand WebObjects/EOF piece-by-piece. I first tried to set a default value and learned the whole "awakeFromInsertion" side of things. Then I quickly learned the situations in which you don't want to have a reverse to-many relationship by simply running my app and seeing how long it took to set an Entitie's "Type" when there were thousands of items with that Type. Then it was the implications of an object owning the destination of it's relationship and then the basics of WO's built-in validation system. It turned the cliff into a gentle slope I learned a huge amount of EOF before I ever even touched a .wo file. By the time I created my first Web components I understood exactly where to put UI logic and where to put business logic. I now use D2JC differently than I did when I was first learning WO, but it was fundamental to my being able to wrap my head around what EOF was and how it was so fundamentally different from other technologies I had used in the past. I didn't have to learn anything about components or editing contexts before I could implement my business logic. D2JC managed all of that for me. I think a great flow for a newcomer to learn WO is: Reverse Engineer an existing DB Launch a D2JC App that uses that model Learn how the basics of EOF work and the implications of various model settings by changing model stettings and seeing immedately how those changes impact the D2JC app's behavior. Add basic custom business logic (defaults, validation, etc) Create a Web App. As far as the rules generated by the Assistant being horrible, I have to admin that don't really know, because I've never had to go in and modify those rules. The few custom rules I have created are in a completely separate file and I use RuleModeler to manage those. Dave ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: What could that be?
Hi, We've recently moved to 5.4.3 and hit this bug right away. I've jadded the _NSWeakMutableArray, added it to our project's build path and applied a fix - the problem went away. Should I commit it (along with _NSWeakMutableSet and _NSWeakValueMutableDictionary) to Wonder? If yes, is it kosher to leave the jadded files as is (formatting, etc)? ps: It looks like the build of WO with fix never made it to the public release. The versions in the latest nightly build on ADC do not differ from ones in 5.4.3. On Fri, Jul 10, 2009 at 7:06 AM, Mike Schrag wrote: > _NSWeakMutableArray has /* */ public void removeReference(Object object) /* */ { /* 119 */ this.array.removeObject(object); /* */ } /* */ /* */ protected void __removeReference(Reference object) /* */ { /* 124 */ processQueue(); /* 125 */ this.array.removeObject(object); /* */ } > > i can't speak for anyone else here ... but if _I_ were to jad and fix this > bug, i would probably move that processQueue() call out of __removeReference > and put it in removeReference() instead ... that's just me. > > i might also look at the equivalent methods in _NSWeakMutableSet and > Dictionary. > > again .. > i'm just sayin'. > > ms > > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/webobjects-dev/dfrolov%40demax.ru > > This email sent to dfro...@demax.ru > ___ Do not post admin requests to the list. They will 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: WOB-Tokenizer
yep .. neither the runtime nor wolips uses that tag. it's almost certainly just markers to give hints to the wob validator. On Nov 10, 2009, at 12:36 AM, phil wrote: Le 09. 11. 09 09:35, phil a écrit : Hi, While doing housekeeping in our Webobjects apps, I found some tags in our components. I'm not the original writer of the code... and I didn't found much documentation on google about these tags. Does anyone knows where to find documentation? Or the exact meaning of this one at least? Best regards PHiLippe ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/rero_mailing_lists%40roud.ch This email sent to rero_mailing_li...@roud.ch I tried to suppress these tags and the javascript that was enclosed by or related to those tags still works as intended so I'm wondering if it was a tag added by WebOjects Builder to avoid warnings and error while validating a page when someone was doing something a little out of the standard way. Could it make some sense ? Best regards PHiLippe ___ Do not post admin requests to the list. They will 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%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Uses for D2JC (was: Gianduia and WO)
Op 9 nov 2009, om 17:30 heeft Mike Schrag het volgende geschreven: > I still go back to "why d2jc" -- why not just do d2w? you have the point, i > suppose, about the assistant -- if that's a requirement for you, then you're > probably a sad panda with d2w (why doesn't this work, again?that's gotta be > relatively easily fixable, though everyone i've ever heard says it produces > horrid rules). Other than the assistant, the swing approach just seems more > complicated in every respect. If you're truly not styling the app at ALL, > then I guess you don't care about the cost difference, but as far as "why not > get a swing person," the answer is because a swing person is going to cost > 50% more and the development cost to make custom swing controls is > dramatically higher than tweaking CSS and HTML. I'll grant you that admin > apps typically don't have the polish of end-user apps, and that you might not > want to bother much, but I still am not feeling why you'd ever do a d2j > client over a d2w client. I guess we'll leave it at "'cause you want to" and > move along :) > I have heard the 'Assistant produces horrible rules use RuleModeler' over and over again by very outspoken, well versed into the Direct To Web technology developers that have tweaked the rulegeneration and parsing themselves (Anjo and Guido come to mind). They might be right about the WebAssistant, but that means that people that are not well versed in that technology do not have a possibility to learn how these rules work. 'Read the source code of the available rules' is for a lot of people not the first idea that comes to mind I the want to learn a new technology that is supposed to be based on rules. I think that one of the reasons that there seems to be a lack of new WebObjects developers (according to Pascal's research) has to do with the falling away of these gentle tools: displaygroups that were automagically generated, WebAssistant that made you whip up a crude interface to a database in an hour. I remember one of the CodeFab guys telling learning WebObjects is not difficult because of the steep learning curve, but because there is a learning cliff. A gentler introduction (like the WebAssistant was) into the whole rulesystem really helped people to get into WebObjects. I would be nice if these tools should at least not be broken (like they are now with the D2WebService Assisant, the D2WebAssistant) until something as gentle came up. > ms > > On Nov 9, 2009, at 10:48 AM, David Avendasora wrote: > >> I think we are talking about two different uses of D2JC. I'm not really >> suggesting that it should be used to create an end-user UI in most cases. >> I'm saying that it is a powerful tool to aid in the development process. >> >> On Nov 6, 2009, at 12:42 PM, Mike Schrag wrote: >> >>> Sure, I agree yours is real and mine's a picture, but that wasn't really my >>> point. My point was about visual mismatch with the native platform. If >>> you're OK with the app looking like Java ... , by all means, ship it. >>> I find Java desktop apps to be mostly visually repugnant (the same reason >>> that I work on Maclipse, but at least SWT has a fighting chance), and I >>> don't believe you can actually make it un-gross without a huge amount of >>> work. It's a question of what matters to you, though. >> >> I guess my point is that when D2JC is used as a development tool, I wouldn't >> put _any_ work into making it look better. Neither would I for an >> CRUD-focused admin app. Sure, a perfectly native UI would be even better, >> but the amount of work it would take to make either a Cocoa or a Web UI to >> simply aid in development or do CRUD work is more than I think it's worth in >> these situations. >> >>> That said, pretty much everything in the main chunk of your email isn't >>> really D2JC, it's just D2*. I'm sold already on the RAD value of D2* >>> technologies, I'm just not at all convinced that D2JC is the right D2 to >>> choose in most cases. If time-to-market is the primary concern, it seems to >>> me that you have dramatically faster styling and design capabilities with >>> D2W. >> >> I don't style D2JC at all. I use what comes out of the box. How can D2W (or >> anything) be faster than that? Sure you can use D2W out-of-the-box too, but >> if you think D2JC looks terrible, then the default look of D2W must make >> your head explode. I don't use D2JC to design the end-user UI. I'm using it >> to help design the Model and the business logic and populate the DB through >> EOF instead of SQL. I can get immediate feedback and see the impacts of >> these changes without having to write any UI code at all. >> >>> You can hire an designer off the street to do CSS/HTML work for you, >>> whereas you'd dump a pile of hours into custom Swing controls. >> >> Couldn't you hire a Swing guy to do swing controls just like you hire a >> CSS/HTML guy? In addition to that,
Re: Reset JavaMonitor password
It is there and many thanks to quick reply! I supposed my password may have been hijacked. I am sure the password has not been changed or forgotten. Just relief that the rest are in secure tunnel. Take a look in SiteConfig.xml. IIRC, you can just delete that section. Chuck ___ Do not post admin requests to the list. They will 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: Installing WO 543 on Linux
Thanks Bogdan, that's where I went wrong. Doh. I put them in / Library/Frameworks instead of /Local/Library/Frameworks. Have another problem now, of course, but I'll look into it later and post if I can't sort it myself. Thanks for your help, Dave. On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote: Hi David, On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? David. On Nov 10, 2009, at 1:21 AM, John Bruce wrote: ok you either need to define LOCALROOT or just change the path to be exact - I'm assuming /opt for your WebObjects install so the extact path would be something like /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/Local/Library/ Frameworks/ERExtensions.framework ( pay attention to the Local ). the part about moving ERExtensions.jar above javafoundation.jar was not to do with resolving the location issue but rather just making sure the jars are loaded inthe right order (once the paths are correct of course :) ) On Tue, Nov 10, 2009 at 12:04 AM, David Griffith wrote: LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar I've moved ERExtensions to appear above JavaFoundation, still the same. The above is the second line I believe, with JavaFoundation coming further down. On Nov 10, 2009, at 12:56 AM, John Bruce wrote: Hi David, Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? Also ERExtensions.jar needs to appear before the entry for javafoundation.jar. Cheers, John On Mon, Nov 9, 2009 at 11:47 PM, David Griffith > wrote: Well I think I figured out how to set that value, but this is what I am getting still: java.lang.NoClassDefFoundError: er/extensions/appserver/ ERXApplication at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(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:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.webobjects._bootstrap.WOBootstrap.main (WOBootstrap.java:84) Caused by: java.lang.ClassNotFoundException: er.extensions.appserver.ERXApplication at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 316) ... 11 more On Nov 9, 2009, at 11:35 PM, David Griffith wrote: I've noticed that when I manually launch this app on my new local server, I get: -DWOEnvClassPath="" Whereas on development machine, or the existing deployment server, I get: -DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip" Where is this value set or how do I set it? It seems that this is causing the errors I'm getting, i.e. NoClassDef for Application etc. Regards, David. On Nov 9, 2009, at 10:58 PM, John Bruce wrote: Hi David, If exporting the NEXT_ROOT doens't work you can also edit the UNIXClassPath.txt file which is inside your woa in the Contents/UNIX directory. There you can set the path to the frameworks explicity which should solve the problem for now while you work on the NEXT_ROOT issue. In my build / deploy process I embed the frameworks (as well as the particular WO version that app is using) inside a directory and set the path explicity in the file. That way I can depoy different apps that use differnt WO versions alongside each other. Cheers, John On Mon, Nov 9, 2009 at 9:30 PM, David Griffith > wrote: Hi John, I did have an error in the path to the apps, I've fixed that and it works great now. To start the apps I mean. I can connect to JavaMonitor on port 56789. I've installed all the Wonder frameworks, the mysql-connector/j, mysql server, installed my database and added users etc. Now, I'm sure this is something so stupid, but I can't see what it is I'm trying to start the iPSDistributor app as user 'appserver'. The NEXT_ROOT variable IS set as you can see below, but the first thing the app says is that it is NOT set. [appser...
Re: Installing WO 543 on Linux
Hi David, On 10 Nov 2009, at 09:46, David Griffith wrote: By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT, WOROOT and APPROOT. I haven't named any of these so I guess WOLips is doing it for me? David. On Nov 10, 2009, at 1:21 AM, John Bruce wrote: ok you either need to define LOCALROOT or just change the path to be exact - I'm assuming /opt for your WebObjects install so the extact path would be something like /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar If you have installed WebObjects on the linux machine via WOInstaller.jar and have specified /opt as the install directory, then ERExtensions.jar should be placed in /opt/Local/Library/ Frameworks/ERExtensions.framework ( pay attention to the Local ). the part about moving ERExtensions.jar above javafoundation.jar was not to do with resolving the location issue but rather just making sure the jars are loaded inthe right order (once the paths are correct of course :) ) On Tue, Nov 10, 2009 at 12:04 AM, David Griffith wrote: LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ ERExtensions.jar I've moved ERExtensions to appear above JavaFoundation, still the same. The above is the second line I believe, with JavaFoundation coming further down. On Nov 10, 2009, at 12:56 AM, John Bruce wrote: Hi David, Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt? Also ERExtensions.jar needs to appear before the entry for javafoundation.jar. Cheers, John On Mon, Nov 9, 2009 at 11:47 PM, David Griffith > wrote: Well I think I figured out how to set that value, but this is what I am getting still: java.lang.NoClassDefFoundError: er/extensions/appserver/ ERXApplication at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$000(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:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) Caused by: java.lang.ClassNotFoundException: er.extensions.appserver.ERXApplication at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:303) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 316) ... 11 more On Nov 9, 2009, at 11:35 PM, David Griffith wrote: I've noticed that when I manually launch this app on my new local server, I get: -DWOEnvClassPath="" Whereas on development machine, or the existing deployment server, I get: -DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip" Where is this value set or how do I set it? It seems that this is causing the errors I'm getting, i.e. NoClassDef for Application etc. Regards, David. On Nov 9, 2009, at 10:58 PM, John Bruce wrote: Hi David, If exporting the NEXT_ROOT doens't work you can also edit the UNIXClassPath.txt file which is inside your woa in the Contents/UNIX directory. There you can set the path to the frameworks explicity which should solve the problem for now while you work on the NEXT_ROOT issue. In my build / deploy process I embed the frameworks (as well as the particular WO version that app is using) inside a directory and set the path explicity in the file. That way I can depoy different apps that use differnt WO versions alongside each other. Cheers, John On Mon, Nov 9, 2009 at 9:30 PM, David Griffith > wrote: Hi John, I did have an error in the path to the apps, I've fixed that and it works great now. To start the apps I mean. I can connect to JavaMonitor on port 56789. I've installed all the Wonder frameworks, the mysql-connector/j, mysql server, installed my database and added users etc. Now, I'm sure this is something so stupid, but I can't see what it is I'm trying to start the iPSDistributor app as user 'appserver'. The NEXT_ROOT variable IS set as you can see below, but the first thing the app says is that it is NOT set. [appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT /opt [appser...@localhost iPSDistributor.woa]$ ./iPSDistributor iPSDistributor: NEXT_ROOT environment variable is not set! Reading UNIXClassPath.txt ... Launching iPSDistributor.woa ... Obviously it crashes out with NoClassDef errors etc as it can't find the NE