WOLips for Eclipse 4.3.1

2014-01-21 Thread Frank Cobia
I finally got tired of being stuck with Eclipse 3.x and sat dow to figure out 
what was causing the NullPointerException. 

I found the problem and fixed it and built it locally. I have been running it 
for a couple of days now without any problems. However, there are a couple of 
problems with getting this out to everyone:

1) There were some libraries that were referenced with environment variables. I 
hard coded the paths (It was 4am). I could probably go back and fix this myself 
after a couple of days.

2) I took out support for JRebel and JProfiler, because I did not want to track 
down any libraries those are dependent on (again it was 4am). Does anyone have 
experience with these parts?

3) I am not very familiar with Git so I created my own repository 
(https://github.com/fcobia/wolips). Can someone help me get my changes moved 
into the official repository so that jenkins can be successful building for 
Eclipse 4.3?

Is there anyone interested in having a functioning WOLips for Eclipse 4.3 that 
could help me at least with numbers 2 and 3?

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

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

Re: WOLips for Eclipse 4.3.1

2014-01-31 Thread Frank Cobia
I have been using it for a few weeks now and it seems to be working. I will try 
to get it all cleaned up this weekend and then all I will need it help moving 
it from my personal guthub to the official project guthub.

Frank


On Jan 29, 2014, at 10:17 AM, Ken Anderson kenli...@anderhome.com wrote:

 Frank,
 
 While I volunteered to look at this at the last meeting, I have not had the 
 time.  I would love to help, especially if you’ve gotten something going 
 already which would alleviate the dreaded “figure it out first” problem.
 
 Ken
 
 On Jan 21, 2014, at 8:00 PM, Frank Cobia frank_co...@me.com wrote:
 
 I finally got tired of being stuck with Eclipse 3.x and sat dow to figure 
 out what was causing the NullPointerException. 
 
 I found the problem and fixed it and built it locally. I have been running 
 it for a couple of days now without any problems. However, there are a 
 couple of problems with getting this out to everyone:
 
 1) There were some libraries that were referenced with environment 
 variables. I hard coded the paths (It was 4am). I could probably go back and 
 fix this myself after a couple of days.
 
 2) I took out support for JRebel and JProfiler, because I did not want to 
 track down any libraries those are dependent on (again it was 4am). Does 
 anyone have experience with these parts?
 
 3) I am not very familiar with Git so I created my own repository 
 (https://github.com/fcobia/wolips). Can someone help me get my changes moved 
 into the official repository so that jenkins can be successful building for 
 Eclipse 4.3?
 
 Is there anyone interested in having a functioning WOLips for Eclipse 4.3 
 that could help me at least with numbers 2 and 3?
 
 Thanks,
 Frank
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com

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

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

Re: WOLips for Eclipse 4.3.1

2014-02-03 Thread Frank Cobia
Unfortunately I got side tracked this weekend, so I did not get a chance to 
clean up the code. 

However, I have not seen the issue you are describing in EOModeler. There are 
times when the properties panel does not populate, but you just have to click 
on something else and then click back. So it is just an annoyance and not a 
problem.

Frank


On Jan 31, 2014, at 12:22 PM, Lon Varscsak lon.varsc...@gmail.com wrote:

 There was some wonkiness in the EOModeler tool too.  I vaguely remember you'd 
 go to edit a field (like class name) and it would clear all the contents...so 
 it was sort of impossible to work with.  Did that ever get resolved?
 
 
 On Fri, Jan 31, 2014 at 7:44 AM, Pascal Robert prob...@macti.ca wrote:
 And Eclipse 4.x full support is one of the recurrent requests in the surveys!
 
 De: David Avendasora webobje...@avendasora.com
 À: Frank Cobia frank_co...@me.com
 Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
 Envoyé: Vendredi 31 Janvier 2014 09:41:56
 Objet: Re: WOLips for Eclipse 4.3.1
 
 
 Awesome! I would love to move forward!
 
 On Jan 31, 2014, at 9:33 AM, Frank Cobia frank_co...@me.com wrote:
 
 I have been using it for a few weeks now and it seems to be working. I will 
 try to get it all cleaned up this weekend and then all I will need it help 
 moving it from my personal guthub to the official project guthub.
 
 Frank
 
 
 On Jan 29, 2014, at 10:17 AM, Ken Anderson kenli...@anderhome.com wrote:
 
 Frank,
 
 While I volunteered to look at this at the last meeting, I have not had the 
 time.  I would love to help, especially if you’ve gotten something going 
 already which would alleviate the dreaded “figure it out first” problem.
 
 Ken
 
 On Jan 21, 2014, at 8:00 PM, Frank Cobia frank_co...@me.com wrote:
 
 I finally got tired of being stuck with Eclipse 3.x and sat dow to figure out 
 what was causing the NullPointerException. 
 
 I found the problem and fixed it and built it locally. I have been running it 
 for a couple of days now without any problems. However, there are a couple of 
 problems with getting this out to everyone:
 
 1) There were some libraries that were referenced with environment variables. 
 I hard coded the paths (It was 4am). I could probably go back and fix this 
 myself after a couple of days.
 
 2) I took out support for JRebel and JProfiler, because I did not want to 
 track down any libraries those are dependent on (again it was 4am). Does 
 anyone have experience with these parts?
 
 3) I am not very familiar with Git so I created my own repository 
 (https://github.com/fcobia/wolips). Can someone help me get my changes moved 
 into the official repository so that jenkins can be successful building for 
 Eclipse 4.3?
 
 Is there anyone interested in having a functioning WOLips for Eclipse 4.3 
 that could help me at least with numbers 2 and 3?
 
 Thanks,
 Frank
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
 
 This email sent to kenli...@anderhome.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com
 
 This email sent to webobje...@avendasora.com
 
 
 —
 WebObjects - so easy that even Dave Avendasora can do it!™
 —
 David Avendasora
 Senior Software Abuser
 Nekesto, Inc.
 
 
 
 
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca
 
 This email sent to prob...@macti.ca
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/lon.varscsak%40gmail.com
 
 This email sent to lon.varsc...@gmail.com
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/frank_cobia%40me.com
 
 This email sent to frank_co...@me.com

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev

Re: WOLips for Eclipse 4.3.1

2014-02-04 Thread Frank Cobia
I will give this a try and see if that fixes things for me. I am not sure what 
sashWeights does, but I am not sure that is the problem. I have tried doing 
similar things to this in the past and it would work for a while and then go 
back to throwing the NPEs.

Here are the two things I did in the source to fix things. 

1) There are a lot of source files with garbled comments. I am not sure what 
happened there, but the comments seem to have been added years ago. I think the 
files got corrupted somehow. The java compiler complains about the characters 
not being UTF-8. Since they are not code and I don't know how to recover the 
un-garbbled comments, I just deleted them.

2) There is a kind of race condition. When you open the editor, while preparing 
the editor, it makes a call that makes a call, that makes a call, etc. 
Eventually that gets to a line that call core eclipse code. The core eclipse 
code then tries to access the editor. The problem is that the editor is still 
in the process of opening. There is probably a more elegant way to fix this, 
since the problem is that it is trying to access a variable that has not been 
set yet. The data that will be set already exists in a temporary variable, so 
one possible fix could be to set the variable sooner, but I am not sure if that 
would cause larger problems. However, the line that was causing the problem, 
appeared, based on the comment, to fix an obscure seldom encountered problem. 
So I commented that line out and I have not had any problems.

Even if deleting that file fixes the current problem, if you go to Jenkins, you 
will see that the source no longer compiles. So, the plugin still needs to be 
fixed.

Frank


On Feb 4, 2014, at 10:20 AM, Hugi Thordarson h...@karlmenn.is wrote:

 This worked like a charm, thanks guys! :)
 
 Cheers,
 - hugi
 
 
 
 On 4.2.2014, at 14:56, Jean-François Veillette 
 jean_francois_veille...@yahoo.ca wrote:
 
 I do what Lars recommended and it work!
 
 I did a compare of the file before/after and the only diff is the number of 
 that properties:
 org.objectstyle.wolips.componenteditor.sashWeights=805,194
 so you can simply remove that properties and it will work again.
 
 From what I looked at, the fix from Frank Cobia was commenting out the line 
 culprit.  I did not looked enough to conclude if it was a real fix, or a 
 mere workaround for now.
 
 jfv
 
 De : Lars Sonchocky-Helldorf lars.sonchocky-helld...@hamburg.de
 Objet : Workaround for annoying NPE bug when opening WOComponent Editor
 Date : 22 octobre 2013 06:49:28 HAE
 À : webobjects-dev@lists.apple.com List List 
 webobjects-dev@lists.apple.com
 
 Hi List,
 
 I don't know if you're also affected by this, but all my coworkers 
 experience from time to time those annoying cascades of NPEs when opening 
 a WOComponent in the WOComponent Editor on Eclipse Kepler (4.3) and WOLips 
 4.3 which, once they're happening, never go away by themselves.
 
 Now my coworker Tommy has found a workaround for this:
 
 - shutdown Eclipse
 - delete 
 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.objectstyle.wolips.wodclipse.core.prefs
  from your workspace
 - restart Eclipse
 
 - everything should work fine now. When the problem recurs just delete 
 this file again.
 
 
 I hope this was helpful to some of you.
 
 cheers,
 
Lars
 
 
 Le 2014-02-04 à 09:05, Hugi Thordarson h...@karlmenn.is a écrit :
 
 I’m getting an error on 4.3 where if I open a component (the component 
 editor), it just shows up empty and then proceeds to throw bazillion 
 nullpointerexceptions at me.
 
 I seem to recall having seen this before, but can’t for the life of me 
 remember what I did to fix it. Light any bulbs for anyone?
 
 Cheers,
 - hugi
 
 
 
 On 3.2.2014, at 13:55, Ken Anderson kenli...@anderhome.com wrote:
 
 3.x does the same thing...
 
 On Feb 3, 2014, at 8:47 AM, Frank Cobia frank_co...@me.com wrote:
 
 Unfortunately I got side tracked this weekend, so I did not get a chance 
 to clean up the code. 
 
 However, I have not seen the issue you are describing in EOModeler. 
 There are times when the properties panel does not populate, but you 
 just have to click on something else and then click back. So it is just 
 an annoyance and not a problem.
 
 Frank
 
 
 On Jan 31, 2014, at 12:22 PM, Lon Varscsak lon.varsc...@gmail.com 
 wrote:
 
 There was some wonkiness in the EOModeler tool too.  I vaguely remember 
 you'd go to edit a field (like class name) and it would clear all the 
 contents...so it was sort of impossible to work with.  Did that ever 
 get resolved?
 
 
 On Fri, Jan 31, 2014 at 7:44 AM, Pascal Robert prob...@macti.ca wrote:
 And Eclipse 4.x full support is one of the recurrent requests in the 
 surveys!
 
 De: David Avendasora webobje...@avendasora.com
 À: Frank Cobia frank_co...@me.com
 Cc: WebObjects-Dev Mailing List List webobjects-dev@lists.apple.com
 Envoyé: Vendredi 31 Janvier 2014 09:41:56
 Objet: Re: WOLips for Eclipse 4.3.1
 
 
 Awesome! I would

Re: WOLips for Eclipse 4.3.1

2014-02-06 Thread Frank Cobia
If we could get them back, that would be great. I am not sure how this even 
happened, so I am not sure how to get them back. Maybe someone has a copy of 
the repository from before the corruption.

Frank


