OT: PHP Decryption

2010-06-24 Thread David Griffith

Hi all,

I just wondered if any of you out there can, or know someone that can,  
decrypt some encrypted PHP code for which I don't have the encryption  
key.


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

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


Re: Eclipse/WOLips Strange Chinese Characters

2010-05-12 Thread David Griffith
In case it should help anyone else in this kind of situation, the problem here 
was definitely to do with the encoding of the individual files.  Somehow, a 
small number of the files in the project must have remained in another 
encoding, probably ISO Latin 1, to be honest I don't even know what encoding 
they had - thanks to BBEdit - it just opens them using its auto-detect feature 
and allowed me to re-save them as UTF8 or whatever other format I need and 
having re-imported them to the new project they are now working great.  This 
seemed to happen a lot in XCode, particularly with the localizable.strings 
files.  I don't know why but I remember I had to constantly reconvert them to 
UTF8.  Must be some setting or bug somewhere in XCode.  Anyway, I'm starting to 
feel like all the files in my projects are now getting some kind of consistency 
with regard to their encoding, thanks to Eclipse, WOLips and BBEdit :)

Regards,
David.


On May 12, 2010, at 8:29 PM, David Griffith wrote:

Hi Ken,

I think this may be the solution.  If I try and open the file in BBEdit with 
UTF8 it says it's corrupted or badly formatted.  If I leave it on auto-detect, 
I can re-save it as UTF8 and it seems to then open correctly.

Thanks!

David.

On May 10, 2010, at 2:12 PM, ISHIMOTO Ken wrote:

For change the encoding on an text file (HTML) file the best solution is using 
BBEdit.
I mostly use Japanese and have sometimes problems like that with imported code.

Ken Ishimoto

iPadから送信

On 2010/05/10, at 8:38, David Griffith  wrote:

> Well I've checked this in the Properties for the project, where else can I 
> set it?  I haven't found any other points where it can be changed.  
> 
> Regards,
> David.
> 
> On May 10, 2010, at 6:14 AM, Chuck Hill wrote:
> 
> It sounds like you have the wrong encoding set.  Check this under the various 
> file / directory Properties in Eclipse.
> 
> 
> On May 9, 2010, at 12:16 PM, David Griffith wrote:
> 
>> Hi all,
>> 
>> In one of my apps that I've converted over to Eclipse, I am having trouble 
>> updating the HTML pages.  I've noticed that on some of the pages I am 
>> getting two strange symbols as the first entries in the HTML file.  Then, if 
>> I click in some text and try to delete it letter by letter, I have to delete 
>> twice each time to delete one character.  If I then type some new text, it 
>> appears fine in the file but when I load it in a browser it shows as chinese 
>> characters.  The rest of the page is fine, only the new characters appear 
>> like this.  If I delete the two strange characters at the beginning of the 
>> file it seems to create even more strange behaviour.
>> 
>> I am currently updating Eclipse to the latest version in case it might be a 
>> bug in there, but it looks to me like something to do with encoding.  I have 
>> set the workspace encoding to UTF-8 but I'm not sure how to check the actual 
>> encoding on any given page.  I have had this problem (or something similar) 
>> before in XCode and as I remember I had to use the 'convert' command to 
>> actually convert the file to UTF-8 as it was either saved in some other 
>> format or was corrupted.
>> 
>> Anyone ever seen this?  Or anyone know if there is an equivalent 'convert' 
>> command in Eclipse to specifically set the encoding for any given document?
>> 
>> Regards,
>> David. ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to ch...@global-village.net
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
> 
> This email sent to k...@ksroom.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/

Re: Eclipse/WOLips Strange Chinese Characters

2010-05-12 Thread David Griffith
Hi Ken,

I think this may be the solution.  If I try and open the file in BBEdit with 
UTF8 it says it's corrupted or badly formatted.  If I leave it on auto-detect, 
I can re-save it as UTF8 and it seems to then open correctly.

Thanks!

David.

On May 10, 2010, at 2:12 PM, ISHIMOTO Ken wrote:

For change the encoding on an text file (HTML) file the best solution is using 
BBEdit.
I mostly use Japanese and have sometimes problems like that with imported code.

Ken Ishimoto

iPadから送信

On 2010/05/10, at 8:38, David Griffith  wrote:

> Well I've checked this in the Properties for the project, where else can I 
> set it?  I haven't found any other points where it can be changed.  
> 
> Regards,
> David.
> 
> On May 10, 2010, at 6:14 AM, Chuck Hill wrote:
> 
> It sounds like you have the wrong encoding set.  Check this under the various 
> file / directory Properties in Eclipse.
> 
> 
> On May 9, 2010, at 12:16 PM, David Griffith wrote:
> 
>> Hi all,
>> 
>> In one of my apps that I've converted over to Eclipse, I am having trouble 
>> updating the HTML pages.  I've noticed that on some of the pages I am 
>> getting two strange symbols as the first entries in the HTML file.  Then, if 
>> I click in some text and try to delete it letter by letter, I have to delete 
>> twice each time to delete one character.  If I then type some new text, it 
>> appears fine in the file but when I load it in a browser it shows as chinese 
>> characters.  The rest of the page is fine, only the new characters appear 
>> like this.  If I delete the two strange characters at the beginning of the 
>> file it seems to create even more strange behaviour.
>> 
>> I am currently updating Eclipse to the latest version in case it might be a 
>> bug in there, but it looks to me like something to do with encoding.  I have 
>> set the workspace encoding to UTF-8 but I'm not sure how to check the actual 
>> encoding on any given page.  I have had this problem (or something similar) 
>> before in XCode and as I remember I had to use the 'convert' command to 
>> actually convert the file to UTF-8 as it was either saved in some other 
>> format or was corrupted.
>> 
>> Anyone ever seen this?  Or anyone know if there is an equivalent 'convert' 
>> command in Eclipse to specifically set the encoding for any given document?
>> 
>> Regards,
>> David. ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>> 
>> This email sent to ch...@global-village.net
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> Practical WebObjects - for developers who want to increase their overall 
> knowledge of WebObjects or who are trying to solve specific problems.
> http://www.global-village.net/products/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
> 
> This email sent to k...@ksroom.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/WOLips Strange Chinese Characters

2010-05-10 Thread David Griffith

Yeah, have already done all that and no difference.

Regards,
David.

On 10 May 2010, at 18:07, Chuck Hill wrote:



On May 9, 2010, at 11:38 PM, David Griffith wrote:

Well I've checked this in the Properties for the project, where  
else can I set it?  I haven't found any other points where it can  
be changed.


Right click on any file and select Properties.


Chuck




On May 10, 2010, at 6:14 AM, Chuck Hill wrote:

It sounds like you have the wrong encoding set.  Check this under  
the various file / directory Properties in Eclipse.



On May 9, 2010, at 12:16 PM, David Griffith wrote:


Hi all,

In one of my apps that I've converted over to Eclipse, I am having  
trouble updating the HTML pages.  I've noticed that on some of the  
pages I am getting two strange symbols as the first entries in the  
HTML file.  Then, if I click in some text and try to delete it  
letter by letter, I have to delete twice each time to delete one  
character.  If I then type some new text, it appears fine in the  
file but when I load it in a browser it shows as chinese  
characters.  The rest of the page is fine, only the new characters  
appear like this.  If I delete the two strange characters at the  
beginning of the file it seems to create even more strange  
behaviour.


I am currently updating Eclipse to the latest version in case it  
might be a bug in there, but it looks to me like something to do  
with encoding.  I have set the workspace encoding to UTF-8 but I'm  
not sure how to check the actual encoding on any given page.  I  
have had this problem (or something similar) before in XCode and  
as I remember I had to use the 'convert' command to actually  
convert the file to UTF-8 as it was either saved in some other  
format or was corrupted.


Anyone ever seen this?  Or anyone know if there is an equivalent  
'convert' command in Eclipse to specifically set the encoding for  
any given document?


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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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








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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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









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

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


Re: Eclipse/WOLips Strange Chinese Characters

2010-05-09 Thread David Griffith
Well I've checked this in the Properties for the project, where else can I set 
it?  I haven't found any other points where it can be changed.  

Regards,
David.

On May 10, 2010, at 6:14 AM, Chuck Hill wrote:

It sounds like you have the wrong encoding set.  Check this under the various 
file / directory Properties in Eclipse.


On May 9, 2010, at 12:16 PM, David Griffith wrote:

> Hi all,
> 
> In one of my apps that I've converted over to Eclipse, I am having trouble 
> updating the HTML pages.  I've noticed that on some of the pages I am getting 
> two strange symbols as the first entries in the HTML file.  Then, if I click 
> in some text and try to delete it letter by letter, I have to delete twice 
> each time to delete one character.  If I then type some new text, it appears 
> fine in the file but when I load it in a browser it shows as chinese 
> characters.  The rest of the page is fine, only the new characters appear 
> like this.  If I delete the two strange characters at the beginning of the 
> file it seems to create even more strange behaviour.
> 
> I am currently updating Eclipse to the latest version in case it might be a 
> bug in there, but it looks to me like something to do with encoding.  I have 
> set the workspace encoding to UTF-8 but I'm not sure how to check the actual 
> encoding on any given page.  I have had this problem (or something similar) 
> before in XCode and as I remember I had to use the 'convert' command to 
> actually convert the file to UTF-8 as it was either saved in some other 
> format or was corrupted.
> 
> Anyone ever seen this?  Or anyone know if there is an equivalent 'convert' 
> command in Eclipse to specifically set the encoding for any given document?
> 
> Regards,
> David. ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

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








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

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


Re: Eclipse/WOLips Strange Chinese Characters

2010-05-09 Thread David Griffith
Some more notes - updating Eclipse did not help although I didn't really think 
it would.
The same thing is happening when editing the WOD file.  Once I edit and save 
it, even to add/remove a character, it's like it is saving it in some strange 
foreign format that is not recognisable when WO tries to parse the file, 
although it looks perfectly fine in Eclipse.  I get the same behaviour as below 
in the WOD file. 

This happens in one WO Component, but in another it's perfectly fine and I can 
update it as I like with no problems.
I suspected corrupted files so I re-copied them from the originals, they work 
fine until I edit them, then the same behaviour.

It's crazy.  Makes no sense to me.

Regards,
David.

On May 9, 2010, at 9:16 PM, David Griffith wrote:

Hi all,

In one of my apps that I've converted over to Eclipse, I am having trouble 
updating the HTML pages.  I've noticed that on some of the pages I am getting 
two strange symbols as the first entries in the HTML file.  Then, if I click in 
some text and try to delete it letter by letter, I have to delete twice each 
time to delete one character.  If I then type some new text, it appears fine in 
the file but when I load it in a browser it shows as chinese characters.  The 
rest of the page is fine, only the new characters appear like this.  If I 
delete the two strange characters at the beginning of the file it seems to 
create even more strange behaviour.

I am currently updating Eclipse to the latest version in case it might be a bug 
in there, but it looks to me like something to do with encoding.  I have set 
the workspace encoding to UTF-8 but I'm not sure how to check the actual 
encoding on any given page.  I have had this problem (or something similar) 
before in XCode and as I remember I had to use the 'convert' command to 
actually convert the file to UTF-8 as it was either saved in some other format 
or was corrupted.

Anyone ever seen this?  Or anyone know if there is an equivalent 'convert' 
command in Eclipse to specifically set the encoding for any given document?

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

This email sent to da...@infinityspain.com

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

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


Eclipse/WOLips Strange Chinese Characters

2010-05-09 Thread David Griffith
Hi all,

In one of my apps that I've converted over to Eclipse, I am having trouble 
updating the HTML pages.  I've noticed that on some of the pages I am getting 
two strange symbols as the first entries in the HTML file.  Then, if I click in 
some text and try to delete it letter by letter, I have to delete twice each 
time to delete one character.  If I then type some new text, it appears fine in 
the file but when I load it in a browser it shows as chinese characters.  The 
rest of the page is fine, only the new characters appear like this.  If I 
delete the two strange characters at the beginning of the file it seems to 
create even more strange behaviour.

I am currently updating Eclipse to the latest version in case it might be a bug 
in there, but it looks to me like something to do with encoding.  I have set 
the workspace encoding to UTF-8 but I'm not sure how to check the actual 
encoding on any given page.  I have had this problem (or something similar) 
before in XCode and as I remember I had to use the 'convert' command to 
actually convert the file to UTF-8 as it was either saved in some other format 
or was corrupted.

Anyone ever seen this?  Or anyone know if there is an equivalent 'convert' 
command in Eclipse to specifically set the encoding for any given document?

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

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


Support for foreign currency formats

2010-05-08 Thread David Griffith
Hi all,

Is there something that needs to be done with the database in order to store 
and display numeric values using the following formatter:

#.##0,00 instead of the normal #,##0.00?

I change the formatter but the values don't display correctly for existing 
values (that were stored before I changed the formatter, I haven't tried new 
ones as yet).  Will this formatter cause them to be stored differently in the 
database also or will I have to convert the data also? 

Kind regards,
David Griffith. ___
Do not post admin requests to the list. They will 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: secure binding

2010-05-04 Thread David Griffith
Hi Cheong,

Yes that's what it does.  Regarding which is the better practice, I don't think 
it makes a huge difference but it might depend a bit on what you are doing.  
For example, I am using one app but parts of that app (like where the client 
logs in and gives account details etc.) uses SSL security.  So when the client 
clicks any link to go to that page, it has the binding secure=true and when 
they click it the URL that they are directed to is automatically changed to 
https://.  If they click a link to go back to the home page etc. it usually has 
secure=false and returns to standard http://.

Regards,
David.

On May 4, 2010, at 11:48 AM, Cheong Hee wrote:

Is the component binding secure=true supposed to switch the url from http -> 
https, and then by clicking on the component with binding secure=false it will 
switch it back from https -> http?
If so, what will be the better practice : one secure app and one non-secure 
app, or one app to switch secure/non-secure?
Sorry for interruption and don't mean to hijack..

Cheers

Cheong Hee

- Original Message - From: "David Griffith" 
To: "WebObjects-Dev Mailing List List" 
Sent: Tuesday, May 04, 2010 5:12 PM
Subject: Re: secure binding


Hi Chuck,

Yes, am using 5.4.3 and Wonder.  It does look like an Apache issue, I was 
wondering if it could be that.  I'll ask the server guys to have a look and see 
if they can change it.

Thanks all for your comments,

Regards,
David.

On May 4, 2010, at 3:20 AM, Chuck Hill wrote:


On May 3, 2010, at 2:26 PM, David Griffith wrote:

> Hi all,
> 
> When you click certain buttons on my website, I want a secure URL returned.  
> I have set the secure=true binding and the page does get returned using the 
> https:// url instead of http:// but I have a question. It's not so much of a 
> problem as an inconsistency.

I recall that being a bug in earlier 5.4 versions, is it not fixed in 5.4.3? 
Are you using Wonder?  I think that was fixed somewhere.


> If you go to the website http://www.mydomain.com and click around the 
> non-secure area, it will show the URL always as http://www.mydomain.com. As 
> soon as it goes to a secure URL, it displays as https://mydomain.com (without 
> the www in front).
> 
> Does anyone know where this is generated from?

I'd guess from the virtual host in Apache.  Possibly with an incorrect DNS 
record somewhere.


> It is clearly setting the value from somewhere.  Perhaps it has something to 
> do with my adaptor URL?  In the JavaMonitor page is says to specify the full 
> URL to the adaptor but I have always just used /app/WebObjects as I use the 
> same adaptor for various apps running on different domains.  Would it be 
> related to that?

I'd doubt it.


> I would just like it to come back with https://www.mydomain.com instead as 
> once it changes to the URL with the www, it stays that way.
> 
> Any insight would be appreciated :)


Check the Apache config, then check the headers coming into your application.


Chuck


-- 
Chuck Hill Senior Consultant / VP Development

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








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

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

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

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


Re: secure binding

2010-05-04 Thread David Griffith
Hi Chuck,

Yes, am using 5.4.3 and Wonder.  It does look like an Apache issue, I was 
wondering if it could be that.  I'll ask the server guys to have a look and see 
if they can change it.

Thanks all for your comments,

Regards,
David.

On May 4, 2010, at 3:20 AM, Chuck Hill wrote:


On May 3, 2010, at 2:26 PM, David Griffith wrote:

> Hi all,
> 
> When you click certain buttons on my website, I want a secure URL returned.  
> I have set the secure=true binding and the page does get returned using the 
> https:// url instead of http:// but I have a question.  It's not so much of a 
> problem as an inconsistency.

I recall that being a bug in earlier 5.4 versions, is it not fixed in 5.4.3?  
Are you using Wonder?  I think that was fixed somewhere.


> If you go to the website http://www.mydomain.com and click around the 
> non-secure area, it will show the URL always as http://www.mydomain.com.  As 
> soon as it goes to a secure URL, it displays as https://mydomain.com (without 
> the www in front).
> 
> Does anyone know where this is generated from?

I'd guess from the virtual host in Apache.  Possibly with an incorrect DNS 
record somewhere.


> It is clearly setting the value from somewhere.  Perhaps it has something to 
> do with my adaptor URL?  In the JavaMonitor page is says to specify the full 
> URL to the adaptor but I have always just used /app/WebObjects as I use the 
> same adaptor for various apps running on different domains.  Would it be 
> related to that?

I'd doubt it.


> I would just like it to come back with https://www.mydomain.com instead as 
> once it changes to the URL with the www, it stays that way.
> 
> Any insight would be appreciated :)


Check the Apache config, then check the headers coming into your application.


Chuck


-- 
Chuck Hill Senior Consultant / VP Development

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








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

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


secure binding

2010-05-03 Thread David Griffith
Hi all,

When you click certain buttons on my website, I want a secure URL returned.  I 
have set the secure=true binding and the page does get returned using the 
https:// url instead of http:// but I have a question.  It's not so much of a 
problem as an inconsistency.

If you go to the website http://www.mydomain.com and click around the 
non-secure area, it will show the URL always as http://www.mydomain.com.  As 
soon as it goes to a secure URL, it displays as https://mydomain.com (without 
the www in front).  

Does anyone know where this is generated from?  It is clearly setting the value 
from somewhere.  Perhaps it has something to do with my adaptor URL?  In the 
JavaMonitor page is says to specify the full URL to the adaptor but I have 
always just used /app/WebObjects as I use the same adaptor for various apps 
running on different domains.  Would it be related to that?

I would just like it to come back with https://www.mydomain.com instead as once 
it changes to the URL with the www, it stays that way.

Any insight would be appreciated :)

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

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


Re: HTML Editing Eclipse/WOLips

2010-05-02 Thread David Griffith
Hi Guido,

I was just looking at it as I saw your reply - I didn't realise there was so 
much built in but I have't quite worked out how to use it properly.  I'm going 
to play around with it a bit more but yes I think it will work nicely.  Thanks.

David.

On May 3, 2010, at 2:46 AM, Guido Neitzer wrote:

I use the WOLips component editor. As I have broken down all things to 
manageable subcomponents this works absolutely great. 

Guido

On 2. May, 2010, at 16:23 , David Griffith wrote:

> Hi all,
> 
> What is anyone using as a replacement for WOBuilder?  I have some complex 
> components that are not handled well by standard HTML editors (so far 
> anyway).  Just wondered if there is a general consensus on a good editor?  
> I'm developing on Mac OS 10.6
> 
> Thanks,
> David. ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/guido.neitzer%40gmail.com
> 
> This email sent to guido.neit...@gmail.com


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

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


HTML Editing Eclipse/WOLips

2010-05-02 Thread David Griffith
Hi all,

What is anyone using as a replacement for WOBuilder?  I have some complex 
components that are not handled well by standard HTML editors (so far anyway).  
Just wondered if there is a general consensus on a good editor?  I'm developing 
on Mac OS 10.6

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

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


Re: UTF8 and ContentEncoding

2010-04-27 Thread David Griffith
Hi,

The database encoding is all set to UTF-8 and it works perfectly on other apps. 
 Just this one is the problem.  The issue is arising ever before it even tries 
to send it to the database.  If I edit the symbol manually in the database, it 
displays fine on the page.  When I go to edit it, I can enter the symbol on the 
page but it will get saved as rubbish and therefore displays again as rubbish 
the next time you load it.

Regards,
David.
On Apr 28, 2010, at 1:16 AM, JR Ruggentaler wrote:

What's your database encoding set to? I experienced a similar issue with Oracle 
an converting Java UTF-8 to Oracle WE8ISO8859P1. Windows users enter apostrophe 
and it's converted to ? when saved to Oracle (I think the JDBC driver does the 
conversion). The WO email class only seems to support ASCII text, but the 
Wonder email supports any encoding supported by your VM. FYI there is only a 
small set of encodings required by the JVM spec and you may not be able to use 
some encodings on some JVMs. For example the Sun JVM on Windows defaults to 
encoding CP1252 and when I created XML with this default encoding it fails to 
parse in Linux RH IBM JVM (Exception unsupported encoding...).

JR
On 2010-04-27, at 5:25 PM, David Griffith wrote:

