Re: Mac OS X 10.7 (Lion), Apache2.2, WebObjects Problem

2011-09-03 Thread Sergio Sánchez Maffet
Hi,
Still no luck with this issue.
ISHIMOTO : I have tried your temporaryfix.conf, but does not work. Could you 
tell me where you did find that mentioned post? I'm using a https only 
configuration on the web server. Only a 443 site is configured. 
(_any_80__shadow.conf is active)
Pascal: This is not a ScriptAlias problem, using:
ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$) 
"/Library/WebServer/CGI-Executables/$1"

Any further help is highly appreciated,

Thanks
-
Sergio

Am 02.09.2011 um 20:51 schrieb ISHIMOTO Ken:

> Hi,
> 
> There was an Article on Apples Site, there is an BUG in Lion Server for 
> VirtualHosting.
> 
> Create a File : 「/etc/apache2/sites/temporaryfix.conf」
> 
> and add two lines below. That's it.
> 
> NameVirtualHost  *:80
> NameVirtualHost  *:443
> 
>   Also on my mac-minis it worked without the comment out of ScriptAlias 
> /cgi-bin.
> 
>   Like the script that I made. I use it now on 6 installation, and work 
> in minutes.
> 
> 
> On 2011/09/02, at 20:36, Pascal Robert wrote:
> 
>> Find the line in httpd.conf that start with:
>> 
>> ScriptAlias /cgi-bin
>> 
>> And comment it.
>> 
>>> Hi all,
>>> 
>>> Trying to get WebObjects running on a Mac mini sever with Mac OS X 10.7 
>>> (Lion), but the VirtualHost configuration is bothering me.
>>> None of my directives are working, have put  copy of apache.conf into the 
>>> others config folder with name webobjects.conf. The Adaptor is loaded, 
>>> checked with apachectl -M, and apachectl -t, says Syntax OK, but the 
>>> following directives, in the beginning of webobjects.conf file are not 
>>> working:
>>> 
>>> Alias /WebObjects "/Library/WebServer/Documents/WebObjects"
>>> 
>>> 
>>>AllowOverride All
>>>Order allow,deny
>>>Allow from all
>>> 
>>> 
>>> 
>>>  Order allow,deny
>>>  Allow from all
>>> 
>>> 
>>> Trying to load the WOAdaptorInfo page, I'm getting the following error 
>>> (error_log):
>>> 
>>> File does not exist: /Library/Server/Web/Data/Sites/Default/cgi-bin
>> 
>> 
>> 
>>> I know, that this is a VirtualHost:*:443 directive issue, but don't know 
>>> how to solve this in an elegant manner, e.g. without loosing Server.app 
>>> support for virtual hosting.
>>> Any clues?
>>> 
>>> Thanks
>>> --
>>> Sergio  ___
>>> Do not post admin requests to the list. They will 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/ken%40ksroom.com
>> 
>> This email sent to k...@ksroom.com
> 
> Thank you
> 
> 
> K's ROOM  (ISHIMOTO Ken)
> 
> [E-Mail]  
> [iChat:]   
> [HP]  http://www.ksroom.com/
> _
> This e-mail has not been scanned for viruses because it was written on an Mac,
> and there are NO Viruses on an Apple Computer.
> For further information visit http://www.apple.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


Mac OS X 10.7 (Lion), Apache2.2, WebObjects Problem

2011-09-02 Thread Sergio Sánchez Maffet
Hi all,

Trying to get WebObjects running on a Mac mini sever with Mac OS X 10.7 (Lion), 
but the VirtualHost configuration is bothering me.
None of my directives are working, have put  copy of apache.conf into the 
others config folder with name webobjects.conf. The Adaptor is loaded, checked 
with apachectl -M, and apachectl -t, says Syntax OK, but the following 
directives, in the beginning of webobjects.conf file are not working:

Alias /WebObjects "/Library/WebServer/Documents/WebObjects"


  AllowOverride All
  Order allow,deny
  Allow from all



Order allow,deny
Allow from all


Trying to load the WOAdaptorInfo page, I'm getting the following error 
(error_log):

File does not exist: /Library/Server/Web/Data/Sites/Default/cgi-bin

I know, that this is a VirtualHost:*:443 directive issue, but don't know how to 
solve this in an elegant manner, e.g. without loosing Server.app support for 
virtual hosting.
Any clues?

Thanks
--
Sergio  ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: JavaMonitor isn't stopping Applications and wotaskd could not send mails

2011-08-17 Thread Sergio Sánchez Maffet
Hi Kieran,

Solved, stopping apps does work now! Thank you Kieran for pointing me in the 
right direction.

Kind regards
--
Sergio


On 3 Aug 2011, at 03:03, Kieran Kelleher wrote:

> I happened to come across this today and remembered the details.
> 
> In your specific Linux server(s), create the following file (and parent 
> directories if needed)
> 
> /etc/WebObjects/Properties
> 
> BTW, this is referred to as the 'Machine Properties' file in ERXProperties. 
> Every Wonder app will read this file when it exists on a host. it is useful 
> for host-specific properties, which is exactly what IP addresses are.
> 
> In that Properties file you can define an array property containing the 
> multiple IP addresses that your host has assigned to its network interfaces, 
> for example on one of our servers, that Properties file has the following 
> contents:
> 
> admin@silicon /etc/WebObjects: cat Properties 
> # Used by Wonder's WOHostUtilities to solve wo app local ip discovery on 
> multihomed linux machines
> er.extensions.WOHostUtilities.localhostips=(192.168.3.168,192.168.1.168)
> 
> Hope that helps,
> 
> Kieran
> 
> On Jul 28, 2011, at 9:52 PM, Kieran Kelleher wrote:
> 
>> This seems to be a common problem on Linux boxes with more than one IP 
>> address, or even just virtual Linux instances.
>> 
>> Try and use the advice found at:
>> com.webobjects.appserver._private.WOHostUtilities
>> 
>> in Wonder's ERExtensions framework and see if that fixes your problem. It 
>> has fixed that problem a long time ago for me.
>> 
>> Regards, Kieran
>> 
>> 
>> On Jul 27, 2011, at 3:56 PM, Sergio Sánchez Maffet wrote:
>> 
>>> Hi guys,
>>> 
>>> I have two small problems with my deployment... I know, that this list is 
>>> the developer list, but I hope here to learn something regarding the 
>>> mechanism behind the scenes.
>>> 
>>> First problem is that stop does not work from within JavaMonitor, no error 
>>> and nothing in the logs (JavaMonitor and wotaskd). I'm using the original 
>>> JavaMonitor (5.4.3)
>>> My understanding is that JavaMonitor does send the command to the wotaskd 
>>> instance and then this one is stopping the application instance. Something 
>>> in between is wrong, but I do not know what happens behind the scenes... 
>>> and cannot solve the issue.
>>> 
>>> Second problem ist that when I kill the instance, wotaskd is trying to send 
>>> an email to mailhost, which is wrong, in SiteConfig.xml is the correct one 
>>> listed?
>>> 
>>> Both helper apps are running as user appserver on a linux box (centos 5.5).
>>> 
>>> Any help is greatly appreciated,
>>> 
>>> Kind regards,
>>> Sergio
>>> 
>>> 
>>> ___
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>>> Help/Unsubscribe/Update your Subscription:
>>> http://lists.apple.com/mailman/options/webobjects-dev/kelleherk%40gmail.com
>>> 
>>> This email sent to kelleh...@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: JavaMonitor isn't stopping Applications and wotaskd could not send mails