On Feb 6, 2014, at 2:18 AM, Johann Werner j...@oyosys.de wrote:

 
 Am 04.02.2014 um 16:37 schrieb Frank Cobia frank_co...@me.com:
 
 I will give this a try and see if that fixes things for me. I am not sure 
 what sashWeights does, but I am not sure that is the problem. I have tried 
 doing similar things to this in the past and it would work for a while and 
 then go back to throwing the NPEs.
 
 Here are the two things I did in the source to fix things. 
 
 1) There are a lot of source files with garbled comments. I am not sure what 
 happened there, but the comments seem to have been added years ago. I think 
 the files got corrupted somehow. The java compiler complains about the 
 characters not being UTF-8. Since they are not code and I don't know how to 
 recover the un-garbbled comments, I just deleted them.
 
 Can those comments be resurrected from the repository history? Unfortunately 
 besides those comments WOLips has no documentation (or is there?)
 
 2) There is a kind of race condition. When you open the editor, while 
 preparing the editor, it makes a call that makes a call, that makes a call, 
 etc. Eventually that gets to a line that call core eclipse code. The core 
 eclipse code then tries to access the editor. The problem is that the editor 
 is still in the process of opening. There is probably a more elegant way to 
 fix this, since the problem is that it is trying to access a variable that 
 has not been set yet. The data that will be set already exists in a 
 temporary variable, so one possible fix could be to set the variable sooner, 
 but I am not sure if that would cause larger problems. However, the line 
 that was causing the problem, appeared, based on the comment, to fix an 
 obscure seldom encountered problem. So I commented that line out and I have 
 not had any problems.
 
 Even if deleting that file fixes the current problem, if you go to Jenkins, 
 you will see that the source no longer compiles. So, the plugin still needs 
 to be fixed.
 
 Frank
 
 
 On Feb 4, 2014, at 10:20 AM, Hugi Thordarson h...@karlmenn.is wrote:
 
 This worked like a charm, thanks guys! :)
 
 Cheers,
 - hugi
 
 
 
 On 4.2.2014, at 14:56, Jean-François Veillette 
 jean_francois_veille...@yahoo.ca wrote:
 
 I do what Lars recommended and it work!
 
 I did a compare of the file before/after and the only diff is the number 
 of that properties:
 org.objectstyle.wolips.componenteditor.sashWeights=805,194
 so you can simply remove that properties and it will work again.
 
 From what I looked at, the fix from Frank Cobia was commenting out the 
 line culprit.  I did not looked enough to conclude if it was a real fix, 
 or a mere workaround for now.
 
 jfv
 
 De : Lars Sonchocky-Helldorf lars.sonchocky-helld...@hamburg.de
 Objet : Workaround for annoying NPE bug when opening WOComponent Editor
 Date : 22 octobre 2013 06:49:28 HAE
 À : webobjects-dev@lists.apple.com List List 
 webobjects-dev@lists.apple.com
 
 Hi List,
 
 I don't know if you're also affected by this, but all my coworkers 
 experience from time to time those annoying cascades of NPEs when 
 opening a WOComponent in the WOComponent Editor on Eclipse Kepler (4.3) 
 and WOLips 4.3 which, once they're happening, never go away by 
 themselves.
 
 Now my coworker Tommy has found a workaround for this:
 
 - shutdown Eclipse
 - delete 
 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.objectstyle.wolips.wodclipse.core.prefs
  from your workspace
 - restart Eclipse
 
 - everything should work fine now. When the problem recurs just delete 
 this file again.
 
 
 I hope this was helpful to some of you.
 
 cheers,
 
  Lars
 
 
 Le 2014-02-04 à 09:05, Hugi Thordarson h...@karlmenn.is a écrit :
 
 I’m getting an error on 4.3 where if I open a component (the component 
 editor), it just shows up empty and then proceeds to throw bazillion 
 nullpointerexceptions at me.
 
 I seem to recall having seen this before, but can’t for the life of me 
 remember what I did to fix it. Light any bulbs for anyone?
 
 Cheers,
 - hugi
 
 
 
 On 3.2.2014, at 13:55, Ken Anderson kenli...@anderhome.com wrote:
 
 3.x does the same thing...
 
 On Feb 3, 2014, at 8:47 AM, Frank Cobia frank_co...@me.com wrote:
 
 Unfortunately I got side tracked this weekend, so I did not get a 
 chance to clean up the code. 
 
 However, I have not seen the issue you are describing in EOModeler. 
 There are times when the properties panel does not populate, but you 
 just have to click on something else and then click back. So it is 
 just an annoyance and not a problem.
 
 Frank
 
 
 On Jan 31, 2014, at 12:22 PM, Lon Varscsak lon.varsc...@gmail.com 
 wrote:
 
 There was some wonkiness in the EOModeler tool too.  I vaguely 
 remember you'd go to edit a field (like class name

Re: WOLips for Eclipse 4.3.1

2014-02-10 Thread Frank Cobia
I admit that I do not have any expertise in this problem, but I thought the 
problem was that they were Japanese. However, I also saw comments in Japanese 
that displayed without any issue. The compiler is complaining that the comments 
are not UTF-8. Maybe these particular comments are Shift-jis or something.

If the comments have not been corrupted somehow, then perhaps there have been 
changes to the java compiler. Either way, those comments prevent the code from 
compiling. You can see the results on the wocommunity Jenkins server: 
http://jenkins.wocommunity.org/job/WOLips43/5/console

This actually sounds like something that Ken should be able to answer.

Frank


On Feb 6, 2014, at 10:55 AM, Quinton Dolan qdo...@gmail.com wrote:

 If you are talking about the comments in the html editor code.. they are 
 messed up because are written in japanese.  They have always been like that.
 
 http://amateras.sourceforge.jp/cgi-bin/fswiki/wiki.cgi?page=EclipseHTMLEditor
 
 On 5 Feb 2014, at 1:37 am, Frank Cobia frank_co...@me.com wrote:
 
 1) There are a lot of source files with garbled comments. I am not sure what 
 happened there, but the comments seem to have been added years ago. I think 
 the files got corrupted somehow. The java compiler complains about the 
 characters not being UTF-8. Since they are not code and I don't know how to 
 recover the un-garbbled comments, I just deleted them.
 
 

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

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

Re: WOLips for Eclipse 4.3.1

2014-02-10 Thread Frank Cobia
I would be willing to contribute to this.

Frank


On Feb 6, 2014, at 10:26 AM, David Avendasora webobje...@avendasora.com wrote:

 We could do it something like in a crowd-funding way - everyone makes a 
 commitment to the level of contribution they are comfortable with, and if we 
 reach the stated goal, only then are people charged.
 
 I’m guessing we’d need to raise $10,000+ to make it worth someone’s time to 
 fix/rewrite WOLips and add lots and lots and lots of documentation so we 
 aren’t hostage to the one person who wrote it.
 
 I think we could achieve that.
 
 Dave
 
 On Feb 6, 2014, at 10:00 AM, James Cicenia ja...@jimijon.com wrote:
 
 
 How about we just fund an Eclipse Plug-In developer? 
 
 We could add money or bitcoins to a community sponsored fund and then see if 
 a developer is interested. 
 
 ?
 
 On Feb 6, 2014, at 1:18 AM, Johann Werner j...@oyosys.com wrote:
 
 
 Am 04.02.2014 um 16:37 schrieb Frank Cobia frank_co...@me.com:
 
 I will give this a try and see if that fixes things for me. I am not sure 
 what sashWeights does, but I am not sure that is the problem. I have tried 
 doing similar things to this in the past and it would work for a while and 
 then go back to throwing the NPEs.
 
 Here are the two things I did in the source to fix things. 
 
 1) There are a lot of source files with garbled comments. I am not sure 
 what happened there, but the comments seem to have been added years ago. I 
 think the files got corrupted somehow. The java compiler complains about 
 the characters not being UTF-8. Since they are not code and I don't know 
 how to recover the un-garbbled comments, I just deleted them.
 
 Can those comments be resurrected from the repository history? 
 Unfortunately besides those comments WOLips has no documentation (or is 
 there?)
 
 2) There is a kind of race condition. When you open the editor, while 
 preparing the editor, it makes a call that makes a call, that makes a 
 call, etc. Eventually that gets to a line that call core eclipse code. The 
 core eclipse code then tries to access the editor. The problem is that the 
 editor is still in the process of opening. There is probably a more 
 elegant way to fix this, since the problem is that it is trying to access 
 a variable that has not been set yet. The data that will be set already 
 exists in a temporary variable, so one possible fix could be to set the 
 variable sooner, but I am not sure if that would cause larger problems. 
 However, the line that was causing the problem, appeared, based on the 
 comment, to fix an obscure seldom encountered problem. So I commented that 
 line out and I have not had any problems.
 
 Even if deleting that file fixes the current problem, if you go to 
 Jenkins, you will see that the source no longer compiles. So, the plugin 
 still needs to be fixed.
 
 Frank
 
 
 On Feb 4, 2014, at 10:20 AM, Hugi Thordarson h...@karlmenn.is wrote:
 
 This worked like a charm, thanks guys! :)
 
 Cheers,
 - hugi
 
 
 
 On 4.2.2014, at 14:56, Jean-François Veillette 
 jean_francois_veille...@yahoo.ca wrote:
 
 I do what Lars recommended and it work!
 
 I did a compare of the file before/after and the only diff is the number 
 of that properties:
 org.objectstyle.wolips.componenteditor.sashWeights=805,194
 so you can simply remove that properties and it will work again.
 
 From what I looked at, the fix from Frank Cobia was commenting out the 
 line culprit.  I did not looked enough to conclude if it was a real fix, 
 or a mere workaround for now.
 
 jfv
 
 De : Lars Sonchocky-Helldorf lars.sonchocky-helld...@hamburg.de
 Objet : Workaround for annoying NPE bug when opening WOComponent Editor
 Date : 22 octobre 2013 06:49:28 HAE
 À : webobjects-dev@lists.apple.com List List 
 webobjects-dev@lists.apple.com
 
 Hi List,
 
 I don't know if you're also affected by this, but all my coworkers 
 experience from time to time those annoying cascades of NPEs when 
 opening a WOComponent in the WOComponent Editor on Eclipse Kepler 
 (4.3) and WOLips 4.3 which, once they're happening, never go away by 
 themselves.
 
 Now my coworker Tommy has found a workaround for this:
 
 - shutdown Eclipse
 - delete 
 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.objectstyle.wolips.wodclipse.core.prefs
  from your workspace
 - restart Eclipse
 
 - everything should work fine now. When the problem recurs just 
 delete this file again.
 
 
 I hope this was helpful to some of you.
 
 cheers,
 
Lars
 
 
 Le 2014-02-04 à 09:05, Hugi Thordarson h...@karlmenn.is a écrit :
 
 I’m getting an error on 4.3 where if I open a component (the component 
 editor), it just shows up empty and then proceeds to throw bazillion 
 nullpointerexceptions at me.
 
 I seem to recall having seen this before, but can’t for the life of me 
 remember what I did to fix it. Light any bulbs for anyone?
 
 Cheers,
 - hugi
 
 
 
 On 3.2.2014, at 13:55, Ken Anderson kenli...@anderhome.com wrote:
 
 3.x does the same thing

Re: WOSession serialisation redux

2015-07-01 Thread Frank Cobia
I have been absent from the mailing list for a while, because apple 
automatically unsubscribed me for some reason. However, I noticed in the 
archives today the discussion about WOSession serialization.

I have implemented for myself a session store based on the code in 
ERPersistentSessionStorage that uses ElastiCache as the backend. For most of my 
app, things seem to work well. I have even built in session timeouts and 
session locks (with timeouts).

However, I have run into the issue that any of code that uses the Ajax 
framework does not work. It is as if the changes to the page made through Ajax 
get lost. I suspect that is has something to do with the page cache, because 
the Ajax framework does something special with that, but I have not been able 
to figure out what the problem is.

I also, just tried using the ERPersistentSessionStorage framework and had the 
same problem, so I know the problem is not with my particular implementation.

Has anyone ever solved this problem or even just have an idea where I might 
look for the problem? If I can get this fixed, I will happily share the code.

Also, as a side note, I saw the discussions of using JGroups Synchronizer on 
EC2. I also created a synchronizer that uses ElastiCache and it seems to be 
working well. Regis has a built-in publish subscribe mechanism that seems to 
work well for this purpose.

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

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

Re: WOSession serialisation redux

2015-07-02 Thread Frank Cobia
I have not been seeing any serialization errors, but perhaps my code is eating 
them somehow.

The pages where my app uses Ajax are fairly complicated, but it does exhibit 
the problem on all of them. I will try to add the debug info flag from below 
and make sure I am not eating any exceptions. 

As Chuck suggested, I looked in ERXAjaxSession, but it does not seem to have 
any serialization related code or transient variables that should make any 
difference.

Hopefully, I am just eating a serialization exception. I will report back after 
I do some more investigation.

Thanks,
Frank


 On Jul 2, 2015, at 1:21 PM, Ramsey Gurley rgur...@smarthealth.com wrote:
 
 When I did my demo at WOWODC, ERPersistentSessionStorage worked fine with 
 ERModern look and that uses Ajax extensively. 
 
 My guess is that you are encountering something Paul Hoadley ran into; 
 Someone committed a serialization breaking change between then and now, and 
 you are just the first to notice it.
 
 You might try
 
 -Dsun.io.serialization.extendedDebugInfo=true
 
 And static code analysis with the FindBugs plugin. FindBugs shows me 7 
 different serialization errors in the Ajax framework for the ~3 month old 
 version of wonder I’m using.
 
 On Jul 1, 2015, at 9:12 PM, Frank Cobia frank_co...@me.com 
 mailto:frank_co...@me.com wrote:
 
 I have been absent from the mailing list for a while, because apple 
 automatically unsubscribed me for some reason. However, I noticed in the 
 archives today the discussion about WOSession serialization.
 
 I have implemented for myself a session store based on the code in 
 ERPersistentSessionStorage that uses ElastiCache as the backend. For most of 
 my app, things seem to work well. I have even built in session timeouts and 
 session locks (with timeouts).
 
 However, I have run into the issue that any of code that uses the Ajax 
 framework does not work. It is as if the changes to the page made through 
 Ajax get lost. I suspect that is has something to do with the page cache, 
 because the Ajax framework does something special with that, but I have not 
 been able to figure out what the problem is.
 
 I also, just tried using the ERPersistentSessionStorage framework and had 
 the same problem, so I know the problem is not with my particular 
 implementation.
 
 Has anyone ever solved this problem or even just have an idea where I might 
 look for the problem? If I can get this fixed, I will happily share the code.
 
 Also, as a side note, I saw the discussions of using JGroups Synchronizer on 
 EC2. I also created a synchronizer that uses ElastiCache and it seems to be 
 working well. Regis has a built-in publish subscribe mechanism that seems to 
 work well for this purpose.
 
 Thanks,
 Frank
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
  
 https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com
 
 This email sent to rgur...@smarthealth.com mailto:rgur...@smarthealth.com
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Re: The WOCommunity slack channel

2016-09-21 Thread Frank Cobia

Please add me.

Thanks,
Frank Cobia