> Ok, I have finally found some time to convert over our apps to use Eclipse 
> and I have something to report, which I hope will spark someone to have 
> another idea on what could be causing this problem.
> 
> Firstly, I was having this problem with all apps.  Now, I have converted them 
> over into Eclipse (was using Xcode) so that I can use 5.4.3 version of WO.  I 
> am using this same version on my development and deployment.  I am embedding 
> all libraries as well.
> 
> It turns out that the problem is no longer occurring in any of the apps 
> except one.  When I was converting them over into Eclipse I did my best to 
> make sure everything was set to UTF-8, I've even used Eclipse's sweet little 
> Search feature to replace any reference to NSRoman encoding in the .woo files 
> etc.  I don't believe there is any where in any of the apps where UTF-8 is 
> not specified now.
> 
> So, as I said, it seems that they are all working with the exception of one.  
> This is driving me nuts so I've been trying everything I can to nail down 
> exactly where the problem is occurring (even if I haven't yet figured out the 
> WHY.)  This is what I have found, using simple output to the console:
> 
> If I override the takeValuesFromRequest() method of the Application class, I 
> have found that right up until I call super.takeValuesFromRequest, everything 
> is fine.  However, immediately AFTER calling super, the values are garbled.  
> i.e. they are no longer displaying as they should.  
> 
> Before calling super, I get the € symbol displayed fine in the console (by 
> showing the contents of formValues()).
> After I call super, I get the € symbol showing up as "€".
> Clearly the takeValuesFromRequest() method is doing something to change it.  
> I don't understand at what point this could be happening or how to track it 
> down further.  Anyone any thoughts?  I'd like to sleep tonight :)
> 
> formValues before super: {0.1.13.0.5.9.1.17 = (""); 0.1.13.0.5.9.1.29 = 
> ("10.00"); 0.1.13.0.5.9.1.1 = ("1960"); 0.1.13.0.5.9.1.5 = 
> ("0.1.13.0.5.9.1.5"); 0.1.13.0.5.9.1.27 = ("0"); 0.1.13.0.5.9.1.39 = ("84"); 
> 0.1.13.0.5.9.1.37 = ("30"); 0.1.13.0.5.9.1.61 = ("Save"); 0.1.13.0.5.9.1.35 = 
> ("0"); 0.1.13.0.5.9.1.41 = ("0"); 0.1.13.0.5.9.1.31 = ("40.00"); 
> 0.1.13.0.5.9.1.3 = ("Movi"); 0.1.13.0.5.9.1.11 = ("Movistar Prepaid SIM Card 
> €12 Credit"); 0.1.13.0.5.9.1.23 = ("200"); 0.1.13.0.5.9.1.13 = ("D7S3"); 
> 0.1.13.0.5.9.1.25 = ("1"); 0.1.13.0.5.9.1.15 = (""); 0.1.13.0.5.9.1.9 = 
> ("0.1.13.0.5.9.1.9"); }
> formValues after super: {0.1.13.0.5.9.1.17 = (""); 0.1.13.0.5.9.1.29 = 
> ("10.00"); 0.1.13.0.5.9.1.1 = ("1960"); 0.1.13.0.5.9.1.5 = 
> ("0.1.13.0.5.9.1.5"); 0.1.13.0.5.9.1.27 = ("0"); 0.1.13.0.5.9.1.39 = ("84"); 
> 0.1.13.0.5.9.1.37 = ("30"); 0.1.13.0.5.9.1.61 = ("Save"); 0.1.13.0.5.9.1.35 = 
> ("0"); 0.1.13.0.5.9.1.41 = ("0"); 0.1.13.0.5.9.1.31 = ("40.00"); 
> 0.1.13.0.5.9.1.3 = ("Movi"); 0.1.13.0.5.9.1.11 = ("Movistar Prepaid SIM Card 
> €12 Credit"); 0.1.13.0.5.9.1.23 = ("200"); 0.1.13.0.5.9.1.13 = ("D7S3"); 
> 0.1.13.0.5.9.1.25 = ("1"); 0.1.13.0.5.9.1.15 = (""); 0.1.13.0.5.9.1.9 = 
> ("0.1.13.0.5.9.1.9"); }
>

Re: UTF8 and ContentEncoding

2010-04-27 Thread David Griffith
Ok, I have finally found some time to convert over our apps to use Eclipse and 
I have something to report, which I hope will spark someone to have another 
idea on what could be causing this problem.

Firstly, I was having this problem with all apps.  Now, I have converted them 
over into Eclipse (was using Xcode) so that I can use 5.4.3 version of WO.  I 
am using this same version on my development and deployment.  I am embedding 
all libraries as well.

It turns out that the problem is no longer occurring in any of the apps except 
one.  When I was converting them over into Eclipse I did my best to make sure 
everything was set to UTF-8, I've even used Eclipse's sweet little Search 
feature to replace any reference to NSRoman encoding in the .woo files etc.  I 
don't believe there is any where in any of the apps where UTF-8 is not 
specified now.

So, as I said, it seems that they are all working with the exception of one.  
This is driving me nuts so I've been trying everything I can to nail down 
exactly where the problem is occurring (even if I haven't yet figured out the 
WHY.)  This is what I have found, using simple output to the console:

If I override the takeValuesFromRequest() method of the Application class, I 
have found that right up until I call super.takeValuesFromRequest, everything 
is fine.  However, immediately AFTER calling super, the values are garbled.  
i.e. they are no longer displaying as they should.  

Before calling super, I get the € symbol displayed fine in the console (by 
showing the contents of formValues()).
After I call super, I get the € symbol showing up as "€".
Clearly the takeValuesFromRequest() method is doing something to change it.  I 
don't understand at what point this could be happening or how to track it down 
further.  Anyone any thoughts?  I'd like to sleep tonight :)

formValues before super: {0.1.13.0.5.9.1.17 = (""); 0.1.13.0.5.9.1.29 = 
("10.00"); 0.1.13.0.5.9.1.1 = ("1960"); 0.1.13.0.5.9.1.5 = 
("0.1.13.0.5.9.1.5"); 0.1.13.0.5.9.1.27 = ("0"); 0.1.13.0.5.9.1.39 = ("84"); 
0.1.13.0.5.9.1.37 = ("30"); 0.1.13.0.5.9.1.61 = ("Save"); 0.1.13.0.5.9.1.35 = 
("0"); 0.1.13.0.5.9.1.41 = ("0"); 0.1.13.0.5.9.1.31 = ("40.00"); 
0.1.13.0.5.9.1.3 = ("Movi"); 0.1.13.0.5.9.1.11 = ("Movistar Prepaid SIM Card 
€12 Credit"); 0.1.13.0.5.9.1.23 = ("200"); 0.1.13.0.5.9.1.13 = ("D7S3"); 
0.1.13.0.5.9.1.25 = ("1"); 0.1.13.0.5.9.1.15 = (""); 0.1.13.0.5.9.1.9 = 
("0.1.13.0.5.9.1.9"); }
formValues after super: {0.1.13.0.5.9.1.17 = (""); 0.1.13.0.5.9.1.29 = 
("10.00"); 0.1.13.0.5.9.1.1 = ("1960"); 0.1.13.0.5.9.1.5 = 
("0.1.13.0.5.9.1.5"); 0.1.13.0.5.9.1.27 = ("0"); 0.1.13.0.5.9.1.39 = ("84"); 
0.1.13.0.5.9.1.37 = ("30"); 0.1.13.0.5.9.1.61 = ("Save"); 0.1.13.0.5.9.1.35 = 
("0"); 0.1.13.0.5.9.1.41 = ("0"); 0.1.13.0.5.9.1.31 = ("40.00"); 
0.1.13.0.5.9.1.3 = ("Movi"); 0.1.13.0.5.9.1.11 = ("Movistar Prepaid SIM Card 
€12 Credit"); 0.1.13.0.5.9.1.23 = ("200"); 0.1.13.0.5.9.1.13 = ("D7S3"); 
0.1.13.0.5.9.1.25 = ("1"); 0.1.13.0.5.9.1.15 = (""); 0.1.13.0.5.9.1.9 = 
("0.1.13.0.5.9.1.9"); }


On Nov 16, 2009, at 5:55 PM, David Griffith wrote:

Yep, I have that in the header and still the same problem.  It's one thing or 
the other.  Either the values from the database display correctly on the page, 
but values added from forms do not display correctly on the page but as €, or 
values from the database display as '?' and values added from the forms DISPLAY 
correctly on the page, but get added to the database as €.  Depends on 
whether I override the dispatchRequest() or not, and neither of the above 
situations are useful.  If anyone fancies having a look at the page online to 
see what I mean, please let me know and I'll send you a link.  It's driving me 
absolutely crazy.

Regards,
David.


On 15 Nov 2009, at 08:39, Elim PDT wrote:

> If you don't have the following line in your html head, it definitely a 
> source of problem:
>  
>  
>  
> I never tried wo5* with other languages. Wondering who have any experiences 
> with utf-8, say Chinese or Russian?
>  
>  
> From: David 
> To: WebObjects-Dev Mailing List List
> Sent: Wednesday, November 11, 2009 5:17 AM
> Subject: UTF8 and ContentEncoding
> 
> Hi all,
> 
> I have the following situation:
> 
> A database with all tables specified to default to UTF8 encoding.
> Adaptor URL containing useUnicode=true&setContentEncoding=UTF8
> A record in one table that holds the € currency symbol.
> 
> I am loading a WOComponent page t

Re: Installing WO 543 on Linux

2010-04-26 Thread David Griffith
John,

I just wanted to say thanks for the tip about rsync.  I've embedded everything 
now, as was suggested by several people, and using rsync is just a dream.  I've 
made a lovely little update script which I can use to instantly update any of 
my apps on the remote server with just one short command.  So, thanks again.  
It's saved me a lifetime of hassle.  :)

Regards,
David.

On Nov 10, 2009, at 12:58 AM, John Bruce wrote:

Hi David,

The solution here is rsync. Using will allow to send only the files
that have changed to your server. Since most of your frameworks,
especially the WebObjects and Wonder ones, won't change much then only
the first upload will take a long time.

Cheers,

John

On Mon, Nov 9, 2009 at 10:23 PM, David Griffith  wrote:
> Hi John,
> 
> Yes several people have suggested that, and it's probably what I will do in
> the end.  The problem is that it significantly increases the file size and
> as I'm deploying to a remote server with not particularly fast upload, it
> slows down the process a lot when updating apps.  At the moment I don't
> really need to have different versions deployed alongside each other and all
> my apps are using basically the same frameworks etc.  I'd like to get them
> configured and set up correctly on the server, once I have that scenario and
> I understand better how it works, I'll be able to consider embedding them if
> I don't need to upload too often.  Once I actually get this test server up
> and running locally, it will hopefully mean less uploading anyway :)
> 
> As I'm sure you've gathered, I'm pretty new to Linux and I'm trying to learn
> as much as I can along the way.  If I can get it all working, I then have to
> do this all over again on the live deployment server (we'll be ordering a
> new one with CentOS which is why I'm using that on the local one).  Assuming
> I can get that all done, I will hopefully be able to put together a How-To
> for anyone else trying to do it.  There is some good info available already,
> but I'm afraid some of it was beyond me and assumed I knew more about Linux
> than I do.
> 
> I'm not really deploying on Linux by choice - it's the OS that our hosting
> server uses.  Not that it doesn't interest me to learn it, but I'm starting
> at a point that means a lot of learning to get the thing up and running!
> 
> Regards,
> David.
> 
> On Nov 9, 2009, at 10:58 PM, John Bruce wrote:
> 
> Hi David,
> 
> If exporting the NEXT_ROOT doens't work you can also edit the
> UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
> directory. There you can set the path to the frameworks explicity
> which should solve the problem for now while you work on the NEXT_ROOT
> issue.
> 
> In my build / deploy process I embed the frameworks (as well as the
> particular WO version that app is using) inside a directory and set
> the path explicity in the file. That way I can depoy different apps
> that use differnt WO versions alongside each other.
> 
> Cheers,
> 
> John
> 
> On Mon, Nov 9, 2009 at 9:30 PM, David Griffith 
> wrote:
>> 
>> Hi John,
>> 
>> I did have an error in the path to the apps, I've fixed that and it works
>> great now.  To start the apps I mean.
>> I can connect to JavaMonitor on port 56789.
>> 
>> I've installed all the Wonder frameworks, the mysql-connector/j, mysql
>> server, installed my database and added users etc.
>> 
>> Now, I'm sure this is something so stupid, but I can't see what it is
>> 
>> I'm trying to start the iPSDistributor app as user 'appserver'.  The
>> NEXT_ROOT variable IS set as you can see below, but the first thing the
>> app
>> says is that it is NOT set.
>> 
>> [appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
>> /opt
>> [appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
>> iPSDistributor: NEXT_ROOT environment variable is not set!
>> Reading UNIXClassPath.txt ...
>> Launching iPSDistributor.woa ...
>> 
>> Obviously it crashes out with NoClassDef errors etc as it can't find the
>> NEXT_ROOT.  What have I done wrong here?
>> 
>> Regards,
>> David.
>> 
>> On Nov 9, 2009, at 4:07 PM, John Bruce wrote:
>> 
>> Hi David,
>> 
>> you can test that the script works properly by trying to launch webobjects
>> via:
>> 
>> /etc/init.d/webobjects start
>> /etc/init.d/webobjects stop
>> 
>> after running this you should have the two java processes running - if
>> not then there's something wrong. Perhaps check the permissions

Re: ERXApplication

2010-04-26 Thread David Griffith
Doh.  So I answered by own question really.  I checked out the Launch 
Configurations for the app and found that I must have chosen the wrong main 
class when I first launched the app so it was using the standard WOApplication 
class instead of my own Application class.  Anyway, I just thought I would post 
it here in case anyone should be as silly as I :)

Kind regards,
David.

On Apr 26, 2010, at 4:00 PM, John Huss wrote:

Check the logging level in your Properties file (Resources/Properties):

log4j.rootLogger = INFO, A1

What is it?  DEBUG, INFO, WARN, or ERROR?

John

On Mon, Apr 26, 2010 at 4:58 AM, David Griffith  wrote:
Hi all,

I have two apps, both of which extend the ERXApplication from Wonder.  In one, 
it appears to extend it properly, shows a load of info in the console when you 
run the app and then shows log output on the console when I use 
System.out.println() from within the Application class.

On the other app, the Application.java appears to be the same, it extends the 
ERXApplication and the app starts fine, however it does not show all the info 
in the console and I get no console output from System.out.println() from the 
Application class.  Not even the "Welcome to ..." message that always appears 
in the console on launching the app.  I was not getting this before extending 
it from ERXApplication either.  I do get console output from other components.  
It almost looks as though it's not using the Application class, but I'm sure it 
is and I always got output before.  Anyone ever seen this before?

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

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


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

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

Re: ERXApplication

2010-04-26 Thread David Griffith
Hi John,

There is no reference to that in either of the Properties files so I guess it's 
not that.  Would that affect System.out.println() from writing to the console?  
Not sure what the difference could be between the two apps for it to not 
output.  The strange thing is that it does output from some of the components 
that use the same command but the Application class just doesn't seem to 
output.  It makes me think it's using some other Application class, but either 
way it would usually at least display the "Welcome to.." message when it 
starts.  I'm not even getting that output to the console.  

Regards,
David.

On Apr 26, 2010, at 4:00 PM, John Huss wrote:

Check the logging level in your Properties file (Resources/Properties):

log4j.rootLogger = INFO, A1

What is it?  DEBUG, INFO, WARN, or ERROR?

John

On Mon, Apr 26, 2010 at 4:58 AM, David Griffith  wrote:
Hi all,

I have two apps, both of which extend the ERXApplication from Wonder.  In one, 
it appears to extend it properly, shows a load of info in the console when you 
run the app and then shows log output on the console when I use 
System.out.println() from within the Application class.

On the other app, the Application.java appears to be the same, it extends the 
ERXApplication and the app starts fine, however it does not show all the info 
in the console and I get no console output from System.out.println() from the 
Application class.  Not even the "Welcome to ..." message that always appears 
in the console on launching the app.  I was not getting this before extending 
it from ERXApplication either.  I do get console output from other components.  
It almost looks as though it's not using the Application class, but I'm sure it 
is and I always got output before.  Anyone ever seen this before?

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

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


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

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

ERXApplication

2010-04-26 Thread David Griffith
Hi all,

I have two apps, both of which extend the ERXApplication from Wonder.  In one, 
it appears to extend it properly, shows a load of info in the console when you 
run the app and then shows log output on the console when I use 
System.out.println() from within the Application class.

On the other app, the Application.java appears to be the same, it extends the 
ERXApplication and the app starts fine, however it does not show all the info 
in the console and I get no console output from System.out.println() from the 
Application class.  Not even the "Welcome to ..." message that always appears 
in the console on launching the app.  I was not getting this before extending 
it from ERXApplication either.  I do get console output from other components.  
It almost looks as though it's not using the Application class, but I'm sure it 
is and I always got output before.  Anyone ever seen this before?

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

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


Re: Eclipse - Embedding Frameworks

2010-04-21 Thread David Griffith
Excellent, thanks David.  I just couldn't remember where it was.

Another question, as there are 5 options in there for embedding frameworks, 
Project, User, Local, System and Network, which should I use?  I have for 
example one framework of my own which I have added in, then you have the WO 
frameworks like JavaEOAccess etc and then also the ER frameworks.  I'm just 
exactly sure which ones fall into which classification.  I don't particularly 
want a gigantic project file to upload once I'm finished building so I'd like 
to omit as many as are not necessary for me to embed.

What I am doing is developing on Mac OS X and deploying to CentOS5.  The WO 
frameworks are installed on the server already and I don't intend to run 
multiple WO versions concurrently.  I think what I want to do is embed such 
frameworks as the Wonder ones and my own ones.  Would Project and User be 
sufficient or can you indicate which frameworks would come under which 
classification above?

Thanks for the help,
David.

On Apr 21, 2010, at 1:43 PM, David LeBer wrote:


On 2010-04-21, at 7:32 AM, David Griffith wrote:

> Hi all,
> 
> I know this is a basic question but I can't remember how to do it.  If I want 
> to embed the Wonder frameworks rather than just linking to them, how do  I do 
> it?  I'm using Eclipse on Mac OS X.


Ctrl click on project in WO Explorer -> Properties -> Wolips Deployment -> 
Embed frameworks.

;david

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





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

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


Eclipse - Embedding Frameworks

2010-04-21 Thread David Griffith
Hi all,

I know this is a basic question but I can't remember how to do it.  If I want 
to embed the Wonder frameworks rather than just linking to them, how do  I do 
it?  I'm using Eclipse on Mac OS X.

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

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


Re: Cenos Linux

2009-11-16 Thread David Griffith
Yep, did all that but couldn't get the WebObjects.la file.  

Regards,
David.

On Nov 16, 2009, at 6:57 PM, Kieran Kelleher wrote:

Hi David,

Maybe the problem with your situation was not having apxs (apache extensions 
tool) installed. To verify do:




if you don't have that, run this command as root to install that

yum install http-devel

Then in Adaptors/make.config, edit the start of the script to look like this:



After that, run 'make CC=gcc'

And the Apache2.2 will look like this:




Run the apxs command inside that dir.

The instructions are not exact for centos filesystem layout, but the general 
procedure is as indicated on the wiki

Regards, Kieran

On Nov 16, 2009, at 11:57 AM, David Griffith wrote:

> Hi Kieran,
> 
> Where did the WebObjects.la show up?  I did actually run that command in the 
> Adaptors dir as well, and it seemed to work, but after that I couldn't seem 
> to get the WebObjects.so file.  Probably doing something wrong, building 
> adaptors is not something I've ever done before.
> 
> Regards,
> David.
> 


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

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


Re: Cenos Linux

2009-11-16 Thread David Griffith

Hi Kieran,

Where did the WebObjects.la show up?  I did actually run that command  
in the Adaptors dir as well, and it seemed to work, but after that I  
couldn't seem to get the WebObjects.so file.  Probably doing something  
wrong, building adaptors is not something I've ever done before.


Regards,
David.

On 16 Nov 2009, at 03:42, Kieran Kelleher wrote:


Hi David,

Actually everything appears to be working fine .. Pascal's  
direction to run make in the Adaptors dir instead of the Apache2.2  
dir as is incorrectly instructed in the wiki was the key. Thanks  
Pascal ... I will try and do an exact CentOS specific step-by-step  
detailed tutorial when I get a chance to help any others that want  
this.


After that make step, it is just a case of execute the apxs command  
and then move the apache.conf file to /etc/httpd/conf.d and edit it  
to match the environment and restarted apache and all seems to be  
working. I just need to drop an actual WO app on this CentOS  
environment to do final verification, but right now wotaskd,  
womonitor and to wo adaptor are all operational as per the usual  
URLs to check for those things and apachectl -M shows  
mod_WebObjects.so is loaded and the adaptor info page shows the  
usual info.


So far I like it, CentOS seems pretty straightforward to setup...

Regards, Kieran

PS. I did not realize mdimension provided precompiled mod_wo's   
but since this was an educational exercise, I wanted to compile it  
anyway just because :-)


On Nov 15, 2009, at 3:51 PM, David Griffith wrote:


Hi Kieran,

I struggled with this for quite a while and in the end I  
downloaded, installed and am now using the pre-compiled adaptor for  
Apache 2.2.3 on CentOS 5.  Works great.  I never did manage to get  
the adaptor to complile.  Same problems as you are having.


Regards,
David.

On Nov 15, 2009, at 8:29 PM, Kieran Kelleher wrote:

Hmmm  ok, ran 'make CC=gcc' in Adaptors dir and it built thr  
adaptor in the apache2.2 dir which now contains additional files,  
namely mod_WebObjects.la, mod_WebObjects.lo, mod_WebObjects.o,  
mod_WebObjects.slo and mod_WebObjects.so, so I guess I don't need  
to run make inside Apache2.2 dir now, right?


On Nov 15, 2009, at 2:19 PM, Pascal Robert wrote:

Try to run "make CC=gcc" in the Adaptors directory first, and  
after in Apache2.2


Just for "future me improvement", I decided to set up a Linux  
deployment server this weekend, since I have not had a need to do  
so before now (being spoiled by familiar OS X deployment machines  
thus far) ..


I referenced this:
http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux

I have setup CentOS 5.3, installed java 1.5, WO 5.3.3, wotaskd  
and WOMonitor are operational, apache itself is running and I got  
stuck at the compiling the WO adaptor step.


I checked out Wonder source from head (yesterday) to get the  
adaptor src.
I have also read the Wonder/Utilities/Adaptors/ 
BuildingInstructions.html


I set ADAPTOR_OS *and* OS to LINUX in Wonder/Utilities/Adaptors/ 
make.config


Then I went into Adaptors/Apache2.2 and when I did 'make CC=gcc',  
I get this error:


r...@centos Apache2.2]# make CC=gcc
Makefile:52: ../Adaptor/make.postamble: No such file or directory
make: *** No rule to make target `../Adaptor/make.postamble'.   
Stop.



I know some of you have done CentOS installs before (Pascal?), so  
perhaps you can share how to build/install the wo adaptor for  
apache 2.2 on that linux?


Regards, Kieran



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

This email sent to da...@infinityspain.com





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

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


Re: UTF8 and ContentEncoding

2009-11-16 Thread David Griffith
Yep, I have that in the header and still the same problem.  It's one  
thing or the other.  Either the values from the database display  
correctly on the page, but values added from forms do not display  
correctly on the page but as €, or values from the database  
display as '?' and values added from the forms DISPLAY correctly on  
the page, but get added to the database as €.  Depends on whether  
I override the dispatchRequest() or not, and neither of the above  
situations are useful.  If anyone fancies having a look at the page  
online to see what I mean, please let me know and I'll send you a  
link.  It's driving me absolutely crazy.


Regards,
David.


On 15 Nov 2009, at 08:39, Elim PDT wrote:

If you don't have the following line in your html head, it  
definitely a source of problem:


 

I never tried wo5* with other languages. Wondering who have any  
experiences with utf-8, say Chinese or Russian?



From: David
To: WebObjects-Dev Mailing List List
Sent: Wednesday, November 11, 2009 5:17 AM
Subject: UTF8 and ContentEncoding

Hi all,

I have the following situation:

A database with all tables specified to default to UTF8 encoding.
Adaptor URL containing useUnicode=true&setContentEncoding=UTF8
A record in one table that holds the € currency symbol.

I am loading a WOComponent page to edit values etc., using a form.

Everything was fine and one day all the € symbols started appearing  
as '?'.  Clearly something changed somewhere on the server but I  
don't know what.  Anyway, the €msymbols that are appearing this way  
are displayed by using a WOString.  The value it displays is from  
defaultCountry which is a variable of type COUNTRY loaded from the  
database and stored in the Session class.


€ symbols that were entered on the form, when added to a display  
group for example, would appear as €.


I've had a look around and what I found was this suggestion:

Put this in Application class:

   public void takeValuesFromRequest(WORequest r, WOContext c) {
r.setDefaultFormValueEncoding("UTF8");
super.takeValuesFromRequest(r,c);
}

public void appendToResponse(WOResponse r, WOContext c) {
r.setContentEncoding("UTF8");
super.appendToResponse(r,c);
r.setHeader("text/html;charset=utf-8", "Content-Type");
}

Which I did.  It helped to a certain extent.  It seemed to fix the  
problem with the form values, which now displayed correctly, but the  
'?' still appears where the value is displayed with WOString.  Then  
I found another suggestion:


Put this in Application class:

public WOResponse dispatchRequest(WORequest aRequest) {
aRequest.setContentEncoding("UTF-8");
WOResponse aResponse = super.dispatchRequest(aRequest);
aResponse.setContentEncoding("UTF-8");
return aResponse;

Doing this solved the problem of the '?' but reverted the form  
values to display as €.


No matter what I do, there doesn't seem to be a way to get them both  
to display correctly.  Any ideas?


Regards,
David.


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

This email sent to e...@pdtnetworks.net



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.707 / Virus Database: 270.14.65/2502 - Release Date:  
11/14/09 00:43:00


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

2009-11-15 Thread David Griffith
Just in case you don't have it, here's the link:

http://webobjects.mdimension.com/wonder/mod_WebObjects/Apache2.2/centos/5/

On Nov 15, 2009, at 9:51 PM, David Griffith wrote:

Hi Kieran,

I struggled with this for quite a while and in the end I downloaded, installed 
and am now using the pre-compiled adaptor for Apache 2.2.3 on CentOS 5.  Works 
great.  I never did manage to get the adaptor to complile.  Same problems as 
you are having.

Regards,
David.

On Nov 15, 2009, at 8:29 PM, Kieran Kelleher wrote:

Hmmm  ok, ran 'make CC=gcc' in Adaptors dir and it built thr adaptor in the 
apache2.2 dir which now contains additional files, namely mod_WebObjects.la, 
mod_WebObjects.lo, mod_WebObjects.o, mod_WebObjects.slo and mod_WebObjects.so, 
so I guess I don't need to run make inside Apache2.2 dir now, right?

On Nov 15, 2009, at 2:19 PM, Pascal Robert wrote:

> Try to run "make CC=gcc" in the Adaptors directory first, and after in 
> Apache2.2
> 
>> Just for "future me improvement", I decided to set up a Linux deployment 
>> server this weekend, since I have not had a need to do so before now (being 
>> spoiled by familiar OS X deployment machines thus far) ..
>> 
>> I referenced this:
>> http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux
>> 
>> I have setup CentOS 5.3, installed java 1.5, WO 5.3.3, wotaskd and WOMonitor 
>> are operational, apache itself is running and I got stuck at the compiling 
>> the WO adaptor step.
>> 
>> I checked out Wonder source from head (yesterday) to get the adaptor src.
>> I have also read the Wonder/Utilities/Adaptors/BuildingInstructions.html
>> 
>> I set ADAPTOR_OS *and* OS to LINUX in Wonder/Utilities/Adaptors/make.config
>> 
>> Then I went into Adaptors/Apache2.2 and when I did 'make CC=gcc', I get this 
>> error:
>> 
>> r...@centos Apache2.2]# make CC=gcc
>> Makefile:52: ../Adaptor/make.postamble: No such file or directory
>> make: *** No rule to make target `../Adaptor/make.postamble'.  Stop.
>> 
>> 
>> I know some of you have done CentOS installs before (Pascal?), so perhaps 
>> you can share how to build/install the wo adaptor for apache 2.2 on that 
>> linux?
>> 
>> Regards, Kieran
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://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:
http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com

This email sent to da...@infinityspain.com

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

This email sent to da...@infinityspain.com

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

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


Re: Cenos Linux

2009-11-15 Thread David Griffith
Hi Kieran,

I struggled with this for quite a while and in the end I downloaded, installed 
and am now using the pre-compiled adaptor for Apache 2.2.3 on CentOS 5.  Works 
great.  I never did manage to get the adaptor to complile.  Same problems as 
you are having.

Regards,
David.

On Nov 15, 2009, at 8:29 PM, Kieran Kelleher wrote:

Hmmm  ok, ran 'make CC=gcc' in Adaptors dir and it built thr adaptor in the 
apache2.2 dir which now contains additional files, namely mod_WebObjects.la, 
mod_WebObjects.lo, mod_WebObjects.o, mod_WebObjects.slo and mod_WebObjects.so, 
so I guess I don't need to run make inside Apache2.2 dir now, right?

On Nov 15, 2009, at 2:19 PM, Pascal Robert wrote:

> Try to run "make CC=gcc" in the Adaptors directory first, and after in 
> Apache2.2
> 
>> Just for "future me improvement", I decided to set up a Linux deployment 
>> server this weekend, since I have not had a need to do so before now (being 
>> spoiled by familiar OS X deployment machines thus far) ..
>> 
>> I referenced this:
>> http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux
>> 
>> I have setup CentOS 5.3, installed java 1.5, WO 5.3.3, wotaskd and WOMonitor 
>> are operational, apache itself is running and I got stuck at the compiling 
>> the WO adaptor step.
>> 
>> I checked out Wonder source from head (yesterday) to get the adaptor src.
>> I have also read the Wonder/Utilities/Adaptors/BuildingInstructions.html
>> 
>> I set ADAPTOR_OS *and* OS to LINUX in Wonder/Utilities/Adaptors/make.config
>> 
>> Then I went into Adaptors/Apache2.2 and when I did 'make CC=gcc', I get this 
>> error:
>> 
>> r...@centos Apache2.2]# make CC=gcc
>> Makefile:52: ../Adaptor/make.postamble: No such file or directory
>> make: *** No rule to make target `../Adaptor/make.postamble'.  Stop.
>> 
>> 
>> I know some of you have done CentOS installs before (Pascal?), so perhaps 
>> you can share how to build/install the wo adaptor for apache 2.2 on that 
>> linux?
>> 
>> Regards, Kieran
>> 
>> 
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://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:
http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com

This email sent to da...@infinityspain.com

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

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


Re: UTF-8 forms and database, still some special characters get through as things like fi Why?

2009-11-12 Thread David Griffith

Hi Johan,

Interesting.  I still haven't found a solution, been trying all sorts  
of things to try and determine exactly what is happening.  Everything  
else displays fine on the page, but entering the € symbol on the form  
converts to strange characters when added to the display group that  
displays the items on the page.  I ran some output tests to the  
console during dispatchRequest() and I can see that the request info  
is being received by dispatchRequest() in Latin1 encoding from the  
adaptor which shows a certain code (not at that Mac at the moment so I  
can't type it exactly) and then when I tell it use use default form  
values encoding of UTF-8, it is being converted and the resulting  
symbol is represented by \333.  This displays as some rubbish  
character on the page and also gets saved in the same way in the  
database (which seems to indicate that it IS UTF-8 encoded, but it's  
not the character it is supposed to be).  If I connect to the mySQL  
database using NaviCat with UTF-8 encoding and insert a € symbol in  
the same field, it displays perfectly on screen when loaded from the  
database through the same page on the same application.


I'm stumped.

Regards,
David.

On 12 Nov 2009, at 12:07, Johan Henselmans wrote:

Reading David Griffith's struggle with the euro sign, I thought  
checking myself if that worked in my test application.


What I did was: go to a textfield in a form, then (on a mac) press  
shift and alt key, and go over the keyboard from 1 in the upper left  
to / in the lower right.


Save the stuff, or do something with it, like going to a next form  
or back or whatever.


Interestingly, it Seems that some characters are not picked up by  
the UTF-8, while others are.


These are the results in Safari:using

⁄€‹›fifl‡°·‚— 
± 
Π
„´ 
‰ˇ 
;Á¨ˆØ∏”’ÅÍÎÏ˝ÓÔÒÚÆ»`¸˛Ç◊ı˜Â¯˘¿


Here in Firefox:

⁄€‹›fifl‡°··‚— 
± 
Π
„´ 
‰ˇ 
;Á¨ˆØ∏”’ÅÍÎÏ˝ÓÔÒÚÆ»¸˛Ç◊ı˜Â¯˘¿


This is WebObjects 5.4.3, latest wonder, OS X 10.5.8 latest security  
updates


Can anyone explain to me why that is?

(I hope the mailserver does not screw up).

Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6279159



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

This email sent to da...@infinityspain.com


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

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


Re: UTF8 and ContentEncoding

2009-11-11 Thread David Griffith
Right, here's the thing.  On entering the dispatchRequest() method in  
Application class, the contentEncoding() is ISO8859_1.  I actually  
want this to be UTF-8 but don't seem to be able to manage it.  Within  
the dispathRequest() method I can set the contentEncoding and the  
defaultFormValueEncoding but it seems like it must be too late because  
the values from the form don't get displayed as UTF-8 once they are  
added to the display group.  Everything else on the page seems to  
display fine.


Anyone any thoughts on how I can resolve this?

My dispatchRequest() looks basically like this:

public WOResponse dispatchRequest(WORequest aRequest) {
aRequest.setContentEncoding("UTF-8");
aRequest.setDefaultFormValueEncoding("UTF-8");
WOResponse aResponse = super.dispatchRequest(aRequest);
aResponse.setContentEncoding("UTF-8");
return aResponse;

Regards,
David.

On Nov 11, 2009, at 2:52 PM, David Griffith wrote:

Doh.  Sorry.  I'm actually in the middle of changing over to Eclipse,  
but as I don't have a working deployment server for 5.4.3 as yet, I  
have to continue to develop with Xcode on OS X 10.4 for fixes in the  
meantime.


Regards,
David.


On Nov 11, 2009, at 2:41 PM, David Avendasora wrote:


On Nov 11, 2009, at 8:38 AM, David Griffith wrote:


I'm still using Xcode on this one at the moment


That's a key bit of information that you might want to include in your  
first post next time. :-)


Dave



David Avendasora
Senior Software Engineer
K12, Inc.

*
WebObjects Documentation Wiki : 
http://wiki.objectstyle.org/confluence/display/WO/
*
WebObjects API: 
http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html
*


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

This email sent to da...@infinityspain.com

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

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


Re: UTF8 and ContentEncoding

2009-11-11 Thread David Griffith
Doh.  Sorry.  I'm actually in the middle of changing over to Eclipse,  
but as I don't have a working deployment server for 5.4.3 as yet, I  
have to continue to develop with Xcode on OS X 10.4 for fixes in the  
meantime.


Regards,
David.


On Nov 11, 2009, at 2:41 PM, David Avendasora wrote:


On Nov 11, 2009, at 8:38 AM, David Griffith wrote:


I'm still using Xcode on this one at the moment


That's a key bit of information that you might want to include in your  
first post next time. :-)


Dave



David Avendasora
Senior Software Engineer
K12, Inc.

*
WebObjects Documentation Wiki : 
http://wiki.objectstyle.org/confluence/display/WO/
*
WebObjects API: 
http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html
*


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

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


Re: UTF8 and ContentEncoding

2009-11-11 Thread David Griffith
Thank you David, I will try all of that.  I noticed the inconsistency  
in the UTF-8 naming, I will make sure it's always as you specified.  I  
don't think I have the DefaultEncoding set in ER so I'll do that too.   
Workspace Prefs are set to UTF-8 in Eclipse but I'm still using Xcode  
on this one at the moment until I get the new server live.


Regards,
David.

On Nov 11, 2009, at 2:05 PM, David Avendasora wrote:

Hi David,

1) I noticed in some places you are using "UTF8" and in others "UTF-8".