2011-07-28 Thread Sergio Sánchez Maffet
With other words, a 'kill pid' does work, no need to use a 'kill -9 pid'

On 29 Jul 2011, at 01:50, Sergio Sánchez Maffet wrote:

> Chuck,
> 
> The problem is, that there is no deadlocked thread, the application is 
> working correctly
> 
> 
> On 27 Jul 2011, at 23:33, Chuck Hill wrote:
> 
>> Hi Sergio,
>> 
>> 
>> On 2011-07-27, at 12:56 PM, Sergio Sánchez Maffet wrote:
>> 
>>> Hi guys,
>>> 
>>> I have two small problems with my deployment... I know, that this list is 
>>> the developer list, but I hope here to learn something regarding the 
>>> mechanism behind the scenes.
>>> 
>>> First problem is that stop does not work from within JavaMonitor, no error 
>>> and nothing in the logs (JavaMonitor and wotaskd). I'm using the original 
>>> JavaMonitor (5.4.3)
>>> My understanding is that JavaMonitor does send the command to the wotaskd 
>>> instance and then this one is stopping the application instance. Something 
>>> in between is wrong, but I do not know what happens behind the scenes... 
>>> and cannot solve the issue.
>> 
>> This probably means that there is a thread that is deadlocked or otherwise 
>> not stopping.  This will prevent the application from stopping unless it is 
>> killed.
>> 
>>> 
>>> Second problem ist that when I kill the instance, wotaskd is trying to send 
>>> an email to mailhost, which is wrong, in SiteConfig.xml is the correct one 
>>> listed?
>> 
>> I think there is a default for the whole site and also another for each 
>> 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


JavaMonitor isn't stopping Applications and wotaskd could not send mails

2011-07-27 Thread Sergio Sánchez Maffet
Hi guys,

I have two small problems with my deployment... I know, that this list is the 
developer list, but I hope here to learn something regarding the mechanism 
behind the scenes.

First problem is that stop does not work from within JavaMonitor, no error and 
nothing in the logs (JavaMonitor and wotaskd). I'm using the original 
JavaMonitor (5.4.3)
My understanding is that JavaMonitor does send the command to the wotaskd 
instance and then this one is stopping the application instance. Something in 
between is wrong, but I do not know what happens behind the scenes... and 
cannot solve the issue.

Second problem ist that when I kill the instance, wotaskd is trying to send an 
email to mailhost, which is wrong, in SiteConfig.xml is the correct one listed?

Both helper apps are running as user appserver on a linux box (centos 5.5).

Any help is greatly appreciated,

Kind regards,
Sergio


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: ERPDFGenerator and Charts

2011-07-01 Thread Sergio Sánchez Maffet
Hi again,

So, got a result, the PDF is fine, image is included, but the rendering time is 
very long, so long that I needed to set the adaptor receive timeout  to 60 secs.
Is this a normal behavior? The time is consumed during rendering of the HTML 
page to PDF.

Regards,
Sergio

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: ERPDFGenerator and Charts

2011-07-01 Thread Sergio Sánchez Maffet
I have now switched to the nightly build and run into new problems, the page is 
not send back at all, but the instance is there and functional with no 
exception. After a few seconds I get then a "no instance available"-Page and on 
the console I see "brocken pipe" or "connection lost"?

Any ideas? ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: ERPDFGenerator and Charts

2011-07-01 Thread Sergio Sánchez Maffet

On 01.07.2011, at 02:02, Q wrote:

> 
> On 01/07/2011, at 6:05 AM, Sergio Sánchez Maffet wrote:
> 
>> Hi all,
>> 
>> Maybe there is someone who can help with this issue.
>> Need to create a PDF including a chart.
>> 
>> Have tried:
>> 
>> ERPDFUtilities.pageAsPdf(pdfPage)
>> 
>> With pdfPage being a normal WOComponent including a ERPCategoryChart 
>> element, but this does not work.
>> I'm getting a PDF page, but the chart image is missing. The produced HTML is 
>> ok, even the temporary image URL is providing the image correctly.
>> It seems that the image is not even requested by the PDF renderer. Any Ideas?
> 
> What are you seeing that makes you think the image is not being requested?

I can download the image exactly one time. Nothing in the logs.

> 
>> After looking through the list, I have found an old (2007/06/04) mail from 
>> Anjo Krank regarding "ANN: PDFGenerator 2.1 update coming".
>> There is something mentioned about charts... is it the same framework?
> 
> No.
> 
>> My questions are:
>> 
>> • Is there something new in WONDER that can help me out?
> 
> Are you running from the most recent source?

Not sure if it is the latest, will try an update.

> 
>> • Is the way, I'm trying to do it, right? (ERPCategoryChart inside my PDF 
>> component) Or is there some better solution?
> 
> That should work fine.

OK, nice going the right way...

> 
>> • How can I get it working? Why does the image not show up? 
> 
> I have tested it on an example app I have and it works fine for me.
> 
>> 
>> Any help is greatly appreciated.
> 
> 
> If you try viewing the page with it wrapped in an ERPDFWrapper component does 
> the graph show up then?
> Are you doing anything that might cause the temporary image to be fetched 
> before the pdf generation takes place?
> 

s.o. I can download the image only once, that indicates, that nobody else is 
trying to download it... 
I'm using ERPDFUtilities.pageAsPdf(), which is an ERPPDFWrapper...


> -- 
> Seeya...Q
> 
> Quinton Dolan - qdo...@gmail.com
> Gold Coast, QLD, Australia (GMT+10)
> 
> 
> 
> 

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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


ERPDFGenerator and Charts

2011-06-30 Thread Sergio Sánchez Maffet
Hi all,

Maybe there is someone who can help with this issue.
Need to create a PDF including a chart.

Have tried:

ERPDFUtilities.pageAsPdf(pdfPage)

With pdfPage being a normal WOComponent including a ERPCategoryChart element, 
but this does not work.
I'm getting a PDF page, but the chart image is missing. The produced HTML is 
ok, even the temporary image URL is providing the image correctly.
It seems that the image is not even requested by the PDF renderer. Any Ideas?

After looking through the list, I have found an old (2007/06/04) mail from Anjo 
Krank regarding "ANN: PDFGenerator 2.1 update coming".
There is something mentioned about charts... is it the same framework?

My questions are:

• Is there something new in WONDER that can help me out?
• Is the way, I'm trying to do it, right? (ERPCategoryChart inside my PDF 
component) Or is there some better solution?
• How can I get it working? Why does the image not show up? 

Any help is greatly appreciated.

Regards,
Sergio ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Adaptor Apache2.2 send error: Connection refused

2010-01-26 Thread Sergio Sánchez Maffet
I have noticed something strange, if I reload the page every second,  
via the reload browser button, i get in nearly 1 of 10th a valid  
response. Nearly 10 seconds after a bad one. Seems to be related to a  
time out or something similar... still hoping to find a solution...


Have also checked the machine load... 83% idle.
Tried also the Apache2.2 Apple code, with the WONDER Makefiles with no  
luck. Same failure...

Firewall also disabled, but nothing changed...
Compiler reports a few warnings, seems nothing critical IMHO:

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic  
-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g - 
fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 - 
D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/ 
include/apr-1   -I/usr/include/apr-1  -O2 -I/usr/include/apache2 -I../ 
Adaptor  -DSINGLE_THREADED_ADAPTOR -DLINUX -DFORKING_WEBSERVER - 
DAPACHE-c -o mod_WebObjects.lo mod_WebObjects.c && touch  
mod_WebObjects.slo

