move from using EO_PK_TABLE to OpenBase plugin
Hi All, WebObjects 5.3 XCode 2.x Openbase 10.x We currently have an application which utilises the EO_PK_TABLE in generating primary keys. We need to use the Openbase method of generating primary keys. Can anyone please tell me how to change this? Thanks in Advance Shelley ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: move from using EO_PK_TABLE to OpenBase plugin
Hello Shelly; You need to include the following framework in your project / build product; OpenBasePKPlugin.framework Then you need to add this bit of code to your Application's constructor; JDBCPlugIn .setPlugInNameForSubprotocol (com.webobjects.jdbcadaptor.OpenBasePKPlugIn, openbase); cheers. We currently have an application which utilises the EO_PK_TABLE in generating primary keys. We need to use the Openbase method of generating primary keys. Can anyone please tell me how to change this? ___ 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 [EMAIL PROTECTED]
Re: Practical Webobjects Utilities Framework
You'll have to translate the instructions to the new tools. You now need to set this up in the .eogen file. 1) Open it and scroll all the way to the bottom to the Defines section 2) Click Add 3) Make the name of the variable EOGenericRecord (not EOSuperclass as it says in the book, because the templates that come with WOLips are already setup to look for EOGenericRecord so it's less work) 4) Make the value of the variable the name of your custom superclass, including it's package (your.app.CopyableGenericRecord). Done. On a related note, consider using MyGenericRecord (or similar) instead of CopyableGenericRecord since as you go there will likely be other things you'll add to your custom superclass besides the copyable stuff. Dave On Jun 24, 2008, at 10:49 PM, Jeff Schmitz wrote: I was having one problem getting the velocity generator to generate my model classes as extensions of my custom superclass (CopyableGenericRecord) as described in the book. Specifically, where it says to: define the superclass name with: -define-EOSuperclass CopyableGenericRecord Where, exactly, does this line need to be added so that EOGenerator picks it up? Thanks, Jeff On Jun 23, 2008, at 5:43 PM, David Avendasora wrote: That's what I did for the EOCopyable stuff too. It works great. Let me know if you have any issues getting it working. I know that the Wonder team is working on incorporating the same functionality too, but I don't know when it will be released. Dave On Jun 23, 2008, at 5:59 PM, Jeff Schmitz wrote: They are in packages form. I only need a couple of the files (the EOCopyable stuff), so I think I'm going to just add the source to my project and use them from there. Thanks, Jeff On Jun 21, 2008, at 8:14 PM, Greg Hulands wrote: Do you see the source in packages form or just folders? If it is jut folders, then you'll need to modify the java build path and add the folder as a source folder. greg On 21/06/2008, at 6:43 AM, Jeff Schmitz wrote: Hello, I've tried to import the practical webobjects utilities framework project per instructions of pgs 335-336 of the book, but when I use the WOLips Ant Tools-Install command on the build file to install it, I get the following warning: Warning: skipping jar archive /Library/Frameworks/ PracticalUtilities.framework/Resources/Java/ practicalutilities.jar because no files were included. when I look at the practicalutilites.jar produced, it seems to be an empty jar (it's 4kb in size). Any ideas? I can see all the source files in the WOLips project within the src project folder. Thanks, Jeff ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/ghulands%40mac.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will 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 [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Hand-rolled links not working in development without negative port number
Chuck, as usual you have shone a bright light onto proceedings. We use shortened URLs and apache rewrites which explains the appearance of the - early in the URL. That wasn't the problem. This is what made me understand: 3. You had storing the session ID and Instance Number in cookies enabled So wotaskd can route the request if: a) It has the negative port number in the URL = go straight there b) It has the port number in a cookie associated with a session = go straight there c) No session, no port number specified = find a running instance and route to one of those It so happened that my colleague had a session active when he was checking the links for me. When I triggered a session first, my hand- rolled links with no negative port number worked too - like magic. So it has always been this way but finally I now know why. I was hitting c) above and in development I don't have such instances available. I suspect it relates to my Run... script as that seemed to get hosed by an SVN checkout at one point. The launch config gets stored in the workspace metadata, not in the project. So svn checkouts should not affect this. Yeah, I think I had done what Florijan said and made the launch file part of the visible project. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: mod_gzip + WO problems
Hi John, where did you get the mod from? The version I had has a bug, it only scans for content-type, but not for Content-type (Capital C). Or some other header that WO sends with a capital. I think you can see it because you either get two headers, or the size does not fit the content. I can’t remember what it was exactly. If you fix that, mod_gzip works fine. atze Am 24.06.2008 um 22:43 schrieb John Huss: I'm trying to get mod_gzip running on one of my WO apps. It works for static pages (index.html) and static resources (like css) in my WO app, but not on the html returned from the WO app. I'm guessing this has something to do with the fact that the content is being dynamically generated. Any tips on how to get this working? 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 [EMAIL PROTECTED]
Re: mod_gzip + WO problems
I got a pre-compiled one here: http://www.entropy.ch/blog/Mac+OS+X/2006/07/31/Building-mod-gzip-so-as-Universal-Binary.html I guess I'll go ahead and compile one myself and try that. John On Wed, Jun 25, 2008 at 6:50 AM, Alexander Spohr [EMAIL PROTECTED] wrote: Hi John, where did you get the mod from? The version I had has a bug, it only scans for content-type, but not for Content-type (Capital C). Or some other header that WO sends with a capital. I think you can see it because you either get two headers, or the size does not fit the content. I can't remember what it was exactly. If you fix that, mod_gzip works fine. atze Am 24.06.2008 um 22:43 schrieb John Huss: I'm trying to get mod_gzip running on one of my WO apps. It works for static pages (index.html) and static resources (like css) in my WO app, but not on the html returned from the WO app. I'm guessing this has something to do with the fact that the content is being dynamically generated. Any tips on how to get this working? 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 [EMAIL PROTECTED]
Maven
I followed the tutorial: http://wiki.objectstyle.org/confluence/display/WO/Apple+Maven+Support+and+Nightly+Builds but when I create a new project I have no WebObjects Maven Application Any suggestion? regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Maven
Hi Amedeo, Please, check if WOLips Apple Maven Integration feature was installed correctly. Anyway, take a look on [1] for a more complete tutorial. [1]http://wiki.objectstyle.org/confluence/display/WOL/Apple+Maven+Nightly+Builds Cheers, Henrique Amedeo Mantica wrote: I followed the tutorial: http://wiki.objectstyle.org/confluence/display/WO/Apple+Maven+Support+and+Nightly+Builds but when I create a new project I have no WebObjects Maven Application Any suggestion? regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: move from using EO_PK_TABLE to OpenBase plugin
Hi Shelley, add this to your application constructor JDBCPlugIn.setPlugInNameForSubprotocol (com.webobjects.jdbcadaptor.OpenBasePKPlugIn, openbase); and in your model's adaptor settings add this: Driver: com.openbase.jdbc.ObDriver Plugin: com.webobjects.jdbcadaptor.OpenBasePKPlugIn That should do it. Gordon On 25-Jun-08, at 3:28 AM, Shelley Eitzen wrote: Hi All, WebObjects 5.3 XCode 2.x Openbase 10.x We currently have an application which utilises the EO_PK_TABLE in generating primary keys. We need to use the Openbase method of generating primary keys. Can anyone please tell me how to change this? Thanks in Advance Shelley ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/gordon.belray% 40utoronto.ca This email sent to [EMAIL PROTECTED] Gordon Belray Information Architect and Imaging System Manager Information Technology Services Robarts Library 416.946.8617cell: 416.427.7007 [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: mod_gzip + WO problems
Ok, compiling my own didn't make any difference. I tried compiling the debug version of the module and using that to see what was going on, but apache wouldn't load the debug version. But I finally got it to work by changing the configuration rules to have this: mod_gzip_item_includeuri ^.*$ mod_gzip_item_includemime^.*$ along with the appropriate exclude lines. This will make it compress everything except what you explicitly exclude. John On Wed, Jun 25, 2008 at 8:50 AM, John Huss [EMAIL PROTECTED] wrote: I got a pre-compiled one here: http://www.entropy.ch/blog/Mac+OS+X/2006/07/31/Building-mod-gzip-so-as-Universal-Binary.html I guess I'll go ahead and compile one myself and try that. John On Wed, Jun 25, 2008 at 6:50 AM, Alexander Spohr [EMAIL PROTECTED] wrote: Hi John, where did you get the mod from? The version I had has a bug, it only scans for content-type, but not for Content-type (Capital C). Or some other header that WO sends with a capital. I think you can see it because you either get two headers, or the size does not fit the content. I can't remember what it was exactly. If you fix that, mod_gzip works fine. atze Am 24.06.2008 um 22:43 schrieb John Huss: I'm trying to get mod_gzip running on one of my WO apps. It works for static pages (index.html) and static resources (like css) in my WO app, but not on the html returned from the WO app. I'm guessing this has something to do with the fact that the content is being dynamically generated. Any tips on how to get this working? 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 [EMAIL PROTECTED]
[Annoucement] New WOLips Java Client / Direct To Java Client Tutorial
Hi all, Hopefully everyone knows that Swing-Based Java Client development was not deprecated with WO 5.4. But what you may not be aware of is that Apple has decided to hold off on deprecating Direct To Java Client (non-Nib-based)* as well due to the number of organizations quietly using it to great success! I have spent quite a bit of my time over the last few weeks (since WOWODC) working hard to figure out exactly how to create WebStart based Java Client and D2JC apps from scratch using WOLips (big, BIG thanks to Daryl Lee at Apple for his assistance). In the past Xcode did all the work and you just followed some steps in a wizard and ended up with a running app. All the magic was hidden away. With WOLips WOProject, it's a little more work. :-) The tutorial and example app linked to below will allow you to take any existing EOModel and launch a fully-functional D2JC app from it. Just like that. WOMagic! I'm planning on eventually creating a WOLips project template to do most of the work of the tutorial, but that will come later. Now, without further delay: http://wiki.objectstyle.org/confluence/display/WO/Java+Client+and+Direct+To+Java+Client+Example+Project+using+WebStart I have also zipped up an Eclipse project that only needs to have an EOModel file dropped into the Resources directory, just to make it easier for _everyone_ to give JC/D2JC a try! It's available on my iDisk. http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default?user=avendasoratemplatefn=FileSharing32.htmlxmlfn=TKDocument.32.xmlsitefn=RootSite.xmlaff=consumercty=USlang=en The resulting Application will run with no problems on WO 5.3.3 and 5.4 from within Eclipse, but due to a bug with WO 5.4's JNLP generation, you cannot automatically generate a JNLP file from a deployed app. You can take the JNLP file created by WO 5.3.3 and it will still work with a 5.4 server. It's the generation of the JNLP that is broken in 5.4, not the actual client application functionality. Let me know what you think! Dave *Nib-based development is impossible now that all the tools for it are gone. D2JC on the other hand only requires the current tools, and the EOAssistant which is a part of any D2JC application. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: AjaxTabPanel Tabs - looking for a way to use images as tabs
David/Chuck: Often when doing css styled tabs the a is styled as a block or float with a height and width and the tab image is set as it's background image. This makes the entire tab clickable, and it also allows a:hover to change the background image to show a hover state. Yeah, that should work. It is just a plain only WOHyperlink. Tried the combination of nbsp's (Chuck) and the CSS styling suggestion (David). Worked kinda ok but ran in to the following issues: 1. It looks like there is no way to set the link text width exactly since this is a (user-agent) computed style property. This results in the background image to be only partially visible. 2. It all falls apart (visually) if the user changes the font size :-( Will try to use the default behaviour for now. Thanks for all the suggestions. --JSt On Tue, Jun 24, 2008 at 9:12 PM, Chuck Hill [EMAIL PROTECTED] wrote: On Jun 24, 2008, at 6:04 PM, David LeBer wrote: On 24-Jun-08, at 8:43 PM, Chuck Hill wrote: On Jun 24, 2008, at 1:29 PM, J Stephanos wrote: I have been trying get a different look for the tabs in AjaxTabPanel (ProjectWonder) by replacing the tabs with my own images (of tabs). With the CSS (id) selector on each tab I can sort of do that but the problem is with the name binding. From the code: / * @binding name required, String the text shown in the tab that is clicked on to select the tab */ If I set the string, it overlays the tab image, if I don't (by setting a blank string), there is nothing to click on. Is there an easy way around this problem? Not unless there is some CSS magic to make the text invisible / clear. You could try making the name a bunch of nbsp; I think the only real fix would be to add an image or some such binding. I've not looked at the AjaxTabPanel so I have no idea if this helps but... Often when doing css styled tabs the a is styled as a block or float with a height and width and the tab image is set as it's background image. This makes the entire tab clickable, and it also allows a:hover to change the background image to show a hover state. Yeah, that should work. It is just a plain only WOHyperlink. -- 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/jstephanos%40gmail.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Velocity EOGenerator: refactor package?
He,he. I knew that was going to come back and date me! Yes I developed on the Apple IIe. :) Don On Jun 24, 2008, at 4:39 PM, David Avendasora wrote: Wow. You are old-school! On Jun 24, 2008, at 12:11 PM, Don Lindsay wrote: holding down the Open Apple ... key ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Maven
Make sure you installed the required Maven plugin before installing the Apple plugin. On 25/06/2008, at 10:23, Amedeo Mantica [EMAIL PROTECTED] wrote: I followed the tutorial: http://wiki.objectstyle.org/confluence/display/WO/Apple+Maven+Support+and+Nightly+Builds but when I create a new project I have no WebObjects Maven Application Any suggestion? regards Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jmacmullin%40mac.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [Annoucement] New WOLips Java Client / Direct To Java Client Tutorial
Dave, I have not actually done the tutorial, as I don't do D2JC, but it looks very sweet. Clear and to the point. One comment though, I think you skip some of the obvious stuff, which will make it more difficult for newcomers to digest. Stuff like indicating that this will make a single Eclipse project in which you will create both the WO server app, and the client app, blah blah... I don't know your target audience, this seems very well suited for previous users of D2JC switching to Eclipse/WOLips, but with minor extensions it could also work for people just starting with WO. Well, up to you! Thanks for the effort! F btw, everyone, you're still doing just WebApps in WO? Haven't switched to JC? Doh, that's so yesterday :-P On Jun 25, 2008, at 10:46, David Avendasora wrote: Hi all, Hopefully everyone knows that Swing-Based Java Client development was not deprecated with WO 5.4. But what you may not be aware of is that Apple has decided to hold off on deprecating Direct To Java Client (non-Nib-based)* as well due to the number of organizations quietly using it to great success! I have spent quite a bit of my time over the last few weeks (since WOWODC) working hard to figure out exactly how to create WebStart based Java Client and D2JC apps from scratch using WOLips (big, BIG thanks to Daryl Lee at Apple for his assistance). In the past Xcode did all the work and you just followed some steps in a wizard and ended up with a running app. All the magic was hidden away. With WOLips WOProject, it's a little more work. :-) The tutorial and example app linked to below will allow you to take any existing EOModel and launch a fully-functional D2JC app from it. Just like that. WOMagic! I'm planning on eventually creating a WOLips project template to do most of the work of the tutorial, but that will come later. Now, without further delay: http://wiki.objectstyle.org/confluence/ display/WO/Java+Client+and+Direct+To+Java+Client+Example+Project +using+WebStart I have also zipped up an Eclipse project that only needs to have an EOModel file dropped into the Resources directory, just to make it easier for _everyone_ to give JC/D2JC a try! It's available on my iDisk. http://homepage.mac.com/WebObjects/FileSharing.woa/wa/default? user=avendasoratemplatefn=FileSharing32.htmlxmlfn=TKDocument. 32.xmlsitefn=RootSite.xmlaff=consumercty=USlang=en The resulting Application will run with no problems on WO 5.3.3 and 5.4 from within Eclipse, but due to a bug with WO 5.4's JNLP generation, you cannot automatically generate a JNLP file from a deployed app. You can take the JNLP file created by WO 5.3.3 and it will still work with a 5.4 server. It's the generation of the JNLP that is broken in 5.4, not the actual client application functionality. Let me know what you think! Dave *Nib-based development is impossible now that all the tools for it are gone. D2JC on the other hand only requires the current tools, and the EOAssistant which is a part of any D2JC application. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Fetch Specifications defined in the .eomodel
I've gone back and looked more at this problem. I do believe that it is a bug in WO that calling editingContext().objectsWithFetchSpecification(fs) from the client generates an error on the server. I wasn't seeing the error on the server before, but now I am. Here it is: [2008-6-25 16:49:10 EDT] WorkerThread1 java.lang.NullPointerException at com.webobjects.eodistribution.EODistributionContext $ _RemoteMethodReceiver .clientSideRequestObjectsForFetchSpecification (EODistributionContext.java:1100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:585) at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:358) at com .webobjects.foundation.NSSelector._safeInvokeSelector(NSSelector.java: 110) at com .webobjects .eodistribution .common ._EOServerInvocation.doInvokeWithTarget(_EOServerInvocation.java:150) at com .webobjects .eodistribution .EODistributionContext ._processClientRequest(EODistributionContext.java:494) at com .webobjects .eodistribution .EODistributionContext .responseToClientMessage(EODistributionContext.java:582) at com .webobjects .eodistribution .WOJavaClientComponent.handleClientRequest(WOJavaClientComponent.java: 1148) at com .webobjects .eodistribution .WOJavaClientComponent.invokeAction(WOJavaClientComponent.java:445) at com .webobjects .appserver ._private.WOComponentReference.invokeAction(WOComponentReference.java: 127) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 1079) at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357) at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 1745) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:206) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:298) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:369) at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:442) at com .webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 1687) at 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) I've submitted a bug report to Apple. The work-around that Flor outlines below will work, but I need one piece of code that can run on either the client or the server, and Flor's code is client-specific. Making WO work as documented seem to be my only solution. Dave On Feb 16, 2008, at 11:12 AM, David Avendasora wrote: On Feb 16, 2008, at 10:22 AM, Florijan Stamenkovic wrote: [2008-02-15 16:53:14 EST] WorkerThread0 Server exception: The fetchSpecification SNIP/ was not allowed to execute on the server. If your application needs to execute this method, the security needs to be relaxed by implementing the delegate method distributionContextShouldFetchObjectsWithFetchSpecification The original server-side calls for this were catching the error and just returning null without putting anything in the log. Interesting... Do you know exactly at which point in your code was this error generated? Was in on the line where you try to retrieve the fetch spec object from the model on the server side? When you try to return that fetch spec over to the client? The funny thing is that it doesn't actually generate an error. I got that message in the log when I used a logging statement to look at the FetchSpecification immdiately after pulling it from the model: EOFetchSpecification fs = (EOFetchSpecification) distributedObjectStore().invokeStatelessRemoteMethodWithKeyPath( session, clientSideRequestGetFetchSpecification, new Class[] {String.class, String.class }, new String[] { USDACalories, NutritionElementType }); NSLog.out.appendln(fs); Apperently calling editingContext().objectsWithFetchSpecification(fs) just returns null and doesn't
[ANN] JBND update
JBND (JavaBound) version 0.8 has been released: http://web.mac.com/flor385/JBND/news.html Version highlights: - AddEditGroup class added: combined viewing / editing / adding in a single GUI setup (table, master-detail...) now possible - GPBinding (General Purpose Binding) class added, to be used for viewing / editing / adding, instead of using multiple Binding classes - validation system and user feedback improved - event firing improved (new EOGen templates provided) - a lot of other stuff has been added, bugs fixed etc... - a new WO JC example has been added (WebStart project coming soon, thanks to David Avendasora) Important notes: - five classes have been depreciated, the intention is to remove them soon, if you use JBND *read the release notes* - license made even simpler and more liberal - The Documentation page has been updated to use only the latest API F stands for Fabulous ;-) ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Problems deploying app on Leopard server
Finally, our new Leopard servers are here. I started moving applications to the new server. But I have problem running the app on the server, it always gives me following error: Can't load .Application class, exiting... java.lang.ClassNotFoundException: .Application 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:316) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84) I don't understand why it's looking for .Application class. The app is compiled using java 1.5 and the server is running java 1.5 as well. The application runs well in my Leopard development mac. Anyone knows how to fix it? Please advise. Thanks a lot. Wen ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Problems deploying app on Leopard server
Thank you for your reply. Here is the classpath.txt: # JVM == java # JVMOptions == # JDB == jdb # JDBOptions == # ApplicationClass == ${basePackage}.Application APPROOT\Resources\Java\ APPROOT\Resources\Java\staffdirectory.jar LOCALROOT\Library\Frameworks\JavaWOExtensions.framework\Resources\Java\JavaW OExtensions.jar WOROOT\Library\Frameworks\JavaEOAccess.framework\Resources\Java\javaeoaccess .jar WOROOT\Library\Frameworks\JavaEOControl.framework\Resources\Java\javaeocontr ol.jar WOROOT\Library\Frameworks\JavaFoundation.framework\Resources\Java\javafounda tion.jar WOROOT\Library\Frameworks\JavaJDBCAdaptor.framework\Resources\Java\javajdbca daptor.jar WOROOT\Library\Frameworks\JavaWebObjects.framework\Resources\Java\javawebobj ects.jar WOROOT\Library\Frameworks\JavaXML.framework\Resources\Java\javaxml.jar So it's looking for .Application in the {basePackage}? But I don't have a {basepackage}, all my source code are in default package. How to change it? On 6/25/08 4:44 PM, Guido Neitzer [EMAIL PROTECTED] wrote: On 25.06.2008, at 17:37, Wen Xia wrote: I don't understand why it's looking for .Application class. The app is compiled using java 1.5 and the server is running java 1.5 as well. The application runs well in my Leopard development mac. Anyone knows how to fix it? Please advise. Check the generated classpath file inside your application. 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Problems deploying app on Leopard server
# ApplicationClass == ${basePackage}.Application This is the problem ... Or rather, your build.properties is probably the root cause. This variable should have been resolved at the time build.properties was generated. 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 [EMAIL PROTECTED]
How to fill the WOLips binding validation rules?
Hi, I did search in the list: WODisplayGroup bindings aren't complete for selectedObject or masterObject Chuck mentioned: Go to the WOLips binding validation rules preferences and tell it to not validate key paths with displayGroup.selectedObject in them. And David Holt said: .*.DisplayGroup\.selectedObject\..* .*.DisplayGroup\.masterObject\..* But in the WOlips - Binding Validation Rules, there are two fields: Component Regx and Valid Binding Regex, What value should be there for this WODisplayGroup bindings, Thanks kevin This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Problems deploying app on Leopard server
On 25.06.2008, at 18:12, Mike Schrag wrote: This is the problem ... Or rather, your build.properties is probably the root cause. This variable should have been resolved at the time build.properties was generated. Isn't that changed whenever you change the principal class in the Properties for that project? cug -- http://www.event-s.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 [EMAIL PROTECTED]
RE: How to fill the WOLips binding validation rules?
thanks, david, i did try that, but didn't work. .* and .*.DisplayGroup\.selectedObject\..* is that right? kevin _ From: David Holt [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2008 2:05 p.m. To: Ren, Kevin Cc: webobjects-dev@lists.apple.com Subject: Re: How to fill the WOLips binding validation rules? Hi Kevin The component regex needs to be .* The Valid Binding Regex is what is typed below (there are two separate entries). David On 25-Jun-08, at 6:37 PM, Ren, Kevin wrote: Hi, I did search in the list: WODisplayGroup bindings aren't complete for selectedObject or masterObject Chuck mentioned: Go to the WOLips binding validation rules preferences and tell it to not validate key paths with displayGroup.selectedObject in them. And David Holt said: .*.DisplayGroup\.selectedObject\..* .*.DisplayGroup\.masterObject\..* But in the WOlips - Binding Validation Rules, there are two fields: Component Regx and Valid Binding Regex, What value should be there for this WODisplayGroup bindings, Thanks kevin This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40m ac.com This email sent to [EMAIL PROTECTED] This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How to fill the WOLips binding validation rules?
Hi Kevin The component regex needs to be .* The Valid Binding Regex is what is typed below (there are two separate entries). David On 25-Jun-08, at 6:37 PM, Ren, Kevin wrote: Hi, I did search in the list: WODisplayGroup bindings aren't complete for selectedObject or masterObject Chuck mentioned: Go to the WOLips binding validation rules preferences and tell it to not validate key paths with displayGroup.selectedObject in them. And David Holt said: .*.DisplayGroup\.selectedObject\..* .*.DisplayGroup\.masterObject\..* But in the WOlips - Binding Validation Rules, there are two fields: Component Regx and Valid Binding Regex, What value should be there for this WODisplayGroup bindings, Thanks kevin This communication is confidential and may contain privileged and/ or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: How to fill the WOLips binding validation rules?
It looks right, but I am not at my work computer to confirm for you. I'll check tomorrow. David On 25-Jun-08, at 7:07 PM, Ren, Kevin wrote: thanks, david, i did try that, but didn't work. .* and .*.DisplayGroup\.selectedObject\..* is that right? kevin From: David Holt [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 June 2008 2:05 p.m. To: Ren, Kevin Cc: webobjects-dev@lists.apple.com Subject: Re: How to fill the WOLips binding validation rules? Hi Kevin The component regex needs to be .* The Valid Binding Regex is what is typed below (there are two separate entries). David On 25-Jun-08, at 6:37 PM, Ren, Kevin wrote: Hi, I did search in the list: WODisplayGroup bindings aren't complete for selectedObject or masterObject Chuck mentioned: Go to the WOLips binding validation rules preferences and tell it to not validate key paths with displayGroup.selectedObject in them. And David Holt said: .*.DisplayGroup\.selectedObject\..* .*.DisplayGroup\.masterObject\..* But in the WOlips - Binding Validation Rules, there are two fields: Component Regx and Valid Binding Regex, What value should be there for this WODisplayGroup bindings, Thanks kevin This communication is confidential and may contain privileged and/ or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to [EMAIL PROTECTED] This communication is confidential and may contain privileged and/ or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
WOLips Installer
Hello; A new version of the Installer has been uploaded to my site.The installer installs the Ganymede Version of Eclipse and the nightly version of WOLips. Wonder is also an available selection for install. Thanks 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 [EMAIL PROTECTED]
Re: WOLips Installer
Just a word of caution with 3.4, we still have one or two very annoying issues to resolve before we can consider WOLips to be fully ported to 3.4. I would recommend against upgrading just yet unless you are a doing WOLips plugin development, or are prepared to live with some things that used to work not working the way they should any more. I would recommend 3.3 and WOLips stable for production use, you aren't really missing anything. On 26/06/2008, at 12:27 PM, Don Lindsay wrote: Hello; A new version of the Installer has been uploaded to my site.The installer installs the Ganymede Version of Eclipse and the nightly version of WOLips. Wonder is also an available selection for install. Thanks 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/qdolan%40gmail.com This email sent to [EMAIL PROTECTED] -- Seeya...Q Quinton Dolan - [EMAIL PROTECTED] Gold Coast, QLD, Australia (GMT+10) Ph: +61 419 729 806 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Question about WOImage binding value
Hi, Actually it's validation error for my old application code PictureImage : WOImage { value = getPictureImage; } I found couldn't get the value in the list for binding, and but in the documentation: value Image data in the form of a WOElement object. This data can come from a database, a file, or memory. Bug? Kevin This communication is confidential and may contain privileged and/or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]