> On Sep 6, 2016, at 8:01 AM, Hugi Thordarson <h...@karlmenn.is> wrote:
> 
> Hi all,
> just wanted to remind you that Samuel Pelletier created a slack channel for 
> the WOCommunity. It’s a lovely little place for chatting about WO. Just let 
> us know if you’d like an invite so you can join.
> 
> Cheers,
> - hugi
> 
> // Hugi Thordarson
> // http://www.loftfar.is/
> // s. 895-6688
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/frank_cobia%40me.com
> 
> This email sent to frank_co...@me.com

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

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

Database Design - Multiple locations

2008-04-20 Thread Mr. Frank Cobia
I have a database design question. I am posting it to the WebObjects  
list because I am building a WebObjects app and want a solution that  
works well for EOF.


I have a table of data that has to have a location associated with it.  
Unfortunately the level of the location is not constant. The data can  
be associated with a Country, Region, State, Metro Area, County or  
City. Each of those levels is its own table with relationships  
pointing to the related locations. i.e. a State knows which Region it  
belongs to and which Metro Areas belong to it.


I have been unable to come up with a design that seems elegant. I have  
thought of having 6 separate relationships to each of the location  
levels, but it seems to duplicate data and the data could get out of  
sync if a state is moved to a different region or a City is moved to a  
different county.


Has anyone had a situation like this and come up with a good solution?

Thanks,
Frank Cobia
___
Do not post admin requests to the list. They will 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: Database Design - Multiple locations

2008-04-21 Thread Mr. Frank Cobia
It does not always point to city and that is what is throwing me off.  
They do haphazardly point to different different locations.


Thanks,
Frank Cobia


On Apr 20, 2008, at 11:05 PM, James Cicenia wrote:
Does your data haphazardly point to any location? Or does it point  
always to city (the most discreet) which is hierarchical down from  
Country?
If that is the case just point it to city and you will have access  
to all the other locations as they would all be joined in to-one  
relationship up the tree.


Otherwise, maybe have an intermediary object that has a type  
attribute.


HTH
James Cicenia


On Apr 20, 2008, at 8:15 PM, Mr. Frank Cobia wrote:

I have a database design question. I am posting it to the  
WebObjects list because I am building a WebObjects app and want a  
solution that works well for EOF.


I have a table of data that has to have a location associated with  
it. Unfortunately the level of the location is not constant. The  
data can be associated with a Country, Region, State, Metro Area,  
County or City. Each of those levels is its own table with  
relationships pointing to the related locations. i.e. a State knows  
which Region it belongs to and which Metro Areas belong to it.


I have been unable to come up with a design that seems elegant. I  
have thought of having 6 separate relationships to each of the  
location levels, but it seems to duplicate data and the data could  
get out of sync if a state is moved to a different region or a City  
is moved to a different county.


Has anyone had a situation like this and come up with a good  
solution?


Thanks,
Frank Cobia
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/james%40jimijon.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: Database Design - Multiple locations

2008-04-22 Thread Mr. Frank Cobia

Thanks. I will look into this and see if I can make it work.

Frank

On Apr 21, 2008, at 3:45 PM, Chuck Hill wrote:


On Apr 20, 2008, at 6:15 PM, Mr. Frank Cobia wrote:

I have a database design question. I am posting it to the  
WebObjects list because I am building a WebObjects app and want a  
solution that works well for EOF.


I have a table of data that has to have a location associated with  
it. Unfortunately the level of the location is not constant. The  
data can be associated with a Country, Region, State, Metro Area,  
County or City. Each of those levels is its own table with  
relationships pointing to the related locations. i.e. a State knows  
which Region it belongs to and which Metro Areas belong to it.


I have been unable to come up with a design that seems elegant. I  
have thought of having 6 separate relationships to each of the  
location levels, but it seems to duplicate data and the data could  
get out of sync if a state is moved to a different region or a City  
is moved to a different county.


Has anyone had a situation like this and come up with a good  
solution?



This seems like a good place for inheritance with an abstract EO of  
Location with concrete subclasses of Country, Region, State, Metro  
Area, County or City.  For some operations, having them in separate  
tables might cause more fetches than you want.  Using single table  
inheritance would address that.


Chuck

--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects








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

2008-04-22 Thread Mr. Frank Cobia
I had thought of something along theses lines, but I was worried about  
searches. Most of the time I will not be accessing the locations  
through the tree, but doing a search such as where location = Georgia  
which will also need to pull up anything with a location in a country,  
metro region or city that is inside Georgia. It seems like this type  
of structure does not lend itself well to searches.


One thing I had thought of doing is having a sort of code where the  
code is made up of the code of its parent. For example the City of  
atlanta might have a code of us.georgia.metroatlanta.fulton This way  
if I want to find an object with location of Metro Atlanta I could do:  
where location.code = 'us.georgia.metroatlanta'


What I was worried about is there are times when the tree structure  
changes (usually because of human error classifying the county or  
city) then the code might get out of sync. Is that fear irrational?


Thanks,
Frank


On Apr 22, 2008, at 9:42 AM, Robert Walker wrote:

Optionally, you could use a reflexive relationship for this. I've  
used them in the past for this type of situation and it seemed to  
work out well. This would allow you to have an arbitrarily deep tree  
structure using a single database table and single EO.


I can't think of any particular disadvantages to this type of  
relationship, and the structure is very simple. You create a one-to- 
many relationship that references a different row in the same table.  
The only caveat I'm aware of is to watch out for recursive  
associations.


I've built similar database structures for bills of material  
(although they are more complex than this, and involve a many-to- 
many reflexive relationship). Basically you just have to make sure  
that any root node is never used anywhere within that particular  
branch of the tree. This can usually be accomplished though the UI,  
but it's best to recursively validate the branch of the tree on save.


-
Location
-
id
name
type (Country, Region, State, Metro Area, County, or City)
parentID
-
parent (to-one)
children (to-many)
-

United States (Country)
-- South East (Region)
 Alabama (State)
 Arkansas (State)
 Georgia (State)
-- Atlanta (Metro Area)
 Fulton (County)
-- Atlanta (City)
 
-- North West (Region)
 Washington (State)
 Oregon (State)
 Montana (State)

Watch out for infinite recursion problems as illustrated below:

United States (Country)
-- South East (Region)
 Alabama (State)
-- United States (Country) --- Causes infinite recursion
 South East (Region)
-- Alabama (State)
 United States (Country) -- As is obvious here  
since you never find leaf nodes


On Apr 22, 2008, at 8:33 AM, Mr. Frank Cobia wrote:


Thanks. I will look into this and see if I can make it work.

Frank

On Apr 21, 2008, at 3:45 PM, Chuck Hill wrote:


On Apr 20, 2008, at 6:15 PM, Mr. Frank Cobia wrote:

I have a database design question. I am posting it to the  
WebObjects list because I am building a WebObjects app and want a  
solution that works well for EOF.


I have a table of data that has to have a location associated  
with it. Unfortunately the level of the location is not constant.  
The data can be associated with a Country, Region, State, Metro  
Area, County or City. Each of those levels is its own table with  
relationships pointing to the related locations. i.e. a State  
knows which Region it belongs to and which Metro Areas belong to  
it.


I have been unable to come up with a design that seems elegant. I  
have thought of having 6 separate relationships to each of the  
location levels, but it seems to duplicate data and the data  
could get out of sync if a state is moved to a different region  
or a City is moved to a different county.


Has anyone had a situation like this and come up with a good  
solution?



This seems like a good place for inheritance with an abstract EO  
of Location with concrete subclasses of Country, Region, State,  
Metro Area, County or City.  For some operations, having them in  
separate tables might cause more fetches than you want.  Using  
single table inheritance would address that.


Chuck

--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects








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

Re: Database Design - Multiple locations

2008-04-22 Thread Mr. Frank Cobia

Correction, the search below with the code would be

where location.code like us.georgia.metroatlanta%

On Apr 22, 2008, at 10:35 AM, Mr. Frank Cobia wrote:

I had thought of something along theses lines, but I was worried  
about searches. Most of the time I will not be accessing the  
locations through the tree, but doing a search such as where  
location = Georgia which will also need to pull up anything with a  
location in a country, metro region or city that is inside Georgia.  
It seems like this type of structure does not lend itself well to  
searches.


One thing I had thought of doing is having a sort of code where the  
code is made up of the code of its parent. For example the City of  
atlanta might have a code of us.georgia.metroatlanta.fulton This  
way if I want to find an object with location of Metro Atlanta I  
could do: where location.code = 'us.georgia.metroatlanta'


What I was worried about is there are times when the tree structure  
changes (usually because of human error classifying the county or  
city) then the code might get out of sync. Is that fear irrational?


Thanks,
Frank


On Apr 22, 2008, at 9:42 AM, Robert Walker wrote:

Optionally, you could use a reflexive relationship for this. I've  
used them in the past for this type of situation and it seemed to  
work out well. This would allow you to have an arbitrarily deep  
tree structure using a single database table and single EO.


I can't think of any particular disadvantages to this type of  
relationship, and the structure is very simple. You create a one-to- 
many relationship that references a different row in the same  
table. The only caveat I'm aware of is to watch out for recursive  
associations.


I've built similar database structures for bills of material  
(although they are more complex than this, and involve a many-to- 
many reflexive relationship). Basically you just have to make sure  
that any root node is never used anywhere within that particular  
branch of the tree. This can usually be accomplished though the UI,  
but it's best to recursively validate the branch of the tree on save.


-
Location
-
id
name
type (Country, Region, State, Metro Area, County, or City)
parentID
-
parent (to-one)
children (to-many)
-

United States (Country)
-- South East (Region)
 Alabama (State)
 Arkansas (State)
 Georgia (State)
-- Atlanta (Metro Area)
 Fulton (County)
-- Atlanta (City)
 
-- North West (Region)
 Washington (State)
 Oregon (State)
 Montana (State)

Watch out for infinite recursion problems as illustrated below:

United States (Country)
-- South East (Region)
 Alabama (State)
-- United States (Country) --- Causes infinite recursion
 South East (Region)
-- Alabama (State)
 United States (Country) -- As is obvious here  
since you never find leaf nodes


On Apr 22, 2008, at 8:33 AM, Mr. Frank Cobia wrote:


Thanks. I will look into this and see if I can make it work.

Frank

On Apr 21, 2008, at 3:45 PM, Chuck Hill wrote:


On Apr 20, 2008, at 6:15 PM, Mr. Frank Cobia wrote:

I have a database design question. I am posting it to the  
WebObjects list because I am building a WebObjects app and want  
a solution that works well for EOF.


I have a table of data that has to have a location associated  
with it. Unfortunately the level of the location is not  
constant. The data can be associated with a Country, Region,  
State, Metro Area, County or City. Each of those levels is its  
own table with relationships pointing to the related locations.  
i.e. a State knows which Region it belongs to and which Metro  
Areas belong to it.


I have been unable to come up with a design that seems elegant.  
I have thought of having 6 separate relationships to each of the  
location levels, but it seems to duplicate data and the data  
could get out of sync if a state is moved to a different region  
or a City is moved to a different county.


Has anyone had a situation like this and come up with a good  
solution?



This seems like a good place for inheritance with an abstract EO  
of Location with concrete subclasses of Country, Region, State,  
Metro Area, County or City.  For some operations, having them in  
separate tables might cause more fetches than you want.  Using  
single table inheritance would address that.


Chuck

--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects








___
Do not post

Compiler Warnings for NSSelector

2008-05-30 Thread Mr. Frank Cobia
This maybe an easy question, but I could not think of the answer right  
now. The constants for EOQualifier (i.e. QualifierOperatorEquals) are  
of type NSSelector. However, NSSelector is defined as NSSelectorT so  
the compiler wants me to give it a type when I reference it. So that I  
can get rid of the compiler warnings, what is the type for the  
NSSelectors in EOQualifier?


Thanks,
Frank
___
Do not post admin requests to the list. They will 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: ALCATRAZ! (Was: [OT] WOWODC Outing)

2008-06-05 Thread Mr. Frank Cobia
I am going to be there Friday night as well, but too late for  
Alcatraz :) Was there a time or place set for either The Thirsty Bear  
or The Chieftan?


Thanks,
Frank


On May 18, 2008, at 12:57 PM, Chuck Hill wrote:

Being of legal drinking age in California (not sure what that is) is  
the only requirement for The Chieftan.  The Thirsty Bear is a  
restaurant, so it does not even have that requirement.  You are  
certainly welcome to join in!


Chuck


On May 17, 2008, at 10:02 PM, Daniel Beatty wrote:


Greetings David and the gang,
I will also be in San Francisco at that time, bound for WOWODC, and  
would like to join either party (Alcatraz or this Chieftan as some  
one was calling.)I am probably be one of the few student types  
asking, but I have been told asking doesn't hurt.May I join one  
the groups that evening?



Later,
Dan

On May 16, 2008, at 6:49 AM, David LeBer wrote:



On 15-May-08, at 5:00 PM, Chuck Hill wrote:



On May 15, 2008, at 1:22 PM, William Sandner wrote:


I was thinking of an outing here: http://www.thechieftain.com/


Chuck, you are ALWAYS thinking about The Chieftain.
Well, yes.  :-)  But only as it is close to the Moscone and I  
don't know of any better place.  Suggestions are always  
welcome.  Variety is the spice of life.


WOWODC newbie says:

I've been to the Chieftan, it is a fine place.  In fact is my  
best mate's local.  However if you are a little more  
adventuresome Toronado is top quality.  De Koninck on draught.   
'nough said. http://www.toronado.com


Looks like a fine place to drink, but a very long stagger home  
when auto-pilot kicks in.


Wrenching this back to the original topic, [grunt] there are  
currently 6 of us going on the Alcatraz tour.