: warning: "LINUX" redefined
: warning: this is the location of the previous definition
mod_WebObjects.c:249: warning: 'setOption3' defined but not used

/usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic  
-O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g - 
fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED  -DLINUX=2 - 
D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/ 
include/apr-1   -I/usr/include/apr-1  -O2 -I/usr/include/apache2 -I../ 
Adaptor  -DSINGLE_THREADED_ADAPTOR -DLINUX -DFORKING_WEBSERVER - 
DAPACHE-c -o ../Adaptor/request.lo ../Adaptor/request.c &&  
touch ../Adaptor/request.slo

: warning: "LINUX" redefined
: warning: this is the location of the previous definition
../Adaptor/request.c: In function 'req_new':
../Adaptor/request.c:57: warning: call to function 'get_http_method'  
without a real prototype

../Adaptor/request.c:46: note: 'get_http_method' was declared here

Am 26.01.2010 um 22:23 schrieb Sergio Sánchez Maffet:


HTTP

Am 26.01.2010 um 22:14 schrieb Miguel Arroz:


Hi!

Are the requests that fail HTTP or HTTPS?

Yours

Miguel Arroz

On 2010/01/26, at 19:14, Sergio Sánchez Maffet wrote:


Hi all,

hope that some one can help me with this issue:
Everything seems to work correctly but every few requests, I'm  
getting the following error (WebObjects.log):


Error: sendBuffers(): send error: Connection refused
Error: error sending request
Error: Failed to send request
Info: Marking instance 1 dead

My environment (opensuse):
Linux static 2.6.25.20-0.1-default #1 SMP 2008-12-12 20:30:38  
+0100 x86_64 x86_64 x86_64 GNU/Linux

Server version: Apache/2.2.8 (Linux/SUSE)
WO 5.4
WONDER lastest source (today)
WONDER Adaptor2.2 builds normally, installed with apxs2 as root
WOAdaptorInfo always responses correctly

Any ideas?
Kind regards,
--
Sergio






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

This email sent to ar...@guiamac.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/sam%40codeon.de

This email sent to s...@codeon.de



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

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


Re: Adaptor Apache2.2 send error: Connection refused

2010-01-26 Thread Sergio Sánchez Maffet

HTTP

Am 26.01.2010 um 22:14 schrieb Miguel Arroz:


Hi!

 Are the requests that fail HTTP or HTTPS?

 Yours

Miguel Arroz

On 2010/01/26, at 19:14, Sergio Sánchez Maffet wrote:


Hi all,

hope that some one can help me with this issue:
Everything seems to work correctly but every few requests, I'm  
getting the following error (WebObjects.log):


Error: sendBuffers(): send error: Connection refused
Error: error sending request
Error: Failed to send request
Info: Marking instance 1 dead

My environment (opensuse):
Linux static 2.6.25.20-0.1-default #1 SMP 2008-12-12 20:30:38 +0100  
x86_64 x86_64 x86_64 GNU/Linux

Server version: Apache/2.2.8 (Linux/SUSE)
WO 5.4
WONDER lastest source (today)
WONDER Adaptor2.2 builds normally, installed with apxs2 as root
WOAdaptorInfo always responses correctly

Any ideas?
Kind regards,
--
Sergio






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

This email sent to ar...@guiamac.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: Adaptor Apache2.2 send error: Connection refused

2010-01-26 Thread Sergio Sánchez Maffet


Am 26.01.2010 um 20:21 schrieb Chuck Hill:



On Jan 26, 2010, at 11:14 AM, Sergio Sánchez Maffet wrote:


Hi all,

hope that some one can help me with this issue:
Everything seems to work correctly but every few requests, I'm  
getting the following error (WebObjects.log):


Error: sendBuffers(): send error: Connection refused
Error: error sending request
Error: Failed to send request
Info: Marking instance 1 dead


That sounds like the app is too busy and has too many requests  
queued up.  Is that possible?


Chuck




Hi Chuck,
no, this could not be, the app is not running public, although there  
are other non WebObjects apps running on the host. Darwin streaming,  
etc. but nothing using the apache2 server... I have really no idea.





My environment (opensuse):
Linux static 2.6.25.20-0.1-default #1 SMP 2008-12-12 20:30:38 +0100  
x86_64 x86_64 x86_64 GNU/Linux

Server version: Apache/2.2.8 (Linux/SUSE)
WO 5.4
WONDER lastest source (today)
WONDER Adaptor2.2 builds normally, installed with apxs2 as root
WOAdaptorInfo always responses correctly

Any ideas?
Kind regards,
--
Sergio






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


Adaptor Apache2.2 send error: Connection refused

2010-01-26 Thread Sergio Sánchez Maffet

Hi all,

hope that some one can help me with this issue:
Everything seems to work correctly but every few requests, I'm getting  
the following error (WebObjects.log):


Error: sendBuffers(): send error: Connection refused
Error: error sending request
Error: Failed to send request
Info: Marking instance 1 dead

My environment (opensuse):
Linux static 2.6.25.20-0.1-default #1 SMP 2008-12-12 20:30:38 +0100  
x86_64 x86_64 x86_64 GNU/Linux

Server version: Apache/2.2.8 (Linux/SUSE)
WO 5.4
WONDER lastest source (today)
WONDER Adaptor2.2 builds normally, installed with apxs2 as root
WOAdaptorInfo always responses correctly

Any ideas?
Kind regards,
--
Sergio






___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Sergio Sánchez Maffet

Thank you Timo and Mike,
I have to turn ajax off while submitting a file... no other solution  
in this case for now...
A future solution would need to post the data to an iframe and then  
send the data to the server... sounds complicated, but should work.


Thank you again for your fast responses.
--
Sergio


Am 17.12.2009 um 23:34 schrieb Mike Schrag:


it posts into an iframe

On Dec 17, 2009, at 5:21 PM, Sergio Sánchez Maffet wrote:


Timo, list,

I can't believe it... ;-)
Is there any solution known?
How does the AjaxFileUpload do the trick?

Thank you,
Sergio

Am 17.12.2009 um 23:07 schrieb Timo Hoepfner:


Hi Sergio,

a file upload is technically not possible with an Ajax request.  
JavaScript cannot access the files on the file system, this is a  
security restriction.


Timo

Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:


Dear list,

I'm using the latest WONDER build (from yesterday) and WO54.

Submitting a form using an AjaxSubmitButton with a WOFileUpload  
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after  
super.takeValuesFromRequest in the corresponding component.

All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context  
id).

Do I miss something here? Any ideas?

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

This email sent to th-...@onlinehome.de





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

This email sent to msch...@mdimension.com






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

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


Re: ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Sergio Sánchez Maffet

Timo, list,

I can't believe it... ;-)
Is there any solution known?
How does the AjaxFileUpload do the trick?

Thank you,
Sergio

Am 17.12.2009 um 23:07 schrieb Timo Hoepfner:


Hi Sergio,

a file upload is technically not possible with an Ajax request.  
JavaScript cannot access the files on the file system, this is a  
security restriction.


Timo

Am 17.12.2009 um 23:00 schrieb Sergio Sánchez Maffet:


Dear list,

I'm using the latest WONDER build (from yesterday) and WO54.

Submitting a form using an AjaxSubmitButton with a WOFileUpload  
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after  
super.takeValuesFromRequest in the corresponding component.