These are not the same. It should always be "UTF-8"

I know there is some Apple documentation out there from 2003 that  
shows UTF8, but I believe that that is actually wrong, at least with  
5.4.


2) If you are using Wonder make sure you have this set in your  
properties:


er.extensions.ERXApplication.DefaultEncoding=UTF-8

3) Make sure your Workspace Preferences are set to UTF-8:

4) You can also override the encoding on a component-by-component  
basis, which is the last thing I'd try if you've done everything else.  
In your MyComponent.woo file (create it in the MyComponent.wo  
directory if it doesn't exist) put the following:


{
"WebObjects Release" = "WebObjects 5.0";
    encoding = "UTF-8";
}

I hope these help!

Dave

On Nov 11, 2009, at 7:33 AM, David Griffith wrote:

Also, another thing to note, if I just type a € on the WOComponent  
page, it also displays as a '?' when the page loads.  It seems like  
it's not applying the UTF-8 encoding.


Regards,
David.

On Nov 11, 2009, at 1:30 PM, David Griffith wrote:



On Nov 11, 2009, at 1:23 PM, Gino Pacitti wrote:

What about the encoding on the actual HTML page? Whats that set to?

Regards

Gino

On 11 Nov 2009, at 12:17, David Griffith wrote:


Hi all,

I have the following situation:

A database with all tables specified to default to UTF8 encoding.
Adaptor URL containing useUnicode=true&setContentEncoding=UTF8
A record in one table that holds the € currency symbol.

I am loading a WOComponent page to edit values etc., using a form.

Everything was fine and one day all the € symbols started  
appearing as '?'.  Clearly something changed somewhere on the  
server but I don't know what.  Anyway, the €msymbols that are  
appearing this way are displayed by using a WOString.  The value it  
displays is from defaultCountry which is a variable of type COUNTRY  
loaded from the database and stored in the Session class.


€ symbols that were entered on the form, when added to a display  
group for example, would appear as €.


I've had a look around and what I found was this suggestion:

Put this in Application class:

public void takeValuesFromRequest(WORequest r, WOContext c) {
r.setDefaultFormValueEncoding("UTF8");
super.takeValuesFromRequest(r,c);
}

public void appendToResponse(WOResponse r, WOContext c) {
r.setContentEncoding("UTF8");
super.appendToResponse(r,c);
r.setHeader("text/html;charset=utf-8", "Content-Type");
}

Which I did.  It helped to a certain extent.  It seemed to fix the  
problem with the form values, which now displayed correctly, but  
the '?' still appears where the value is displayed with WOString.   
Then I found another suggestion:


Put this in Application class:

public WOResponse dispatchRequest(WORequest aRequest) {
aRequest.setContentEncoding("UTF-8");
WOResponse aResponse = super.dispatchRequest(aRequest);
aResponse.setContentEncoding("UTF-8");
return aResponse;

Doing this solved the problem of the '?' but reverted the form  
values to display as €.


No matter what I do, there doesn't seem to be a way to get them  
both to display correctly.  Any ideas?


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

This email sent to ginok...@mac.com


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

This email sent to da...@infinityspain.com

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

This email sent to da...@infinityspain.com

___
Do not post admin requests to the list.

Re: UTF8 and ContentEncoding

2009-11-11 Thread David Griffith
Also, another thing to note, if I just type a € on the WOComponent  
page, it also displays as a '?' when the page loads.  It seems like  
it's not applying the UTF-8 encoding.


Regards,
David.

On Nov 11, 2009, at 1:30 PM, David Griffith wrote:



On Nov 11, 2009, at 1:23 PM, Gino Pacitti wrote:

What about the encoding on the actual HTML page? Whats that set to?

Regards

Gino

On 11 Nov 2009, at 12:17, David Griffith wrote:


Hi all,

I have the following situation:

A database with all tables specified to default to UTF8 encoding.
Adaptor URL containing useUnicode=true&setContentEncoding=UTF8
A record in one table that holds the € currency symbol.

I am loading a WOComponent page to edit values etc., using a form.

Everything was fine and one day all the € symbols started appearing  
as '?'.  Clearly something changed somewhere on the server but I  
don't know what.  Anyway, the €msymbols that are appearing this way  
are displayed by using a WOString.  The value it displays is from  
defaultCountry which is a variable of type COUNTRY loaded from the  
database and stored in the Session class.


€ symbols that were entered on the form, when added to a display  
group for example, would appear as €.


I've had a look around and what I found was this suggestion:

Put this in Application class:

 public void takeValuesFromRequest(WORequest r, WOContext c) {
  r.setDefaultFormValueEncoding("UTF8");
  super.takeValuesFromRequest(r,c);
  }

  public void appendToResponse(WOResponse r, WOContext c) {
  r.setContentEncoding("UTF8");
  super.appendToResponse(r,c);
  r.setHeader("text/html;charset=utf-8", "Content-Type");
  }

Which I did.  It helped to a certain extent.  It seemed to fix the  
problem with the form values, which now displayed correctly, but the  
'?' still appears where the value is displayed with WOString.  Then  
I found another suggestion:


Put this in Application class:

public WOResponse dispatchRequest(WORequest aRequest) {
aRequest.setContentEncoding("UTF-8");
WOResponse aResponse = super.dispatchRequest(aRequest);
aResponse.setContentEncoding("UTF-8");
return aResponse;

Doing this solved the problem of the '?' but reverted the form  
values to display as €.


No matter what I do, there doesn't seem to be a way to get them both  
to display correctly.  Any ideas?


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

This email sent to ginok...@mac.com


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

This email sent to da...@infinityspain.com

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

This email sent to da...@infinityspain.com

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

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


Re: UTF8 and ContentEncoding

2009-11-11 Thread David Griffith



On Nov 11, 2009, at 1:23 PM, Gino Pacitti wrote:

What about the encoding on the actual HTML page? Whats that set to?

Regards

Gino

On 11 Nov 2009, at 12:17, David Griffith wrote:


Hi all,

I have the following situation:

A database with all tables specified to default to UTF8 encoding.
Adaptor URL containing useUnicode=true&setContentEncoding=UTF8
A record in one table that holds the € currency symbol.

I am loading a WOComponent page to edit values etc., using a form.

Everything was fine and one day all the € symbols started appearing  
as '?'.  Clearly something changed somewhere on the server but I  
don't know what.  Anyway, the €msymbols that are appearing this way  
are displayed by using a WOString.  The value it displays is from  
defaultCountry which is a variable of type COUNTRY loaded from the  
database and stored in the Session class.


€ symbols that were entered on the form, when added to a display  
group for example, would appear as €.


I've had a look around and what I found was this suggestion:

Put this in Application class:

  public void takeValuesFromRequest(WORequest r, WOContext c) {
   r.setDefaultFormValueEncoding("UTF8");
   super.takeValuesFromRequest(r,c);
   }

   public void appendToResponse(WOResponse r, WOContext c) {
   r.setContentEncoding("UTF8");
   super.appendToResponse(r,c);
   r.setHeader("text/html;charset=utf-8", "Content-Type");
   }

Which I did.  It helped to a certain extent.  It seemed to fix the  
problem with the form values, which now displayed correctly, but the  
'?' still appears where the value is displayed with WOString.  Then  
I found another suggestion:


Put this in Application class:

public WOResponse dispatchRequest(WORequest aRequest) {
aRequest.setContentEncoding("UTF-8");
WOResponse aResponse = super.dispatchRequest(aRequest);
aResponse.setContentEncoding("UTF-8");
return aResponse;

Doing this solved the problem of the '?' but reverted the form  
values to display as €.


No matter what I do, there doesn't seem to be a way to get them both  
to display correctly.  Any ideas?


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

This email sent to ginok...@mac.com


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

This email sent to da...@infinityspain.com

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

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


UTF8 and ContentEncoding

2009-11-11 Thread David Griffith

Hi all,

I have the following situation:

A database with all tables specified to default to UTF8 encoding.
Adaptor URL containing useUnicode=true&setContentEncoding=UTF8
A record in one table that holds the € currency symbol.

I am loading a WOComponent page to edit values etc., using a form.

Everything was fine and one day all the € symbols started appearing  
as '?'.  Clearly something changed somewhere on the server but I don't  
know what.  Anyway, the €msymbols that are appearing this way are  
displayed by using a WOString.  The value it displays is from  
defaultCountry which is a variable of type COUNTRY loaded from the  
database and stored in the Session class.


€ symbols that were entered on the form, when added to a display  
group for example, would appear as €.


I've had a look around and what I found was this suggestion:

Put this in Application class:

   public void takeValuesFromRequest(WORequest r, WOContext c) {
r.setDefaultFormValueEncoding("UTF8");
super.takeValuesFromRequest(r,c);
}

public void appendToResponse(WOResponse r, WOContext c) {
r.setContentEncoding("UTF8");
super.appendToResponse(r,c);
r.setHeader("text/html;charset=utf-8", "Content-Type");
}

Which I did.  It helped to a certain extent.  It seemed to fix the  
problem with the form values, which now displayed correctly, but the  
'?' still appears where the value is displayed with WOString.  Then I  
found another suggestion:


Put this in Application class:

public WOResponse dispatchRequest(WORequest aRequest) {
aRequest.setContentEncoding("UTF-8");
WOResponse aResponse = super.dispatchRequest(aRequest);
aResponse.setContentEncoding("UTF-8");
return aResponse;

Doing this solved the problem of the '?' but reverted the form values  
to display as €.


No matter what I do, there doesn't seem to be a way to get them both  
to display correctly.  Any ideas?


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

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

Re: Installing WO 543 on Linux

2009-11-11 Thread David Griffith

Hi,

I've gone to JavaMonitor and removed the host that was automatically  
added (192.168.1.10) and added localhost instead.  Now it's all  
working fine.  I can access the app by /app/WebObjects also.   
Perfect :-)


Thanks to everyone!

Regards,
David.

On Nov 11, 2009, at 8:59 AM, Cheong Hee (Gmail) wrote:

afaik, you will need to define the ip address use in JavaMonitor.  See  
if it help adding a line to /etc/hosts, e.g:


192.168.1.10yourserver.domain.com servername

Cheers

Cheong Hee

- Original Message ----- From: "David Griffith" >

To: "Cheong Hee (Gmail)" 
Cc: 
Sent: Wednesday, November 11, 2009 3:29 PM
Subject: Re: Installing WO 543 on Linux



/etc/hosts:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

Does there need to be a specific entry here for 192.168.1.10?  
(server  ip address)


SiteConfig.xml:


   
   
   UNIX
   192.168.1.10
   
   

followed by entries for the two apps I have added in, followed by:

   
   YESviewRefreshEnabled>

   /app/WebObjects
   60
   




On Nov 11, 2009, at 6:35 AM, Cheong Hee (Gmail) wrote:

Hi David

What is your /etc/hosts file and SiteConfig.xml look like?  May be  
it  is IP address issue.


Cheers

Cheong Hee


Yes, as I said, I can run it from the command line (as appserver) and
it runs fine.  I can access it on the specified port no problem.  The
app operates as it should.  It just refuses to start from
JavaMonitor.  I also added JavaMonitor in there to see would it start
but got the same result.  No start, no log.

Does the Logs folder is writable by the appserver user? Try to  
write a
file manually in there (eg : touch /opt/Local/Library/WebObjects/ 
Logs/

somefilename.txt).

>
Regards,
David.



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

This email sent to da...@infinityspain.com



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

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


Re: Installing WO 543 on Linux

2009-11-10 Thread David Griffith

/etc/hosts:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1   localhost localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

Does there need to be a specific entry here for 192.168.1.10? (server  
ip address)


SiteConfig.xml:




UNIX
192.168.1.10



followed by entries for the two apps I have added in, followed by:


YESviewRefreshEnabled>

/app/WebObjects
60





On Nov 11, 2009, at 6:35 AM, Cheong Hee (Gmail) wrote:

Hi David

What is your /etc/hosts file and SiteConfig.xml look like?  May be it  
is IP address issue.


Cheers

Cheong Hee


Yes, as I said, I can run it from the command line (as appserver) and
it runs fine.  I can access it on the specified port no problem.  The
app operates as it should.  It just refuses to start from
JavaMonitor.  I also added JavaMonitor in there to see would it start
but got the same result.  No start, no log.

Does the Logs folder is writable by the appserver user? Try to write a
file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/
somefilename.txt).

>
Regards,
David.



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

This email sent to da...@infinityspain.com

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

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


Re: Installing WO 543 on Linux

2009-11-10 Thread David Griffith

Yep, no problem there.

On Nov 11, 2009, at 1:04 AM, Pascal Robert wrote:


- "David Griffith"  a écrit :
> Hi Pascal,

>
Yes, as I said, I can run it from the command line (as appserver) and  
it runs fine.  I can access it on the specified port no problem.  The  
app operates as it should.  It just refuses to start from  
JavaMonitor.  I also added JavaMonitor in there to see would it start  
but got the same result.  No start, no log.


Does the Logs folder is writable by the appserver user? Try to write a  
file manually in there (eg : touch /opt/Local/Library/WebObjects/Logs/ 
somefilename.txt).


>
Regards,
David.

>
On Nov 11, 2009, at 12:57 AM, Pascal Robert wrote:

>
> - "David Griffith"  a écrit :
> > Ok, I have managed to get the app up and running finally :-)  At  
least, I can launch it from the command line on a specific port and  
connect to it and use it.


> >
Now, I want to have it added to JavaMonitor and be able to start/stop  
it from there.  I've added it, set the log path, and tried to start  
it.  No go.  Won't have it.  Just keeps trying to start and won't  
start or stop.  Neither does it write any log file.


> >
Obviously I also want to be able to access it like:

> >
http://192.168.1.10/app/WebObjects/appname as I won't have open ports  
on the server.


> >
JavaMonitor is started and running on port 56789.
Host is 192.168.1.10.
Adaptor URL is /app/WebObjects

> >
Where to start looking for clues?

>
File permissions... Try to start your app under appserver by command  
line and good chance that your app won't start.


> >
Regards,
David.

> >
On Nov 10, 2009, at 10:19 PM, David Griffith wrote:

> > By the way, can someone tell me what the DWOEnvClassPath is?  It  
seems to be picked up from the $CLASSPATH env variable, which on our  
existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ 
lib/classes.zip" but that classes.zip file does not exist.  Is this  
relevant?


> >
Regards,
David.

> >
On Nov 10, 2009, at 10:12 AM, David Griffith wrote:

> > Thanks Bogdan, that's where I went wrong.  Doh.  I put them in / 
Library/Frameworks instead of /Local/Library/Frameworks.  Have another  
problem now, of course, but I'll look into it later and post if I  
can't sort it myself.


> >
Thanks for your help,

> >
Dave.

> >
On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote:

> > Hi David,

> >
On 10 Nov 2009, at 09:46, David Griffith wrote:

By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT,  
WOROOT and APPROOT.  I haven't named any of these so I guess WOLips is  
doing it for me?

> >
> > David.
> >
> > On Nov 10, 2009, at 1:21 AM, John Bruce wrote:
> >
> > ok you either need to define LOCALROOT or just change the path to  
be

> > exact - I'm assuming /opt for your WebObjects install so the extact
> > path would be something like
> >

> > /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar

> >

> >
	If you have installed WebObjects on the linux machine via  
WOInstaller.jar and have specified /opt as the install directory,
then ERExtensions.jar should be placed in /opt/Local/Library/ 
Frameworks/ERExtensions.framework ( pay attention to the Local ).


> >

> > the part about moving ERExtensions.jar above javafoundation.jar was
> > not to do with resolving the location issue but rather just making
> > sure the jars are loaded inthe right order (once the paths are  
correct

> > of course :) )
> >
> > On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
> >  wrote:
> >
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar

> >

> >

> >
I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The

> >
above is the second line I believe, with JavaFoundation coming further  
down.

> >

> >

> >
On Nov 10, 2009, at 12:56 AM, John Bruce wrote:
> >

> >
Hi David,
> >

> >
Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?
> >

> >
Also ERExtensions.jar needs to appear before the entry for
> >
javafoundation.jar.
> >

> >
Cheers,
> >

> >
John
> >

> >
On Mon, Nov 9, 2009 at 11:47 PM, David Griffith  


> >
wrote:
> >

> >
Well I think I figured out how to set that value, but this is what I am
> >
getting still:
> >

> >
java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication
> >
 at java.lang.ClassLoader.defineClass1(Native Method)
> >
 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> >
 

Re: Installing WO 543 on Linux

2009-11-10 Thread David Griffith

Hi Pascal,

Yes, as I said, I can run it from the command line (as appserver) and  
it runs fine.  I can access it on the specified port no problem.  The  
app operates as it should.  It just refuses to start from  
JavaMonitor.  I also added JavaMonitor in there to see would it start  
but got the same result.  No start, no log.


Regards,
David.

On Nov 11, 2009, at 12:57 AM, Pascal Robert wrote:


- "David Griffith"  a écrit :
> Ok, I have managed to get the app up and running finally :-)  At  
least, I can launch it from the command line on a specific port and  
connect to it and use it.