If you find yourself so inclined, tickets are available here:

http://www.alcatraztickets.com/tours/tourDetail.cfm?tour_id=7207

And we are confirmed on the 6:40 tour on Friday June 6. Though I'd  
buy tickets soon as they do sell out regularly.


Ping me with an email if you choose to come so I can fill you in  
on the meeting details.


Personally I hope we get Vicky as a tour guide:

http://www.youtube.com/watch?v=FmFVeeLL01c

;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org


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

This email sent to [EMAIL PROTECTED]




Dan Beatty, M.S. CS (B.S. EECS)
Ph.D. Student
Texas Tech University
[EMAIL PROTECTED]
http://venus.cs.ttu.edu/~dabeatty





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

This email sent to [EMAIL PROTECTED]



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_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/frank.cobia%40f2technology.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]


Calling a named fetch specification that uses a stored procedure

2008-07-29 Thread Mr. Frank Cobia
I have a stored procedure that takes 2 arguments. I have also created  
a named procedure on an entity that uses that stored procedure to  
fetch the data. When I call the stored procedure using  
rawRowsForStoredProcedureNamed(ec, myStoredProcedure, dict) it  
works, but when I use  
EOFetchSpecification.fetchSpecificationNamed(myFetchSpec,  
MyEntity.ENTITY_NAME).fetchSpecificationWithQualifierBindings(dict) it  
calls the stored procedure with 2 null arguments. I am using the same  
dictionary for both calls, so it is not a mispelling or anything. Is  
there a trick to making this work?


If it matters I am using 5.4.2 and latest wonder that is compatible  
with Eclicps 3.3.


Thanks,
Frank Cobia

___
Do not post admin requests to the list. They will 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: Calling a named fetch specification that uses a stored procedure

2008-07-31 Thread Mr. Frank Cobia
Does anyone have experience using a stored procedure to create a fetch  
specification in Entity Modeler?


Frank

On Jul 29, 2008, at 1:39 PM, Mr. Frank Cobia wrote:

I have a stored procedure that takes 2 arguments. I have also  
created a named procedure on an entity that uses that stored  
procedure to fetch the data. When I call the stored procedure using  
rawRowsForStoredProcedureNamed(ec, myStoredProcedure, dict) it  
works, but when I use  
EOFetchSpecification.fetchSpecificationNamed(myFetchSpec,  
MyEntity.ENTITY_NAME).fetchSpecificationWithQualifierBindings(dict)  
it calls the stored procedure with 2 null arguments. I am using the  
same dictionary for both calls, so it is not a mispelling or  
anything. Is there a trick to making this work?


If it matters I am using 5.4.2 and latest wonder that is compatible  
with Eclicps 3.3.


Thanks,
Frank Cobia

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/frank.cobia%40f2technology.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]


WOText Escape HTML Broken?

2008-08-02 Thread Mr. Frank Cobia
The escapeHTML binding has not effect on WOText (or ERXWOText). Is  
this the way it is supposed to behave or is it broken. I am using WO  
5.4.2 on Mac OS.


As a follow up question, whether it is broken or not, is there a way  
for me to create a textarea without the HTML being escaped? All I am  
really looking for is to insert br into the text.


Thanks,
Frank
___
Do not post admin requests to the list. They will 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: Eclipse 3.4.1

2008-10-28 Thread Mr. Frank Cobia


On Oct 14, 2008, at 6:45 AM, Kieran Kelleher wrote:

Here is the rough checklist for upgrading ... (in my case I have  
Wonder source linked into my workspace ... and I use WO 5.3.3)


- Every project's build.properties needs to have project.name and  
project.name.lowercase defined
- Check Build Path Order and put ERExtensions at the top of the  
build order (that is important!)

- Do a pre-upgrade commit of everything to svn
- Turn off autobuild
- Upgrade to Eclipse 3.4.1 and latest WOLips Nightly (New Hotness)  
and close Eclipse without building


I know this is probably a stupid question with an easy answer, but I  
will ask it anyway. Is there a way to upgrade Eclipse 3.3 to 3.4.1  
within Eclipse or do I have to download a new copy of Eclipse?


Thanks,
Frank