All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context  
id).

Do I miss something here? Any ideas?

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

This email sent to th-...@onlinehome.de





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

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


ERXWOFileUpload / AjaxSubmitButton - filePath and data bindings empty

2009-12-17 Thread Sergio Sánchez Maffet

Dear list,

I'm using the latest WONDER build (from yesterday) and WO54.

Submitting a form using an AjaxSubmitButton with a WOFileUpload  
element (ERXWOFileUpload) ends up
with empty filePath and data bindings after  
super.takeValuesFromRequest in the corresponding component.

All other inputs and bindings are ok.
Using a WOSubmitButton as a test does work as expected.
Does the default form serializer handle file uploads correctly?
The input file element does have a name assigned (default context id).
Do I miss something here? Any ideas?

Regards,
Sergio
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Problem File Upload WO 5.4 WONDER 5.0.0.8764

2008-12-31 Thread Sergio Sánchez Maffet

Chuck,

finally I got it running. Thanks a lot for your help. The language is  
set to German and the default form value encoding for German is  
iso8859-1 in ERXMessageEncoding. After setting the encoding with  
setDefaultEncodingForAllLanguages to UTF-8, I got it running. Dont  
know if this is some kind of a bug, the encoding should be set to the  
request encoding and this is/was UTF-8...
I have also noticed, that this is a general problem... not only  
related to file uploads...


Do I have a miss understanding here?

Regards,
Sergio

On 16.12.2008, at 20:05, Chuck Hill wrote:



On Dec 15, 2008, at 5:31 PM, Sergio Sánchez Maffet wrote:


Hi all,

I have some problems regarding file uploads with WO 5.4.3. When I  
submit the form, my action method is called, but the form values  
get lost some where in the request processing. The page is very  
simple, only a text field and a file upload inside a form and a  
submit button.
Every thing is binded correctly and it has worked with WO 5.3. I'm  
using WONDER 5.0.0.8764 for WO 5.4. The application is running in  
direct connect mode, and session id's are stored in a cookies...  
dont know if this has some importance.


The problem mentioned by William Hatch (Subject: WOFileUpload and  
5.4, from 10/30/08) seems to be similar, but there is was solution  
posted.
As Chuck mentioned, form values can get lost when the encoding  
changes during the request, this seems to happen in my case, but I  
do not understand why?


Here is a log of the request in dispatchRequest() and in the same  
thread later in takeValueFromRequest():


Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - dispatchRequest:  
(headers={accept=[text/xml,application/xml,application/xhtml 
+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- 
encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- 
alive], content-length=[851656], content-type=[multipart/form-data;  
boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV],  
cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1],  
host=[192.168.4.35:3004], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 
], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- 
us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 
525.27.1]} content-length=851656 cookies=null userInfo={}  
storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/ 
WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=UTF-8  
formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8  
formValues={5.1 = ("Test 1"); 5.3.mimetype = ("image/jpeg");  
5.3.filename = ("DSC00033.JPG"); 5.3 = (com.webobjects.appserver._private.WOInputStreamData (stream  
com.webobjects.appserver.WOMultipartIterator$WOFormData 
$_woformdatainputstr...@ee68d1 of length 0), has NOT been  
accessed>); } >



Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog -  
takeValuesFromRequest: (headers={accept=[text/xml,application/xml,application/xhtml 
+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- 
encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- 
alive], content-length=[851656], content-type=[multipart/form-data;  
boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV],  
cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1],  
host=[192.168.4.35:3004], original_context_id=[7], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 
], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- 
us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 
525.27.1]} content-length=0 cookies=null userInfo={}  
storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/ 
WebObjects/MyApplication.woa/wo/7.5  
defaultFormValueEncoding=ISO8859_1  
formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1  
formValues={} >


I have tried to set the form value encoding to UTF-8 in the  
dispatchRequest() method with no luck, I also tried WOFileUpload  
and ERXWOFileUpload.

Any clues or ideas to fix it?



Sergio,

This is what I would do to track this down:

1. Create a subclass of ERXRequest and implement these methods:
setDefaultFormValueEncoding(String value)
setFormValueEncoding(String value)

to be like:
public void setDefaultFormValueEncoding(String value)  {
NSLog.out.appendln(new RuntimeException("set to " + value));
super.setDefaultFormValueEncoding(value);
}



2. In your Application class, implement _createRequest as

	protected WORequest _createRequest(String aMethod, String aURL,  
String anHTTPVersion, NSDictionary someHeaders, NSData aContent,  
NSDictionary someInfo) {

if (anHTTPVersion == null || 
anHTTPVersion.startsWith("INCLUDED")) {
anHTTPVersion = "HTTP/1.0";
}

		if ("GET".equalsIgnoreCase(aMethod) && someHeaders != null &&

Problem File Upload WO 5.4 WONDER 5.0.0.8764

2008-12-15 Thread Sergio Sánchez Maffet

Hi all,

I have some problems regarding file uploads with WO 5.4.3. When I  
submit the form, my action method is called, but the form values get  
lost some where in the request processing. The page is very simple,  
only a text field and a file upload inside a form and a submit button.
Every thing is binded correctly and it has worked with WO 5.3. I'm  
using WONDER 5.0.0.8764 for WO 5.4. The application is running in  
direct connect mode, and session id's are stored in a cookies... dont  
know if this has some importance.


The problem mentioned by William Hatch (Subject: WOFileUpload and 5.4,  
from 10/30/08) seems to be similar, but there is was solution posted.
As Chuck mentioned, form values can get lost when the encoding changes  
during the request, this seems to happen in my case, but I do not  
understand why?


Here is a log of the request in dispatchRequest() and in the same  
thread later in takeValueFromRequest():


Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - dispatchRequest:  
(headers={accept=[text/xml,application/xml,application/xhtml+xml,text/ 
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- 
encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- 
alive], content-length=[851656], content-type=[multipart/form-data;  
boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV],  
cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1],  
host=[192.168.4.35:3004], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 
], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- 
us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 
525.27.1]} content-length=851656 cookies=null userInfo={}  
storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/WebObjects/ 
MyApplication.woa/wo/7.5 defaultFormValueEncoding=UTF-8  
formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8  
formValues={5.1 = ("Test 1"); 5.3.mimetype = ("image/jpeg");  
5.3.filename = ("DSC00033.JPG"); 5.3 = (com.webobjects.appserver._private.WOInputStreamData (stream  
com.webobjects.appserver.WOMultipartIterator$WOFormData 
$_woformdatainputstr...@ee68d1 of length 0), has NOT been  
accessed>); } >



Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog -  
takeValuesFromRequest: (headers={accept=[text/xml,application/xml,application/xhtml+xml,text/ 
html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- 
encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- 
alive], content-length=[851656], content-type=[multipart/form-data;  
boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV],  
cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1],  
host=[192.168.4.35:3004], original_context_id=[7], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 
], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- 
us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 
525.27.1]} content-length=0 cookies=null userInfo={}  
storePageInBacktrackCache=true >) method=POST uri=/cgi-bin/WebObjects/ 
MyApplication.woa/wo/7.5 defaultFormValueEncoding=ISO8859_1  
formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1  
formValues={} >


I have tried to set the form value encoding to UTF-8 in the  
dispatchRequest() method with no luck, I also tried WOFileUpload and  
ERXWOFileUpload.

Any clues or ideas to fix it?

Regards,
--
Sergio
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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