>
Now, I want to have it added to JavaMonitor and be able to start/stop  
it from there.  I've added it, set the log path, and tried to start  
it.  No go.  Won't have it.  Just keeps trying to start and won't  
start or stop.  Neither does it write any log file.


>
Obviously I also want to be able to access it like:

>
http://192.168.1.10/app/WebObjects/appname as I won't have open ports  
on the server.


>
JavaMonitor is started and running on port 56789.
Host is 192.168.1.10.
Adaptor URL is /app/WebObjects

>
Where to start looking for clues?

File permissions... Try to start your app under appserver by command  
line and good chance that your app won't start.


>
Regards,
David.

>
On Nov 10, 2009, at 10:19 PM, David Griffith wrote:

> By the way, can someone tell me what the DWOEnvClassPath is?  It  
seems to be picked up from the $CLASSPATH env variable, which on our  
existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ 
lib/classes.zip" but that classes.zip file does not exist.  Is this  
relevant?


>
Regards,
David.

>
On Nov 10, 2009, at 10:12 AM, David Griffith wrote:

> Thanks Bogdan, that's where I went wrong.  Doh.  I put them in / 
Library/Frameworks instead of /Local/Library/Frameworks.  Have another  
problem now, of course, but I'll look into it later and post if I  
can't sort it myself.


>
Thanks for your help,

>
Dave.

>
On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote:

> Hi David,

>
On 10 Nov 2009, at 09:46, David Griffith wrote:

By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT,  
WOROOT and APPROOT.  I haven't named any of these so I guess WOLips is  
doing it for me?

>
> David.
>
> On Nov 10, 2009, at 1:21 AM, John Bruce wrote:
>
> ok you either need to define LOCALROOT or just change the path to be
> exact - I'm assuming /opt for your WebObjects install so the extact
> path would be something like
>

> /opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar

>

>
	If you have installed WebObjects on the linux machine via  
WOInstaller.jar and have specified /opt as the install directory,
then ERExtensions.jar should be placed in /opt/Local/Library/ 
Frameworks/ERExtensions.framework ( pay attention to the Local ).


>

> the part about moving ERExtensions.jar above javafoundation.jar was
> not to do with resolving the location issue but rather just making
> sure the jars are loaded inthe right order (once the paths are  
correct

> of course :) )
>
> On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
>  wrote:
>
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar

>

>

>
I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The

>
above is the second line I believe, with JavaFoundation coming further  
down.

>

>

>
On Nov 10, 2009, at 12:56 AM, John Bruce wrote:
>

>
Hi David,
>

>
Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?
>

>
Also ERExtensions.jar needs to appear before the entry for
>
javafoundation.jar.
>

>
Cheers,
>

>
John
>

>
On Mon, Nov 9, 2009 at 11:47 PM, David Griffith  


>
wrote:
>

>
Well I think I figured out how to set that value, but this is what I am
>
getting still:
>

>
java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication
>
 at java.lang.ClassLoader.defineClass1(Native Method)
>
 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
>
 at
>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>
 at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
>
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>
 at java.security.AccessController.doPrivileged(Native Method)
>
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
>
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>
 at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
>
Caused by: java.lan

Re: Installing WO 543 on Linux

2009-11-10 Thread David Griffith
Ok, I have managed to get the app up and running finally :-)  At  
least, I can launch it from the command line on a specific port and  
connect to it and use it.


Now, I want to have it added to JavaMonitor and be able to start/stop  
it from there.  I've added it, set the log path, and tried to start  
it.  No go.  Won't have it.  Just keeps trying to start and won't  
start or stop.  Neither does it write any log file.


Obviously I also want to be able to access it like:

http://192.168.1.10/app/WebObjects/appname as I won't have open ports  
on the server.


JavaMonitor is started and running on port 56789.
Host is 192.168.1.10.
Adaptor URL is /app/WebObjects

Where to start looking for clues?

Regards,
David.

On Nov 10, 2009, at 10:19 PM, David Griffith wrote:

By the way, can someone tell me what the DWOEnvClassPath is?  It seems  
to be picked up from the $CLASSPATH env variable, which on our  
existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ 
lib/classes.zip" but that classes.zip file does not exist.  Is this  
relevant?


Regards,
David.

On Nov 10, 2009, at 10:12 AM, David Griffith wrote:

Thanks Bogdan, that's where I went wrong.  Doh.  I put them in / 
Library/Frameworks instead of /Local/Library/Frameworks.  Have another  
problem now, of course, but I'll look into it later and post if I  
can't sort it myself.


Thanks for your help,

Dave.

On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote:

Hi David,

On 10 Nov 2009, at 09:46, David Griffith wrote:

By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT,  
WOROOT and APPROOT.  I haven't named any of these so I guess WOLips  
is doing it for me?


David.

On Nov 10, 2009, at 1:21 AM, John Bruce wrote:

ok you either need to define LOCALROOT or just change the path to be
exact - I'm assuming /opt for your WebObjects install so the extact
path would be something like

/opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar


	If you have installed WebObjects on the linux machine via  
WOInstaller.jar and have specified /opt as the install directory,
then ERExtensions.jar should be placed in /opt/Local/Library/ 
Frameworks/ERExtensions.framework ( pay attention to the Local ).




the part about moving ERExtensions.jar above javafoundation.jar was
not to do with resolving the location issue but rather just making
sure the jars are loaded inthe right order (once the paths are correct
of course :) )

On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
 wrote:
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar



I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The
above is the second line I believe, with JavaFoundation coming  
further down.



On Nov 10, 2009, at 12:56 AM, John Bruce wrote:

Hi David,

Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?

Also ERExtensions.jar needs to appear before the entry for
javafoundation.jar.

Cheers,

John

On Mon, Nov 9, 2009 at 11:47 PM, David Griffith >

wrote:


Well I think I figured out how to set that value, but this is what  
I am

getting still:

java.lang.NoClassDefFoundError: er/extensions/appserver/ 
ERXApplication

 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at com.webobjects._bootstrap.WOBootstrap.main 
(WOBootstrap.java:84)

Caused by: java.lang.ClassNotFoundException:
er.extensions.appserver.ERXApplication
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
316)

 ... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server,

I
get:

-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server,  
I get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing

the errors I'm getting, i.e. NoClassDef for Application etc.

Rega

Re: Numbers Only in WOTextField

2009-11-10 Thread David Griffith

Hi Kieran,

Where can I find that - I'd love to watch it

Regards,
David.

On Nov 10, 2009, at 10:19 PM, Kieran Kelleher wrote:

David,

Easy way ... just make a custom stateless reusable component  
"SmartNumberTextField.wo" or whatever you want to call it. Make it  
binding compatible with WOtextfield so you can just change the  
component name in wod. I do this for date fields. I have one component  
WKDateField that has a default date formatter and a javascript  
calendar widget. When I want to change the widget behaviour or switch  
to a different calendar widget, I just change the one component.


Basically you should be building a framework of reusable stateless  
WOComponents that you can re-use in apps over and over. The goal is  
"do not repeat yourself" and productivity.


BTW, use Wonder AjaxUtils or ERIncludeOncePerRequest (or whatever  
that's called) to stuff the javsscript snippet into the head or the  
page only once.


Also, for inspiration on Reusable Components, it is worthwhile to  
watch Session 614 "Reusable Components" from WWDC 2003.


Regards, Kieran

On Nov 10, 2009, at 2:29 PM, David Avendasora wrote:


Hi all,

Okay, brace yourselves, this isn't a Java Client  testimonial!

There are lots of places in our Web apps where we have a WOTextField  
that should only ever be given numbers. I don't want to deal with  
any chance that anything other than numbers will be passed on the  
server, so I added this javascript to the page:



  


And added this binding to the WOTextField:  onkeypress="return  
isNumberKey(event)"


This works great. Exactly what I want, but I have literally hundreds  
of places that I need to use this, and since the code will always be  
the same, is it possible to simply extend WOTextField so all I have  
to do is simply replace calls to WOTextField with MYNumberField  
without having to manually pass through all of WOTextField's  
bindings (value = ^val)


Thanks!

Dave


David Avendasora
Senior Software Engineer
K12, Inc.

*
WebObjects Documentation Wiki : 
http://wiki.objectstyle.org/confluence/display/WO/
*
WebObjects API: 
http://developer.apple.com/legacy/mac/library/documentation/MacOSXServer/Reference/WO54_Reference/index.html
*

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

This email sent to kieran_li...@mac.com


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

This email sent to da...@infinityspain.com

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

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

Re: Installing WO 543 on Linux

2009-11-10 Thread David Griffith
By the way, can someone tell me what the DWOEnvClassPath is?  It seems  
to be picked up from the $CLASSPATH env variable, which on our  
existing deployment server seems to be set to ".:/usr/java/jre1.5.0_06/ 
lib/classes.zip" but that classes.zip file does not exist.  Is this  
relevant?


Regards,
David.

On Nov 10, 2009, at 10:12 AM, David Griffith wrote:

Thanks Bogdan, that's where I went wrong.  Doh.  I put them in / 
Library/Frameworks instead of /Local/Library/Frameworks.  Have another  
problem now, of course, but I'll look into it later and post if I  
can't sort it myself.


Thanks for your help,

Dave.

On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote:

Hi David,

On 10 Nov 2009, at 09:46, David Griffith wrote:

By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT,  
WOROOT and APPROOT.  I haven't named any of these so I guess WOLips  
is doing it for me?


David.

On Nov 10, 2009, at 1:21 AM, John Bruce wrote:

ok you either need to define LOCALROOT or just change the path to be
exact - I'm assuming /opt for your WebObjects install so the extact
path would be something like

/opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar


	If you have installed WebObjects on the linux machine via  
WOInstaller.jar and have specified /opt as the install directory,
then ERExtensions.jar should be placed in /opt/Local/Library/ 
Frameworks/ERExtensions.framework ( pay attention to the Local ).




the part about moving ERExtensions.jar above javafoundation.jar was
not to do with resolving the location issue but rather just making
sure the jars are loaded inthe right order (once the paths are correct
of course :) )

On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
 wrote:
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar



I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The
above is the second line I believe, with JavaFoundation coming  
further down.



On Nov 10, 2009, at 12:56 AM, John Bruce wrote:

Hi David,

Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?

Also ERExtensions.jar needs to appear before the entry for
javafoundation.jar.

Cheers,

John

On Mon, Nov 9, 2009 at 11:47 PM, David Griffith >

wrote:


Well I think I figured out how to set that value, but this is what  
I am

getting still:

java.lang.NoClassDefFoundError: er/extensions/appserver/ 
ERXApplication

 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at com.webobjects._bootstrap.WOBootstrap.main 
(WOBootstrap.java:84)

Caused by: java.lang.ClassNotFoundException:
er.extensions.appserver.ERXApplication
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
316)

 ... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server,

I
get:

-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server,  
I get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing

the errors I'm getting, i.e. NoClassDef for Application etc.

Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the  
NEXT_ROOT

issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith >

wrote:


Hi John,

I did have an error in the path to the apps, I've fixed that and  
it works

great now.  To start 

Re: Installing WO 543 on Linux

2009-11-10 Thread David Griffith
Thanks Bogdan, that's where I went wrong.  Doh.  I put them in / 
Library/Frameworks instead of /Local/Library/Frameworks.  Have another  
problem now, of course, but I'll look into it later and post if I  
can't sort it myself.


Thanks for your help,

Dave.

On Nov 10, 2009, at 9:52 AM, Bogdan Zlatanov wrote:

Hi David,

On 10 Nov 2009, at 09:46, David Griffith wrote:

By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT,  
WOROOT and APPROOT.  I haven't named any of these so I guess WOLips  
is doing it for me?


David.

On Nov 10, 2009, at 1:21 AM, John Bruce wrote:

ok you either need to define LOCALROOT or just change the path to be
exact - I'm assuming /opt for your WebObjects install so the extact
path would be something like

/opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar


	If you have installed WebObjects on the linux machine via  
WOInstaller.jar and have specified /opt as the install directory,
then ERExtensions.jar should be placed in /opt/Local/Library/ 
Frameworks/ERExtensions.framework ( pay attention to the Local ).




the part about moving ERExtensions.jar above javafoundation.jar was
not to do with resolving the location issue but rather just making
sure the jars are loaded inthe right order (once the paths are correct
of course :) )

On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
 wrote:
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar



I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The
above is the second line I believe, with JavaFoundation coming  
further down.



On Nov 10, 2009, at 12:56 AM, John Bruce wrote:

Hi David,

Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?

Also ERExtensions.jar needs to appear before the entry for
javafoundation.jar.

Cheers,

John

On Mon, Nov 9, 2009 at 11:47 PM, David Griffith >

wrote:


Well I think I figured out how to set that value, but this is what  
I am

getting still:

java.lang.NoClassDefFoundError: er/extensions/appserver/ 
ERXApplication

 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

 at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
 at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at com.webobjects._bootstrap.WOBootstrap.main 
(WOBootstrap.java:84)

Caused by: java.lang.ClassNotFoundException:
er.extensions.appserver.ERXApplication
 at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
316)

 ... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server,

I
get:

-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server,  
I get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing

the errors I'm getting, i.e. NoClassDef for Application etc.

Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the  
NEXT_ROOT

issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith >

wrote:


Hi John,

I did have an error in the path to the apps, I've fixed that and  
it works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j,  
mysql

server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what  
it is


I'm trying to start the iPSDistributor app as user 'appserver'.   
The
NEXT

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith
By the way, what I'm getting in the UnixClassPath.txt is LOCALROOT,  
WOROOT and APPROOT.  I haven't named any of these so I guess WOLips is  
doing it for me?


David.

On Nov 10, 2009, at 1:21 AM, John Bruce wrote:

ok you either need to define LOCALROOT or just change the path to be
exact - I'm assuming /opt for your WebObjects install so the extact
path would be something like

/opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar


the part about moving ERExtensions.jar above javafoundation.jar was
not to do with resolving the location issue but rather just making
sure the jars are loaded inthe right order (once the paths are correct
of course :) )

On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
 wrote:
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar



I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The
above is the second line I believe, with JavaFoundation coming  
further down.



On Nov 10, 2009, at 12:56 AM, John Bruce wrote:

Hi David,

Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?

Also ERExtensions.jar needs to appear before the entry for
javafoundation.jar.

Cheers,

John

On Mon, Nov 9, 2009 at 11:47 PM, David Griffith >

wrote:


Well I think I figured out how to set that value, but this is what  
I am

getting still:

java.lang.NoClassDefFoundError: er/extensions/appserver/ 
ERXApplication

  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
  at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

  at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
  at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
  at com.webobjects._bootstrap.WOBootstrap.main 
(WOBootstrap.java:84)

Caused by: java.lang.ClassNotFoundException:
er.extensions.appserver.ERXApplication
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
316)

  ... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server,

I
get:

-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server,  
I get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing

the errors I'm getting, i.e. NoClassDef for Application etc.

Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the  
NEXT_ROOT

issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith >

wrote:


Hi John,

I did have an error in the path to the apps, I've fixed that and  
it works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j,  
mysql

server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first  
thing the

app
says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't  
find the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch
webobjects
via:

/etc

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith
Yeah I'm not sure where LOCALROOT came from but it's obviously  
something I overlooked when switching to Eclipse.  I'll look into it  
and see if I can find where it's coming from.


David.
On Nov 10, 2009, at 1:21 AM, John Bruce wrote:

ok you either need to define LOCALROOT or just change the path to be
exact - I'm assuming /opt for your WebObjects install so the extact
path would be something like

/opt/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar


the part about moving ERExtensions.jar above javafoundation.jar was
not to do with resolving the location issue but rather just making
sure the jars are loaded inthe right order (once the paths are correct
of course :) )

On Tue, Nov 10, 2009 at 12:04 AM, David Griffith
 wrote:
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar



I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The
above is the second line I believe, with JavaFoundation coming  
further down.



On Nov 10, 2009, at 12:56 AM, John Bruce wrote:

Hi David,

Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?

Also ERExtensions.jar needs to appear before the entry for
javafoundation.jar.

Cheers,

John

On Mon, Nov 9, 2009 at 11:47 PM, David Griffith >

wrote:


Well I think I figured out how to set that value, but this is what  
I am

getting still:

java.lang.NoClassDefFoundError: er/extensions/appserver/ 
ERXApplication

  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
  at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

  at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
  at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
  at com.webobjects._bootstrap.WOBootstrap.main 
(WOBootstrap.java:84)

Caused by: java.lang.ClassNotFoundException:
er.extensions.appserver.ERXApplication
  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
316)

  ... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server,

I
get:

-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server,  
I get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing

the errors I'm getting, i.e. NoClassDef for Application etc.

Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the  
NEXT_ROOT

issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith >

wrote:


Hi John,

I did have an error in the path to the apps, I've fixed that and  
it works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j,  
mysql

server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first  
thing the

app
says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't  
find the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to 

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith
LOCALROOT/Library/Frameworks/ERExtensions.framework/Resources/Java/ 
ERExtensions.jar



I've moved ERExtensions to appear above JavaFoundation, still the  
same.  The above is the second line I believe, with JavaFoundation  
coming further down.



On Nov 10, 2009, at 12:56 AM, John Bruce wrote:

Hi David,

Whats the classpath entry for ERExtensions.jar in UNIXClassPath.txt?

Also ERExtensions.jar needs to appear before the entry for  
javafoundation.jar.


Cheers,

John

On Mon, Nov 9, 2009 at 11:47 PM, David Griffith  
 wrote:
Well I think I figured out how to set that value, but this is what I  
am

getting still:

java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
   at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

   at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
   at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   at com.webobjects._bootstrap.WOBootstrap.main 
(WOBootstrap.java:84)

Caused by: java.lang.ClassNotFoundException:
er.extensions.appserver.ERXApplication
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
316)

   ... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server, I

get:

-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server, I  
get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing

the errors I'm getting, i.e. NoClassDef for Application etc.

Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the NEXT_ROOT
issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith >

wrote:


Hi John,

I did have an error in the path to the apps, I've fixed that and it  
works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j,  
mysql

server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first thing  
the

app
says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't  
find the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch  
webobjects

via:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

after running this you should have the two java processes running -  
if
not then there's something wrong. Perhaps check the permissions on  
the

script, the NEXT_ROOT / USER variables and that it is executable etc

Also the reason for the:

chkconfig --levels 2345 webobjects on

is that the script defaults to 345 (at least it did for me) and you
porbably want it to run at level 2 as well.

- John


On Mon, Nov 9, 2009 at 2:30 PM, David Griffith >

wrote:


Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00  
grep

java

Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

_

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith
Well I think I figured out how to set that value, but this is what I  
am getting still:


java.lang.NoClassDefFoundError: er/extensions/appserver/ERXApplication
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 
124)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:84)
Caused by: java.lang.ClassNotFoundException:  
er.extensions.appserver.ERXApplication

at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
... 11 more


On Nov 9, 2009, at 11:35 PM, David Griffith wrote:

I've noticed that when I manually launch this app on my new local  
server, I get:


-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server, I  
get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing the errors I'm getting, i.e. NoClassDef for Application etc.


Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the NEXT_ROOT
issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith  
 wrote:

Hi John,

I did have an error in the path to the apps, I've fixed that and it  
works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j, mysql
server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first thing  
the app

says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't find  
the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch  
webobjects

via:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

after running this you should have the two java processes running - if
not then there's something wrong. Perhaps check the permissions on the
script, the NEXT_ROOT / USER variables and that it is executable etc

Also the reason for the:

chkconfig --levels 2345 webobjects on

is that the script defaults to 345 (at least it did for me) and you
porbably want it to run at level 2 as well.

- John


On Mon, Nov 9, 2009 at 2:30 PM, David Griffith >

wrote:


Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00  
grep java


Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

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

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






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

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith
I've noticed that when I manually launch this app on my new local  
server, I get:


-DWOEnvClassPath=""

Whereas on development machine, or the existing deployment server, I  
get:

-DWOEnvClassPath=".:/usr/java/jre1.5.0_06/lib/classes.zip"

Where is this value set or how do I set it?  It seems that this is  
causing the errors I'm getting, i.e. NoClassDef for Application etc.


Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the NEXT_ROOT
issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith  
 wrote:

Hi John,

I did have an error in the path to the apps, I've fixed that and it  
works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j, mysql
server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first thing  
the app

says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't find  
the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch  
webobjects

via:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

after running this you should have the two java processes running - if
not then there's something wrong. Perhaps check the permissions on the
script, the NEXT_ROOT / USER variables and that it is executable etc

Also the reason for the:

chkconfig --levels 2345 webobjects on

is that the script defaults to 345 (at least it did for me) and you
porbably want it to run at level 2 as well.

- John


On Mon, Nov 9, 2009 at 2:30 PM, David Griffith >

wrote:


Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00  
grep java


Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

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

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






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

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


Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi John,

Yes several people have suggested that, and it's probably what I will  
do in the end.  The problem is that it significantly increases the  
file size and as I'm deploying to a remote server with not  
particularly fast upload, it slows down the process a lot when  
updating apps.  At the moment I don't really need to have different  
versions deployed alongside each other and all my apps are using  
basically the same frameworks etc.  I'd like to get them configured  
and set up correctly on the server, once I have that scenario and I  
understand better how it works, I'll be able to consider embedding  
them if I don't need to upload too often.  Once I actually get this  
test server up and running locally, it will hopefully mean less  
uploading anyway :)


As I'm sure you've gathered, I'm pretty new to Linux and I'm trying to  
learn as much as I can along the way.  If I can get it all working, I  
then have to do this all over again on the live deployment server  
(we'll be ordering a new one with CentOS which is why I'm using that  
on the local one).  Assuming I can get that all done, I will hopefully  
be able to put together a How-To for anyone else trying to do it.   
There is some good info available already, but I'm afraid some of it  
was beyond me and assumed I knew more about Linux than I do.


I'm not really deploying on Linux by choice - it's the OS that our  
hosting server uses.  Not that it doesn't interest me to learn it, but  
I'm starting at a point that means a lot of learning to get the thing  
up and running!


Regards,
David.

On Nov 9, 2009, at 10:58 PM, John Bruce wrote:

Hi David,

If exporting the NEXT_ROOT doens't work you can also edit the
UNIXClassPath.txt file which is inside your woa in the Contents/UNIX
directory. There you can set the path to the frameworks explicity
which should solve the problem for now while you work on the NEXT_ROOT
issue.

In my build / deploy process I embed the frameworks (as well as the
particular WO version that app is using) inside a directory and set
the path explicity in the file. That way I can depoy different apps
that use differnt WO versions alongside each other.

Cheers,

John

On Mon, Nov 9, 2009 at 9:30 PM, David Griffith  
 wrote:

Hi John,

I did have an error in the path to the apps, I've fixed that and it  
works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j, mysql
server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first thing  
the app

says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't find  
the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch  
webobjects

via:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

after running this you should have the two java processes running - if
not then there's something wrong. Perhaps check the permissions on the
script, the NEXT_ROOT / USER variables and that it is executable etc

Also the reason for the:

chkconfig --levels 2345 webobjects on

is that the script defaults to 345 (at least it did for me) and you
porbably want it to run at level 2 as well.

- John


On Mon, Nov 9, 2009 at 2:30 PM, David Griffith >

wrote:


Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00  
grep java


Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

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

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






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

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


Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith
Hmm... seems like I must have just set the env var.  I'll have a  
look.  Thanks.

David.

On Nov 9, 2009, at 10:50 PM, Joe Little wrote:

Did you just set that env var, or did you export NEXT_ROOT=something?
Export is required hear to persist into the next sub-shell that you
are likely using.


On Mon, Nov 9, 2009 at 1:30 PM, David Griffith  
 wrote:

Hi John,

I did have an error in the path to the apps, I've fixed that and it  
works

great now.  To start the apps I mean.
I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j, mysql
server, installed my database and added users etc.

Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The
NEXT_ROOT variable IS set as you can see below, but the first thing  
the app

says is that it is NOT set.

[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't find  
the

NEXT_ROOT.  What have I done wrong here?

Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch  
webobjects

via:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

after running this you should have the two java processes running - if
not then there's something wrong. Perhaps check the permissions on the
script, the NEXT_ROOT / USER variables and that it is executable etc

Also the reason for the:

chkconfig --levels 2345 webobjects on

is that the script defaults to 345 (at least it did for me) and you
porbably want it to run at level 2 as well.

- John


On Mon, Nov 9, 2009 at 2:30 PM, David Griffith >

wrote:


Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00  
grep java


Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

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

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



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

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



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

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


Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi John,

I did have an error in the path to the apps, I've fixed that and it  
works great now.  To start the apps I mean.

I can connect to JavaMonitor on port 56789.

I've installed all the Wonder frameworks, the mysql-connector/j, mysql  
server, installed my database and added users etc.


Now, I'm sure this is something so stupid, but I can't see what it  
is


I'm trying to start the iPSDistributor app as user 'appserver'.  The  
NEXT_ROOT variable IS set as you can see below, but the first thing  
the app says is that it is NOT set.


[appser...@localhost iPSDistributor.woa]$ echo $NEXT_ROOT
/opt
[appser...@localhost iPSDistributor.woa]$ ./iPSDistributor
iPSDistributor: NEXT_ROOT environment variable is not set!
Reading UNIXClassPath.txt ...
Launching iPSDistributor.woa ...

Obviously it crashes out with NoClassDef errors etc as it can't find  
the NEXT_ROOT.  What have I done wrong here?


Regards,
David.

On Nov 9, 2009, at 4:07 PM, John Bruce wrote:

Hi David,

you can test that the script works properly by trying to launch  
webobjects via:


/etc/init.d/webobjects start
/etc/init.d/webobjects stop

after running this you should have the two java processes running - if
not then there's something wrong. Perhaps check the permissions on the
script, the NEXT_ROOT / USER variables and that it is executable etc

Also the reason for the:

chkconfig --levels 2345 webobjects on

is that the script defaults to 345 (at least it did for me) and you
porbably want it to run at level 2 as well.

- John


On Mon, Nov 9, 2009 at 2:30 PM, David Griffith  
 wrote:

Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00  
grep java


Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

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

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



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

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


Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Immediately after reboot:

root  2764  0.0  0.1   3916   664 pts/0R+   17:29   0:00 grep  
java


Regards,
David.

On Nov 9, 2009, at 3:23 PM, Pascal Robert wrote:

ps auxww | grep java

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

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


Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi,

Yes I did manage to connect on a direct port to JavaMonitor, however  
not on 56789.  Only on the port it gives me when I run from the  
command line.


I did all that with the scripts and after reboot:

Last login: Mon Nov  9 14:59:37 2009 from 192.168.1.50
[r...@localhost ~]# chkconfig --list webobjects
webobjects  0:off   1:off   2:on3:on4:on5:on6:off
[r...@localhost ~]#

However it doesn't seem like the apps are launched and I can't connect  
to JavaMonitor on 56789.


Regards,
David.

On Nov 9, 2009, at 2:36 PM, Pascal Robert wrote:


Le 09-11-09 à 07:35, David Griffith a écrit :


Hi,

Thanks for that.  I didn't change the port and I guess it would  
probably connect on that, but I am trying to do it through Apache  
without any specified port.  I don't have a GUI interface or browser  
on the server (@192.168.1.10).  It's running on CentOS 5.  I am  
trying to connect directly from my Mac to the JavaMonitor on the  
server through Apache using the following link:


http://192.168.1.10/app/WebObjects/JavaMonitor.


To do that, you need to need to connect to JavaMonitor on port 56789  
and add JavaMonitor as a regular WO application launched by wotaskd.


More importantly, I'm trying to figure out how to make wotaskd and  
JavaMonitor start automatically at startup.  There used to be a  
WOServices script for this but I don't see it in the 5.4.3 files  
that downloaded by WOInstaller.  Also, I have used a sample script  
that I found on one of the documents on wiki.objectstyle which I  
think should start them but I still can't access JavaMonitor.


If you followed the instructions I wrote in the wiki, JavaMonitor is  
started on port 56789, but like John said, you also need to add the  
script with chkconfig so that wotaskd and JavaMonitor are started when  
you reboot.



When I run them from the command line, I get this:

The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085

Which makes me think that there may be something missing in the  
Apache config file too, as it should be showing /app/WebObjects,  
not /cgi-bin/WebObjects.


Regards,
David.

On Nov 9, 2009, at 1:22 PM, Bogdan Zlatanov wrote:

Hi David,


JavaMonitor starts at port 56789 by default. If you haven't made any  
changes to that, http://192.168.1.10:56789/app/WebObjects/ 
JavaMonitor should do the trick.



Cheers


On 9 Nov 2009, at 14:07, David Griffith wrote:


Hi,

Yeah I've installed the prebuilt one now and I'm trying to get  
wotaskd and JavaMonitor to load on startup but no idea how.  I've  
used some of the script that I've found on wiki.objectstyle, have  
chmod +x them, put them in init.d and created a symlink from rc3.d  
but they just don't seem to start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects and when I type:


http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the  
mod_WebObjects file but I just can't get JavaMonitor to appear.   
Both wotaskd and JavaMonitor do start ok if I run them from the  
command line.


Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith > wrote:

Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the 'make'
command by running it from the Adaptor directory and not from the  
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing some
settings in the make.config.  Firstly, should the make.config be  
copied into
the Apache2.2 directory to allow it to run from there?  Then, even  
though it
doesn't specifically say in the instructions I was following  
below, I think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly is
looking for, is in the following directory after installing WO  
5.4.3:


/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Yes, I have already done that.

Regards,
David.


On Nov 9, 2009, at 2:12 PM, John Bruce wrote:

Hi David,

Sorry forgot to mention that to get the adaptor to use
/Apps/WebObjects instead of /cgi-bin/WebObjects you need to have this
variable set in your adaptor configuration file for Apache.

WebObjectsAlias /Apps/WebObjects

- John

On Mon, Nov 9, 2009 at 12:35 PM, David Griffith  
 wrote:

Hi,

Thanks for that.  I didn't change the port and I guess it would  
probably

connect on that, but I am trying to do it through Apache without any
specified port.  I don't have a GUI interface or browser on the server
(@192.168.1.10).  It's running on CentOS 5.  I am trying to connect  
directly

from my Mac to the JavaMonitor on the server through Apache using the
following link:

http://192.168.1.10/app/WebObjects/JavaMonitor.

More importantly, I'm trying to figure out how to make wotaskd and
JavaMonitor start automatically at startup.  There used to be a  
WOServices
script for this but I don't see it in the 5.4.3 files that  
downloaded by
WOInstaller.  Also, I have used a sample script that I found on one  
of the
documents on wiki.objectstyle which I think should start them but I  
still

can't access JavaMonitor.

When I run them from the command line, I get this:

The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085

Which makes me think that there may be something missing in the Apache
config file too, as it should be showing /app/WebObjects, not
/cgi-bin/WebObjects.

Regards,
David.

On Nov 9, 2009, at 1:22 PM, Bogdan Zlatanov wrote:

Hi David,


JavaMonitor starts at port 56789 by default. If you haven't made any  
changes
to that, http://192.168.1.10:56789/app/WebObjects/JavaMonitor should  
do the

trick.


Cheers


On 9 Nov 2009, at 14:07, David Griffith wrote:


Hi,

Yeah I've installed the prebuilt one now and I'm trying to get  
wotaskd and
JavaMonitor to load on startup but no idea how.  I've used some of  
the
script that I've found on wiki.objectstyle, have chmod +x them, put  
them in
init.d and created a symlink from rc3.d but they just don't seem to  
start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects

and when I type:

http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the  
mod_WebObjects file
but I just can't get JavaMonitor to appear.  Both wotaskd and  
JavaMonitor do

start ok if I run them from the command line.

Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith >

wrote:


Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the

'make'
command by running it from the Adaptor directory and not from the
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing

some
settings in the make.config.  Firstly, should the make.config be  
copied

into
the Apache2.2 directory to allow it to run from there?  Then, even  
though

it
doesn't specifically say in the instructions I was following  
below, I

think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly

is
looking for, is in the following directory after installing WO  
5.4.3:


/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh
SH_LIBTOOL='/usr/lib/apr-1/build/libtool'
mod_WebObjects.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la
/usr/lib/httpd/modules/
libtool: install: `mod_WebObjects.la' is not a valid libtool  
archive

Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536


You need to force the CC var to be CC=gcc


http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936&navigatingVersions=true





On Nov 7, 2009, at 10:35 AM, David Griffith wrote:
Hi all,
Following the instructions at:


http://wik

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi John,

That's excellent, I'll give it a go.  Thank you.

Regards,
David.

On Nov 9, 2009, at 2:01 PM, John Bruce wrote:

Hi David,

To do auto startup on Linux (RHEL  / Centos) you need to add a script
into /etc/init.d and configure via chkconfig. Attached is a sample
startup script for wotaskd and javamonitor. You will need to edit it
to set your NEXT_ROOT and the USER you want to run the apps as.

To install put it in /etc/init.d the add it to your startup process
using chkconfig eg

cd /etc/init.d
chkconfig --add webobjects
chkconfig --levels 2345 webobjects on

confirm everything is ok

chkconfig --list webobjects

should show something like:

webobjects  0:off   1:off   2:on3:on4:on5:on6:off

also test your webobjects script by:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

Hope this helps,

- John



On Mon, Nov 9, 2009 at 12:35 PM, David Griffith  
 wrote:

Hi,

Thanks for that.  I didn't change the port and I guess it would  
probably

connect on that, but I am trying to do it through Apache without any
specified port.  I don't have a GUI interface or browser on the server
(@192.168.1.10).  It's running on CentOS 5.  I am trying to connect  
directly

from my Mac to the JavaMonitor on the server through Apache using the
following link:

http://192.168.1.10/app/WebObjects/JavaMonitor.

More importantly, I'm trying to figure out how to make wotaskd and
JavaMonitor start automatically at startup.  There used to be a  
WOServices
script for this but I don't see it in the 5.4.3 files that  
downloaded by
WOInstaller.  Also, I have used a sample script that I found on one  
of the
documents on wiki.objectstyle which I think should start them but I  
still

can't access JavaMonitor.

When I run them from the command line, I get this:

The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085

Which makes me think that there may be something missing in the Apache
config file too, as it should be showing /app/WebObjects, not
/cgi-bin/WebObjects.

Regards,
David.

On Nov 9, 2009, at 1:22 PM, Bogdan Zlatanov wrote:

Hi David,


JavaMonitor starts at port 56789 by default. If you haven't made any  
changes
to that, http://192.168.1.10:56789/app/WebObjects/JavaMonitor should  
do the

trick.


Cheers


On 9 Nov 2009, at 14:07, David Griffith wrote:


Hi,

Yeah I've installed the prebuilt one now and I'm trying to get  
wotaskd and
JavaMonitor to load on startup but no idea how.  I've used some of  
the
script that I've found on wiki.objectstyle, have chmod +x them, put  
them in
init.d and created a symlink from rc3.d but they just don't seem to  
start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects

and when I type:

http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the  
mod_WebObjects file
but I just can't get JavaMonitor to appear.  Both wotaskd and  
JavaMonitor do

start ok if I run them from the command line.

Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith >

wrote:


Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the

'make'
command by running it from the Adaptor directory and not from the
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing

some
settings in the make.config.  Firstly, should the make.config be  
copied

into
the Apache2.2 directory to allow it to run from there?  Then, even  
though

it
doesn't specifically say in the instructions I was following  
below, I

think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly

is
looking for, is in the following directory after installing WO  
5.4.3:


/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh
SH_LIBTOOL='/usr/lib/apr-1/build/libtool'
mod_WebObjects.la /usr/lib/httpd/mod

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi Pascal,

That's obviously the issue then.  I'll have to connect to it on the  
port first and add it within JavaMonitor.

I'll try the scripts and hopefully that will sort it!

Thanks for you help,
David.

On Nov 9, 2009, at 2:36 PM, Pascal Robert wrote:


Le 09-11-09 à 07:35, David Griffith a écrit :


Hi,

Thanks for that.  I didn't change the port and I guess it would  
probably connect on that, but I am trying to do it through Apache  
without any specified port.  I don't have a GUI interface or browser  
on the server (@192.168.1.10).  It's running on CentOS 5.  I am  
trying to connect directly from my Mac to the JavaMonitor on the  
server through Apache using the following link:


http://192.168.1.10/app/WebObjects/JavaMonitor.


To do that, you need to need to connect to JavaMonitor on port 56789  
and add JavaMonitor as a regular WO application launched by wotaskd.


More importantly, I'm trying to figure out how to make wotaskd and  
JavaMonitor start automatically at startup.  There used to be a  
WOServices script for this but I don't see it in the 5.4.3 files  
that downloaded by WOInstaller.  Also, I have used a sample script  
that I found on one of the documents on wiki.objectstyle which I  
think should start them but I still can't access JavaMonitor.


If you followed the instructions I wrote in the wiki, JavaMonitor is  
started on port 56789, but like John said, you also need to add the  
script with chkconfig so that wotaskd and JavaMonitor are started when  
you reboot.



When I run them from the command line, I get this:

The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085

Which makes me think that there may be something missing in the  
Apache config file too, as it should be showing /app/WebObjects,  
not /cgi-bin/WebObjects.


Regards,
David.

On Nov 9, 2009, at 1:22 PM, Bogdan Zlatanov wrote:

Hi David,


JavaMonitor starts at port 56789 by default. If you haven't made any  
changes to that, http://192.168.1.10:56789/app/WebObjects/ 
JavaMonitor should do the trick.



Cheers


On 9 Nov 2009, at 14:07, David Griffith wrote:


Hi,

Yeah I've installed the prebuilt one now and I'm trying to get  
wotaskd and JavaMonitor to load on startup but no idea how.  I've  
used some of the script that I've found on wiki.objectstyle, have  
chmod +x them, put them in init.d and created a symlink from rc3.d  
but they just don't seem to start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects and when I type:


http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the  
mod_WebObjects file but I just can't get JavaMonitor to appear.   
Both wotaskd and JavaMonitor do start ok if I run them from the  
command line.


Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith > wrote:

Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the 'make'
command by running it from the Adaptor directory and not from the  
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing some
settings in the make.config.  Firstly, should the make.config be  
copied into
the Apache2.2 directory to allow it to run from there?  Then, even  
though it
doesn't specifically say in the instructions I was following  
below, I think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly is
looking for, is in the following directory after installing WO  
5.4.3:


/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ 
libtool'

mod_WebObjects.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la
/usr/lib/httpd/modules/
libtool: install: `mod_WebObjects.la' is not a valid libtool  
archive

Try `libtool --help --mode=install' for mor

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi John,

That's excellent, I'll give it a go.  Thank you.

Regards,
David.

On Nov 9, 2009, at 2:01 PM, John Bruce wrote:

Hi David,

To do auto startup on Linux (RHEL  / Centos) you need to add a script
into /etc/init.d and configure via chkconfig. Attached is a sample
startup script for wotaskd and javamonitor. You will need to edit it
to set your NEXT_ROOT and the USER you want to run the apps as.

To install put it in /etc/init.d the add it to your startup process
using chkconfig eg

cd /etc/init.d
chkconfig --add webobjects
chkconfig --levels 2345 webobjects on

confirm everything is ok

chkconfig --list webobjects

should show something like:

webobjects  0:off   1:off   2:on3:on4:on5:on6:off

also test your webobjects script by:

/etc/init.d/webobjects start
/etc/init.d/webobjects stop

Hope this helps,

- John



On Mon, Nov 9, 2009 at 12:35 PM, David Griffith  
 wrote:

Hi,

Thanks for that.  I didn't change the port and I guess it would  
probably

connect on that, but I am trying to do it through Apache without any
specified port.  I don't have a GUI interface or browser on the server
(@192.168.1.10).  It's running on CentOS 5.  I am trying to connect  
directly

from my Mac to the JavaMonitor on the server through Apache using the
following link:

http://192.168.1.10/app/WebObjects/JavaMonitor.

More importantly, I'm trying to figure out how to make wotaskd and
JavaMonitor start automatically at startup.  There used to be a  
WOServices
script for this but I don't see it in the 5.4.3 files that  
downloaded by
WOInstaller.  Also, I have used a sample script that I found on one  
of the
documents on wiki.objectstyle which I think should start them but I  
still

can't access JavaMonitor.

When I run them from the command line, I get this:

The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085

Which makes me think that there may be something missing in the Apache
config file too, as it should be showing /app/WebObjects, not
/cgi-bin/WebObjects.

Regards,
David.

On Nov 9, 2009, at 1:22 PM, Bogdan Zlatanov wrote:

Hi David,


JavaMonitor starts at port 56789 by default. If you haven't made any  
changes
to that, http://192.168.1.10:56789/app/WebObjects/JavaMonitor should  
do the

trick.


Cheers


On 9 Nov 2009, at 14:07, David Griffith wrote:


Hi,

Yeah I've installed the prebuilt one now and I'm trying to get  
wotaskd and
JavaMonitor to load on startup but no idea how.  I've used some of  
the
script that I've found on wiki.objectstyle, have chmod +x them, put  
them in
init.d and created a symlink from rc3.d but they just don't seem to  
start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects

and when I type:

http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the  
mod_WebObjects file
but I just can't get JavaMonitor to appear.  Both wotaskd and  
JavaMonitor do

start ok if I run them from the command line.

Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith >

wrote:


Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the

'make'
command by running it from the Adaptor directory and not from the
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing

some
settings in the make.config.  Firstly, should the make.config be  
copied

into
the Apache2.2 directory to allow it to run from there?  Then, even  
though

it
doesn't specifically say in the instructions I was following  
below, I

think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly

is
looking for, is in the following directory after installing WO  
5.4.3:


/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh
SH_LIBTOOL='/usr/lib/apr-1/build/libtool'
mod_WebObjects.la /usr/lib/httpd/mod

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi,

Thanks for that.  I didn't change the port and I guess it would  
probably connect on that, but I am trying to do it through Apache  
without any specified port.  I don't have a GUI interface or browser  
on the server (@192.168.1.10).  It's running on CentOS 5.  I am trying  
to connect directly from my Mac to the JavaMonitor on the server  
through Apache using the following link:


http://192.168.1.10/app/WebObjects/JavaMonitor.

More importantly, I'm trying to figure out how to make wotaskd and  
JavaMonitor start automatically at startup.  There used to be a  
WOServices script for this but I don't see it in the 5.4.3 files that  
downloaded by WOInstaller.  Also, I have used a sample script that I  
found on one of the documents on wiki.objectstyle which I think should  
start them but I still can't access JavaMonitor.


When I run them from the command line, I get this:

The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085

Which makes me think that there may be something missing in the Apache  
config file too, as it should be showing /app/WebObjects, not /cgi-bin/ 
WebObjects.


Regards,
David.

On Nov 9, 2009, at 1:22 PM, Bogdan Zlatanov wrote:

Hi David,


JavaMonitor starts at port 56789 by default. If you haven't made any  
changes to that, http://192.168.1.10:56789/app/WebObjects/JavaMonitor  
should do the trick.



Cheers


On 9 Nov 2009, at 14:07, David Griffith wrote:


Hi,

Yeah I've installed the prebuilt one now and I'm trying to get  
wotaskd and JavaMonitor to load on startup but no idea how.  I've  
used some of the script that I've found on wiki.objectstyle, have  
chmod +x them, put them in init.d and created a symlink from rc3.d  
but they just don't seem to start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects and when I type:


http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the mod_WebObjects  
file but I just can't get JavaMonitor to appear.  Both wotaskd and  
JavaMonitor do start ok if I run them from the command line.


Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith > wrote:

Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the 'make'
command by running it from the Adaptor directory and not from the  
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing some
settings in the make.config.  Firstly, should the make.config be  
copied into
the Apache2.2 directory to allow it to run from there?  Then, even  
though it
doesn't specifically say in the instructions I was following below,  
I think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly is

looking for, is in the following directory after installing WO 5.4.3:

/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ 
libtool'

mod_WebObjects.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la
/usr/lib/httpd/modules/
libtool: install: `mod_WebObjects.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536


You need to force the CC var to be CC=gcc

http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936&navigatingVersions=true





On Nov 7, 2009, at 10:35 AM, David Griffith wrote:
Hi all,
Following the instructions at:

http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux
Building the Apache WO Module, I'm running into this problem:

/usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la

I get:
-bash: /usr/local/apache/bin/apxs: No such file or directory
I have gcc installed but I can't figure out what I should install  
to be

able
to use apxs.  I have Apache 2.2

Re: Installing WO 543 on Linux

2009-11-09 Thread David Griffith

Hi,

Yeah I've installed the prebuilt one now and I'm trying to get wotaskd  
and JavaMonitor to load on startup but no idea how.  I've used some of  
the script that I've found on wiki.objectstyle, have chmod +x them,  
put them in init.d and created a symlink from rc3.d but they just  
don't seem to start.


Also, I have changed the default /cgi-bin/webObjects to /app/ 
WebObjects and when I type:


http://192.168.1.10 I get the Apache page, that's working.

When I type:

http://192.168.1.10/app/WebObjects/JavaMonitor, I get:

The requested application could not be found on this server

Which seems to indicate that it is actually using the mod_WebObjects  
file but I just can't get JavaMonitor to appear.  Both wotaskd and  
JavaMonitor do start ok if I run them from the command line.


Not sure where to go next...

Dave.

On Nov 8, 2009, at 4:25 PM, Joe Little wrote:

I recall having to adjust the make file in too locations, force the
gcc somewhere else. But Pascal is correct in that there are also
prebuilt one's available. I'm thinking I should reconsider packaging
though and perhaps remake my RPMs available at some point.

On Sat, Nov 7, 2009 at 11:59 AM, David Griffith  
 wrote:

Hi Joe,

Yes I have already done that.  I did manage to get it to complete  
the 'make'
command by running it from the Adaptor directory and not from the  
Apache2.2
directory (it wouldn't run from there) but I think I am perhaps  
missing some
settings in the make.config.  Firstly, should the make.config be  
copied into
the Apache2.2 directory to allow it to run from there?  Then, even  
though it
doesn't specifically say in the instructions I was following below,  
I think
I need to tell the make.config where my apache modules are but I'm  
having

trouble determining that path.

I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly is

looking for, is in the following directory after installing WO 5.4.3:

/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate

file to use?

Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith >

wrote:


Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ 
libtool'

mod_WebObjects.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la
/usr/lib/httpd/modules/
libtool: install: `mod_WebObjects.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536


You need to force the CC var to be CC=gcc

http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936&navigatingVersions=true





On Nov 7, 2009, at 10:35 AM, David Griffith wrote:
Hi all,
Following the instructions at:

http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux
Building the Apache WO Module, I'm running into this problem:

/usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la

I get:
-bash: /usr/local/apache/bin/apxs: No such file or directory
I have gcc installed but I can't figure out what I should install  
to be

able
to use apxs.  I have Apache 2.2.3 installed and working.
Is it just a matter of finding and downloading and
installing apache2-threaded-dev for that version of Apache?
Anyone know where I can find that installer?
Regards,
David.



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

http://lists.apple.com/mailman/options/webobjects-dev/david%40infinityspain.com

This email sent to da...@infinityspain.com

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

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






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

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


Re: Installing WO 543 on Linux

2009-11-07 Thread David Griffith

Hi Joe,

Yes I have already done that.  I did manage to get it to complete the  
'make' command by running it from the Adaptor directory and not from  
the Apache2.2 directory (it wouldn't run from there) but I think I am  
perhaps missing some settings in the make.config.  Firstly, should the  
make.config be copied into the Apache2.2 directory to allow it to run  
from there?  Then, even though it doesn't specifically say in the  
instructions I was following below, I think I need to tell the  
make.config where my apache modules are but I'm having trouble  
determining that path.


I'm using CentOS 5.4 with the bundled Apache 2.2.3.
The only place I can seem to locate mod_WebObjects.la, which it  
clearly is looking for, is in the following directory after installing  
WO 5.4.3:


/opt/Library/WebObjects/Adaptors/Apache2.2/.libs/mod_WebObjects.la

Is this the directory it's looking for, or rather is that the  
appropriate file to use?


Regards,
David.


On Nov 7, 2009, at 4:22 PM, Joe Little wrote:

On Sat, Nov 7, 2009 at 2:00 AM, David Griffith  
 wrote:

Sorry, I found apxs but this is the error I'm getting:
apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ 
libtool'

mod_WebObjects.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la
/usr/lib/httpd/modules/
libtool: install: `mod_WebObjects.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536


You need to force the CC var to be CC=gcc

http://wiki.objectstyle.org/confluence/pages/viewpage.action?pageId=196936&navigatingVersions=true





On Nov 7, 2009, at 10:35 AM, David Griffith wrote:
Hi all,
Following the instructions at:
http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux
Building the Apache WO Module, I'm running into this problem:

/usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la

I get:
-bash: /usr/local/apache/bin/apxs: No such file or directory
I have gcc installed but I can't figure out what I should install to  
be able

to use apxs.  I have Apache 2.2.3 installed and working.
Is it just a matter of finding and downloading and
installing apache2-threaded-dev for that version of Apache?
Anyone know where I can find that installer?
Regards,
David.



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

This email sent to da...@infinityspain.com

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

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



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

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


Re: Installing WO 543 on Linux

2009-11-07 Thread David Griffith

Sorry, I found apxs but this is the error I'm getting:

apxs -i -a -n WebObjects mod_WebObjects.la
/usr/lib/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib/apr-1/build/ 
libtool' mod_WebObjects.la /usr/lib/httpd/modules
/usr/lib/apr-1/build/libtool --mode=install cp mod_WebObjects.la /usr/ 
lib/httpd/modules/

libtool: install: `mod_WebObjects.la' is not a valid libtool archive
Try `libtool --help --mode=install' for more information.
apxs:Error: Command failed with rc=65536


On Nov 7, 2009, at 10:35 AM, David Griffith wrote:

Hi all,

Following the instructions at:

http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux

Building the Apache WO Module, I'm running into this problem:

/usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la

I get:

-bash: /usr/local/apache/bin/apxs: No such file or directory

I have gcc installed but I can't figure out what I should install to  
be able to use apxs.  I have Apache 2.2.3 installed and working.


Is it just a matter of finding and downloading and installing apache2- 
threaded-dev for that version of Apache?


Anyone know where I can find that installer?

Regards,
David.




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

This email sent to da...@infinityspain.com

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

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

Installing WO 543 on Linux

2009-11-07 Thread David Griffith

Hi all,

Following the instructions at:

http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux

Building the Apache WO Module, I'm running into this problem:

/usr/local/apache/bin/apxs -i -a -n WebObjects mod_WebObjects.la

I get:

-bash: /usr/local/apache/bin/apxs: No such file or directory

I have gcc installed but I can't figure out what I should install to  
be able to use apxs.  I have Apache 2.2.3 installed and working.


Is it just a matter of finding and downloading and installing apache2- 
threaded-dev for that version of Apache?


Anyone know where I can find that installer?

Regards,
David.




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

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

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith

Yes and yes.  Bit strange eh?  Gonna upgrade the JRE I think.


On Nov 5, 2009, at 4:43 AM, Chuck Hill wrote:


On Nov 4, 2009, at 7:31 PM, David Griffith wrote:

Yeah that's what it's saying, but I have built it with 1.5  
compliance and JVM 1.5, and the linux box is running 1.5.0_06


/usr/java/jre1.5.0_06


Does java -version confirm this?  Is the user the app is running under  
getting the same version?




What's the difference between JVM 1.5 and 1.5.0?


I don't know in terms of the version  number in the class file.


Chuck





On Nov 5, 2009, at 4:27 AM, Chuck Hill wrote:

java.lang.UnsupportedClassVersionError: Bad version number  
in .class file


aka You built this with Java 1.5 and are trying to run it on an  
older Java 1.4 JVM (or similar version mismatch).



Chuck


On Nov 4, 2009, at 7:24 PM, David Griffith wrote:

Thanks, I thought it had been set but it hadn't.  Now this is what  
I'm getting.


[2009-11-05 04:23:04 CET]   
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.UnsupportedClassVersionError] Bad version number  
in .class file:  failed instantiation.  
Exception thrown :
java.lang.UnsupportedClassVersionError: Bad version number  
in .class file: Bad version number in .class file
[2009-11-05 04:23:04 CET]  socket=Socket[addr=/70.85.175.58,port=42015,localport=2010]>  
Exception occurred while responding to client:  
com.webobjects.foundation.NSForwardException  
[com.webobjects.foundation.NSForwardException] null



On Nov 5, 2009, at 4:19 AM, Pascal Robert wrote:

Did you enable the logs in the app config in JavaMonitor? If not,  
do it, if yes check the file specified in Monitor.


Now I'm getting an Internal Server Error when trying to connect to  
the


app.  Usually this indicates a connection problem with the database
but is this error properly reported to any log?  I'd like to see
exactly what it's complaining about...

Dave.

On Nov 5, 2009, at 3:57 AM, David Griffith wrote:

Thanks for that.  And yes, it was Project Wonder causing the  
problem.


Updated the frameworks and it seems fine now.

Regards,
David.

On Nov 5, 2009, at 3:29 AM, David LeBer wrote:


On 2009-11-04, at 9:26 PM, David Griffith wrote:


So how do I go about embedding them?  They are added into the
project already and in the build path.


Eclipse -> YourApp -> Properties -> WOLips Deployment -> Embed
Frameworks



On Nov 5, 2009, at 3:23 AM, Pascal Robert wrote:

I don't remember Wonder having a dependency against ORO, but you
really should embed your frameworks into the apps, to make sure you



use the same version of Wonder and WO on both your dev machine and



your server.


Well I haven't a clue what it is, but I've just had a thought...
maybe

it's got something to do with Project Wonder.  Probably need to
update

to the latest version on the linux box...

On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:


I don't even know what jakarta-oro is to be honest.  Never seen

it



before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library.
<http://jakarta.apache.org/oro/




And the error you are seeing is because there is a reference to

it's


MalformedPatternException class that cannot be fulfilled.




Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to
the Libraries folder in the WO project, in Eclipse right-click on
the JAR, select Build Path -> Add to build path. When you build

the



bundle with Ant, the jar will be automatically added to the

bundle



and you will be fine, no matter where you deploy. After that,

remove



jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse
first, or else it will complain about missing JARs).