- Download and install latest Wonder
- Reopen your 3.4 workspace
- Create a new temporary WonderApplication project
- Replace your old application build.xml files with new one from  
temp project
- Replace your old application woproject/*.patternsets with new ones  
from temp project

- Create a new temporary WonderFramework project
- Replace your old framework build.xml files with new one from temp  
project
- Replace your old framework woproject/*.patternsets with new ones  
from temp project

- Delete your old woproject/ant path whatever files in all projects
- Right-click application projects - Properties - Turn on  
embedding (the more embed checkboxes you turn on, the less fire  
Future You will be playing with ;-) )

- Clean/Rebuild all
- Test app(s)
- Commit to svn

If you have build issues, open Build Path and check the Order of  
Frameworks and push ERExtensions to the top (Mike, possibly the  
automatic upgrade should do this anyway if ERExtensions is in the  
classpath?)


HTH, Kieran







On Oct 14, 2008, at 12:09 AM, Ramsey Gurley wrote:



On Oct 13, 2008, at 11:55 PM, Mike Schrag wrote:

I tried upgrading to Eclipse 3.4.1, upgraded to the WOLips  
nightly build and downloaded and installed the lastest Wonder- 
latest-frameworks-5.4.  Now, when I open my workspace I don't  
see my WOFrameworks folder, and neither does eclipse since  
nothing in the ERX framework compiles.  What can I do to get my  
frameworks back into my project?  I tried looking at the  
filters, but there are only two listed, *.class and .*


Even when I try to open Eclipse 3.3 my frameworks can no longer  
be seen.  Why would upgrading have blasted my project's  
framework setup?  And why was I dumb enough to try this in the  
first place :-(
WOLips 3.4 has an entirely new classpath system.   Touching a  
WOLips 3.3 project with WOLips 3.4 will cause the .classpath file  
to be upgraded, and it is not backwards compatible.  WO Frameworks  
are no longer handled as a single classpath container, rather each  
framework is now managed independently as its own classpath  
container (which more closely matches reality), and they each  
appear as Libraries in your build path.  As far as ERX not  
compiling, I'm not sure what version of the source you have, but  
given that the trunk of Wonder has been upgraded to WOLips 3.4,  
and I check it out all the time, I can assure you that it compiles  
without any errors under WOLips 3.4 straight out of SVN.  If  
you're using WO 5.4, you will need to change the build path of  
WOOGNL to remove Sources_53 and add Sources_54, but other than  
that, things should work fine.


That said, nightly is not stable for a reason.  If you're using  
nightly, you should really either be on the wolips mailing list or  
you should read the wolips blog (http://wolips.blogspot.com/2008/09/its-alive.html 
), so you know what you're getting yourself into.  There are  
SUBSTANTIAL changes to the way things work in the new WOLips that  
you need to be aware of.


ms



You make it sound so scary! :-)

I take it that it's stable enough though...? The only reason I'm  
updating is because the new .classpath files were pushed into the  
repository.  I took that as an 'all clear' :-)  Everything looks  
fine so far (knock on wood).  Any gotcha's that we should be aware  
of??


Ramsey ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%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/frank.cobia%40f2technology.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)

Re: WOLips New Hotness and ant build says: woframework doesn't support the frameworksBaseURL attribute

2008-11-04 Thread Mr. Frank Cobia
I also copied the build.xml from a new empty project and got the same  
error. I just removed the offending attribute and everything builds,  
but I have not had time to check to see whether it install or runs  
correctly.


Frank

On Nov 4, 2008, at 9:49 AM, Hugi Thordarson wrote:

Thanks Q - I did that - but I can't even build a brand new framework  
project I created on a clean install of WOLips/Eclipse 3.4.1. Tried  
it on three computers.


Any ideas?

Cheers,
- hugi




On 4.11.2008, at 14:31, Q wrote:



If you are building an old project with new hotness you need to  
update your build.xml as per mikes blog post.


http://wolips.blogspot.com/2008/09/its-alive.html

On 04/11/2008, at 11:15 PM, Hugi Thordarson wrote:

Thanks Kieran, that's what I thought at first, but there are only  
two woproject.jars on my computer:


[...]/eclipse 3.4/configuration/org.eclipse.osgi/bundles/293/1/.cp/ 
lib/woproject.jar
[...]/eclipse 3.4/plugins/ 
org.objectstyle.wolips.woproject.ant_3.4.5526/lib/woproject.jar


They exist as results of installing WOLips nightly last night. I  
get the same error when building a new Wonder Framework project -  
and I get this error on three separate developer machines (and our  
build server). Building a new Wonder Application seems to work  
fine, though.


We're all running the latest Leopard, WO 5.4.3, and Eclipse 3.4.1.

Possibly a problem with the latest nightly?

- h





On 4.11.2008, at 11:53, Kieran Kelleher wrote:


You are not using New Hotness latest woproject.jar it seems..

Navigate into the pligins and in a folder somewhere you will find  
New Hotness woproject.jar . or use Spotlight to find it:


Searching “This Mac”.jpg

On Nov 4, 2008, at 6:46 AM, Hugi Thordarson wrote:


Good morning everyone!

I just took the plunge last night and upgraded our environment  
to New Hotness™. Its looking really good so far, but I have one  
problem: I can't build my framework projects using ant.


I followed upgrade procedure, creating a new Wonder framework,  
then reaplcing build.xml in my old project with the new version.  
Everthing seems hunky dory (projects in my workspace even build  
perfectly against the new framework) But... When I try to build  
the project with ant, I get the following error:


BUILD FAILED
/Users/hugi/Documents/workspace/USJars/build.xml:45: woframework  
doesn't support the frameworksBaseURL attribute


My first thought was that I'm somehow using the stable version  
of woproject.jar, but I don't understand how, I've eliminated  
Eclipse 3.3. from my machine.


Any ideas?

Cheers,
- Hugi
___
Do not post admin requests to the list. They will 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 [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/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/frank.cobia%40f2technology.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]

WOLips, Deployment and JVMOptions

2008-11-19 Thread Mr. Frank Cobia
Is there somewhere that I can set the JVMOptions that appear in the  
UNIXClassPath.txt file when I do a build? Specifically I want to set  
the maximum memory parameter. i.e. -mx200m


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


wotaskd password

2009-04-16 Thread Mr. Frank Cobia
I have seen in the documentation that when you set a password in  
JavaMonitor it also sets a password in wotaskd. All the documentation  
I can find says that when wotaskd has a password you have to set the  
password for the Apache adaptor to communicate with wotaskd.  
Unfortunately I cannot find anything about how to set the password for  
the apache adaptor. The only password I can find is for the statistics.


How can I set the password for the apache adaptor to use?

Thanks,
Frank Cobia
___
Do not post admin requests to the list. They will 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: wotaskd password

2009-04-16 Thread Mr. Frank Cobia
I found it in several of the documents on Apple's website. It is  
basically a warning in every document that deals with deployment,  
wotaskd or JavaMonitor. I have verified that it is true, because I set  
the password in JavaMonitor and then I could no longer connect to my  
app through apache, but when I removed the password I was able to  
connect again.


Frank


On Apr 16, 2009, at 12:56 PM, Mark Ritchie wrote:


On 16-Apr-09, at 12:10 PM, Mr. Frank Cobia wrote:
... when wotaskd has a password you have to set the password for  
the Apache adaptor to communicate with wotaskd ...


Hrm... Where did you read that?

Thanks!
Mark



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

2009-04-17 Thread Mr. Frank Cobia
I will give it another try over the next few days and see if maybe it  
was some other problem I was having.


Frank

On Apr 16, 2009, at 3:20 PM, Mark Ritchie wrote:


On 16-Apr-09, at 2:54 PM, Chuck Hill wrote:

You might also be thinking of this (unrelated) section in
/System/Library/WebObjects/Adaptors/Apache2.2/apache.conf

# To enable the WOAdaptorInfo page with restricted access,
# uncomment the next two lines and set the user and password
# To access the WOAdaptorInfo page with restricted access,
# use a URL like: http://webserver/cgi-bin/WebObjects/WOAdaptorInfo?user+password 
.

# WebObjectsAdminUsername user
# WebObjectsAdminPassword password


Hey Chuck!

That's a good point!  Perhaps Frank is mixing them up?  Either way,  
enabling the WOAdaptorInfo page and turning on adaptor logging are  
vital to tracking down why it's not working!   For example, on that  
solaris problem with Apache2 and Apache2.2, turned out that  
Apache2.2 required fqdn for the app servers where as Apache2 did  
not.  Weird shit but then there were multiple virtual hosts and  
external vs internal addresses so were lots of opportunity for  
confusion.  It was resolved by looking at the adaptor logs which  
clearly show'd the problem.


Regards,
M.
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada



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

This email sent to frank.co...@f2technology.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: Rapid Turnaround with Project Builder??

2009-04-22 Thread Mr. Frank Cobia

So I need pb.proj files to deploy for production on an XServe?

I tried this and it does not seem to help.

Thanks,
Frank


On Apr 22, 2009, at 3:35 PM, Mike Schrag wrote:

you either have to have eclipse generate pb.proj/xcodeproj files  
(it's in the wolips build settings) or you need to use the  
_WOLipsProject stuff (that isn't quite officially a public thing) ..


ms

On Apr 22, 2009, at 3:30 PM, Mr. Frank Cobia wrote:

I have several applications that I just rebuilt and installed where  
they were already working but now they die with the message:


Apr 22 15:24:34 Bids[2002] (_PBXProjectWatcher.java:532) ERROR  
com.webobjects._ideservices._PBXProjectWatcher  - Cannot use rapid  
turnaround.  Please start Project Builder and open the project for  
this application.



I saw that some people had said to check the host name and  
changeip -checkhostname says everything is okay and I tried  
adding -WOHost to the command line for th app, but I am still  
getting the same error.


Does anyone know what causes this?

Thanks,
Frank
___
Do not post admin requests to the list. They will 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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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: Rapid Turnaround with Project Builder??

2009-04-22 Thread Mr. Frank Cobia
Never mind. My mind is not working today. I am working in a deployment  
environment and I saw that error on the command line and assumed that  
was my problem. I looked in the log file and found an error that made  
more sense. I did not realize that error was not actually something  
that would stop the app from running.


What tells WebObjects that it is in a rapid turnaround environment so  
that I can get rid of this?


Thanks,
Frank


On Apr 22, 2009, at 3:46 PM, Mike Schrag wrote:

wait, what are you talking about production? rapid turnaround isn't  
used in production ... this is only for development mode.  that is  
also not a crashing exception, it's just a log error, though i don't  
know how you managed to get it talking about rapid turnaround in a  
deployment scenario


On Apr 22, 2009, at 3:43 PM, Mr. Frank Cobia wrote:


So I need pb.proj files to deploy for production on an XServe?

I tried this and it does not seem to help.

Thanks,
Frank


On Apr 22, 2009, at 3:35 PM, Mike Schrag wrote:

you either have to have eclipse generate pb.proj/xcodeproj files  
(it's in the wolips build settings) or you need to use the  
_WOLipsProject stuff (that isn't quite officially a public thing) ..


ms

On Apr 22, 2009, at 3:30 PM, Mr. Frank Cobia wrote:

I have several applications that I just rebuilt and installed  
where they were already working but now they die with the message:


Apr 22 15:24:34 Bids[2002] (_PBXProjectWatcher.java:532) ERROR  
com.webobjects._ideservices._PBXProjectWatcher  - Cannot use  
rapid turnaround.  Please start Project Builder and open the  
project for this application.



I saw that some people had said to check the host name and  
changeip -checkhostname says everything is okay and I tried  
adding -WOHost to the command line for th app, but I am still  
getting the same error.


Does anyone know what causes this?

Thanks,
Frank
___
Do not post admin requests to the list. They will 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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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/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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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


Inverse Relationships

2009-04-28 Thread Mr. Frank Cobia
If I am using the EOGenerator files from WOLips is there not a way to  
update a relationship without automatically updating the inverse  
relationship? If I just call setProperty() then the inverse  
relationship will get called. I had thought if I called  
setPropertyRelationship() with  
er.extensions.ERXEnterpriseObject.updateInverseRelationships=false I  
would get the desired behavior, but it seems that  
setPropertyRelationship() always updates the inverse relationship. For  
example:


  public void  
setSetasideCodeRelationship(com.ods.wo.bids.db.SetasideCode value) {

if (_Bid.LOG.isDebugEnabled()) {
  _Bid.LOG.debug(updating setasideCode from  + setasideCode() +  
 to  + value);

}
if  
(er 
.extensions 
.eof 
.ERXGenericRecord 
.InverseRelationshipUpdater.updateInverseRelationships()) {

setSetasideCode(value);
}
else if (value == null) {
com.ods.wo.bids.db.SetasideCode oldValue = setasideCode();
if (oldValue != null) {
		removeObjectFromBothSidesOfRelationshipWithKey(oldValue,  
setasideCode);

  }
} else {
addObjectToBothSidesOfRelationshipWithKey(value, setasideCode);
}
  }



So even if  
er.extensions.ERXEnterpriseObject.updateInverseRelationships is false  
it still calls either addObjectsToBothSidesOfRelationshipWithKey() or  
removeObjectFromBothSidesOfRelationshipWithKey(). Is this correct? If  
so, is there a way to do this through the generated files?


Thanks,
Frank ___
Do not post admin requests to the list. They will 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: Inverse Relationships

2009-04-28 Thread Mr. Frank Cobia

Thank you. That fixed it. I did have it backwards.

Frank


On Apr 28, 2009, at 10:23 AM, David Avendasora wrote:


Hi Frank,

On Apr 28, 2009, at 10:12 AM, Mr. Frank Cobia wrote:

If I am using the EOGenerator files from WOLips is there not a way  
to update a relationship without automatically updating the inverse  
relationship? If I just call setProperty() then the inverse  
relationship will get called.


I believe this will only update the inverse if you have the  
er.extensions.ERXEnterpriseObject.updateInverseRelationships=true  
set. Otherwise it should only call takeStoredValueForKey(aValue,  
Property) and stop.


I had thought if I called setPropertyRelationship() with  
er.extensions.ERXEnterpriseObject.updateInverseRelationships=false  
I would get the desired behavior, but it seems that  
setPropertyRelationship() always updates the inverse relationship.


You have it backwards. The setPropertyRelationship() _explicitly_  
sets the inverse, and the updateInverseRelationship will have no  
effect on it.


So, in short, if you want to have control over setting one side only  
of a relationship, use either of the following _Without_ the  
updateInverseRelationship=true:


takeStoredValueForKey(aValue, Key);

or

setProperty(aValue);

Dave


For example:

  public void  
setSetasideCodeRelationship(com.ods.wo.bids.db.SetasideCode value) {

if (_Bid.LOG.isDebugEnabled()) {
  _Bid.LOG.debug(updating setasideCode from  + setasideCode()  
+  to  + value);

}
if  
(er 
.extensions 
.eof 
.ERXGenericRecord 
.InverseRelationshipUpdater.updateInverseRelationships()) {

setSetasideCode(value);
}
else if (value == null) {
com.ods.wo.bids.db.SetasideCode oldValue = setasideCode();
if (oldValue != null) {
		removeObjectFromBothSidesOfRelationshipWithKey(oldValue,  
setasideCode);

  }
} else {
	addObjectToBothSidesOfRelationshipWithKey(value,  
setasideCode);

}
  }



So even if  
er.extensions.ERXEnterpriseObject.updateInverseRelationships is  
false it still calls either  
addObjectsToBothSidesOfRelationshipWithKey() or  
removeObjectFromBothSidesOfRelationshipWithKey(). Is this correct?  
If so, is there a way to do this through the generated files?


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

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




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

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

Re: Inverse Relationships

2009-04-28 Thread Mr. Frank Cobia
Sorry, I need a little more help. I understand this, but I would like  
to keep the updateReverseRelationships=true for the app, but in one  
situation I would like to set the relationship without updating the  
reverse. Is it possible to do this?


Thanks,
Frank


On Apr 28, 2009, at 10:23 AM, David Avendasora wrote:


Hi Frank,

On Apr 28, 2009, at 10:12 AM, Mr. Frank Cobia wrote:

If I am using the EOGenerator files from WOLips is there not a way  
to update a relationship without automatically updating the inverse  
relationship? If I just call setProperty() then the inverse  
relationship will get called.


I believe this will only update the inverse if you have the  
er.extensions.ERXEnterpriseObject.updateInverseRelationships=true  
set. Otherwise it should only call takeStoredValueForKey(aValue,  
Property) and stop.


I had thought if I called setPropertyRelationship() with  
er.extensions.ERXEnterpriseObject.updateInverseRelationships=false  
I would get the desired behavior, but it seems that  
setPropertyRelationship() always updates the inverse relationship.


You have it backwards. The setPropertyRelationship() _explicitly_  
sets the inverse, and the updateInverseRelationship will have no  
effect on it.


So, in short, if you want to have control over setting one side only  
of a relationship, use either of the following _Without_ the  
updateInverseRelationship=true:


takeStoredValueForKey(aValue, Key);

or

setProperty(aValue);

Dave


For example:

  public void  
setSetasideCodeRelationship(com.ods.wo.bids.db.SetasideCode value) {

if (_Bid.LOG.isDebugEnabled()) {
  _Bid.LOG.debug(updating setasideCode from  + setasideCode()  
+  to  + value);

}
if  
(er 
.extensions 
.eof 
.ERXGenericRecord 
.InverseRelationshipUpdater.updateInverseRelationships()) {

setSetasideCode(value);
}
else if (value == null) {
com.ods.wo.bids.db.SetasideCode oldValue = setasideCode();
if (oldValue != null) {
		removeObjectFromBothSidesOfRelationshipWithKey(oldValue,  
setasideCode);

  }
} else {
	addObjectToBothSidesOfRelationshipWithKey(value,  
setasideCode);

}
  }



So even if  
er.extensions.ERXEnterpriseObject.updateInverseRelationships is  
false it still calls either  
addObjectsToBothSidesOfRelationshipWithKey() or  
removeObjectFromBothSidesOfRelationshipWithKey(). Is this correct?  
If so, is there a way to do this through the generated files?


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

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




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

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

Re: Inverse Relationships

2009-04-28 Thread Mr. Frank Cobia
Thanks. I was going to just remove the reverse relationship, but there  
is actually a place where I do a query that uses the inverse  
relationship. So my solution, which seems to work, is to remove the  
class property flag for the inverse relationship. The only downside I  
have come across is that there is then no ERXKey generated for that  
inverse relationship.


Is there a way to have an ERXKey generated for a non-class property or  
am I stuck adding it by hand?


Thanks,
Frank


On Apr 28, 2009, at 11:06 AM, Mike Schrag wrote:

currently not directly .. it's an all-or-nothing setting.  you would  
need to remove the inverse relationship from the model to turn it  
off. you MIGHT be able to manually do a  
_setUpdateInverseRelationships(false) (or whatever that method is  
called) on the EO before you set the relationship in question, but  
make sure you put the thing to turn it back on in a finally block.


ms

On Apr 28, 2009, at 10:59 AM, Mr. Frank Cobia wrote:

Sorry, I need a little more help. I understand this, but I would  
like to keep the updateReverseRelationships=true for the app, but  
in one situation I would like to set the relationship without  
updating the reverse. Is it possible to do this?


Thanks,
Frank


On Apr 28, 2009, at 10:23 AM, David Avendasora wrote:


Hi Frank,

On Apr 28, 2009, at 10:12 AM, Mr. Frank Cobia wrote:

If I am using the EOGenerator files from WOLips is there not a  
way to update a relationship without automatically updating the  
inverse relationship? If I just call setProperty() then the  
inverse relationship will get called.


I believe this will only update the inverse if you have the  
er.extensions.ERXEnterpriseObject.updateInverseRelationships=true  
set. Otherwise it should only call takeStoredValueForKey(aValue,  
Property) and stop.


I had thought if I called setPropertyRelationship() with  
er 
.extensions.ERXEnterpriseObject.updateInverseRelationships=false  
I would get the desired behavior, but it seems that  
setPropertyRelationship() always updates the inverse relationship.


You have it backwards. The setPropertyRelationship() _explicitly_  
sets the inverse, and the updateInverseRelationship will have no  
effect on it.


So, in short, if you want to have control over setting one side  
only of a relationship, use either of the following _Without_ the  
updateInverseRelationship=true:


takeStoredValueForKey(aValue, Key);

or

setProperty(aValue);

Dave


For example:

  public void  
setSetasideCodeRelationship(com.ods.wo.bids.db.SetasideCode  
value) {

if (_Bid.LOG.isDebugEnabled()) {
  _Bid.LOG.debug(updating setasideCode from  +  
setasideCode() +  to  + value);

}
if  
(er 
.extensions 
.eof 
.ERXGenericRecord 
.InverseRelationshipUpdater.updateInverseRelationships()) {

setSetasideCode(value);
}
else if (value == null) {
com.ods.wo.bids.db.SetasideCode oldValue = setasideCode();
if (oldValue != null) {
		removeObjectFromBothSidesOfRelationshipWithKey(oldValue,  
setasideCode);

  }
} else {
	addObjectToBothSidesOfRelationshipWithKey(value,  
setasideCode);

}
  }



So even if  
er.extensions.ERXEnterpriseObject.updateInverseRelationships is  
false it still calls either  
addObjectsToBothSidesOfRelationshipWithKey() or  
removeObjectFromBothSidesOfRelationshipWithKey(). Is this  
correct? If so, is there a way to do this through the generated  
files?


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

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




___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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: Virtual host deployment question

2009-05-07 Thread Mr. Frank Cobia
I also made a modification to the WebObjects adaptor for Apache 2.2  
that allows you to specify which apps you are allowed to hit from a  
domain. Email me if you are interested in the source code.


Frank
On May 7, 2009, at 2:30 PM, Tim Worman wrote:



On May 7, 2009, at 10:51 AM, Chuck Hill wrote:



On May 7, 2009, at 10:46 AM, Mitchel Roider wrote:


Hello,

So I have everything working on my deployment server.
Two independent pairs of wotaskd and womonitor along with separate  
siteconfig.xml files.

Everything seems to be working properly .

My last bit of configuration needs to restrict access of a WO app  
to just one virtual domain.
For example  www.a.com/cgi-bin/WebObjects/A.woa www.b.com/cgi-bin/WebObjects/B.woa 
.

Right now I can access both WO apps from either domain.

Is there a straightforward way of implementing this restriction?   
I have already attempted it by moving the
WebObjectsConfig http://localhost:1085 10   directive within the  
virtual host configuration file and limiting which wotaskd it can  
see.

This did not work.

If anyone has any time tested solution for this I would be grateful.


Apache rewrite rules with re-directs.

Chuck


Rewrite cheat sheet:

http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet

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

This email sent to frank.co...@f2technology.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


Embeded Frameworks and WebServerResources

2009-06-26 Thread Mr. Frank Cobia
I am building my application with the frameworks embedded so that I do  
not have to worry about different versions of the frameworks for  
different apps. I have checked and the build does put the  
WebServerResources inside the application's WebServerResources.  
However, when accessing the app it builds URLs that refer to the  
framework resources as if they were standalone and not embedded.


Is there something I can do to force URLs to be generated that refer  
to the resources inside the app instead?


Thanks,
Frank Cobia
___
Do not post admin requests to the list. They will 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: Embeded Frameworks and WebServerResources

2009-06-26 Thread Mr. Frank Cobia
Thanks. I did this and set WOFrameworksBaseURL to /WebObjects/App.woa/ 
Frameworks and it is working now.


Frank


On Jun 26, 2009, at 10:16 AM, Ricardo J. Parada wrote:

I believe WOFrameworksBaseURL and WOApplicationBaseURL are used for  
that.


If you are on WO 5.4.3 then those too are broken and I put this in  
my application constructor to make them work:


public Application() {
super();

		// WOFrameworksBaseURL and WOApplicationBaseURL properties are  
broken in 5.4.

// This is the workaround.
frameworksBaseURL();
applicationBaseURL();
if (System.getProperty(WOFrameworksBaseURL) != null) {

setFrameworksBaseURL(System.getProperty(WOFrameworksBaseURL));
}
if (System.getProperty(WOApplicationBaseURL) != null) {

setApplicationBaseURL(System.getProperty(WOApplicationBaseURL));
}
}



On Jun 26, 2009, at 9:56 AM, Mr. Frank Cobia wrote:

I am building my application with the frameworks embedded so that I  
do not have to worry about different versions of the frameworks for  
different apps. I have checked and the build does put the  
WebServerResources inside the application's WebServerResources.  
However, when accessing the app it builds URLs that refer to the  
framework resources as if they were standalone and not embedded.


Is there something I can do to force URLs to be generated that  
refer to the resources inside the app instead?


Thanks,
Frank Cobia
___
Do not post admin requests to the list. They will 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: Eclipse 3.5 slow?

2009-07-02 Thread Mr. Frank Cobia
Where do you get the 64bit version. My understanding is that the  
default download package for cocoa is 32bit and I was unable to find a  
64 bit download.


Thanks,
Frank


On Jun 29, 2009, at 8:22 PM, Kieran Kelleher wrote:


Hola Ricardo, :-)

If you are on intel, try 64-bit version.

Regards, Kieran


On Jun 29, 2009, at 5:29 PM, Ricardo J. Parada wrote:



I was excited to try Eclipse 3.5, the Cocoa 32-bit version...  At  
first it seemed faster but then after half an hour it got really  
slow.  So slow that every keystroke would take between 10 secs to a  
couple of minutes to appear.   I don't see this on the 3.4  
version.  The 3.4 does run out of memory and crashes but it doesn't  
get as slow as the 3.5 version.


I do have a lot of projects in my workspace and only 2GB memory on  
my macbook pro (the first model that came out).


Anyways, I had to go back to the 3.4 version.  Haver other found  
3.5 Cocoa 32-bit to be this slow?


Thanks,
Ricardo

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

This email sent to frank.co...@f2technology.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: Eclipse 3.5 slow?

2009-07-02 Thread Mr. Frank Cobia
Thanks I downloaded the Eclipse SDK which seems to work. At first it  
would not do code completion, but I just had to go into the  
preferences and turn on Java code completion which was turned off for  
some reason.


I am having one more problem. The ant build scripts are taking forever  
to run. I have added dependencies to the ant scripts so that they  
build jars, and frameworks that they depend on before building the  
application. The builds are now taking almost 6 minutes where they  
took about 1 minute or less before. The problem seems to be that it is  
recompiling code that has not changed where the old one only compiled  
the files if they had changed.


Has anyone seen this or know what I can do to fix it?

Thanks,
Frank

On Jul 2, 2009, at 11:31 AM, David Avendasora wrote:


http://download.eclipse.org/eclipse/downloads/drops/R-3.5-200906111540/index.php

Dave

On Jul 2, 2009, at 11:23 AM, Mr. Frank Cobia wrote:

Where do you get the 64bit version. My understanding is that the  
default download package for cocoa is 32bit and I was unable to  
find a 64 bit download.


Thanks,
Frank


On Jun 29, 2009, at 8:22 PM, Kieran Kelleher wrote:


Hola Ricardo, :-)

If you are on intel, try 64-bit version.

Regards, Kieran


On Jun 29, 2009, at 5:29 PM, Ricardo J. Parada wrote:



I was excited to try Eclipse 3.5, the Cocoa 32-bit version...  At  
first it seemed faster but then after half an hour it got really  
slow.  So slow that every keystroke would take between 10 secs to  
a couple of minutes to appear.   I don't see this on the 3.4  
version.  The 3.4 does run out of memory and crashes but it  
doesn't get as slow as the 3.5 version.


I do have a lot of projects in my workspace and only 2GB memory  
on my macbook pro (the first model that came out).


Anyways, I had to go back to the 3.4 version.  Haver other found  
3.5 Cocoa 32-bit to be this slow?


Thanks,
Ricardo

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

This email sent to frank.co...@f2technology.com



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

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







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

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


Relative URLs for Forms

2009-07-02 Thread Mr. Frank Cobia
I have an application using a version of wonder from last week and  
using the 5.4 version of webobjects. All the forms in the app are  
generating full URLs instead of relative URLs. This is causing me a  
problem because (at lest for the moment) the machine is accessible  
from the Internet and through VPN using different names, but the app  
always generates URLs with the VPN name and so someone accessing it  
from the Internet is not able to use the app. Also if it makes a  
difference, I am accessing the app through https.


Is there a way to force the form to generate relative URLs for form  
submission?


I have tried the following, but it does not seem to work:


@Override
public WOContext createContextForRequest(WORequest request) {
		ERXWOContext context = (ERXWOContext)super.createContextForRequest 
(request);

context._generateRelativeURLs();

return context;
}


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

Fetch Optimization Advice

2009-07-08 Thread Mr. Frank Cobia
I have created a WebObjects command line app (uses ERXMainRunner) that  
generates a report for each user (40,000+) on my system and it is  
running too slow. I have come up with two ways to optimize it and I  
was wondering which you thought is better.


The report uses a table (TableA) that has a lot of fields, most of  
which are not relevant to the report. It also has a Text field which  
could be rather large.


One option is to create TableAReport that points to the same database  
table, but only include the few (small) fields that I need for the  
report. I know the downside to this is that WebObjects can get  
confused when there are two entities pointing to the same data, but  
this command line app is only run once a day, it is read only and  
(hopefully) only runs for a few minutes.


The other is to go to raw row fetches, but I lose some of the nice EOF  
stuff like traversing relationships. (TableA has two relationship I  
use).


Any Advice?

Thanks,
Frank
___
Do not post admin requests to the list. They will 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: Fetch Optimization Advice

2009-07-08 Thread Mr. Frank Cobia
There are definitely a lot of fetches since the reports are custom to  
each user and there are more than 40,000 users, but the fetch does  
indeed pull a lot of rows and each row has a large text description  
that I am not using.


I am using prefetching for the two relationships I use, but I am using  
the prefetching on ERXFetchSpecification. I have not looked at  
ERXBatchFetchUtilities. I will take a look at that.


Is there any advantage to creating a view and pointing my new entity  
to that view as opposed to just pointing the entity directly to the  
table and leaving out the fields I am not interested in? It seems like  
the view would just add overhead, but you may know some advantage to  
using it that I am not aware of.


Thanks,
Frank


On Jul 8, 2009, at 4:24 PM, Mike Schrag wrote:

speaking without knowledge of any specifics of your app, it's  
generally number of roundtrips that is the big performance killer  
rather than the number of columns that come back, unless you have an  
especially large number of columns that have especially large  
data ... if it's #2, and this is just reporting, i would recommend  
making some custom views that only pull back what you need and make  
new eo's that sit on top of those views.  my first thought is that  
you're probably not prefetching effectively, but that's a completely  
naive comment  -- just what screws most people for performance.   
Turn on sql debug and do you see a ton of faults of to-one's and to- 
many's?  if so, those are prime candidates for  
ERXBatchFetchUtilities to prefetch them in bulk.  if the fetches you  
see are appropriately faulting, only THEN would i start to look at  
other things like column counts and raw rows.


ms

On Jul 8, 2009, at 4:19 PM, Mr. Frank Cobia wrote:

I have created a WebObjects command line app (uses ERXMainRunner)  
that generates a report for each user (40,000+) on my system and it  
is running too slow. I have come up with two ways to optimize it  
and I was wondering which you thought is better.


The report uses a table (TableA) that has a lot of fields, most of  
which are not relevant to the report. It also has a Text field  
which could be rather large.


One option is to create TableAReport that points to the same  
database table, but only include the few (small) fields that I need  
for the report. I know the downside to this is that WebObjects can  
get confused when there are two entities pointing to the same data,  
but this command line app is only run once a day, it is read only  
and (hopefully) only runs for a few minutes.


The other is to go to raw row fetches, but I lose some of the nice  
EOF stuff like traversing relationships. (TableA has two  
relationship I use).


Any Advice?

Thanks,
Frank
___
Do not post admin requests to the list. They will 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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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: Fetch Optimization Advice

2009-07-08 Thread Mr. Frank Cobia
Sorry. I meant never use them in the report or the command line  
application. They are used by my web apps.


Frank


On Jul 8, 2009, at 4:34 PM, Mike Schrag wrote:

Is there any advantage to creating a view and pointing my new  
entity to that view as opposed to just pointing the entity directly  
to the table and leaving out the fields I am not interested in? It  
seems like the view would just add overhead, but you may know some  
advantage to using it that I am not aware of.
Oh, if you NEVER use the fields, then by all means, just remove them  
from your entity definition (assuming they're not NOT NULL fields).


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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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: Fetch Optimization Advice

2009-07-09 Thread Mr. Frank Cobia
Just in case anybody cares or is looking at similar problems. I came  
up with an even better solution. I just programmatically remove the  
unused attributes from the model at application startup.


Thanks,
Frank


On Jul 8, 2009, at 4:37 PM, Mr. Frank Cobia wrote:

Sorry. I meant never use them in the report or the command line  
application. They are used by my web apps.


Frank


On Jul 8, 2009, at 4:34 PM, Mike Schrag wrote:

Is there any advantage to creating a view and pointing my new  
entity to that view as opposed to just pointing the entity  
directly to the table and leaving out the fields I am not  
interested in? It seems like the view would just add overhead, but  
you may know some advantage to using it that I am not aware of.
Oh, if you NEVER use the fields, then by all means, just remove  
them from your entity definition (assuming they're not NOT NULL  
fields).


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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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


Making my database plugin the default

2009-07-10 Thread Mr. Frank Cobia
I have created a MySQL plugin so that I can take advantage of some of  
MySQLs features and I want to set it as the default plugin for MySQL.  
I know I need to call
JDBCPlugIn.setPlugInNameForSubprotocol(), but even if I put it in my  
application constructor just below super(), the standard plugin is  
used before that line of code gets executed.


I also noticed that the EROraclePlugin has an EROraclePluginClass with  
a static constructor, but what causes that to get called?


Is there a way to do what I want?

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


Deployment with Embedded Frameworks and Duplicate libraries

2009-08-02 Thread Mr. Frank Cobia
I have a new application in production and the wotaskd has failed  
several times causing great problems. I have looked in the log for  
wotaskd and the only errors in the file are about duplicate libraries  
because the frameworks that are embedded are also in /Library/ 
Frameworks. Specifically I have embedded the WebObjects frameworks so  
that I do not have to worry about differences in WebObjects versions.


How do I fix this?

Also, any advice on how to find out what is going on with wotaskd  
other than looking at the log file?


Frank
___
Do not post admin requests to the list. They will 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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-02 Thread Mr. Frank Cobia


On Aug 2, 2009, at 1:51 PM, Chuck Hill wrote:



On Aug 2, 2009, at 7:28 AM, Mr. Frank Cobia wrote:

I have a new application in production and the wotaskd has failed  
several times causing great problems.


failed.  What does that mean?


It no longer responds to JavaMonitor and the apps were acting  
strangely because of it. I need to do some more investigating, but the  
only way I was able to get the apps to respond again was to restart  
wotaskd.


Any tips on how to investigate wotaskd?

I am really not sure why wotaskd causes the apps to misbehave though.

Frank
___
Do not post admin requests to the list. They will 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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-02 Thread Mr. Frank Cobia
I have a new application in production and the wotaskd has failed  
several times causing great problems.


failed.  What does that mean?


It no longer responds to JavaMonitor


Details?


I really do not have any other than JavaMonitor says that wotaskd on  
that box is not responding. Next time it happens I will see if I can  
hit its URL. I assume JavaMonitor is asking for the configuration  
file. Is there any other reason that JavaMonitor tries to contact  
wotaskd?






and the apps were acting strangely because of it.


Details?


It was really bizarre. I have an app that is called Bids.woa and I  
have apache configured to rewrite URLS so that http://host/ gets  
mapped to /apps/WebObjects/Bids.woa, but, of course, the user still  
sees http://host/ in their browser. When wotaskd stopped responding  
hitting http://host/ cause the URL in the browser to change to http://host/apps/WebObjects/Bids.woa 
 and Safari said it could not load the page because the URL was  
redirecting back to itself too many times.


I was able to cure this by restarting wotaskd. It did not require  
restarting apache. I really do not understand how this could happen.






I need to do some more investigating, but the only way I was able  
to get the apps to respond again was to restart wotaskd.


Wonder's wotasks?  Apples?  Which version?


THe version from Wonder from about1 week ago.





Any tips on how to investigate wotaskd?


Same as a regular WO app, turn up the NSLog levels.


I will look into that. Can I use the log4j configurations from the  
sample properties file in wonder?


Thanks,
Frank
___
Do not post admin requests to the list. They will 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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-03 Thread Mr. Frank Cobia
Right now JavaMonitor says that wotaskd is not responding. I checked  
and I am able to get the list of apps by going to the wotaskd app in  
my browser. wotaskd does not show any errors.


I have turned on direct connection to all the instances of the apps  
and there is one that does not respond. When I look in the log it has  
the following repeated many times:


Aug 03 09:52:58 Bids[2004] (NAKACK.java:1398) ERROR  
org.jgroups.protocols.pbcast.NAKACK  - sender 10.25.100.100:59316 not  
found in xmit_table
Aug 03 09:52:58 Bids[2004] (NAKACK.java:1210) ERROR  
org.jgroups.protocols.pbcast.NAKACK  - range is null



I am guessing that this is the problem. Anyone know anything about  
jgroups?


Thanks,
Frank
___
Do not post admin requests to the list. They will 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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-03 Thread Mr. Frank Cobia
Never mind. The other app server wotaskd is not responding according  
to JavaMonitor now. It does work for me and there is one instance on  
that box that is not responding. The log for that instance does not  
show any errors.


Frank


On Aug 3, 2009, at 10:33 AM, Mr. Frank Cobia wrote:

Right now JavaMonitor says that wotaskd is not responding. I checked  
and I am able to get the list of apps by going to the wotaskd app in  
my browser. wotaskd does not show any errors.


I have turned on direct connection to all the instances of the apps  
and there is one that does not respond. When I look in the log it  
has the following repeated many times:


Aug 03 09:52:58 Bids[2004] (NAKACK.java:1398) ERROR  
org.jgroups.protocols.pbcast.NAKACK  - sender 10.25.100.100:59316  
not found in xmit_table
Aug 03 09:52:58 Bids[2004] (NAKACK.java:1210) ERROR  
org.jgroups.protocols.pbcast.NAKACK  - range is null



I am guessing that this is the problem. Anyone know anything about  
jgroups?


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

This email sent to frank.co...@f2technology.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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-04 Thread Mr. Frank Cobia


I have turned on direct connection to all the instances of the apps  
and there is one that does not respond.


Which is why you are getting that message, however misleading the  
text of the message may be.




I did indeed discover that the problem was in the app. When one  
instance of my app hangs, JavaMonitor says that wotaskd is hung and  
all kinds of bad things happen. Either the apache adaptor does not  
redirect to a functioning instance or if it does, it does so after a  
long pause.


Is there some reason that JavaMonitor/wotaskd/Apache Adptor can not  
deal correctly with a hung instance? Is there anything I can do to  
make it behave better?


Also, I have to turn direct connect off to be able to do the refuse  
new sessions, so is there another way to figure out which app is hung  
so that it can be killed?




Get a thread dump:
http://www.gvcsitemaker.com/gvc.webobjects/faqmode=singlerecordID=41413


I did run jstack and it does appear that some threaded code in my app  
is deadlocked. I will attempt to fix that.


Frank
___
Do not post admin requests to the list. They will 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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-04 Thread Mr. Frank Cobia
I did indeed discover that the problem was in the app. When one  
instance of my app hangs, JavaMonitor says that wotaskd is hung and  
all kinds of bad things happen. Either the apache adaptor does not  
redirect to a functioning instance or if it does, it does so after  
a long pause.


How long?  The default is 15 seconds.  If you have multiple hung  
instances, it could redirect to one of them.


The problem is that it never times out. Any user trying to go to that  
instance just hangs forever.





Is there some reason that JavaMonitor/wotaskd/Apache Adptor can not  
deal correctly with a hung instance? Is there anything I can do to  
make it behave better?


Define better.  It deals with it fairly well, given that it can only  
assume what some symptoms might  mean.




See above. It is workable for 15 seconds, but it seems to hang forever.



Also, I have to turn direct connect off to be able to do the refuse  
new sessions, so is there another way to figure out which app is  
hung so that it can be killed?


Look at the stack trace, like below.  Also look for growing numbers  
of worker threads.  If you have more than 16, you probably have a  
problem.


I will look into that.

Thanks,
Frank
___
Do not post admin requests to the list. They will 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: Deployment with Embedded Frameworks and Duplicate libraries

2009-08-05 Thread Mr. Frank Cobia

Thanks for all the help. I am making progress.

Also, I have to turn direct connect off to be able to do the  
refuse new sessions, so is there another way to figure out which  
app is hung so that it can be killed?


Look at the stack trace, like below.  Also look for growing  
numbers of worker threads.  If you have more than 16, you probably  
have a problem.




I have checked and this seems to be my last problem. Every once in a  
while I get an instance that spawns 256 worker threads. The statistics  
show that this does not even require a lot of transactions. I did a  
stack trace and there were a few funny looking things, but the one  
that stood out the most was the following appeared a lot:


Thread t...@80131: (state = BLOCKED)
 - java.lang.Class.forName0(java.lang.String, boolean,  
java.lang.ClassLoader) @bci=0 (Interpreted frame)
 - java.lang.Class.forName(java.lang.String) @bci=5, line=164  
(Interpreted frame)
 - com.webobjects.foundation._NSUtilities._searchForClassInPackages 
(java.lang.String, com.webobjects.foundation.NSArray, boolean,  
boolean) @bci=92, line=417 (Interpreted frame)
 - com.webobjects.foundation._NSUtilities._classWithPartialName 
(java.lang.String, boolean) @bci=154, line=375 (Interpreted frame)
 - com.webobjects.foundation._NSUtilities.classWithName 
(java.lang.String) @bci=26, line=334 (Interpreted frame)
 - com.webobjects.appserver._private.WOBundle.lookForClassInAllBundles 
(java.lang.String) @bci=5, line=92 (Interpreted frame)
 -  
com.webobjects.appserver 
._private.WOActionRequestHandler._actionClassForName(java.lang.String)  
@bci=1, line=70 (Interpreted frame)
 -  
com.webobjects.appserver 
._private.WOActionRequestHandler.getRequestActionClassAndNameForPath 
(com.webobjects.foundation.NSArray) @bci=114, line=389 (Interpreted  
frame)
 -  
com.webobjects.appserver._private.WOActionRequestHandler._handleRequest 
(com.webobjects.appserver.WORequest) @bci=88, line=226 (Interpreted  
frame)
 -  
com.webobjects.appserver._private.WOActionRequestHandler.handleRequest 
(com.webobjects.appserver.WORequest) @bci=79, line=161 (Interpreted  
frame)
 - er.extensions.appserver.ERXDirectActionRequestHandler.handleRequest 
(com.webobjects.appserver.WORequest) @bci=222, line=123 (Interpreted  
frame)
 - com.webobjects.appserver.WOApplication.dispatchRequest 
(com.webobjects.appserver.WORequest) @bci=32, line=1687 (Interpreted  
frame)
 - er.extensions.appserver.ERXApplication.dispatchRequestImmediately 
(com.webobjects.appserver.WORequest) @bci=74, line=1791 (Interpreted  
frame)
 - er.extensions.appserver.ERXApplication.dispatchRequest 
(com.webobjects.appserver.WORequest) @bci=13, line=1756 (Interpreted  
frame)
 - com.webobjects.appserver._private.WOWorkerThread.runOnce()  
@bci=473, line=144 (Interpreted frame)
 - com.webobjects.appserver._private.WOWorkerThread.run() @bci=129,  
line=226 (Interpreted frame)

 - java.lang.Thread.run() @bci=11, line=613 (Interpreted frame)


So it appears that a lot of threads are getting locked up in  
Class.forName(). I want to print out some debug information to try to  
figure out which class is being instantiated, but I did not want to  
fill up the logs too much. I have already run out of disk space  
because of too much logging. So my question is, is there a call  
somewhere where I can find the number of worker threads or when the  
number of worker threads is increased to 32? That way I can turn on  
the logging when it really matters.


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

Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
I am currently having trouble deploying an application under  
JavaMonitor because of incompatible version errors on a class file.  
When I launch the app as admin, the app launches fine. I finally  
traced the problem to the fact that when the appserver user invokes  
java it is 1.5 but when admin does it is 1.6. See the terminal  
transcript below.


app2:Logs admin$ sudo -u appserver /usr/bin/java -version
java version 1.5.0_19
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19- 
b02-304)

Java HotSpot(TM) Server VM (build 1.5.0_19-137, mixed mode)
app2:Logs admin$ /usr/bin/java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)


How can I set it so that when appserver invokes java it is using  
version 1.6?


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

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


Re: Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
I figured out that my problem is that /System/Library/Frameworks/ 
JavaVM.framework/Versions/Current is linked to /System/Library/ 
Frameworks/JavaVM.framework/Versions/A. Somehow the java in A can  
change depending on which user invokes it. I have  no clue how this  
works, but I changed Current to point to 1.6.


Is this going to cause me any problems? Is there a better way to do  
this? i.e. set a system variable to make A use 1.6?


Frank


On Aug 25, 2009, at 12:43 PM, Mr. Frank Cobia wrote:

I am currently having trouble deploying an application under  
JavaMonitor because of incompatible version errors on a class  
file. When I launch the app as admin, the app launches fine. I  
finally traced the problem to the fact that when the appserver user  
invokes java it is 1.5 but when admin does it is 1.6. See the  
terminal transcript below.


app2:Logs admin$ sudo -u appserver /usr/bin/java -version
java version 1.5.0_19
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19- 
b02-304)

Java HotSpot(TM) Server VM (build 1.5.0_19-137, mixed mode)
app2:Logs admin$ /usr/bin/java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)


How can I set it so that when appserver invokes java it is using  
version 1.6?


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

This email sent to frank.co...@f2technology.com



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

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


Re: Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
I do see that there is an entry in the Info.plist of my app that says  
1.5+. Is there somewhere in Eclipse/WOLips I can change that?


Frank


On Aug 25, 2009, at 3:13 PM, Mike Schrag wrote:

There are several factors that go into determining which VM runs in  
OS X ... It's not just a matter of the symlink. Your java preference  
settings can change which version it uses also, the Info.plist of a  
launcher can change it, etc.  So the actual symlink for A is the  
same, but the java executable in /usr/bin/java selects which  
framework to bind to using different (non-obvious) criteria.


ms

On Aug 25, 2009, at 2:52 PM, Mr. Frank Cobia wrote:

I figured out that my problem is that /System/Library/Frameworks/ 
JavaVM.framework/Versions/Current is linked to /System/Library/ 
Frameworks/JavaVM.framework/Versions/A. Somehow the java in A can  
change depending on which user invokes it. I have  no clue how this  
works, but I changed Current to point to 1.6.


Is this going to cause me any problems? Is there a better way to do  
this? i.e. set a system variable to make A use 1.6?


Frank


On Aug 25, 2009, at 12:43 PM, Mr. Frank Cobia wrote:

I am currently having trouble deploying an application under  
JavaMonitor because of incompatible version errors on a class  
file. When I launch the app as admin, the app launches fine. I  
finally traced the problem to the fact that when the appserver  
user invokes java it is 1.5 but when admin does it is 1.6. See the  
terminal transcript below.


app2:Logs admin$ sudo -u appserver /usr/bin/java -version
java version 1.5.0_19
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19- 
b02-304)

Java HotSpot(TM) Server VM (build 1.5.0_19-137, mixed mode)
app2:Logs admin$ /usr/bin/java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)


How can I set it so that when appserver invokes java it is using  
version 1.6?


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

This email sent to frank.co...@f2technology.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/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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.com



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

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


Re: Switching version of Java for appserver user

2009-08-25 Thread Mr. Frank Cobia
Do you have any other idea of what value may affect it? Or should I  
just stick with changing the link?


I did notice that the help for the java executable say that you can do  
-version:version but I have not had any luck figuring out what  
value to put. Everything I tried just ends up with it complaining that  
it can not find a suitable JRE


Thanks,
Frank


On Aug 25, 2009, at 3:51 PM, Mike Schrag wrote:

if this is just a .woa, I'm pretty sure WO doesn't care about that  
value ... you can manually change it and verify that.


On Aug 25, 2009, at 3:35 PM, Mr. Frank Cobia wrote:

I do see that there is an entry in the Info.plist of my app that  
says 1.5+. Is there somewhere in Eclipse/WOLips I can change that?


Frank


On Aug 25, 2009, at 3:13 PM, Mike Schrag wrote:

There are several factors that go into determining which VM runs  
in OS X ... It's not just a matter of the symlink. Your java  
preference settings can change which version it uses also, the  
Info.plist of a launcher can change it, etc.  So the actual  
symlink for A is the same, but the java executable in /usr/bin/ 
java selects which framework to bind to using different (non- 
obvious) criteria.


ms

On Aug 25, 2009, at 2:52 PM, Mr. Frank Cobia wrote:

I figured out that my problem is that /System/Library/Frameworks/ 
JavaVM.framework/Versions/Current is linked to /System/Library/ 
Frameworks/JavaVM.framework/Versions/A. Somehow the java in A  
can change depending on which user invokes it. I have  no clue  
how this works, but I changed Current to point to 1.6.


Is this going to cause me any problems? Is there a better way to  
do this? i.e. set a system variable to make A use 1.6?


Frank


On Aug 25, 2009, at 12:43 PM, Mr. Frank Cobia wrote:

I am currently having trouble deploying an application under  
JavaMonitor because of incompatible version errors on a class  
file. When I launch the app as admin, the app launches fine. I  
finally traced the problem to the fact that when the appserver  
user invokes java it is 1.5 but when admin does it is 1.6. See  
the terminal transcript below.


app2:Logs admin$ sudo -u appserver /usr/bin/java -version
java version 1.5.0_19
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19- 
b02-304)

Java HotSpot(TM) Server VM (build 1.5.0_19-137, mixed mode)
app2:Logs admin$ /usr/bin/java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)


How can I set it so that when appserver invokes java it is using  
version 1.6?


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

This email sent to frank.co...@f2technology.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/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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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/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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.com



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

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


Re: Switching version of Java for appserver user

2009-08-26 Thread Mr. Frank Cobia
Thanks for the help. I have not tested it yet, but I had been  
wondering if there was a way to set those variables in the build.


Frank


On Aug 25, 2009, at 11:21 PM, Chuck Hill wrote:



On Aug 25, 2009, at 5:50 PM, Mr. Frank Cobia wrote:

Do you have any other idea of what value may affect it? Or should I  
just stick with changing the link?


In the classpath file of the app, you will  see

# JVM  == java

Changing that to

# JVM  == /System/Library/Frameworks/JavaVM.framework/ 
Versions/1.6/Home/bin/java


Should change the JVM used for launching.

Adding
jvm=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/ 
bin/java


to the woapplication task in your build.xml should get this set.

Testing and verification is left as an exercise for the reader.

Chuck




I did notice that the help for the java executable say that you can  
do -version:version but I have not had any luck figuring out  
what value to put. Everything I tried just ends up with it  
complaining that it can not find a suitable JRE


Thanks,
Frank


On Aug 25, 2009, at 3:51 PM, Mike Schrag wrote:

if this is just a .woa, I'm pretty sure WO doesn't care about that  
value ... you can manually change it and verify that.


On Aug 25, 2009, at 3:35 PM, Mr. Frank Cobia wrote:

I do see that there is an entry in the Info.plist of my app that  
says 1.5+. Is there somewhere in Eclipse/WOLips I can change  
that?


Frank


On Aug 25, 2009, at 3:13 PM, Mike Schrag wrote:

There are several factors that go into determining which VM runs  
in OS X ... It's not just a matter of the symlink. Your java  
preference settings can change which version it uses also, the  
Info.plist of a launcher can change it, etc.  So the actual  
symlink for A is the same, but the java executable in /usr/bin/ 
java selects which framework to bind to using different (non- 
obvious) criteria.


ms

On Aug 25, 2009, at 2:52 PM, Mr. Frank Cobia wrote:

I figured out that my problem is that /System/Library/ 
Frameworks/JavaVM.framework/Versions/Current is linked to / 
System/Library/Frameworks/JavaVM.framework/Versions/A. Somehow  
the java in A can change depending on which user invokes it.  
I have  no clue how this works, but I changed Current to point  
to 1.6.


Is this going to cause me any problems? Is there a better way  
to do this? i.e. set a system variable to make A use 1.6?


Frank


On Aug 25, 2009, at 12:43 PM, Mr. Frank Cobia wrote:

I am currently having trouble deploying an application under  
JavaMonitor because of incompatible version errors on a  
class file. When I launch the app as admin, the app launches  
fine. I finally traced the problem to the fact that when the  
appserver user invokes java it is 1.5 but when admin does it  
is 1.6. See the terminal transcript below.


app2:Logs admin$ sudo -u appserver /usr/bin/java -version
java version 1.5.0_19
Java(TM) 2 Runtime Environment, Standard Edition (build  
1.5.0_19-b02-304)

Java HotSpot(TM) Server VM (build 1.5.0_19-137, mixed mode)
app2:Logs admin$ /usr/bin/java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed  
mode)



How can I set it so that when appserver invokes java it is  
using version 1.6?


Thanks
Frank
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects- 
d...@lists.apple.com)

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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/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/frank.cobia%40f2technology.com

This email sent to frank.co...@f2technology.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/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

Hudson and setupWorkspace.sh

2009-10-13 Thread Mr. Frank Cobia
I am trying to get a Hudson build server setup and I am having a few  
issues. Hopefully someone can/will help.


As background I am running hudson on Mac OS X server and I am using  
subversion.


1) The setupWorkspace.sh script seems to be looking for the .classpath  
file in the wrong place.


I setup the subversion URL as https://svnserver/path/MyProject. So  
when Hudson check out from subversion the .classpath is placed in  
$WORKSPACE/MyProject/.classpath, but setupWorkspace.sh is looking for  
$WORKSPACE/.classpath. What am I doing wrong?


2) The setupWorkspace.sh prints the following error even though I can  
go in by hand after the build and that directory does exit: rm: / 
Developer/Hudson/Home/jobs/MyProject/workspace/Root/System: No such  
file or directory


3) How will my apps and frameworks find the frameworks they depend on?  
Is this automatically done by the setupWorkspace.sh script as long as  
those frameworks have already been made? Do I have to do a build and  
install so that they are placed in /Library/Frameworks?


4) I can not get Hudson to Archive the Artifacts for framework  
builds when set to $WORKSPACE/MyProject/dist/*.framework. The  
configuration screen tells me that $WORKSPACE/MyProject/dist does  
exist but the build throws an error saying it can not find /Developer/ 
Hudson/Home/jobs/MyProject/workspace/MyProject/dist/*.framework.


5) Similar to #3. I have some frameworks that depend on jar projects.  
Do I need to somehow copy these to a location to be picked up or will  
the setupWorkspace fix it so that the jars will be found?



Thanks,
Frank

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

2009-10-14 Thread Mr. Frank Cobia

Sorry, I hit reply instead of reply all on a previous email.


1) The setupWorkspace.sh script seems to be looking for  
the .classpath file in the wrong place.


I setup the subversion URL as https://svnserver/path/MyProject. So  
when Hudson check out from subversion the .classpath is placed in  
$WORKSPACE/MyProject/.classpath, but setupWorkspace.sh is looking  
for $WORKSPACE/.classpath. What am I doing wrong?


In the job setup, under Subversion, put a period (.) in the Local  
module directory (optional) field. It probably has MyProject in  
there now.


Putting ., instead of leaving it blank, fixed this and #2.



2) The setupWorkspace.sh prints the following error even though I  
can go in by hand after the build and that directory does exit:  
rm: /Developer/Hudson/Home/jobs/MyProject/workspace/Root/System: No  
such file or directory


This is the same problem. it's looking in .../workspace/Root/System,  
because you have the Local module directory as your project name,  
that directory actually exists in /worspace/MyProject/Root/System.


3) How will my apps and frameworks find the frameworks they depend  
on? Is this automatically done by the setupWorkspace.sh script as  
long as those frameworks have already been made? Do I have to do a  
build and install so that they are placed in /Library/Frameworks?


Mike's latest workspaceSetup.sh will automatically look for Hudson  
projects with the same name as the frameworks in your .classpath  
file - freaking AWESOME, BTW. If it finds them, it will use the last  
successful build of that hudson job.


This is actually broken for me because I can not archive the build  
(see #4). I looked in the script and it is looking under  
lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz. This presents two  
problems for me. First I can not figure out any pattern under the  
archive option that will find my framework. Second, my build only  
produces a MyProject.framework and not MyProject.framework.tar.gz.


Anyone help with this?



4) I can not get Hudson to Archive the Artifacts for framework  
builds when set to $WORKSPACE/MyProject/dist/*.framework. The  
configuration screen tells me that $WORKSPACE/MyProject/dist does  
exist but the build throws an error saying it can not find / 
Developer/Hudson/Home/jobs/MyProject/workspace/MyProject/dist/ 
*.framework.


Hmmm not sure on this one, but once you change the Local module  
directory (see #1) then maybe that will fix this too.



Thanks,
Frank ___
Do not post admin requests to the list. They will 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: Hudson and setupWorkspace.sh

2009-10-14 Thread Mr. Frank Cobia
3) How will my apps and frameworks find the frameworks they depend  
on? Is this automatically done by the setupWorkspace.sh script as  
long as those frameworks have already been made? Do I have to do a  
build and install so that they are placed in /Library/Frameworks?


Mike's latest workspaceSetup.sh will automatically look for Hudson  
projects with the same name as the frameworks in your .classpath  
file - freaking AWESOME, BTW. If it finds them, it will use the  
last successful build of that hudson job.


This is actually broken for me because I can not archive the build  
(see #4). I looked in the script and it is looking under  
lastSuccessful/archive/dist/${FRAMEWORK}.tar.gz. This presents two  
problems for me. First I can not figure out any pattern under the  
archive option that will find my framework. Second, my build only  
produces a MyProject.framework and not MyProject.framework.tar.gz.


Anyone help with this?


I figured out the first part of my problem. It turns out the pattern I  
need is dist/** and not dist/*. It does not however produce a tar  
file. Should that be happening automatically ro do I just need to add  
a shell command to build it?


Thanks,
Frank
___
Do not post admin requests to the list. They will 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: Hudson and setupWorkspace.sh

2009-10-14 Thread Mr. Frank Cobia
Mike's setupWorkspace.sh simply grabs the framework's tar.gz file  
and extracts the framework into your project's Root/Library/ 
Frameworks (if I remember correctly). Obviously you could change the  
script to just grab the MyFramework.framework folder itself instead  
and copy it.


There's a number of ways of hacking/changing mike's script to  
conform to your needs. I have changed my version to create a symlink  
to any frameworks in .classpath that are also in the Hudson jobs  
directory. This removes the step of copying and extracting and makes  
the build even faster. I also added the ability to specify more than  
just simply the version of WO because we have different versions of  
internal frameworks as well.




I am beginning to think maybe I have my project in Eclipse setup  
incorrectly. Looking at Mike's script and your script, it expects the  
frameworks that the app depends on have and entry in the .classpath  
file that looks like: path=WOFramework/MyFramework


When I add a framework to an app in Eclipse I just add it under Build  
Path - Configure Build Path - Projects. But the entry in the  
classpath file is a different kind of entry than the one for the  
Wonder and System frameworks. The most important difference in this  
context being that the path does not start with WOFramework.


Am I setting up my project in Eclipse incorrectly or is this just a  
difference I need to incorporate into the setup script for Hudson?




Mike's file is a great place to start, but don't let it limit you.


I see that now. I wanted to stick as close as possible so I would not  
have a lot of modifications to make in the future if things change and  
Mike updates his script (why do the work myself :). But as I am  
beginning to understand how all this works I can see that it is not  
too difficult to do and it will be better to have a script  
specifically for my environment.


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

2009-10-20 Thread Mr. Frank Cobia
But how do I invoke the script from within Hudson and have it execute  
as another user? The only thing I can think of is to do a setuid  
script, but that has its own problems.


Frank


On Oct 20, 2009, at 12:04 PM, Pascal Robert wrote:




First, thanks for all the Hudson help. I now have all my apps,  
frameworks and jars building in Hudson.


Now I am trying to use Capistrano to deploy the built apps. I have  
Capistrano working from my development box, but I have run into a  
problem trying to do the same from the Hudson server.


The problem is that I do not have anywhere to setup the ssh public/ 
private key. I had to run Hudson from within the tomcat server on  
Mac OS X Server which runs as _appserver. The home for _appserver  
is /var/empty and I do not want to put the key in that directory. I  
have tried using Workgroup Manager to set the home directory to / 
Users/_appserver. It exits without any problems but it does not  
actually create the home directory.


Don't deploy with the appserver user, you should deploy with an user  
which is in the appserveradm and appserverusr groups instead.




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

2009-10-21 Thread Mr. Frank Cobia
I figured out the answer to my problem. I figured out how to make  
hudson run as a standalone program even if you already have tomcat  
running. I will try to find time to add that information to the wiki.


Frank


On Oct 20, 2009, at 12:30 PM, Mr. Frank Cobia wrote:

But how do I invoke the script from within Hudson and have it  
execute as another user? The only thing I can think of is to do a  
setuid script, but that has its own problems.


Frank


On Oct 20, 2009, at 12:04 PM, Pascal Robert wrote:




First, thanks for all the Hudson help. I now have all my apps,  
frameworks and jars building in Hudson.


Now I am trying to use Capistrano to deploy the built apps. I have  
Capistrano working from my development box, but I have run into a  
problem trying to do the same from the Hudson server.


The problem is that I do not have anywhere to setup the ssh public/ 
private key. I had to run Hudson from within the tomcat server on  
Mac OS X Server which runs as _appserver. The home for _appserver  
is /var/empty and I do not want to put the key in that directory.  
I have tried using Workgroup Manager to set the home directory to / 
Users/_appserver. It exits without any problems but it does not  
actually create the home directory.


Don't deploy with the appserver user, you should deploy with an  
user which is in the appserveradm and appserverusr groups instead.




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

This email sent to frank.co...@f2technology.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