Prefetching flattened relationships: Possible WONDER or WO5.4.3 problem (exception)

2008-09-23 Thread Sergio Sánchez Maffet

Hi all,

I have noticed a failure in the handling of prefetched flattened  
relationships using WONDER (latest) with WO 5.4.3


Model:
My1Entity (class My1Entity)
To one relationships: my3entity destination My3Entity
To many relationships: my2entities (flattened relationship)  
destination My2Entity


My2Entity (class My2Entity)
To many relationships: my1entities (flattened relationship)  
destination My1Entity


MyJoinEntity (EOGenericRecord, not visible)
To one relationships: my1Entity destination My1Entity, my2Entity  
destination My2Entity


My3Entity (class My3Entity)
To many relationships: my1entities destination My1Entity

Now I want to fetch My1Entity objects, with the following qualifier:  
"my3entity = %@", new NSArray(a3EntityObject)


If you fetch now, there is no problem.
But if you set to prefetch my2entities (!) of My1Entity with  
setPrefetchingRelationshipKeyPaths(new NSArray("my2entities"))  
you got an exception like this one:


java.lang.IllegalStateException: sqlStringForKeyValueQualifier:  
attempt to generate SQL for  
com.webobjects.eocontrol.EOKeyValueQualifier (my1Entity. my3entity =  
(MyEO2)'...') failed because attribute identified by key 'my1Entity.  
my3entity' was not reachable from from entity 'MyJoinEntity'


This completely is weird, my1Entity. my3entity is reachable from  
MyJoinEntity (EOGenericRecord),
but the attribute identified by key 'my1Entity. my3entity' is not an  
attribute/key but a key path!


Until now, I have not done any further investigations... it was  
working without WONDER and WO 5.4.2 and .3


Is it obligatory to use ERXGenericRecord?
Any clues?

Kind regards,
Sergio



___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Problem with an AjaxUpdateContainer (WONDER) in conjunction with a WOComponentContent and a WOSwitchComponent

2008-09-17 Thread Sergio Sánchez Maffet

Hi guys,

@Chuck: Thank you for your quick response and sorry for the direct  
reply.


It is now working with ERXApplication, ERXSession, ERXDirectAction and  
ERXComponent, have not used ERXGenericRecord so far, because I do not  
know which template I have to use for the EOGenerator. Actually I have  
configured _Entity.java and Entity.java in the EOGenerator config  
file. Are other templates provided with WOLips,  that I can use to get  
ERXGenericRecord in my EO class files?


Kind regards,
Sergio

On 16.09.2008, at 23:01, Chuck Hill wrote:



On Sep 16, 2008, at 11:38 AM, Sergio Sánchez Maffet wrote:


Hi guys,

does someone know how to use the AjaxUpdateContainer inside a page  
that already uses a WOComponentContent and a WOSwitchComponent? I'm  
getting only a mysterious page in page response?


I use AjaxUpdateContainer inside WOComponentContent without problems.





Any clues?

Setup:

Lastest Wonder (downloaded today), eclipse 3.3.2 with patch 1, WO542
No Wonder app. Uses WOSession, WOApplication, etc.



Does it make a difference if you extend ERXAjaxApplication and  
ERXAjaxSession?




Linked Wonder frameworks: ERExtensions, ERJavaMail

Layout.wo (has an WOComponentContent)
Main (main content, surrounded by Layout component, contains  
WOSwitchComponent)
Component1 (switched into Main's WOSwitchComponent, contains  
Component2 surrounded by AjaxUpdateContainer)

Component2 (simple, only direct actions)



Carefully check the app log for messages.


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 [EMAIL PROTECTED]


Problem with an AjaxUpdateContainer (WONDER) in conjunction with a WOComponentContent and a WOSwitchComponent

2008-09-16 Thread Sergio Sánchez Maffet

Hi guys,

does someone know how to use the AjaxUpdateContainer inside a page  
that already uses a WOComponentContent and a WOSwitchComponent? I'm  
getting only a mysterious page in page response?


Any clues?

Setup:

Lastest Wonder (downloaded today), eclipse 3.3.2 with patch 1, WO542
No Wonder app. Uses WOSession, WOApplication, etc.
Linked Wonder frameworks: ERExtensions, ERJavaMail

Layout.wo (has an WOComponentContent)
Main (main content, surrounded by Layout component, contains  
WOSwitchComponent)
Component1 (switched into Main's WOSwitchComponent, contains  
Component2 surrounded by AjaxUpdateContainer)

Component2 (simple, only direct actions)

Regards,
Sergio
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Apache 2.2 mod_WebObjects.so on linux

2008-04-10 Thread Sergio Sánchez Maffet

Sorry I forgot to mention that I'm using WO 5.4...
Will try the Wonder source if I do not get further infos...

Any help is appreciate.

Thanx all
--
Sergio
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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]


Apache 2.2 mod_WebObjects.so on linux

2008-04-09 Thread Sergio Sánchez Maffet

Hi all,

I have tried to compile the Apple provided example on Linux without  
success.

This example needs to be modified to compile on Linux.

Before I start to invest time on it:
Is there another source that runs without modifications or does I miss  
something, maybe there is already a binary on the net somewhere?


Regards,
Sergio
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: ERJavaMail and system properties

2008-03-02 Thread Sergio Sánchez Maffet

Sorry for the last empty message... ;-)

Thank you!

Yes it was my fault. Did not know that I have to call first  
ERJavaMail.sharedInstance().finishInitialization() and  
ERJavaMail.sharedInstance().initializeFrameworkFromSystemProperties()


It is working now.

On 02.03.2008, at 09:12, Mike Schrag wrote:


my system properties are not recognized by ERJavaMail.
It complains with the following message:

When setting 'er.javamail.centralize=true' (which means you just  
test sending mails), you must also give a valid '[EMAIL PROTECTED] 
' to which the mails are sent.


I have already tried to set them in code just before mail delivery  
starts.
Only ERJavaMail and ERExtensions frameworks are linked into my  
project.
define "set them in code".  If you're trying to set system  
properties in code, you're probably "too late" to do it.  Once the  
framework has initialized, it does not look at the values in code.   
You should either set them in your Properties file, set them as -D  
system properties on the commandline, or set them via the API on  
ERJavaMail.sharedInstance() after the framework has initialized.   
The recommended method is to set them in Properties.  If you set  
system properties, you will need to call  
ERJavaMail 
.sharedInstance().initializeFrameworkFromSystemProperties() (never  
tried this, but it should work).  Again, though, I would just set  
them in your Properties file.


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

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: ERJavaMail and system properties

2008-03-02 Thread Sergio Sánchez Maffet


On 02.03.2008, at 09:12, Mike Schrag wrote:


my system properties are not recognized by ERJavaMail.
It complains with the following message:

When setting 'er.javamail.centralize=true' (which means you just  
test sending mails), you must also give a valid '[EMAIL PROTECTED] 
' to which the mails are sent.


I have already tried to set them in code just before mail delivery  
starts.
Only ERJavaMail and ERExtensions frameworks are linked into my  
project.
define "set them in code".  If you're trying to set system  
properties in code, you're probably "too late" to do it.  Once the  
framework has initialized, it does not look at the values in code.   
You should either set them in your Properties file, set them as -D  
system properties on the commandline, or set them via the API on  
ERJavaMail.sharedInstance() after the framework has initialized.   
The recommended method is to set them in Properties.  If you set  
system properties, you will need to call  
ERJavaMail 
.sharedInstance().initializeFrameworkFromSystemProperties() (never  
tried this, but it should work).  Again, though, I would just set  
them in your Properties file.


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

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: Many error alert in Eclipse/WOLips