Have you been naughty and added jars to

/Library/Java/Extensions?



On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files

-

there was no shell script of course in the build directory.

However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred:

org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET] 

java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects





.foundation._NSUtilities._classWithPartialName(_NSUtilities.java: 
307)

at
com




.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at




com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com




.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBu

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
Yeah that's what it's saying, but I have built it with 1.5 compliance  
and JVM 1.5, and the linux box is running 1.5.0_06


/usr/java/jre1.5.0_06

What's the difference between JVM 1.5 and 1.5.0?


On Nov 5, 2009, at 4:27 AM, Chuck Hill wrote:

java.lang.UnsupportedClassVersionError: Bad version number in .class  
file


aka You built this with Java 1.5 and are trying to run it on an older  
Java 1.4 JVM (or similar version mismatch).



Chuck


On Nov 4, 2009, at 7:24 PM, David Griffith wrote:

Thanks, I thought it had been set but it hadn't.  Now this is what  
I'm getting.


[2009-11-05 04:23:04 CET]   
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.UnsupportedClassVersionError] Bad version number  
in .class file:  failed instantiation.  
Exception thrown :
java.lang.UnsupportedClassVersionError: Bad version number in .class  
file: Bad version number in .class file
[2009-11-05 04:23:04 CET]  socket=Socket[addr=/70.85.175.58,port=42015,localport=2010]>  
Exception occurred while responding to client:  
com.webobjects.foundation.NSForwardException  
[com.webobjects.foundation.NSForwardException] null



On Nov 5, 2009, at 4:19 AM, Pascal Robert wrote:

Did you enable the logs in the app config in JavaMonitor? If not, do  
it, if yes check the file specified in Monitor.


Now I'm getting an Internal Server Error when trying to connect to  
the


app.  Usually this indicates a connection problem with the database
but is this error properly reported to any log?  I'd like to see
exactly what it's complaining about...

Dave.

On Nov 5, 2009, at 3:57 AM, David Griffith wrote:

Thanks for that.  And yes, it was Project Wonder causing the problem.

Updated the frameworks and it seems fine now.

Regards,
David.

On Nov 5, 2009, at 3:29 AM, David LeBer wrote:


On 2009-11-04, at 9:26 PM, David Griffith wrote:


So how do I go about embedding them?  They are added into the
project already and in the build path.


Eclipse -> YourApp -> Properties -> WOLips Deployment -> Embed
Frameworks



On Nov 5, 2009, at 3:23 AM, Pascal Robert wrote:

I don't remember Wonder having a dependency against ORO, but you
really should embed your frameworks into the apps, to make sure you



use the same version of Wonder and WO on both your dev machine and



your server.


Well I haven't a clue what it is, but I've just had a thought...
maybe

it's got something to do with Project Wonder.  Probably need to
update

to the latest version on the linux box...

On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:


I don't even know what jakarta-oro is to be honest.  Never seen

it



before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library.
<http://jakarta.apache.org/oro/




And the error you are seeing is because there is a reference to

it's


MalformedPatternException class that cannot be fulfilled.




Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to
the Libraries folder in the WO project, in Eclipse right-click on
the JAR, select Build Path -> Add to build path. When you build

the



bundle with Ant, the jar will be automatically added to the

bundle



and you will be fine, no matter where you deploy. After that,

remove



jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse
first, or else it will complain about missing JARs).


Have you been naughty and added jars to

/Library/Java/Extensions?



On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files

-

there was no shell script of course in the build directory.

However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred:

org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET] 

java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects






.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com




.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at




com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com




.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at

com.webobjects.foundation.NSBundle.(NSBundle.java:368)

at
com
.webobjects
.appserver


._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)

at






com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:



5051)
at



com.webobjects.appserver.WOApplication.(W

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
Thanks, I thought it had been set but it hadn't.  Now this is what I'm  
getting.


[2009-11-05 04:23:04 CET]   
:  
Exception occurred while handling request:
com.webobjects.foundation.NSForwardException  
[java.lang.UnsupportedClassVersionError] Bad version number in .class  
file:  failed instantiation. Exception thrown :
java.lang.UnsupportedClassVersionError: Bad version number in .class  
file: Bad version number in .class file
[2009-11-05 04:23:04 CET]  socket=Socket[addr=/70.85.175.58,port=42015,localport=2010]> Exception  
occurred while responding to client:  
com.webobjects.foundation.NSForwardException  
[com.webobjects.foundation.NSForwardException] null



On Nov 5, 2009, at 4:19 AM, Pascal Robert wrote:

Did you enable the logs in the app config in JavaMonitor? If not, do  
it, if yes check the file specified in Monitor.



Now I'm getting an Internal Server Error when trying to connect to the

app.  Usually this indicates a connection problem with the database
but is this error properly reported to any log?  I'd like to see
exactly what it's complaining about...

Dave.

On Nov 5, 2009, at 3:57 AM, David Griffith wrote:

Thanks for that.  And yes, it was Project Wonder causing the problem.

Updated the frameworks and it seems fine now.

Regards,
David.

On Nov 5, 2009, at 3:29 AM, David LeBer wrote:


On 2009-11-04, at 9:26 PM, David Griffith wrote:


So how do I go about embedding them?  They are added into the
project already and in the build path.


Eclipse -> YourApp -> Properties -> WOLips Deployment -> Embed
Frameworks



On Nov 5, 2009, at 3:23 AM, Pascal Robert wrote:

I don't remember Wonder having a dependency against ORO, but you
really should embed your frameworks into the apps, to make sure you



use the same version of Wonder and WO on both your dev machine and



your server.


Well I haven't a clue what it is, but I've just had a thought...
maybe

it's got something to do with Project Wonder.  Probably need to
update

to the latest version on the linux box...

On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:


I don't even know what jakarta-oro is to be honest.  Never seen

it



before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library.
<http://jakarta.apache.org/oro/




And the error you are seeing is because there is a reference to

it's


MalformedPatternException class that cannot be fulfilled.




Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to
the Libraries folder in the WO project, in Eclipse right-click on
the JAR, select Build Path -> Add to build path. When you build

the



bundle with Ant, the jar will be automatically added to the

bundle



and you will be fine, no matter where you deploy. After that,

remove



jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse
first, or else it will complain about missing JARs).


Have you been naughty and added jars to

/Library/Java/Extensions?



On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files

-

there was no shell script of course in the build directory.

However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred:

org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET] 

java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects






.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com




.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at




com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com




.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at

com.webobjects.foundation.NSBundle.(NSBundle.java:368)

at
com
.webobjects
.appserver


._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)

at






com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:



5051)
at



com.webobjects.appserver.WOApplication.(WOApplication.java:

551)
at ips.distributor.Application.(Application.java:20)
at

sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native

Method)
at

sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown

Source)
at


sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown

Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at

c

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
Now I'm getting an Internal Server Error when trying to connect to the  
app.  Usually this indicates a connection problem with the database  
but is this error properly reported to any log?  I'd like to see  
exactly what it's complaining about...


Dave.

On Nov 5, 2009, at 3:57 AM, David Griffith wrote:

Thanks for that.  And yes, it was Project Wonder causing the problem.   
Updated the frameworks and it seems fine now.


Regards,
David.

On Nov 5, 2009, at 3:29 AM, David LeBer wrote:


On 2009-11-04, at 9:26 PM, David Griffith wrote:

So how do I go about embedding them?  They are added into the  
project already and in the build path.


Eclipse -> YourApp -> Properties -> WOLips Deployment -> Embed  
Frameworks




On Nov 5, 2009, at 3:23 AM, Pascal Robert wrote:

I don't remember Wonder having a dependency against ORO, but you  
really should embed your frameworks into the apps, to make sure you  
use the same version of Wonder and WO on both your dev machine and  
your server.


Well I haven't a clue what it is, but I've just had a thought...  
maybe


it's got something to do with Project Wonder.  Probably need to  
update


to the latest version on the linux box...

On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:


I don't even know what jakarta-oro is to be honest.  Never seen it



before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library.
<http://jakarta.apache.org/oro/




And the error you are seeing is because there is a reference to it's

MalformedPatternException class that cannot be fulfilled.




Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to
the Libraries folder in the WO project, in Eclipse right-click on
the JAR, select Build Path -> Add to build path. When you build the



bundle with Ant, the jar will be automatically added to the bundle



and you will be fine, no matter where you deploy. After that, remove



jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse
first, or else it will complain about missing JARs).


Have you been naughty and added jars to /Library/Java/Extensions?


On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -
there was no shell script of course in the build directory.

However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred:

org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects




.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com


.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at


com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com


.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at

com.webobjects.foundation.NSBundle.(NSBundle.java:368)

at
com
.webobjects
.appserver


._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)

at




com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:



5051)
at

com.webobjects.appserver.WOApplication.(WOApplication.java:

551)
at ips.distributor.Application.(Application.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at

com.webobjects.appserver.WOApplication.main(WOApplication.java:



323)
at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown

Source)

at java.lang.reflect.Method.invoke(Unknown Source)
at

com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)



What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with

WOLips



Install Tools -> Ant install...

As for .cmd file and Linux, the .cmd is for Windows, Linux (or

any



other UNIX) will use the same shell script as OS X.


Hi all,

Finally seem to have gotten the app all working well.  Buildin

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
Thanks for that.  And yes, it was Project Wonder causing the problem.   
Updated the frameworks and it seems fine now.


Regards,
David.

On Nov 5, 2009, at 3:29 AM, David LeBer wrote:


On 2009-11-04, at 9:26 PM, David Griffith wrote:

So how do I go about embedding them?  They are added into the  
project already and in the build path.


Eclipse -> YourApp -> Properties -> WOLips Deployment -> Embed  
Frameworks




On Nov 5, 2009, at 3:23 AM, Pascal Robert wrote:

I don't remember Wonder having a dependency against ORO, but you  
really should embed your frameworks into the apps, to make sure you  
use the same version of Wonder and WO on both your dev machine and  
your server.


Well I haven't a clue what it is, but I've just had a thought...  
maybe


it's got something to do with Project Wonder.  Probably need to  
update


to the latest version on the linux box...

On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:


I don't even know what jakarta-oro is to be honest.  Never seen it



before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library.
<http://jakarta.apache.org/oro/




And the error you are seeing is because there is a reference to it's

MalformedPatternException class that cannot be fulfilled.




Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to
the Libraries folder in the WO project, in Eclipse right-click on
the JAR, select Build Path -> Add to build path. When you build the



bundle with Ant, the jar will be automatically added to the bundle



and you will be fine, no matter where you deploy. After that, remove



jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse
first, or else it will complain about missing JARs).


Have you been naughty and added jars to /Library/Java/Extensions?


On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -
there was no shell script of course in the build directory.

However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred:

org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects




.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com


.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at


com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com


.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at

com.webobjects.foundation.NSBundle.(NSBundle.java:368)

at
com
.webobjects
.appserver


._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)

at




com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:



5051)
at

com.webobjects.appserver.WOApplication.(WOApplication.java:

551)
at ips.distributor.Application.(Application.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at

com.webobjects.appserver.WOApplication.main(WOApplication.java:



323)
at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown

Source)

at java.lang.reflect.Method.invoke(Unknown Source)
at

com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)



What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with

WOLips



Install Tools -> Ant install...

As for .cmd file and Linux, the .cmd is for Windows, Linux (or

any



other UNIX) will use the same shell script as OS X.


Hi all,

Finally seem to have gotten the app all working well.  Building

fine


on Snow Leopard.  Running fine.  But what I find in the build
directory is not a package, it's just a folder.  It does not

contain


the .CMD file either.  I need to deploy this on Linux.

Certainly

something silly.  What am i doing wrong?

Regards,
David.
___

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
So how do I go about embedding them?  They are added into the project  
already and in the build path.


On Nov 5, 2009, at 3:23 AM, Pascal Robert wrote:

I don't remember Wonder having a dependency against ORO, but you  
really should embed your frameworks into the apps, to make sure you  
use the same version of Wonder and WO on both your dev machine and  
your server.



Well I haven't a clue what it is, but I've just had a thought... maybe

it's got something to do with Project Wonder.  Probably need to update

to the latest version on the linux box...

On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:


I don't even know what jakarta-oro is to be honest.  Never seen it



before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library.
<http://jakarta.apache.org/oro/




And the error you are seeing is because there is a reference to it's

MalformedPatternException class that cannot be fulfilled.




Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to
the Libraries folder in the WO project, in Eclipse right-click on
the JAR, select Build Path -> Add to build path. When you build the



bundle with Ant, the jar will be automatically added to the bundle



and you will be fine, no matter where you deploy. After that, remove



jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse
first, or else it will complain about missing JARs).


Have you been naughty and added jars to /Library/Java/Extensions?


On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -
there was no shell script of course in the build directory.

However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred:

org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects




.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com


.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at


com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com


.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at

com.webobjects.foundation.NSBundle.(NSBundle.java:368)

at
com
.webobjects
.appserver


._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)

at




com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:



5051)
at

com.webobjects.appserver.WOApplication.(WOApplication.java:

551)
at ips.distributor.Application.(Application.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at

com.webobjects.appserver.WOApplication.main(WOApplication.java:



323)
at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown

Source)

at java.lang.reflect.Method.invoke(Unknown Source)
at

com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)



What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with

WOLips



Install Tools -> Ant install...

As for .cmd file and Linux, the .cmd is for Windows, Linux (or

any



other UNIX) will use the same shell script as OS X.


Hi all,

Finally seem to have gotten the app all working well.  Building

fine


on Snow Leopard.  Running fine.  But what I find in the build
directory is not a package, it's just a folder.  It does not

contain


the .CMD file either.  I need to deploy this on Linux.

Certainly

something silly.  What am i doing wrong?

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

(Webobjects-dev@lists.apple.com)

Help/Unsubscribe/Update your Subscription:




http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca


This email sent to prob...@macti.ca


--

--

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
Well I haven't a clue what it is, but I've just had a thought... maybe  
it's got something to do with Project Wonder.  Probably need to update  
to the latest version on the linux box...


On Nov 5, 2009, at 3:15 AM, David LeBer wrote:


On 2009-11-04, at 9:12 PM, David Griffith wrote:

I don't even know what jakarta-oro is to be honest.  Never seen it  
before.  Is it something I need to have installed?


oro is a text processing (i.e: regex etc) library. <http://jakarta.apache.org/oro/ 
>


And the error you are seeing is because there is a reference to it's  
MalformedPatternException class that cannot be fulfilled.





Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to  
the Libraries folder in the WO project, in Eclipse right-click on  
the JAR, select Build Path -> Add to build path. When you build the  
bundle with Ant, the jar will be automatically added to the bundle  
and you will be fine, no matter where you deploy. After that, remove  
jarkata-oro-.jar from /Library/Java/Extensions (close Eclipse  
first, or else it will complain about missing JARs).



Have you been naughty and added jars to /Library/Java/Extensions?


On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -
there was no shell script of course in the build directory.  However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred: org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects


.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com
.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com
.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at com.webobjects.foundation.NSBundle.(NSBundle.java:368)
at
com
.webobjects
.appserver
._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)
at


com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:


5051)
at

com.webobjects.appserver.WOApplication.(WOApplication.java:

551)
at ips.distributor.Application.(Application.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:



323)
at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)


What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with WOLips



Install Tools -> Ant install...

As for .cmd file and Linux, the .cmd is for Windows, Linux (or any



other UNIX) will use the same shell script as OS X.


Hi all,

Finally seem to have gotten the app all working well.  Building

fine


on Snow Leopard.  Running fine.  But what I find in the build
directory is not a package, it's just a folder.  It does not

contain


the .CMD file either.  I need to deploy this on Linux.  Certainly
something silly.  What am i doing wrong?

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


http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca


This email sent to prob...@macti.ca


--

---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

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


http://lists.apple.com/mailman/options/webobjects-d

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
I don't even know what jakarta-oro is to be honest.  Never seen it  
before.  Is it something I need to have installed?


Dave.

On Nov 5, 2009, at 3:09 AM, Pascal Robert wrote:

... And if it's the case, move the file (jarkata-oro-.jar) to the  
Libraries folder in the WO project, in Eclipse right-click on the JAR,  
select Build Path -> Add to build path. When you build the bundle with  
Ant, the jar will be automatically added to the bundle and you will be  
fine, no matter where you deploy. After that, remove jarkata-oro- 
.jar from /Library/Java/Extensions (close Eclipse first, or else  
it will complain about missing JARs).



Have you been naughty and added jars to /Library/Java/Extensions?


On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -
there was no shell script of course in the build directory.  However



I am now getting this when i try and launch the app on linux:

158 [main] WARN NSLog  - A fatal exception occurred: org/apache/oro/



text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError:

org/

apache/oro/text/regex/MalformedPatternException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com
.webobjects


.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)

at
com
.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:



291)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:



2553)
at
com
.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:



710)
at com.webobjects.foundation.NSBundle.(NSBundle.java:368)
at
com
.webobjects
.appserver
._private.WOProperties.initUserDefaultsKeys(WOProperties.java:179)
at


com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:


5051)
at

com.webobjects.appserver.WOApplication.(WOApplication.java:

551)
at ips.distributor.Application.(Application.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:



323)
at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)


What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with WOLips



Install Tools -> Ant install...

As for .cmd file and Linux, the .cmd is for Windows, Linux (or any



other UNIX) will use the same shell script as OS X.


Hi all,

Finally seem to have gotten the app all working well.  Building

fine


on Snow Leopard.  Running fine.  But what I find in the build
directory is not a package, it's just a folder.  It does not

contain


the .CMD file either.  I need to deploy this on Linux.  Certainly
something silly.  What am i doing wrong?

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


http://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca


This email sent to prob...@macti.ca


--

---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

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


http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net


This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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







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

Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith
Um I do have the mysql-connector-java in there.. why?  Is  
that what's causing it?


Regards,
Dave.

On Nov 5, 2009, at 3:03 AM, Chuck Hill wrote:

Have you been naughty and added jars to /Library/Java/Extensions?


On Nov 4, 2009, at 5:59 PM, David Griffith wrote:


Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -  
there was no shell script of course in the build directory.  However  
I am now getting this when i try and launch the app on linux:


158 [main] WARN NSLog  - A fatal exception occurred: org/apache/oro/ 
text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError: org/ 
apache/oro/text/regex/MalformedPatternException

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
	at com.webobjects.foundation._NSUtilities._classWithPartialName 