2008-03-02 Thread Sergio Sánchez Maffet

Do you see the "no ore handles" exception:

Try google for 'sleak' which is an SWT leak detector and more.

This will let you get some more insights.


On 02.03.2008, at 19:11, Xavier Destombes wrote:

I had to create a new workspace as Eclipse wouldn't start after my  
previous test (removing the Jars in /Library/Java/Extensions and / 
Library/WebObjects/Extensions)
So here's the "new" log, there's no .bak on this one, but there's  
quite a bunch of updates related issues, maybe you'd like to see  
theses ones too:)


java.version=1.5.0_13
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=carbon, NL=fr_FR
Framework arguments:  -keyring /Users/xavier/.eclipse_keyring - 
showlocation
Command-line arguments:  -os macosx -ws carbon -arch x86 -keyring / 
Users/xavier/.eclipse_keyring -consoleLog -showlocation


!ENTRY org.eclipse.core.net 1 0 2008-03-02 17:54:24.361
!MESSAGE System property http.nonProxyHosts has been set to local| 
*.local|169.254/16|*.169.254/16 by an external source. This value wil$


!ENTRY org.eclipse.core.jobs 4 2 2008-03-02 17:55:02.013
!MESSAGE An internal error occurred during: "WOLips Include Files  
Updates".

!STACK 0
java.lang.NullPointerException
   at  
org 
.objectstyle 
.wolips 
.jdt 
.ant 
.UpdateOtherClasspathIncludeFiles 
.buildIncludeFiles(UpdateOtherClasspathIncludeFiles.java:114)
   at  
org 
.objectstyle 
.wolips 
.jdt 
.ant 
.UpdateOtherClasspathIncludeFiles 
.execute(UpdateOtherClasspathIncludeFiles.java:91)
   at  
org 
.objectstyle 
.wolips 
.jdt 
.listener 
.UpdateIncludeFilesJob.runInWorkspace(UpdateIncludeFilesJob.java:90)
   at  
org 
.eclipse 
.core 
.internal 
.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)

   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.core.jobs 4 2 2008-03-02 17:55:02.014
!MESSAGE An internal error occurred during: "WOLips Include Files  
Updates".

!STACK 0
java.lang.NullPointerException
   at  
org 
.objectstyle 
.wolips 
.jdt 
.ant 
.UpdateOtherClasspathIncludeFiles 
.buildIncludeFiles(UpdateOtherClasspathIncludeFiles.java:114)
   at  
org 
.objectstyle 
.wolips 
.jdt 
.ant 
.UpdateOtherClasspathIncludeFiles 
.execute(UpdateOtherClasspathIncludeFiles.java:91)
   at  
org 
.objectstyle 
.wolips 
.jdt 
.listener 
.UpdateIncludeFilesJob.runInWorkspace(UpdateIncludeFilesJob.java:90)
   at  
org 
.eclipse 
.core 
.internal 
.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)

   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.ui 4 0 2008-03-02 17:59:47.363
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTError: No more handles
   at org.eclipse.swt.SWT.error(SWT.java:3589)
   at org.eclipse.swt.SWT.error(SWT.java:3481)
   at org.eclipse.swt.SWT.error(SWT.java:3452)
   at org.eclipse.swt.browser.Safari.create(Safari.java:85)
   at org.eclipse.swt.browser.Browser.(Browser.java:109)
   at  
org 
.objectstyle 
.wolips 
.templateeditor 
.TemplateOutlinePage.createControl(TemplateOutlinePage.java:85)
   at  
org 
.eclipse 
.ui 
.views 
.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:135)
   at  
org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:399)
   at  
org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:741)
   at  
org 
.eclipse 
.ui 
.views 
.contentoutline.ContentOutline.partBroughtToTop(ContentOutline.java: 
210)
   at org.eclipse.ui.internal.PartListenerList 
$2.run(PartListenerList.java:87)

   at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
   at org.eclipse.core.runtime.Platform.run(Platform.java:857)
   at  
org 
.eclipse 
.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
   at  
org 
.eclipse 
.ui 
.internal 
.PartListenerList.firePartBroughtToTop(PartListenerList.java:85)
   at  
org 
.eclipse 
.ui.internal.PartService.firePartBroughtToTop(PartService.java:87)
   at  
org 
.eclipse 
.ui 
.internal 
.WorkbenchPagePartList 
.firePartBroughtToTop(WorkbenchPagePartList.java:75)
   at  
org 
.eclipse 
.ui 
.internal 
.WorkbenchPagePartList 
.fireActiveEditorChanged(WorkbenchPagePartList.java:51)
   at  
org.eclipse.ui.internal.PartList.setActiveEditor(PartList.java:152)
   at  
org 
.eclipse 
.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1224)
   at  
org 
.eclipse 
.ui.internal.WorkbenchPage.updateActivePart(WorkbenchPage.java:1169)
   at  
org.eclipse.ui.internal.WorkbenchPage.partAdded(WorkbenchPage.java: 
1583)
   at  
org 
.eclipse 
.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:210)
   at  
org 
.eclipse 
.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
   at  
org 
.eclipse 
.ui 
.internal.EditorManager.openEditorFromDescriptor(EditorManager.java: 
673)
   at  
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java: 
6

Re: Many error alert in Eclipse/WOLips

2008-03-02 Thread Sergio Sánchez Maffet
Did you try to remove everything out of the /Library/Java/Extensions  
and maybe additions to /System/Library/Extensions? And then put them  
back one by one?


On 02.03.2008, at 12:06, Xavier Destombes wrote:


Nope, I didn't install Safari 3.1 Beta.
But the log seems to point at Safari also, anything I could try?

Xavier



Did you install the Safari 3.1 Beta on Leopard?  I believe this  
error always comes out of creating a Browser control ...


ms

On Mar 1, 2008, at 2:40 PM, Mike Schrag wrote:

I've heard of two other people who had this problem, and both had  
installed Leopard with an Upgrade & Install instead of a fresh  
install.  I know at least for one that reinstall Leopard with a  
fresh install made the problem go away, which points to  
__possibly__ Upgrade & Install not properly installing Java.  I  
believe Guido posted about this a few weeks ago, also. Certainly  
could be our fault as well, but it's a REAAALLLY weird exception.


Also, not posting about bugs is a good way for bugs to not get  
fixed :)


ms

On Mar 1, 2008, at 1:11 PM, Xavier Destombes wrote:


Hi,

I've been waiting for quite some time before posting this  
thinking it was because of all the none stable builds.
But now I've installed Eclipse 3.3.2 and WOLips 3.3 stable and I  
still get those error message pretty much everytime I try to open  
a .html or .wod or .wo.
I don't even know where to look to get more details about the  
issue (Is there an eclipse log somewhere?)
I'm running Eclipse 3.3.2 latest with WOLips 3.3 stable with WO53  
on 10.5.2 (Intel).


Anyone can tell me where they come from?

Thanks:)

Xavier

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

This email sent to [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/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



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

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]


ERJavaMail and system properties

2008-03-01 Thread Sergio Sánchez Maffet

Hi all,

my system properties are not recognized by ERJavaMail.
It complains with the following message:

When setting 'er.javamail.centralize=true' (which means you just test  
sending mails), you must also give a valid '[EMAIL PROTECTED] 
' to which the mails are sent.


I have already tried to set them in code just before mail delivery  
starts.

Only ERJavaMail and ERExtensions frameworks are linked into my project.

What I'm doing wrong?
--
Sergio ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Can't obtain rules because of protected access!

2008-02-26 Thread Sergio Sánchez Maffet

Does anybody have a clue on that?
I have now the same problem.


On 20.12.2007, at 09:48, Jan Philip Porschke wrote:


Hi there,

using the Webservice Asistant along with WOLips throws the following  
error:


: Exception  
in performActionNamed() on the action "loadD2WModel" with the  
message: java.lang.IllegalStateException: Can't obtain rules because  
of protected access!


Has anybody encountered similar problems ? Or is it possible to work  
around it by using the Rule Editor ?


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

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: Strange behavior of Derby database. SQL generation (SOLVED) (New issue: 24 bytes auto generated primary keys)

2008-02-05 Thread Sergio Sánchez Maffet

Pierre,

I will file a bug.

There is another issue regarding 24 bytes auto generated primary keys.  
The type "CHAR FOR BIT DATA" is not recognized generating create table  
statements from WOLips Entity Modeler and CHAR does not work at all  
with NSData as an internal type. Seems that the NSData internal type  
is initialized with a stream that is not present when you use CHAR  
external data types.


Workaround: Use BLOB data type for 24 byte primary keys. But this is  
surely very slow...


I will also file a bug.

Cheers,
Sergio



On 05.02.2008, at 21:32, Mr. Pierre Frisch wrote:

I would still log a bug, please. This may be something we can fix in  
the plug-in.


Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Feb 5, 2008, at 12:18, Sergio Sánchez Maffet wrote:

After intensiv reading of the derby docs I found the reason. It  
happens because derby alway uppercases all unquoted identifiers.  
The SQL generation in WOLips puts quotes around the identifiers,  
turning on case sensitivity in derby during creation of the tables.  
The generation of SQL in SQLExpression later accessing the database  
uses unquoted identifiers. They are uppercased by derby and checked  
against the case-sensitiv stored ones, which where in my case  
lowercase ones. Tricky.


The workaround is simple: Use always uppercase identifiers in your  
model file.



On 05.02.2008, at 20:16, Sergio Sánchez Maffet wrote:

The table name in the log submitted in my prior post should be  
TESTA and not CONTENT. This is only a copy paste failure... and  
does not mean, that a have misspelled the table name! The problem  
is still there...

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


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/pierre%40apple.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: Strange behavior of Derby database. SQL generation (SOLVED)

2008-02-05 Thread Sergio Sánchez Maffet
After intensiv reading of the derby docs I found the reason. It  
happens because derby alway uppercases all unquoted identifiers. The  
SQL generation in WOLips puts quotes around the identifiers, turning  
on case sensitivity in derby during creation of the tables. The  
generation of SQL in SQLExpression later accessing the database uses  
unquoted identifiers. They are uppercased by derby and checked against  
the case-sensitiv stored ones, which where in my case lowercase ones.  
Tricky.


The workaround is simple: Use always uppercase identifiers in your  
model file.



On 05.02.2008, at 20:16, Sergio Sánchez Maffet wrote:

The table name in the log submitted in my prior post should be TESTA  
and not CONTENT. This is only a copy paste failure... and does not  
mean, that a have misspelled the table name! The problem is still  
there...

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

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: Strange behavior of Derby database. SQL generation

2008-02-05 Thread Sergio Sánchez Maffet
The table name in the log submitted in my prior post should be TESTA  
and not CONTENT. This is only a copy paste failure... and does not  
mean, that a have misspelled the table name! The problem is still  
there...

___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Strange behavior of Derby database. SQL generation

2008-02-05 Thread Sergio Sánchez Maffet

Hi David,

No, they are not reserved words. I have checked it, even when I prefix  
them they do not work.
This was also my first guess. I have tried it with uppercase and  
lowercase identifiers. Here ist the output of the following commands:


1. show tables; describe content; INSERT INTO TESTA(CREATED, start,  
name, stop, id_r) VALUES ('2008-02-05 01:49:02', NULL, 'Test', NULL,  
'00...[deleted]')
2. show tables; describe content; INSERT INTO testa(created, start,  
name, stop, id_r) VALUES ('2008-02-05 01:49:02', NULL, 'Test', NULL,  
'00...[deleted]')


both produces the same output:
derby:
 [java] ij version 10.2
 [java] CONNECTION0* -  jdbc:derby:test
 [java] * = current connection
 [java] ij> TABLE_SCHEM |TABLE_NAME| 
REMARKS
 [java]  


 [java] SYS |SYSALIASES|
 [java] SYS |SYSCHECKS |
 [java] SYS |SYSCOLPERMS   |
 [java] SYS |SYSCOLUMNS|
 [java] SYS |SYSCONGLOMERATES  |
 [java] SYS |SYSCONSTRAINTS|
 [java] SYS |SYSDEPENDS|
 [java] SYS |SYSFILES  |
 [java] SYS |SYSFOREIGNKEYS|
 [java] SYS |SYSKEYS   |
 [java] SYS |SYSROUTINEPERMS   |
 [java] SYS |SYSSCHEMAS|
 [java] SYS |SYSSTATEMENTS |
 [java] SYS |SYSSTATISTICS |
 [java] SYS |SYSTABLEPERMS |
 [java] SYS |SYSTABLES |
 [java] SYS |SYSTRIGGERS   |
 [java] SYS |SYSVIEWS  |
 [java] SYSIBM  |SYSDUMMY1 |
 [java] APP |TESTA  |
 [java] 22 rows selected
 [java] ij> COLUMN_NAME |TYPE_NAME|DEC&|NUM&|COLUM&| 
COLUMN_DEF|CHAR_OCTE&|IS_NULL&
 [java]  
--
 [java] created |TIMESTAMP|6   |10  |26|NULL   
|NULL  |NO
 [java] id_r|CHAR |NULL|NULL|24|NULL   
|48|NO
 [java] name|CHAR |NULL|NULL|254   |NULL   
|508   |NO
 [java] start   |TIMESTAMP|6   |10  |26|NULL   
|NULL  |YES
 [java] stop|TIMESTAMP|6   |10  |26|NULL   
|NULL  |YES

 [java] 5 rows selected
 [java] ij> ERROR 42X14: 'CREATED' is not a column in table or  
VTI 'APP.CONTENT'.

 [java] ij>

I have really no clue until now...

--
Sergio

On 05.02.2008, at 19:54, David Avendasora wrote:

I don't know about Derby, but table and field names like "created",  
"start", "name" and "stop" give me the creepy-crawlies.


They either are, or are very similar to, reserved words. Could that  
be causing any of your pain? It doesn't really seem like it here,  
but crazier things have happened.


Also, since Java is case-sensitive, is Derby? Is created == CREATED?

Dave

On Feb 5, 2008, at 1:15 PM, Sergio Sánchez Maffet wrote:


Hi all,

I'm trying to get the derby database up and running with a new WO  
application (a simple test). Trying to insert some simple records  
including a 24 byte auto generated primary key, I encountered a  
strange problem related to the SQL.


In contrast to the description in the derby documentation provided  
with the JavaWebObjects examples, derby expects all external names  
surrounded by double quotes. (I have done a dirty trick putting  
double quotes into the external name in the model file itself, only  
to test my guess and it does work)


Here is an example:
The following code will only run when you replace (created, start,  
name, stop, id_r) with ("created", "start", "name", "stop", "id_r")