(_NSUtilities.java:307)
	at com.webobjects.foundation._NSUtilities.classWithName 
(_NSUtilities.java:291)
	at com.webobjects.foundation.NSBundle.initPrincipalClass 
(NSBundle.java:2553)
	at com.webobjects.foundation.NSBundle.InitPrincipalClasses 
(NSBundle.java:710)

at com.webobjects.foundation.NSBundle.(NSBundle.java:368)
	at  
com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys 
(WOProperties.java:179)
	at com.webobjects.appserver.WOApplication._initWOApp 
(WOApplication.java:5051)
	at com.webobjects.appserver.WOApplication.(WOApplication.java: 
551)

at ips.distributor.Application.(Application.java:20)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown  
Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance 
(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
	at com.webobjects.appserver.WOApplication.main(WOApplication.java: 
323)

at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)


What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with WOLips  
Install Tools -> Ant install...


As for .cmd file and Linux, the .cmd is for Windows, Linux (or any  
other UNIX) will use the same shell script as OS X.



Hi all,

Finally seem to have gotten the app all working well.  Building fine

on Snow Leopard.  Running fine.  But what I find in the build
directory is not a package, it's just a folder.  It does not contain

the .CMD file either.  I need to deploy this on Linux.  Certainly
something silly.  What am i doing wrong?

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

This email sent to prob...@macti.ca


--

---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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








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

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


Re: Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith

Hi Pascall,

Thanks for that.  I figured it out and found the relevant files -  
there was no shell script of course in the build directory.  However I  
am now getting this when i try and launch the app on linux:


158 [main] WARN NSLog  - A fatal exception occurred: org/apache/oro/ 
text/regex/MalformedPatternException
[2009-11-05 02:51:26 CET]  java.lang.NoClassDefFoundError: org/ 
apache/oro/text/regex/MalformedPatternException

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
	at com.webobjects.foundation._NSUtilities._classWithPartialName 
(_NSUtilities.java:307)
	at com.webobjects.foundation._NSUtilities.classWithName 
(_NSUtilities.java:291)
	at com.webobjects.foundation.NSBundle.initPrincipalClass 
(NSBundle.java:2553)
	at com.webobjects.foundation.NSBundle.InitPrincipalClasses 
(NSBundle.java:710)

at com.webobjects.foundation.NSBundle.(NSBundle.java:368)
	at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys 
(WOProperties.java:179)
	at com.webobjects.appserver.WOApplication._initWOApp 
(WOApplication.java:5051)
	at com.webobjects.appserver.WOApplication.(WOApplication.java: 
551)

at ips.distributor.Application.(Application.java:20)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native  
Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown  
Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown  
Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
at ips.distributor.Application.main(Application.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)


What is that?

Regards,
David.

On Nov 5, 2009, at 2:51 AM, Pascal Robert wrote:

That is normal, you need to actually build a full bundle with WOLips  
Install Tools -> Ant install...


As for .cmd file and Linux, the .cmd is for Windows, Linux (or any  
other UNIX) will use the same shell script as OS X.



Hi all,

Finally seem to have gotten the app all working well.  Building fine

on Snow Leopard.  Running fine.  But what I find in the build
directory is not a package, it's just a folder.  It does not contain

the .CMD file either.  I need to deploy this on Linux.  Certainly
something silly.  What am i doing wrong?

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

This email sent to prob...@macti.ca


--

---
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

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


Deploying App built with Eclipse - where did the .CMD go?

2009-11-04 Thread David Griffith

Hi all,

Finally seem to have gotten the app all working well.  Building fine  
on Snow Leopard.  Running fine.  But what I find in the build  
directory is not a package, it's just a folder.  It does not contain  
the .CMD file either.  I need to deploy this on Linux.  Certainly  
something silly.  What am i doing wrong?


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

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


Re: Frameworks and Subcomponents

2009-11-04 Thread David Griffith

Interesting... I'll have a look at that.

Kieran, on another note, now that I have almost got my app ported over  
to Eclipse, can I still take you up on your offer of helping me to  
profile the memory usage?  I'm going to have a look through your  
emails now and see how I go about getting the profiling tools etc.  
installed and maybe I can do it myself but if I get stuck, would you  
be able to help?  I really have to nail this problem down and I've  
been out of action for a couple of weeks since we last spoke about it.


Kind regards,
David.


On Nov 4, 2009, at 2:44 PM, Kieran Kelleher wrote:

*I think you can* (well, has worked for me in the past anyway) create  
an abstract component named "Wrapper" in the framework so that your  
reusable page has no errors. IIRC, the app *should* load the  
Application bundle component that is similarly named "Wrapper" instead  
of the framework component named "Wrapper" since app bundle is  
searched first IIRC.



On Nov 4, 2009, at 7:39 AM, David Griffith wrote:


HI all,

I have a questions about reusable components in frameworks.  I've  
never done this before so please bear with me.


I have an application, let's call it Distributor.  This has a  
component called Wrapper which is basically the page wrapper I use  
for all pages.


I then have another component which I want to make more reusable and  
which I would like to use in 3 different apps.


I have that component already put into a framework and that seems  
fine.  The problem is, the component used to contain an element  
which referenced the Wrapper (so that everything would be inside  
that).  Clearly the 'Wrapper' can and will be different for each  
application that I want to use it in.  What would be the normal  
procedure to do this?


I thought about having a component in my Distributor App that would  
hold the reference to the Page Wrapper and inside that would insert  
the shared component that I am trying to use.  Doing that I am  
getting the Page Wrapper but just a blank page where I expect the  
component.


Any help would be appreciated.

Regards,
David.

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

This email sent to kieran_li...@mac.com



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

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


Re: Frameworks and Subcomponents

2009-11-04 Thread David Griffith
Well I discovered that there was an empty folder in the Dist App Build  
directory for the component that I was getting a blank screen with.   
Not sure how that happened.  Anyway, I did a Clean and Rebuild and it  
seems to have sorted it.  So it appears to be working now, but I'd  
still like to know if this is the correct way to go about it?  It  
seems logical enough and so far seems to work.  Any comments?


Regards,
David.


On Nov 4, 2009, at 1:39 PM, David Griffith wrote:

HI all,

I have a questions about reusable components in frameworks.  I've  
never done this before so please bear with me.


I have an application, let's call it Distributor.  This has a  
component called Wrapper which is basically the page wrapper I use for  
all pages.


I then have another component which I want to make more reusable and  
which I would like to use in 3 different apps.


I have that component already put into a framework and that seems  
fine.  The problem is, the component originally contained an element  
which referenced the Wrapper (so that everything would be inside  
that).  Clearly the 'Wrapper' can and will be different for each  
application that I want to use it in.  What would be the normal  
procedure to do this?


I thought about having a component in my Distributor App that would  
hold the reference to the Page Wrapper and inside that would insert  
the shared component that I am trying to use.  Doing that I am getting  
the Page Wrapper but just a blank page where I expect the component.


Any help would be appreciated.

Regards,
David.

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

This email sent to da...@infinityspain.com

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

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


Frameworks and Subcomponents

2009-11-04 Thread David Griffith

HI all,

I have a questions about reusable components in frameworks.  I've  
never done this before so please bear with me.


I have an application, let's call it Distributor.  This has a  
component called Wrapper which is basically the page wrapper I use for  
all pages.


I then have another component which I want to make more reusable and  
which I would like to use in 3 different apps.


I have that component already put into a framework and that seems  
fine.  The problem is, the component used to contain an element which  
referenced the Wrapper (so that everything would be inside that).   
Clearly the 'Wrapper' can and will be different for each application  
that I want to use it in.  What would be the normal procedure to do  
this?


I thought about having a component in my Distributor App that would  
hold the reference to the Page Wrapper and inside that would insert  
the shared component that I am trying to use.  Doing that I am getting  
the Page Wrapper but just a blank page where I expect the component.


Any help would be appreciated.

Regards,
David.

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

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


Re: Session and WOSession

2009-10-29 Thread David Griffith
Not to worry, I figured out what was wrong.  Another error adding the  
frameworks and I had to do an Organise Imports on all the classes.  I  
really was sleepy last night :-(


David.

On Oct 29, 2009, at 8:22 AM, David Griffith wrote:

When I used XCode, it was always possible to refer to Session instead  
of WOSession and everything worked well.  WOLips is now telling me  
that it cannot cast from WOSession to Session.  I'm sure all the  
frameworks that I've added are the same as before, is this something  
I'm going to have to change in the code or is there some other reason?


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

This email sent to da...@infinityspain.com

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

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


Session and WOSession

2009-10-29 Thread David Griffith
When I used XCode, it was always possible to refer to Session instead  
of WOSession and everything worked well.  WOLips is now telling me  
that it cannot cast from WOSession to Session.  I'm sure all the  
frameworks that I've added are the same as before, is this something  
I'm going to have to change in the code or is there some other reason?


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

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


Re: Sharing a Model using Eclipse

2009-10-29 Thread David Griffith
Doh... it was too late in the night when I was doing it.  Clicked the  
wrong button when I added the framework.


David.

On Oct 29, 2009, at 3:45 AM, Chuck Hill wrote:


On Oct 28, 2009, at 6:20 PM, David Griffith wrote:

Ok, well I've made my framework with the EOModel and the java  
classes in it.  I've given it a package name ips.sharedfiles.  I've  
installed the Framework and I've added it to the project I want to  
use it in.  I presumed I would then use:


import ips.sharedfiles.*;

But it doesn't recognize that.  The framework shows up in the  
project and I can see the .jar file is there under Resources.java.   
Did I do something wrong?


Probably :-)

Are you sure you followed these steps: 
http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency

What version of WOLips are you using?


Chuck



On Oct 29, 2009, at 12:51 AM, Chuck Hill wrote:

These should answer your questions:

http://wiki.objectstyle.org/confluence/display/WOL/Create+a+WebObjects+Framework
http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency


Chuck


On Oct 28, 2009, at 4:42 PM, David Griffith wrote:


Hi all,

I am slowly getting to grips with Eclipse/WOLips but I am  
struggling to import some existing apps that I have which were  
built in XCode.  My problem is this, and it's probably very simple,  
but I'd appreciate any help:


I have 3 apps that all use the same EOModel and associated java  
classes.  Each app has it's own project and it's own folder which  
contains all the relevant parts of the app with the exception of  
the shared files (i.e. EOModel and associated java classes).  These  
are stored in a separate folder and were being referenced by each  
of the app projects in XCode.  Therefore I had one instance of  
those files which was modified while working on any of the three  
apps, the changes therefore applying to each app once it was rebuilt.


I realise that I should probably have made a framework for this  
instead but at the time I was still learning and didn't go down  
that route.


What I need to know is, using Eclipse and WOLips, I obviously want  
to have the same solution.  Do I have to create a framework to do  
this or can I do something similar with WOLips?  If I have to  
create a framework, how should I go about it?  Add the EOModel to  
the resources folder of the framework, add all the classes to a  
custom-named package within the framework and change the Class  
definitions in the EOModel to contain the full package name instead  
of just the class name?


Also, I've been looking at some of the online tutorials etc. but  
they seem to be based on older version of Eclipse and WOLips.  To  
add frameworks (like Wonder etc.) to my own WO App or Framework, do  
I just drop them on Referenced Libraries?


Thanks for any help,

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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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








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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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








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

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


Re: Sharing a Model using Eclipse

2009-10-29 Thread David Griffith

WOLips 3.5.6006, Eclipse 3.5.1, Mac OS X 10.6.

I did follow the instructions and I'm sure I put everything in the  
right place, but apparently I did something wrong.


David.

On Oct 29, 2009, at 3:48 AM, Chuck Hill wrote:

What version of WOLips are you using?  Maybe it predates some of this.

The other option is that you have things in the wrong place in your  
framework project.



On Oct 28, 2009, at 5:00 PM, David Griffith wrote:


Hi Chuck,

It was that very tutorial which I was following before I typed the  
email, thanks.  I just wasn't too sure how to handle the model in  
the same situation.  I guess I'll have a go as I was intending to  
below and see how it works out :-)


David, thanks for your comments too, I'll have a look and see if it  
will be easier to modify the classes myself or let WOLips recreate  
them and then add in the custom code.


Cheers,
David.

p.s. At least now I know how to add the frameworks properly... It's  
a little different from what I'm used to with XCode but so far  
Eclipse looks fantastic.


On Oct 29, 2009, at 12:51 AM, Chuck Hill wrote:

These should answer your questions:

http://wiki.objectstyle.org/confluence/display/WOL/Create+a+WebObjects+Framework
http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency


Chuck


On Oct 28, 2009, at 4:42 PM, David Griffith wrote:


Hi all,

I am slowly getting to grips with Eclipse/WOLips but I am  
struggling to import some existing apps that I have which were  
built in XCode.  My problem is this, and it's probably very simple,  
but I'd appreciate any help:


I have 3 apps that all use the same EOModel and associated java  
classes.  Each app has it's own project and it's own folder which  
contains all the relevant parts of the app with the exception of  
the shared files (i.e. EOModel and associated java classes).  These  
are stored in a separate folder and were being referenced by each  
of the app projects in XCode.  Therefore I had one instance of  
those files which was modified while working on any of the three  
apps, the changes therefore applying to each app once it was rebuilt.


I realise that I should probably have made a framework for this  
instead but at the time I was still learning and didn't go down  
that route.


What I need to know is, using Eclipse and WOLips, I obviously want  
to have the same solution.  Do I have to create a framework to do  
this or can I do something similar with WOLips?  If I have to  
create a framework, how should I go about it?  Add the EOModel to  
the resources folder of the framework, add all the classes to a  
custom-named package within the framework and change the Class  
definitions in the EOModel to contain the full package name instead  
of just the class name?


Also, I've been looking at some of the online tutorials etc. but  
they seem to be based on older version of Eclipse and WOLips.  To  
add frameworks (like Wonder etc.) to my own WO App or Framework, do  
I just drop them on Referenced Libraries?


Thanks for any help,

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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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










--
Chuck Hill Senior Consultant / VP Development

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

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








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

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


Re: Sharing a Model using Eclipse

2009-10-28 Thread David Griffith
Sorry, I didn't explain that clearly.  It's the same model and  
associated classes, stored in one location, being referenced by the 3  
apps.


On Oct 29, 2009, at 12:59 AM, Chuck Hill wrote:

On Oct 28, 2009, at 4:55 PM, David LeBer wrote:
...the same EOModel and associated java classes ... are stored in a  
separate folder and were being referenced by each of the app  
projects in XCode.


I don't have an answer as to whether you can reference a separate  
model in multiple apps, because I've never tried, and the thought  
gives me the willies.


+10,000

I have to go wash my mind out now.


--
Chuck Hill Senior Consultant / VP Development

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

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







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

This email sent to da...@infinityspain.com

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

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


Re: Sharing a Model using Eclipse

2009-10-28 Thread David Griffith

Hi Chuck,

It was that very tutorial which I was following before I typed the  
email, thanks.  I just wasn't too sure how to handle the model in the  
same situation.  I guess I'll have a go as I was intending to below  
and see how it works out :-)


David, thanks for your comments too, I'll have a look and see if it  
will be easier to modify the classes myself or let WOLips recreate  
them and then add in the custom code.


Cheers,
David.

p.s. At least now I know how to add the frameworks properly... It's a  
little different from what I'm used to with XCode but so far Eclipse  
looks fantastic.


On Oct 29, 2009, at 12:51 AM, Chuck Hill wrote:

These should answer your questions:

http://wiki.objectstyle.org/confluence/display/WOL/Create+a+WebObjects+Framework
http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency


Chuck


On Oct 28, 2009, at 4:42 PM, David Griffith wrote:


Hi all,

I am slowly getting to grips with Eclipse/WOLips but I am struggling  
to import some existing apps that I have which were built in XCode.   
My problem is this, and it's probably very simple, but I'd  
appreciate any help:


I have 3 apps that all use the same EOModel and associated java  
classes.  Each app has it's own project and it's own folder which  
contains all the relevant parts of the app with the exception of the  
shared files (i.e. EOModel and associated java classes).  These are  
stored in a separate folder and were being referenced by each of the  
app projects in XCode.  Therefore I had one instance of those files  
which was modified while working on any of the three apps, the  
changes therefore applying to each app once it was rebuilt.


I realise that I should probably have made a framework for this  
instead but at the time I was still learning and didn't go down that  
route.


What I need to know is, using Eclipse and WOLips, I obviously want  
to have the same solution.  Do I have to create a framework to do  
this or can I do something similar with WOLips?  If I have to create  
a framework, how should I go about it?  Add the EOModel to the  
resources folder of the framework, add all the classes to a custom- 
named package within the framework and change the Class definitions  
in the EOModel to contain the full package name instead of just the  
class name?


Also, I've been looking at some of the online tutorials etc. but  
they seem to be based on older version of Eclipse and WOLips.  To  
add frameworks (like Wonder etc.) to my own WO App or Framework, do  
I just drop them on Referenced Libraries?


Thanks for any help,

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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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








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

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


Re: Sharing a Model using Eclipse

2009-10-28 Thread David Griffith
Ok, well I've made my framework with the EOModel and the java classes  
in it.  I've given it a package name ips.sharedfiles.  I've installed  
the Framework and I've added it to the project I want to use it in.  I  
presumed I would then use:


import ips.sharedfiles.*;

But it doesn't recognize that.  The framework shows up in the project  
and I can see the .jar file is there under Resources.java.  Did I do  
something wrong?


Regards,
Dave.

On Oct 29, 2009, at 12:51 AM, Chuck Hill wrote:

These should answer your questions:

http://wiki.objectstyle.org/confluence/display/WOL/Create+a+WebObjects+Framework
http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework+Dependency


Chuck


On Oct 28, 2009, at 4:42 PM, David Griffith wrote:


Hi all,

I am slowly getting to grips with Eclipse/WOLips but I am struggling  
to import some existing apps that I have which were built in XCode.   
My problem is this, and it's probably very simple, but I'd  
appreciate any help:


I have 3 apps that all use the same EOModel and associated java  
classes.  Each app has it's own project and it's own folder which  
contains all the relevant parts of the app with the exception of the  
shared files (i.e. EOModel and associated java classes).  These are  
stored in a separate folder and were being referenced by each of the  
app projects in XCode.  Therefore I had one instance of those files  
which was modified while working on any of the three apps, the  
changes therefore applying to each app once it was rebuilt.


I realise that I should probably have made a framework for this  
instead but at the time I was still learning and didn't go down that  
route.


What I need to know is, using Eclipse and WOLips, I obviously want  
to have the same solution.  Do I have to create a framework to do  
this or can I do something similar with WOLips?  If I have to create  
a framework, how should I go about it?  Add the EOModel to the  
resources folder of the framework, add all the classes to a custom- 
named package within the framework and change the Class definitions  
in the EOModel to contain the full package name instead of just the  
class name?


Also, I've been looking at some of the online tutorials etc. but  
they seem to be based on older version of Eclipse and WOLips.  To  
add frameworks (like Wonder etc.) to my own WO App or Framework, do  
I just drop them on Referenced Libraries?


Thanks for any help,

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

This email sent to ch...@global-village.net


--
Chuck Hill Senior Consultant / VP Development

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

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








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

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


Sharing a Model using Eclipse

2009-10-28 Thread David Griffith

Hi all,

I am slowly getting to grips with Eclipse/WOLips but I am struggling  
to import some existing apps that I have which were built in XCode.   
My problem is this, and it's probably very simple, but I'd appreciate  
any help:


I have 3 apps that all use the same EOModel and associated java  
classes.  Each app has it's own project and it's own folder which  
contains all the relevant parts of the app with the exception of the  
shared files (i.e. EOModel and associated java classes).  These are  
stored in a separate folder and were being referenced by each of the  
app projects in XCode.  Therefore I had one instance of those files  
which was modified while working on any of the three apps, the changes  
therefore applying to each app once it was rebuilt.


I realise that I should probably have made a framework for this  
instead but at the time I was still learning and didn't go down that  
route.


What I need to know is, using Eclipse and WOLips, I obviously want to  
have the same solution.  Do I have to create a framework to do this or  
can I do something similar with WOLips?  If I have to create a  
framework, how should I go about it?  Add the EOModel to the resources  
folder of the framework, add all the classes to a custom-named package  
within the framework and change the Class definitions in the EOModel  
to contain the full package name instead of just the class name?


Also, I've been looking at some of the online tutorials etc. but they  
seem to be based on older version of Eclipse and WOLips.  To add  
frameworks (like Wonder etc.) to my own WO App or Framework, do I just  
drop them on Referenced Libraries?


Thanks for any help,

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

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


WebObjects Development on 10.6 with Eclipse and WOLips

2009-10-28 Thread David Griffith

HI all,

I am going to switch to using Eclipse and I want to start developing  
on 10.6 Snow Leopard.


I'm sure this has been discussed but I can't find where to search the  
archives easily.


1)  Can someone tell me where there is a good search so I don't  
duplicate questions.
2)  Can anyone tell me if it's possible to develop and test on 10.6  
with Eclipse and deploy to WO 5.2 Linux.  I've been developing on  
Tiger up to now.


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

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


Re: Connector/J 5.1, Euro Symbol as '?'

2009-09-24 Thread David Griffith

Just another note which might give more info:

On the euro symbol issue, there is only one place where the euro  
symbol is coming from the database.  The rest of the time it's  
actually written in the HTML directly.  It has been displaying  
perfectly up to yesterday when I decided to change the adaptor to the  
new version.  Now it displays as '?'.  Even when I changed back to the  
old adaptor it did not seem to make any difference.  Anyone any idea  
why that could be?


Regards,
David.

On 24 Sep 2009, at 13:05, David Griffith wrote:


Thanks Kieran,

I might have to take you up on that.  I've been thinking that it  
must be something to do with too many records been read in but I  
can't see where that could be happening.


I'll try adding the encoding string to the EOModel connection and  
see if that helps.  I've just tried changing back to the old adaptor  
but doesn't seem to have helped either.


Regards,
David.

On 24 Sep 2009, at 12:46, Kieran Kelleher wrote:


Hi again David,

Regarding App Oout of memory:

App out of memory commonly is caused in WO apps by reading in too  
many EOs (display group or possibly a huge faulted relationship) or  
too many concurrent sessions and needs profiling or at least  
strategic logging to see what is happening in production. If the  
problem can be simulated in development environment, it will be  
easier to resolve. Wonder has some features that allow free memory  
tracking, memory reserve, temporary refusing sessions in low-memory  
conditions and forced garbage collection.


To give you breathing room to troubleshoot you should have maxed  
out memory per instance. I think 1536 is the max for 32-bit system,  
so WOMonitor args should be sth like this:

-Xms1024m -Xmx1536m

I am very tight on time myself, but if no one offers to get their  
hands on to track this down in the next 24 hours, I might be able  
to help tomorrow (Friday)  let me know if that is the case.


Regards, Kieran

On Sep 24, 2009, at 4:36 AM, David Griffith wrote:


Hi all,

I've been having a real problem over the past 12 months with my  
WebObjects and mySQL installation.  It has been getting gradually  
worse to the point now where the apps crash every 10 or 15 mins.   
The are crashing out with Java.OutOfHeapSpace errors.  We've tried  
everything to increase the heap space but has made no difference.   
The fact that it is has gradually gotten worse over time indicates  
to me that as the database is growing the problem is getting worse.


I tried last night to update the Connecter/J adaptor to version  
5.1 as we were using an older one and I thought that might help.   
It hasn't in fact, and what it has done is make all the € symbols  
appear as '?'.  I know this has to do with the encoding and I want  
it all to be UTF8 but I can't seem to work out how the hell to get  
them to display properly.  They all displayed perfectly before I  
changed the adaptor.


On the other hand, I really need to find a solution to this  
problem where the apps are crashing and I am very tight for time.   
I am prepared to pay someone to track down this problem for me.   
Any takers?


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

This email sent to kieran_li...@mac.com




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

This email sent to da...@infinityspain.com


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

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


Re: Connector/J 5.1, Euro Symbol as '?'

2009-09-24 Thread David Griffith

Thanks Kieran,

I might have to take you up on that.  I've been thinking that it must  
be something to do with too many records been read in but I can't see  
where that could be happening.


I'll try adding the encoding string to the EOModel connection and see  
if that helps.  I've just tried changing back to the old adaptor but  
doesn't seem to have helped either.


Regards,
David.

On 24 Sep 2009, at 12:46, Kieran Kelleher wrote:


Hi again David,

Regarding App Oout of memory:

App out of memory commonly is caused in WO apps by reading in too  
many EOs (display group or possibly a huge faulted relationship) or  
too many concurrent sessions and needs profiling or at least  
strategic logging to see what is happening in production. If the  
problem can be simulated in development environment, it will be  
easier to resolve. Wonder has some features that allow free memory  
tracking, memory reserve, temporary refusing sessions in low-memory  
conditions and forced garbage collection.


To give you breathing room to troubleshoot you should have maxed out  
memory per instance. I think 1536 is the max for 32-bit system, so  
WOMonitor args should be sth like this:

-Xms1024m -Xmx1536m

I am very tight on time myself, but if no one offers to get their  
hands on to track this down in the next 24 hours, I might be able to  
help tomorrow (Friday)  let me know if that is the case.


Regards, Kieran

On Sep 24, 2009, at 4:36 AM, David Griffith wrote:


Hi all,

I've been having a real problem over the past 12 months with my  
WebObjects and mySQL installation.  It has been getting gradually  
worse to the point now where the apps crash every 10 or 15 mins.   
The are crashing out with Java.OutOfHeapSpace errors.  We've tried  
everything to increase the heap space but has made no difference.   
The fact that it is has gradually gotten worse over time indicates  
to me that as the database is growing the problem is getting worse.


I tried last night to update the Connecter/J adaptor to version 5.1  
as we were using an older one and I thought that might help.  It  
hasn't in fact, and what it has done is make all the € symbols  
appear as '?'.  I know this has to do with the encoding and I want  
it all to be UTF8 but I can't seem to work out how the hell to get  
them to display properly.  They all displayed perfectly before I  
changed the adaptor.


On the other hand, I really need to find a solution to this problem  
where the apps are crashing and I am very tight for time.  I am  
prepared to pay someone to track down this problem for me.  Any  
takers?


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

This email sent to kieran_li...@mac.com




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

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


Connector/J 5.1, Euro Symbol as '?'

2009-09-24 Thread David Griffith

Hi all,

I've been having a real problem over the past 12 months with my  
WebObjects and mySQL installation.  It has been getting gradually  
worse to the point now where the apps crash every 10 or 15 mins.  The  
are crashing out with Java.OutOfHeapSpace errors.  We've tried  
everything to increase the heap space but has made no difference.  The  
fact that it is has gradually gotten worse over time indicates to me  
that as the database is growing the problem is getting worse.


I tried last night to update the Connecter/J adaptor to version 5.1 as  
we were using an older one and I thought that might help.  It hasn't  
in fact, and what it has done is make all the € symbols appear as  
'?'.  I know this has to do with the encoding and I want it all to be  
UTF8 but I can't seem to work out how the hell to get them to display  
properly.  They all displayed perfectly before I changed the adaptor.


On the other hand, I really need to find a solution to this problem  
where the apps are crashing and I am very tight for time.  I am  
prepared to pay someone to track down this problem for me.  Any takers?


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

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


Re: Out of memory

2008-05-07 Thread David Griffith

Hi all,

Does anyone know if there is a fix for this, other than moving from  
mySQL to another DB?  I am experiencing the same problems.


Regards,
David.

On 21 Apr 2008, at 19:04, Simon McLean wrote:

Yes, I've seen it with MySQL. We still get it now, but very very  
rarely.


Simon

On 21 Apr 2008, at 02:35, Lachlan Deck wrote:


Hi there,

has anyone seen this before? Is it just coincidental? Usually when  
I see OutOfMemoryErrors it's due to some infinite loop or some bug...


WO5.3.3, Mysql jconnector 5.0.6

com.webobjects.foundation.NSForwardException for
java.lang.OutOfMemoryError: Java heap space
at java.lang.StringCoding.trim(StringCoding.java:74)
at java.lang.StringCoding.access$100(StringCoding.java:37)
at java.lang.StringCoding$CharsetSD.decode(StringCoding.java:201)
at java.lang.StringCoding.decode(StringCoding.java:228)
at java.lang.String.(String.java:405)
at java.lang.String.(String.java:433)
at com.mysql.jdbc.ResultSet.getStringInternal(ResultSet.java:5674)
at com.mysql.jdbc.ResultSet.getString(ResultSet.java:5544)
	at  
com.webobjects.jdbcadaptor.JDBCColumn._fetchText(JDBCColumn.java:205)
	at  
com 
.webobjects 
.jdbcadaptor.JDBCColumn._fetchCorrectObject(JDBCColumn.java:217)
	at  
com.webobjects.jdbcadaptor.JDBCColumn._fetchValue(JDBCColumn.java: 
319)
	at  
com.webobjects.jdbcadaptor.JDBCColumn.fetchValue(JDBCColumn.java:307)
	at  
com.webobjects.jdbcadaptor.JDBCChannel.fetchRow(JDBCChannel.java: 
1406)
	at  
com 
.webobjects 
.eoaccess.EODatabaseChannel._fetchObject(EODatabaseChannel.java:302)
	at  
com 
.webobjects 
.eoaccess 
.EODatabaseContext 
._objectsWithFetchSpecificationEditingContext 
(EODatabaseContext.java:3221)


with regards,
--

Lachlan Deck



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

2008-04-02 Thread David Griffith
Thanks for that, obviously frameworks are the way to go, I haven't  
really needed to make my own up to now but clearly I should have :-)   
Back to the bookshelf then :-)


Regards,
David.

On 27 Mar 2008, at 18:52, Chuck Hill wrote:



On Mar 27, 2008, at 1:57 AM, David Griffith wrote:


Hi all,

I have two apps that have two distinct EOModels.  I now need to  
link these two apps so that they have access to each other's data,  
so I was going to add both models to each app and recompile.


Frameworks.  You want frameworks.  Frameworks are WebObjects (and,  
well, OS X's) way of sharing things between applications.  Put the  
models and the related code in a framework and use the framework in  
the application.  I _never_ _ever_ put a model in an application.



However, it transpires that both models have a couple of entity  
names in common.


Are they the same entity (same database, same table)?  If so, create  
a framework and model to hold the common entities.  Use this  
framework in the frameworks holding the models with the other  
entities.  Include all three frameworks in your application.


If they are not the same entity but just happen to have the same  
name, then you need to rename one of them.



I can understand why this would cause a problem, what I need to  
know is if there is a way around this without having to completely  
rename the entities in one of the models.


The other strange thing is that it tells me there is a name  
conflict between the EOPrototypes entity in each model, but I don't  
think there is any other way to name this entity, correct?



You probably guessed this already, but "framework".  The prototypes  
go into a model by themselves and this framework is included in  
(referenced in) the frameworks that have models and in the  
application.


Thus
Application
-> Prototypes framework
-> Common entities framework
-> Other EO framework 1
-> Other EO framework 2

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]


Multiple EOModels

2008-03-27 Thread David Griffith

Hi all,

I have two apps that have two distinct EOModels.  I now need to link  
these two apps so that they have access to each other's data, so I was  
going to add both models to each app and recompile.


However, it transpires that both models have a couple of entity names  
in common.  I can understand why this would cause a problem, what I  
need to know is if there is a way around this without having to  
completely rename the entities in one of the models.


The other strange thing is that it tells me there is a name conflict  
between the EOPrototypes entity in each model, but I don't think there  
is any other way to name this entity, correct?


Kind regards,
David.

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

This email sent to [EMAIL PROTECTED]


mySQL 5

2008-02-14 Thread David Griffith

Hi All,

I was wondering if anyone that is using mySQL has upgraded from mySQL  
4 to mySQL 5?  If so, have you noticed any bugs or pitfalls?  Our  
hosting service is going to upgrade us soon and I do remember that  
after the last upgrade we had some major problems due to some changes  
to the data types in mySQL.  (i.e. I remember it was something to do  
with the new TEXT data type.


Any pointers or notes would be much appreciated.

Kind regards,
David Griffith.

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


SQL Error

2007-04-02 Thread David Griffith

Hi all,

Things have been working well for over a year and now suddenly I have  
started to get this error:


com.webobjects.eoaccess.EOGeneralAdaptorException: EvaluateExpression  
failed: "UPDATE WEB_HOSTING SET WH_NEXT_RENEWAL_DATE = ?, WH_SIGN_UP_DATE = ?  
WHERE (WH_ID = ? AND WH_CUSTOMER_ID = ? AND WH_HOSTING_PLAN_ID = ?  
AND WH_SIGN_UP_DATE is NULL AND WH_NEXT_RENEWAL_DATE is NULL AND  
WH_HOSTING_ACTIVE = ? AND WH_DOMAIN_NAME = ? AND WH_IVA_RATE_ID = ?)"  
withBindings: 1:2008-03-06 00:00:00(whNextRenewalDate), 2:2005-03-07  
00:00:00(whSignUpDate), 3:51(whID), 4:3098(whCustomerID), 5:1 
(whHostingPlanID), 6:true(whHostingActive), 7:"servicios- 
mirador.com"(whDomainName), 8:2(whIVARateID)>: Next exception:SQL  
State:08S01 -- error code: 0 -- msg: Communication link failure:  
java.io.EOFException, underlying cause: null ** BEGIN NESTED  
EXCEPTION ** java.io.EOFException STACKTRACE: java.io.EOFException at  
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1395) at  
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1539) at  
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1930) at  
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1168) at  
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1279) at  
com.mysql.jdbc.Connection.execSQL(Connection.java:2281) at  
com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java: 
1825) at com.mysql.jdbc.PreparedStatement.executeUpdate 
(PreparedStatement.java:1667) at  
com.webobjects.jdbcadaptor.JDBCChannel._bindInputVariablesWithBindingsAn 
dExecute(JDBCChannel.java:229) at  
com.webobjects.jdbcadaptor.JDBCChannel._evaluateExpression 
(JDBCChannel.java:303) at  
com.webobjects.jdbcadaptor.JDBCChannel.updateValuesInRowsDescribedByQual 
ifier(JDBCChannel.java:143) at  
com.webobjects.eoaccess.EOAdaptorChannel.updateValuesInRowDescribedByQua 
lifier(EOAdaptorChannel.java:637) at  
com.webobjects.eoaccess.EOAdaptorChannel.performAdaptorOperation 
(EOAdaptorChannel.java:1403) at  
com.webobjects.eoaccess.EOAdaptorChannel.performAdaptorOperations 
(EOAdaptorChannel.java:1481) at  
com.webobjects.eoaccess.EODatabaseContext._performChangesWithAdaptorOps( 
EODatabaseContext.java:6270) at  
com.webobjects.eoaccess.EODatabaseContext.performChanges 
(EODatabaseContext.java:6376) at  
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingCo 
ntext(EOObjectStoreCoordinator.java:415) at  
com.webobjects.eocontrol.EOEditingContext.saveChanges 
(EOEditingContext.java:3187) at er.extensions.ERXEC.saveChanges 
(ERXEC.java:467) at UpdateCustomerHosting.saveChanges 
(UpdateCustomerHosting.java:108) at  
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at  
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at  
java.lang.reflect.Method.invoke(Unknown Source) at  
KeyValueCodingProtectedAccessor.methodValue 
(KeyValueCodingProtectedAccessor.java:54) at  
com.webobjects.foundation.NSKeyValueCoding 
$_MethodBinding.valueInObject(NSKeyValueCoding.java:1160) at  
com.webobjects.foundation.NSKeyValueCoding 
$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1268) at  
com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java: 
1539) at com.webobjects.foundation.NSKeyValueCoding 
$Utility.valueForKey(NSKeyValueCoding.java:498) at  
com.webobjects.foundation.NSKeyValueCodingAdditions 
$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java: 
212) at com.webobjects.appserver.WOComponent.valueForKeyPath 
(WOComponent.java:1600) at  
com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent 
(WOKeyValueAssociation.java:46) at  
com.webobjects.appserver._private.WOSubmitButton.invokeAction 
(WOSubmitButton.java:59) at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
(WODynamicGroup.java:101) at  
com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110) at  
com.webobjects.appserver._private.WOForm.invokeAction(WOForm.java:82)  
at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
(WODynamicGroup.java:101) at  
com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110) at  
com.webobjects.appserver._private.WOConditional.invokeAction 
(WOConditional.java:55) at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
(WODynamicGroup.java:101) at  
com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110) at  
com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 
945) at  
com.webobjects.appserver._private.WOComponentReference.invokeAction 
(WOComponentReference.java:104) at  
com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction 
(WODynamicGroup.java:101) at  
com.webobjects.appserver._private.WODynamicGroup.invokeAction 
(WODynamicGroup.java:110) at  
com.webobjects.appserver._private.WOConditional.invokeAction 
(WOConditional.java:55)

WO On Linux

2006-10-10 Thread David Griffith

Hi all,

I was wondering if anyone else is using WO on Linux?  It works great  
most of the time, but sometimes it crashes the server which finally  
reboots.  The biggest problem is that when the server reboots, WO  
starts to load each of the applications and something happens which  
stops it after it loads the 2nd or 3rd one.  All the other apps just  
keep trying to start and fail.  I have to force restart the  
WOServices to fix it.  Anyone seen anything like this?


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

This email sent to archive@mail-archive.com


Re: Error updating row in database

2006-09-13 Thread David Griffith
Ok great, thanks for that.  What you say makes sense.  And yes, I am using Timestamp data types so that is probably where the problem is arising.Thanks again to all,Regards,David.On 12 Sep 2006, at 19:12, Robert Walker wrote:Dave,Are you using the TIMESTAMP data type for any of your date/time fields.  If you do this in MySQL this is a problem.  If you have mapped any date/time fields as an Entity attribute then use DATETIME an not TIMESTAMP.  If you really want the behavior of TIMESTAMP over DATETIME then you must remove this attribute for locking in the model.  It's good practice to NOT do locking on DATETIME also.On Sep 12, 2006, at 12:32 PM, David Griffith wrote:Hi Paul,Yes there is indeed a date field with locking switched on.  Not deliberately, but it was like that by default and I didn't change it.  I don't see how it affect referential integrity but I'll give it a go :-)Thanks,Dave.On 12 Sep 2006, at 14:51, Paul Lynch wrote: On 12 Sep 2006, at 13:00, David Griffith wrote: ec.saveChanges();  >-- saves the record to the database, assigns the primary keymyEOObject.setAccountNumber(myEOObject.pkID().toString());ec.saveChanges();Obviously I am accessing the primary key via an accessor method of my custom class using the EOUtilities framework.Anyway, the problem is that occasionally (maybe 10% of the time) the row fails to update and generates an exception stating 'failed to update row in database'.  Everything is saved fine, the primary key is assigned, but after the second ec.saveChanges() is where it fails.Does anyone have any idea why that might be?  Is it perhaps because it is trying to update the database too quickly after a previous update? Guessing: does your eo have another field with the locking property set?  In particular, a time field that could have resolution problems?  If so, make any date fields non-locking.The general problem is that this breaks relational integrity (inventing jargon here), but it sounds like an ideal candidate for a trigger - does MySQL support triggers now? :-)Paul ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/robertwalker1%40mac.comThis email sent to [EMAIL PROTECTED]  --Robert Walker[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/david%40infinityspain.comThis 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 archive@mail-archive.com

Re: Error updating row in database

2006-09-12 Thread David Griffith

Hi Paul,

Yes there is indeed a date field with locking switched on.  Not  
deliberately, but it was like that by default and I didn't change  
it.  I don't see how it affect referential integrity but I'll give it  
a go :-)


Thanks,
Dave.

On 12 Sep 2006, at 14:51, Paul Lynch wrote:



On 12 Sep 2006, at 13:00, David Griffith wrote:

ec.saveChanges();  >-- saves the record to the database, assigns  
the primary key

myEOObject.setAccountNumber(myEOObject.pkID().toString());
ec.saveChanges();

Obviously I am accessing the primary key via an accessor method of  
my custom class using the EOUtilities framework.


Anyway, the problem is that occasionally (maybe 10% of the time)  
the row fails to update and generates an exception stating 'failed  
to update row in database'.  Everything is saved fine, the primary  
key is assigned, but after the second ec.saveChanges() is where it  
fails.


Does anyone have any idea why that might be?  Is it perhaps  
because it is trying to update the database too quickly after a  
previous update?


Guessing: does your eo have another field with the locking property  
set?  In particular, a time field that could have resolution  
problems?  If so, make any date fields non-locking.


The general problem is that this breaks relational integrity  
(inventing jargon here), but it sounds like an ideal candidate for  
a trigger - does MySQL support triggers now? :-)


Paul





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


Error updating row in database

2006-09-12 Thread David Griffith

Hi all,

Using WO 5.3 with mySQL, I have an entity that has a primary key  
(int) and when I save a record in the database, another attribute (of  
type String) gets assigned the value of the primary key also.


To do this, I have to first save the record in the database in order  
for the primary key to be generated.  Then I assign the primary key  
value to the other attribute and resave the record.


Something like this:


ec.saveChanges();  >-- saves the record to the database, assigns the  
primary key

myEOObject.setAccountNumber(myEOObject.pkID().toString());
ec.saveChanges();

Obviously I am accessing the primary key via an accessor method of my  
custom class using the EOUtilities framework.


Anyway, the problem is that occasionally (maybe 10% of the time) the  
row fails to update and generates an exception stating 'failed to  
update row in database'.  Everything is saved fine, the primary key  
is assigned, but after the second ec.saveChanges() is where it fails.


Does anyone have any idea why that might be?  Is it perhaps because  
it is trying to update the database too quickly after a previous update?


Kind regards,
David.

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

This email sent to archive@mail-archive.com


Re: Snapshot error

2006-08-03 Thread David Griffith
I've realised that I'm using the ChangeNotification Framework and I  
think I did not rebuild one of the applications (that didn't seem  
relevant, but obviously is).  I'm sure that's the problem.  That's to  
all for the replies.


Regards,
David.

On 2 Aug 2006, at 19:07, Chuck Hill wrote:

When this happens the first thing I do is swear.  :-) Then I quit  
Xcode, rm -r build/ in the project(s).   Open Xcode and the project  
and run it again.


Chuck


On Aug 2, 2006, at 9:58 AM, David Griffith wrote:

_globalID = _EOIntegralKeyGlobalID[Product (java.lang.Integer) 
246]; _databaseOperator = "EODatabaseUpdateOperator"; } does not  
contain value for attribute named prodMainLocation with snapshot  
key: prodMainLocation


prodMainLocation is an attribute of one of the entities in the  
EOModel.  I added it yesterday, added the column to the database  
and now I am randomly getting this error when trying to update the  
product table.


Does anyone know what it means?

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


This email sent to [EMAIL PROTECTED]


--
Coming sometime... - an introduction to web applications using  
WebObjects and Xcode http://www.global-village.net/wointro


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 archive@mail-archive.com


Snapshot error

2006-08-02 Thread David Griffith
_globalID = _EOIntegralKeyGlobalID[Product (java.lang.Integer)246]; _databaseOperator = "EODatabaseUpdateOperator"; } does not contain value for attribute named prodMainLocation with snapshot key: prodMainLocationprodMainLocation is an attribute of one of the entities in the EOModel.  I added it yesterday, added the column to the database and now I am randomly getting this error when trying to update the product table.Does anyone know what it means?Kind regards,David. ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to archive@mail-archive.com

Re: WOHTTPConnection & WORequest

2006-07-28 Thread David Griffith

Interesting, thanks!

Dave.
On 28 Jul 2006, at 14:50, Alex Cone wrote:

just do a GET style form submit:  formAction?arg1=foo&arg2=bar -  
This is like submitting a form whose action is formAction, with two  
fields named arg1 and arg2 with values in those fields of foo and bar.


don't forget to urlEncode if you have spaces or special characters

for more complex stuff, use /Developer/Examples/TCPMonitor.  You  
can capture the content of the form submission from a web browser  
to see exactly how it is composed...


abc

On Jul 28, 2006, at 4:09 AM, David Griffith wrote:

Thanks, I had actually figured out that much, the problem is how  
to specify the form values in the request that is sent...  The  
'content' part is the bit I can't figure out.


Regards,
David.

On 27 Jul 2006, at 20:00, Alex Cone wrote:



On Jul 27, 2006, at 12:44 PM, webobjects-dev- 
[EMAIL PROTECTED] wrote:



Subject: Re: WOHTTPConnection & WORequest
To: "Jerry W. Walker" <[EMAIL PROTECTED]>

Hi Jerry,

Well, I have no control over the other website.  What I need to  
do is

this:

In my own WO App, I have a page which displays some information  
from

the database about a domain name and who it is associated with.



Before you guys get too carried away...

sounds like what you want to do is submit a "GET" style form  
request like:


http://www.someDomain.com/doSomething?arg1=foo&arg2=bar

trivial example off the top of my head...

public String sendUrlToHostOnPort(String urlString, String host,  
int port) {

NSData content = null;

WOHTTPConnection connection = new WOHTTPConnection(host,  
port));
NSDictionary headers = new NSDictionary(new Object[]  
{"text/html", "text/html"},
new Object[]  
{"Accept", "Content-Type"});
WORequest request = new WORequest("GET", urlString,   
"HTTP/1.0", headers, content, null);


connection.sendRequest(request);
WOResponse response = connection.readResponse();

if (response == null) {
System.out.println("WOResponse object is null");
return null;
}

NSData contentData = = response.content();
if (contentData == null) {
System.out.println("No content in the WOResponse  
object");

return null;
}

   return new String(contentData.bytes(0, contentData.length 
()));

}


HTH!

abc

__alex cone
ceo  c o d e f a b  inc
[EMAIL PROTECTED]
212.465.8484 x101
http://www.codefab.com

If you are not living on the edge, you are taking up too much space.



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


This email sent to [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 archive@mail-archive.com


Re: WOHTTPConnection & WORequest

2006-07-28 Thread David Griffith
Great, sounds like the same idea as Robert... I'll look into it and  
hopefully have success!  Thanks for all the helpful replies..


Regards,
David.

On 27 Jul 2006, at 21:25, Kieran Kelleher wrote:


David,

I use Apache's HttpClient class for this. Here is an old article I  
wrote on it:
http://homepage.mac.com/kelleherk/iblog/C149402102/E773353034/ 
index.html


HTH,

Kieran


On Jul 27, 2006, at 7:36 AM, David Griffith wrote:


Hi all,

I want to allow a user to enter details into a HTML Form (in a  
WOComponent) and when they click the Submit button, I would like  
to open a connection to a standard HTTP server with a specific URL  
and pass it the form values that the user entered.  Can someone  
tell me an easy way to do this?  I can create the WOHTTPConnection  
but I think I need a WORequest to send to it and I can't figure  
out how to get the form values into that request.  It's probably  
easy I'm sure :-)


Thanks for any help,

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

This email sent to archive@mail-archive.com


Re: WOHTTPConnection & WORequest

2006-07-28 Thread David Griffith
Thanks, I had actually figured out that much, the problem is how to  
specify the form values in the request that is sent...  The 'content'  
part is the bit I can't figure out.


Regards,
David.

On 27 Jul 2006, at 20:00, Alex Cone wrote:



On Jul 27, 2006, at 12:44 PM, webobjects-dev- 
[EMAIL PROTECTED] wrote:



Subject: Re: WOHTTPConnection & WORequest
To: "Jerry W. Walker" <[EMAIL PROTECTED]>

Hi Jerry,

Well, I have no control over the other website.  What I need to do is
this:

In my own WO App, I have a page which displays some information from
the database about a domain name and who it is associated with.



Before you guys get too carried away...

sounds like what you want to do is submit a "GET" style form  
request like:


http://www.someDomain.com/doSomething?arg1=foo&arg2=bar

trivial example off the top of my head...

public String sendUrlToHostOnPort(String urlString, String host,  
int port) {

NSData content = null;

WOHTTPConnection connection = new WOHTTPConnection(host,  
port));
NSDictionary headers = new NSDictionary(new Object[] {"text/ 
html", "text/html"},
new Object[]  
{"Accept", "Content-Type"});
WORequest request = new WORequest("GET", urlString,  "HTTP/ 
1.0", headers, content, null);


connection.sendRequest(request);
WOResponse response = connection.readResponse();

if (response == null) {
System.out.println("WOResponse object is null");
return null;
}

NSData contentData = = response.content();
if (contentData == null) {
System.out.println("No content in the WOResponse object");
return null;
}

   return new String(contentData.bytes(0, contentData.length()));
}


HTH!

abc

__alex cone
ceo  c o d e f a b  inc
[EMAIL PROTECTED]
212.465.8484 x101
http://www.codefab.com

If you are not living on the edge, you are taking up too much space.



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


This email sent to [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 archive@mail-archive.com


  1   2   >