INSERT INTO tablea(created, start, name, stop, id_r) VALUES (?,  
NULL, ?, NULL, ?)" withBindings: 1:2008-02-05 18:35:43(created),  
2:"Test"(name), 3:(idR)>:


Error:
Next exception:SQL State:42X14 -- error code: 2 -- msg:  
'CREATED' is not a column in table or VTI 'APP.TABLEA'.


But the table and the column exists! Checked with ij tool (show  
tables and describe tablea).


There are three possibilities left:

1. Force the SQLExpression to use quotes on external names, but  
this is deprecated, and a s

Strange behavior of Derby database. SQL generation

2008-02-05 Thread Sergio Sánchez Maffet

Hi all,

I'm trying to get the derby database up and running with a new WO  
application (a simple test). Trying to insert some simple records  
including a 24 byte auto generated primary key, I encountered a  
strange problem related to the SQL.


In contrast to the description in the derby documentation provided  
with the JavaWebObjects examples, derby expects all external names  
surrounded by double quotes. (I have done a dirty trick putting double  
quotes into the external name in the model file itself, only to test  
my guess and it does work)


Here is an example:
The following code will only run when you replace (created, start,  
name, stop, id_r) with ("created", "start", "name", "stop", "id_r")


INSERT INTO tablea(created, start, name, stop, id_r) VALUES (?,  
NULL, ?, NULL, ?)" withBindings: 1:2008-02-05 18:35:43(created),  
2:"Test"(name), 3:(idR)>:


Error:
Next exception:SQL State:42X14 -- error code: 2 -- msg: 'CREATED'  
is not a column in table or VTI 'APP.TABLEA'.


But the table and the column exists! Checked with ij tool (show tables  
and describe tablea).


There are three possibilities left:

1. Force the SQLExpression to use quotes on external names, but this  
is deprecated, and a simple test did not work. (should I try  
harder? ;-))
2. Repair, patch, configuration or what else to let derby accept  
unquoted external names as described in the doc.


Other ideas?

My setup:
derby.system.home=/Library/Databases/Derby
derby.ui.codeset=UTF8

WO 5.4
Derby 10.2.2.0 (jars copied from the examples installation)
WOLips 4788

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

This email sent to [EMAIL PROTECTED]


Re: WOLips Entity Modeler and Derby SQL generation issue. (drop table cascade)

2008-02-04 Thread Sergio Sánchez Maffet

Done. ;-)

On 02.02.2008, at 20:09, Anjo Krank wrote:

As WOLips just calls into the WO Derby plugin, I'd guess you better  
log a bug with WO.


Cheers, Anjo

Am 02.02.2008 um 19:39 schrieb Sergio Sánchez Maffet:

does anybody know a quick workaround for the above mentioned issue.  
Derby does not support the cascade command in drop table  
statements, but the Entity Modeler in WOLips generates always the  
cascade command which leads to a SQL syntax error if you execute  
the SQL without modifications.





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

This email sent to [EMAIL PROTECTED]


WOLips Entity Modeler and Derby SQL generation issue. (drop table cascade)

2008-02-02 Thread Sergio Sánchez Maffet

Hi all,

does anybody know a quick workaround for the above mentioned issue.  
Derby does not support the cascade command in drop table statements,  
but the Entity Modeler in WOLips generates always the cascade command  
which leads to a SQL syntax error if you execute the SQL without  
modifications.


Any Ideas?

WO 5.4
WOLips 4788

Thanks,
Sergio 
 
___

Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: Property List File in WO 5.4 Leopard (e.g. Localized.strings)

2007-11-19 Thread Sergio Sánchez Maffet

Pierre,

Yes, strange thing. I have even tried TextEdit and Xcode to write one  
in UTF8 and UTF16, but with no luck. Ken send me some code, (thank you  
Ken) that he is using, he is loading the File with the  
NSPropertyListSerialization.propertyListFromString(). Don't be sure if  
I should use this as a workaround. What does WOResourceManager use  
internally?


(Sorry for the typo in my previous post: know -> now)

On 17.11.2007, at 18:46, Mr. Pierre Frisch wrote:

Did you check that your plist file is actually UTF8 encoded? Check  
the properties of the file in eclipse.


Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Nov 16, 2007, at 11:29, Sergio Sánchez Maffet wrote:


Hi all,

Does anybody knows how to write a property list file (e.g.,  
Localized.strings) that displays correctly under WO 5.4 (Leopard)?


Any of my attempts failed, it seems to be broken.

I have know tried almost everything without luck, ASCII (with and  
without prefix: // !$*UTF8*$! and // !$*UTF16*$!) and XML plists in  
UTF8 and UTF16 saved with Xcode 3.0, eclipse 3.3.1.1 and Property  
List Editor.


The strings are accessed thru the WOResourceManager stringForKey()  
method.


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


Property List File in WO 5.4 Leopard (e.g. Localized.strings)

2007-11-16 Thread Sergio Sánchez Maffet

Hi all,

Does anybody knows how to write a property list file (e.g.,  
Localized.strings) that displays correctly under WO 5.4 (Leopard)?


Any of my attempts failed, it seems to be broken.

I have know tried almost everything without luck, ASCII (with and  
without prefix: // !$*UTF8*$! and // !$*UTF16*$!) and XML plists in  
UTF8 and UTF16 saved with Xcode 3.0, eclipse 3.3.1.1 and Property List  
Editor.


The strings are accessed thru the WOResourceManager stringForKey()  
method.


Any clues?
--
Regards
Sergio
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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: WWDC & XCode 3

2006-08-07 Thread Sergio Sánchez Maffet

Randy, ask next week, so that Chuck can answer your question! ;-)
I'm also curious about that topic.


On 08.08.2006, at 00:57, Randy Wigginton wrote:

Not being at WWDC, I'm curious as to whether XCode 3 will support  
WebObjects?


Has anything at all been announced at WWDC, or are they maintaining  
the grand tradition of ignoring WO?  (Thinking of getting a WO AIMF  
shirt)


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

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


Missing NSBundle Class in wojavaclient.jar, Howto consume a web service from a java client application

2006-08-07 Thread Sergio Sánchez Maffet

Hi,

I have encountered a problem and does not know a simple way to solve  
the issue, although the solution is very clear.


I need to access a web service from a WO Java Client application,  
from the client, not from the server. Therefore you will need to add  
in addition to the wojavaclient.jar the  
JavaWebServiceSupport.framework and the  
JavaWebServiceClient.framework to the class path of the client  
application. Unfortunately, there is no NSBundle class in the  
wojavaclient.jars com.webobjects.foundation package. The NSBundle  
class is needed by the JavaWebServiceSupport.framework.


One solution would be not to use the wojavaclient.jar and make class  
path references to all needed packages, but then you will also need  
the com.webobjects.eoapplication.client package which is only  
available in the wojavaclient.jar! I dont know where to find it else?


Another solution would be to repack all the jars in a new jar  
including com.webobjects.eoapplication.client and the  
com.webobjects.foundation from the real framework (the one that  
includes NSBundle, remember wojavaclient.jars  
com.webobjects.foundation does not include NSBundle) and to slice out  
the com.webobjects.eoapplication.client classes from the  
wojavaclient.jar. That seems to be the last possibility. But it is  
quit ugly solution, I guess that I will need to sign everything...


Does any one have a better solution? Have I missed something?

I would really appreciate any help,
--
Sergio


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@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