Re: EOTemporaryGlobalID - Unique Bytes

2008-02-27 Thread Andrew Lindesay

Hello Pierre;

I am using the bytes supplied by the TGID to make a globally unique  
code (hex string of the bytes), but have had a couple of cases where  
duplicates appear to have arisen downstream somehow -- I doubted this  
was possible after reading about how the bytes are assembled.  I was  
asking to see if anybody else has had any troubles with this  
technique, but nobody seems to have.  I will trial the J2SE UUID  
approach and if the same problem does arise again then it will tend to  
indicate that it is my problem.


Thanks for the feedback.

cheers.

Can you elaborate on the problem? I have relied on a very similar  
algorithm for years and I have never seen a problem.

...

Thanks for that. I had come across that class too.


___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz



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

This email sent to [EMAIL PROTECTED]


Re: EOTemporaryGlobalID - Unique Bytes

2008-02-27 Thread Mr. Pierre Frisch

Hi Andrew,

Can you elaborate on the problem? I have relied on a very similar  
algorithm for years and I have never seen a problem.


Pierre
--
Pierre Frisch
[EMAIL PROTECTED]


On Feb 27, 2008, at 16:29, Peter Vandoros wrote:


HI Andrew,

Thanks for that. I had come across that class too.

Thanks

Peter

Andrew Lindesay wrote:


Hello Peter;

Just anecdotal evidence -- no concrete logs etc... just wanted to  
see if anybody knew any issues there before I started a more  
involved investigation.  The new method I am trying is;


java.util.UUID.randomUUID().toString();

cheers.


I've been using this and haven't had a problem. yet.
Which cases have you found that it's not unique?
If you find a different method, do you mind posting it here so we  
can look into it too?

...

The method;

   EOTemporaryGlobalID.assignGloballyUniqueBytes(..)

...has javadoc that reads;

Assigns to uniqueBytes an array of bytes that represent a byte  
string that's guaranteed to be unique network wide.


In production I believe that I have seen some cases where it  
might not be completely unique.  Has anybody else come across  
this sort of problem with the TGID before I start looking at the  
J2SE equivalent.


___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz






--
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia

Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
--
IMPORTANT: This e-mail message and any attachments are confidential  
and may be privileged. If received in error, please reply to this  
message and destroy all copies and any attachments. You should check  
this message and any attachments for viruses or defects. Our  
liability is limited to resupplying any affected message or  
attachments. For more information about Etech Group, please visit us  
at http://www.etechgroup.com.au.

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

[OT] "...creation and use of Objective-C objects in Java."

2008-02-27 Thread Owen McKerrow

Hi All,

My father just sent me the following email which came across on the  
Quicktime for Java mailing list. I thought some of you may be  
interested.


Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - -
"As of tomorrow, employees will only be able to access the building  
using individual security cards. Pictures will be taken next  
Wednesday employees will receive their cards in two weeks."

- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp


Begin forwarded message:


Today's Topics:

  1. Announce: Rococoa (Duncan McGregor)


- 
-


Message: 1
Date: Mon, 25 Feb 2008 13:05:21 +
From: "Duncan McGregor" <[EMAIL PROTECTED]>
Subject: Announce: Rococoa
To: [EMAIL PROTECTED]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1

I think that I hinted a while back that I was working on a Java
wrapper for QTKit on the Mac. I'm now pleased to announce that  
Rococoa

has been released as an open source project under LGPL.

"Rococoa is a generic Java binding to the Mac Objective-C object
system. It allows the creation and use of Objective-C objects in  
Java,

and the implementation of Objective-C interfaces in Java."

As part of the Rococoa distribution we wrap some of the QTKit
essentials, allowing Mac users to display a movie in a frame, play  
it,

get at its tracks and media etc.
Everything is at a very early stage, but it seems solid enough to  
play
with. If you've a Mac and an hour free please do give it a go, as  
what

it needs most is feedback.

Rococoa can be found on java.net, here:
   https://rococoa.dev.java.net

Please provide feedback on the user or dev mailing lists,  
accessible here:

   https://rococoa.dev.java.net/servlets/ProjectMailingListList

Enjoy

Duncan


--

___
QuickTime-java mailing list
[EMAIL PROTECTED]
http://lists.apple.com/mailman/listinfo/quicktime-java

End of QuickTime-java Digest, Vol 5, Issue 22
*


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

2008-02-27 Thread Peter Vandoros




HI Andrew,

Thanks for that. I had come across that class too.

Thanks

Peter

Andrew Lindesay wrote:
Hello Peter;
  
  
Just anecdotal evidence -- no concrete logs etc... just wanted to see
if anybody knew any issues there before I started a more involved
investigation.  The new method I am trying is;
  
  
java.util.UUID.randomUUID().toString();
  
  
cheers.
  
  
  I've been using this and haven't had a
problem. yet.

Which cases have you found that it's not unique?

If you find a different method, do you mind posting it here so we can
look into it too?

  
...
  
  
The method;
  
  
   EOTemporaryGlobalID.assignGloballyUniqueBytes(..)
  
  
...has javadoc that reads;
  
  
  Assigns to uniqueBytes an array of bytes
that represent a byte string that's guaranteed to be unique network
wide.

  
  
In production I believe that I have seen some cases where it might not
be completely unique.  Has anybody else come across this sort of
problem with the TGID before I start looking at the J2SE equivalent.
  

  
  
___
  
Andrew Lindesay
  
technology : www.lindesay.co.nz
  
business : www.silvereye.co.nz
  
  
  
  
  


-- 
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia

Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
--
IMPORTANT: This e-mail message and any attachments are confidential and
may be privileged. If received in error, please reply to this message
and destroy all copies and any attachments. You should check this
message and any attachments for viruses or defects. Our liability is
limited to resupplying any affected message or attachments. For more
information about Etech Group, please visit us at
http://www.etechgroup.com.au.


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

2008-02-27 Thread Andrew Lindesay

Hello Peter;

Just anecdotal evidence -- no concrete logs etc... just wanted to see  
if anybody knew any issues there before I started a more involved  
investigation.  The new method I am trying is;


java.util.UUID.randomUUID().toString();

cheers.


I've been using this and haven't had a problem. yet.
Which cases have you found that it's not unique?
If you find a different method, do you mind posting it here so we  
can look into it too?

...

The method;

   EOTemporaryGlobalID.assignGloballyUniqueBytes(..)

...has javadoc that reads;

Assigns to uniqueBytes an array of bytes that represent a byte  
string that's guaranteed to be unique network wide.


In production I believe that I have seen some cases where it might  
not be completely unique.  Has anybody else come across this sort  
of problem with the TGID before I start looking at the J2SE  
equivalent.


___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz



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

This email sent to [EMAIL PROTECTED]


Re: EOTemporaryGlobalID - Unique Bytes

2008-02-27 Thread Peter Vandoros

Hi Andrew,

I've been using this and haven't had a problem. yet.

Which cases have you found that it's not unique?

If you find a different method, do you mind posting it here so we can 
look into it too?


Thanks

Peter

Andrew Lindesay wrote:

Hello;

The method;

EOTemporaryGlobalID.assignGloballyUniqueBytes(..)

...has javadoc that reads;

Assigns to uniqueBytes an array of bytes that represent a byte string 
that's guaranteed to be unique network wide.


In production I believe that I have seen some cases where it might not 
be completely unique.  Has anybody else come across this sort of 
problem with the TGID before I start looking at the J2SE equivalent.


cheers.

___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz



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



This email sent to [EMAIL PROTECTED]



--
Peter Vandoros
Software Engineer
Etech Group Pty Ltd
Level 3/21 Victoria St
Melbourne VIC 3000
Australia

Ph: +61 3 9639 9677
Fax: +61 3 9639 9577
--
IMPORTANT: This e-mail message and any attachments are confidential and 
may be privileged. If received in error, please reply to this message 
and destroy all copies and any attachments. You should check this 
message and any attachments for viruses or defects. Our liability is 
limited to resupplying any affected message or attachments. For more 
information about Etech Group, please visit us at 
http://www.etechgroup.com.au.

___
Do not post admin requests to the list. They will 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: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Dawn Lockhart
My bad, it does work. I didn't have a selection set and was looking at the
item instead. Thanks for the quick reply!

Dawn


On 2/27/08 6:24 PM, "John Larson" <[EMAIL PROTECTED]> wrote:

> No, it should set the field as null with only one value in the list.
> To be clear, there should be two selections in the list; the item from
> the list array and ">select value<" or whatever you have as the
> noSelectionString.
> 
> Of course nothing will happen if you don't have your submit button and
> the popup button in the same form  :-)  Just another thing to check.
> 
> John
> 
> On Feb 27, 2008, at 4:57 PM, Dawn Lockhart wrote:
> 
>> Didn't know about the noSelectionString either. So I added it and it
>> is not
>> returning null for me, it is returning the first item in the
>> WOPopupButton.
>> Could this be because right now I only have one item and once I add
>> more
>> then it will return null?
>> 
>> ___
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/the_larsons%40mac.com
>> 
>> This email sent to [EMAIL PROTECTED]
> 

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

This email sent to [EMAIL PROTECTED]


Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread John Larson
No, it should set the field as null with only one value in the list.   
To be clear, there should be two selections in the list; the item from  
the list array and ">select value<" or whatever you have as the  
noSelectionString.


Of course nothing will happen if you don't have your submit button and  
the popup button in the same form  :-)  Just another thing to check.


John

On Feb 27, 2008, at 4:57 PM, Dawn Lockhart wrote:

Didn't know about the noSelectionString either. So I added it and it  
is not
returning null for me, it is returning the first item in the  
WOPopupButton.
Could this be because right now I only have one item and once I add  
more

then it will return null?

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

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Dawn Lockhart
Didn't know about the noSelectionString either. So I added it and it is not
returning null for me, it is returning the first item in the WOPopupButton.
Could this be because right now I only have one item and once I add more
then it will return null?

 ___
Do not post admin requests to the list. They will 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: Illegal State Exceptions when using MultiECLockManager

2008-02-27 Thread Chuck Hill
I think that might be one of the messages you get when you make  
relationships between objects in two different editing contexts.


Chuck


On Feb 27, 2008, at 1:56 PM, Owen McKerrow wrote:


Hi All,

Over the past couple of days I have received some emails from one  
of my apps which is using the MultiECLockManager() to manage its  
EditingContexts


EXCEPTION:
java.lang.IllegalStateException: prepareForSaveWithCoordinator:  
[EMAIL PROTECTED] is currently  
saving for [EMAIL PROTECTED] so it  
cannot prepare to save for  
[EMAIL PROTECTED]   
[EMAIL PROTECTED] has  
sources ([EMAIL PROTECTED])
prepareForSaveWithCoordinator:  
[EMAIL PROTECTED] is currently  
saving for [EMAIL PROTECTED] so it  
cannot prepare to save for  
[EMAIL PROTECTED]   
[EMAIL PROTECTED] has  
sources ([EMAIL PROTECTED])


STACK TRACE:
at prepareForSaveWithCoordinator(EODatabaseContext.java:5790)
at saveChangesInEditingContext(EOObjectStoreCoordinator.java:409)
at saveChanges(EOEditingContext.java:3226)
at writeToAccessLog(LogHelper.java:101)
at appendToResponse(RISFPageComponent.java:47)
at appendToResponse(RISPageComponent.java:217)
at appendToResponse(WOSession.java:1200)
at appendToResponse(Session.java:64)
at appendToResponse(WOApplication.java:1418)
at appendToResponse(RISApplication.java:286)
at appendToResponse(Application.java:96)
at _dispatchWithPreparedPage(WOComponentRequestHandler.java:230)
at _dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
at _dispatchWithPreparedApplication(WOComponentRequestHandler.java: 
322)

at _handleRequest(WOComponentRequestHandler.java:358)


What Im not sure of is how it gets into this state if  
MultiECLockManager() is managing the locks. What sort of thing  
could cause this message ? What sort of things should I be looking  
for in my code which might cause this ? Maybe Im over thinking it  
and its quite simple but at the moment Im drawing a blank and not  
quite sure where to start.


Thanks

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - -
"As of tomorrow, employees will only be able to access the building  
using individual security cards. Pictures will be taken next  
Wednesday employees will receive their cards in two weeks."

- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp


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


This email sent to [EMAIL PROTECTED]



--

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

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





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

This email sent to [EMAIL PROTECTED]


Illegal State Exceptions when using MultiECLockManager

2008-02-27 Thread Owen McKerrow

Hi All,

Over the past couple of days I have received some emails from one of  
my apps which is using the MultiECLockManager() to manage its  
EditingContexts


EXCEPTION:
java.lang.IllegalStateException: prepareForSaveWithCoordinator:  
[EMAIL PROTECTED] is currently saving  
for [EMAIL PROTECTED] so it cannot  
prepare to save for  
[EMAIL PROTECTED]   
[EMAIL PROTECTED] has sources  
([EMAIL PROTECTED])
prepareForSaveWithCoordinator:  
[EMAIL PROTECTED] is currently saving  
for [EMAIL PROTECTED] so it cannot  
prepare to save for  
[EMAIL PROTECTED]   
[EMAIL PROTECTED] has sources  
([EMAIL PROTECTED])


STACK TRACE:
at prepareForSaveWithCoordinator(EODatabaseContext.java:5790)
at saveChangesInEditingContext(EOObjectStoreCoordinator.java:409)
at saveChanges(EOEditingContext.java:3226)
at writeToAccessLog(LogHelper.java:101)
at appendToResponse(RISFPageComponent.java:47)
at appendToResponse(RISPageComponent.java:217)
at appendToResponse(WOSession.java:1200)
at appendToResponse(Session.java:64)
at appendToResponse(WOApplication.java:1418)
at appendToResponse(RISApplication.java:286)
at appendToResponse(Application.java:96)
at _dispatchWithPreparedPage(WOComponentRequestHandler.java:230)
at _dispatchWithPreparedSession(WOComponentRequestHandler.java:287)
at _dispatchWithPreparedApplication(WOComponentRequestHandler.java:322)
at _handleRequest(WOComponentRequestHandler.java:358)


What Im not sure of is how it gets into this state if  
MultiECLockManager() is managing the locks. What sort of thing could  
cause this message ? What sort of things should I be looking for in  
my code which might cause this ? Maybe Im over thinking it and its  
quite simple but at the moment Im drawing a blank and not quite sure  
where to start.


Thanks

Owen McKerrow
WebMaster, emlab
Ph : +61 02 4221 5517
http://emlab.uow.edu.au

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - -
"As of tomorrow, employees will only be able to access the building  
using individual security cards. Pictures will be taken next  
Wednesday employees will receive their cards in two weeks."

- "Dilbert Quotes" Winner, Fred Dales, Microsoft Corp


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

2008-02-27 Thread Lachlan Deck

On 27/02/2008, at 11:35 PM, Daniele Corti wrote:


2008/2/27, Yung-Luen Lan <[EMAIL PROTECTED]>:


Hi all,

I'm a newbie of both WebObjects and server programming who is  
responsible
to maintain a WO project left by other guy several years ago. I've  
added
some features and tested in Eclipse. However, during these year, I  
always
encountered a problem when I want to update the  
ERExtensions.framework in

/Library/Frameworks.

When I replace the original ERExtensions.framework (whose version is
believed ≤ Project WONDER 3) with new one, I got the exception:


Do you also replace ERJar.framework?

Exception in thread "main" java.lang.ExceptionInInitializerError

Caused by: java.lang.NullPointerException
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:271)
at org.apache.log4j.LogManager.getLogger(LogManager.java:220)
at org.apache.log4j.Logger.getLogger(Logger.java:156)
at er.extensions.ERXLogger.getLogger(ERXLogger.java:111)
at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:91)
at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:121)
at woserver.Application.(Application.java:25)

And that's the very first line of my project.

public class Application extends ERXApplication {
public static final ERXLogger log = ERXLogger.getERXLogger(
Application.class);


Replace all of these with:
[public/private] static final org.apache.log4j.Logger log =  
org.apache.log4j.Logger.getLogger( TheClass.class.getName() );




I've my Properties file configured like this:


Here's what I've got. Modify as necessary...

In Properties file:
er.extensions.ERXProperties.OptionalConfigurationFiles=(Properties/ 
log4j.properties,...)


And in Properties/log4j.properties:
# log4j appender and formatting
log4j.rootLogger=INFO, A1, myMail
log4j.loggerFactory=er.extensions.ERXLogger$Factory

# A1 is a ConsoleAppender
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=er.extensions.ERXPatternLayout
#log4j.appender.A1.layout.ConversionPattern=%-5p %d{HH:mm:ss} (%-20c:% 
L) %x -%m%n
log4j.appender.A1.layout.ConversionPattern=%r %-5p %d{ISO8601} [%t] (% 
C{3}, %M, %L) - %n%m%n%n


# A2 is a DailyRollingFileAppender
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.file=/var/log/webobjects_apps/my.woa.log
log4j.appender.A2.datePattern='.'-MM-dd
log4j.appender.A2.append=true
log4j.appender.A2.layout=er.extensions.ERXPatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] (%c:  
%L) - %m%n


# myMail is the SMTPAppender
log4j.appender.myMail=org.apache.log4j.net.SMTPAppender
log4j.appender.myMail.Threshold=ERROR
log4j.appender.myMail.BufferSize=10
log4j.appender.myMail.From=<...snip...>
log4j.appender.myMail.To=<...snip...>
log4j.appender.myMail.SMTPHost=localhost
log4j.appender.myMail.Subject=Log4J Error Message (<...snip...>)
log4j.appender.myMail.layout=er.extensions.ERXPatternLayout
log4j.appender.myMail.layout.ConversionPattern=%r %-5p %d{ISO8601} [% 
t] %n%n (%C, %M, %F:%L) - %n%n%m%n


 


# This is needed to see all startup logs
log4j.logger.NSLog=DEBUG
 



#log4j.logger.some.package.someclassToDebug=DEBUG
# etc

with regards,
--

Lachlan Deck



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

This email sent to [EMAIL PROTECTED]


Stylesheets & Servlets

2008-02-27 Thread Oliver Scheel
I have two problems when deploying a Wonder app under Tomcat 5.5 (SSDD):

I include stylesheets with ERXStyleSheet. When I first access the app no
stylesheets are loaded, (perhaps) because of a
"wr;jsessionid=.../wodata=..." in the url. The second request loads the
stylesheets with the (for me) correct form (without wr;jsessionid).

The second thing is that this stylesheet contains background-images that are
referred with a relative path like "../img/some_image.gif". This doesn't
work - even when I request generated URL manually in a new window.

Any hints? (using latest build Wonder build 467 for WO 5.3)


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


EOTemporaryGlobalID - Unique Bytes

2008-02-27 Thread Andrew Lindesay

Hello;

The method;

EOTemporaryGlobalID.assignGloballyUniqueBytes(..)

...has javadoc that reads;

Assigns to uniqueBytes an array of bytes that represent a byte  
string that's guaranteed to be unique network wide.


In production I believe that I have seen some cases where it might not  
be completely unique.  Has anybody else come across this sort of  
problem with the TGID before I start looking at the J2SE equivalent.


cheers.

___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz



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

This email sent to [EMAIL PROTECTED]


Re: wolips blog

2008-02-27 Thread Mark Ritchie

On 27-Feb-08, at 2:51 PM, David den Boer wrote:

you rock

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

2008-02-27 Thread David den Boer

Mike,

Never publicly said this before, but it is long deserved :

you rock

On Feb 27, 2008, at 5:48 AM, Mike Schrag wrote:

The wolips blog is up at http://wolips.blogspot.com .  This makes  
more sense for announcement-y posts than the woproject-dev mailing  
list does, so woproject-dev can actually really be a -dev list (for  
discussions on wolips development topics) and the wolips blog can  
be the place for end-users to keep up with releases.


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/ddenboer% 
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: [Wonder-disc] Wonder Ajax examples

2008-02-27 Thread David Holt

Thanks John,

Nice to see some of this stuff in action!

David

On 27-Feb-08, at 7:31 AM, John Larson wrote:


Here is a movie I put together to showcase some of the things that I
have done with Wonder's Ajax framework.  I have been very happy with
the results, and the users love it.  I can't express how great all the
work that Mike (?) has put into the Ajax stuff is, and how I think it
makes Wonder really much more 21st century.  I'd be happy to help as I
can with integrating Ajax into projects.

John

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

-- 
---

This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Wonder-disc mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wonder-disc


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


2008.2.27

2008-02-27 Thread Jeffrey W. Pearson
It is my wife's turn at this. She asked me to stay home to help with the 
kids while she goes through the worst of this today. I am available via 
email and cell phone.

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

2008-02-27 Thread Alexander Spohr

is monitor running with the same user?
all env-vars are equally set?


Am 27.02.2008 um 19:40 schrieb Amedeo Mantica:


The problem is 50% solved... :)

now if I launch the application from terminal its loads correctly,  
but via JavaMonitor ( OSX Server Tiger ) won't start, application  
privileges seems to be ok


Regards
Amedeo

On 27/feb/08, at 13:52, Anjo Krank wrote:

Classpath ordering. We fix this for normal deployment but not  
servlet deployment (not sure we even can). Make sure your  
frameworks and app comes before ERX and everything else.


Cheers, Anjo

Am 27.02.2008 um 13:44 schrieb Amedeo Mantica:


Hi,
It works in default deployment mode
Amedeo

On 27/feb/08, at 12:47, Daniele Corti wrote:


Hi,
does it work in default deployment mode, or is only an error  
while deploying in servlet?


2008/2/27, Amedeo Mantica <[EMAIL PROTECTED]>: Helo all  
friends, I have this problem:


I have a Wonder Application
I made ANT build in servlet mode.
When I launch the app i got this:

Application: renatozacchia
Error:   java.lang.IllegalArgumentException: Class 'Main' exists  
but is

not a subclass of WOComponent.
Reason:  
Class 'Main' exists but is not a subclass of WOComponent.
Extra info: {
  "Bundles" = {
  "ERExtensions" = "4.0";
  "JavaWebObjects" = "5.4";
  "ERJars" = "4.0";
  "JavaXML" = "5.4";
  "JavaJDBCAdaptor" = "5.4";
  "OpenBasePKPlugin" = "";
  "WOOgnl" = "4.0";
  "JavaEOAccess" = "5.4";
  "JavaEOControl" = "5.4";
  "JavaFoundation" = "5.4";
  "renatozacchia" = "";
  "JavaWOExtensions" = "4.0";
  "ERPrototypes" = "4.0";
  };
}




WOComponentDefinition.java  518 _componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  526 componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  532 _componentInstanceInContext
com.webobjects.appserver._private
WOComponentDefinition.java  664 componentInstanceInContext
com.webobjects.appserver._private
WOApplication.java  2323pageWithName 
com.webobjects.appserver
WOComponentRequestHandler.java  284  
_dispatchWithPreparedSession

com.webobjects.appserver._private
WOComponentRequestHandler.java  332  
_dispatchWithPreparedApplication

com.webobjects.appserver._private
WOComponentRequestHandler.java  369 _handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java  442 handleRequest
com.webobjects.appserver._private
WOApplication.java  1678dispatchRequest  
com.webobjects.appserver

ERXApplication.java 1415dispatchRequest er.extensions
WOWorkerThread.java 144 runOnce  
com.webobjects.appserver._private
WOWorkerThread.java 226 run  
com.webobjects.appserver._private

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

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly  
if you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young


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

This email sent to [EMAIL PROTECTED]


Freeport & Soliversum
Alexander Spohr
[EMAIL PROTECTED]
www.freeport.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 [EMAIL PROTECTED]


Re: Strange WO trouble

2008-02-27 Thread Amedeo Mantica

The problem is 50% solved... :)

now if I launch the application from terminal its loads correctly, but  
via JavaMonitor ( OSX Server Tiger ) won't start, application  
privileges seems to be ok


Regards
Amedeo

On 27/feb/08, at 13:52, Anjo Krank wrote:

Classpath ordering. We fix this for normal deployment but not  
servlet deployment (not sure we even can). Make sure your frameworks  
and app comes before ERX and everything else.


Cheers, Anjo

Am 27.02.2008 um 13:44 schrieb Amedeo Mantica:


Hi,
It works in default deployment mode
Amedeo

On 27/feb/08, at 12:47, Daniele Corti wrote:


Hi,
does it work in default deployment mode, or is only an error while  
deploying in servlet?


2008/2/27, Amedeo Mantica <[EMAIL PROTECTED]>: Helo all  
friends, I have this problem:


I have a Wonder Application
I made ANT build in servlet mode.
When I launch the app i got this:

Application: renatozacchia
Error:   java.lang.IllegalArgumentException: Class 'Main' exists  
but is

not a subclass of WOComponent.
Reason:  
Class 'Main' exists but is not a subclass of WOComponent.
Extra info: {
   "Bundles" = {
   "ERExtensions" = "4.0";
   "JavaWebObjects" = "5.4";
   "ERJars" = "4.0";
   "JavaXML" = "5.4";
   "JavaJDBCAdaptor" = "5.4";
   "OpenBasePKPlugin" = "";
   "WOOgnl" = "4.0";
   "JavaEOAccess" = "5.4";
   "JavaEOControl" = "5.4";
   "JavaFoundation" = "5.4";
   "renatozacchia" = "";
   "JavaWOExtensions" = "4.0";
   "ERPrototypes" = "4.0";
   };
}




WOComponentDefinition.java  518 _componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  526 componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  532 _componentInstanceInContext
com.webobjects.appserver._private
WOComponentDefinition.java  664 componentInstanceInContext
com.webobjects.appserver._private
WOApplication.java  2323pageWithName 
com.webobjects.appserver

WOComponentRequestHandler.java  284 _dispatchWithPreparedSession
com.webobjects.appserver._private
WOComponentRequestHandler.java  332  
_dispatchWithPreparedApplication

com.webobjects.appserver._private
WOComponentRequestHandler.java  369 _handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java  442 handleRequest
com.webobjects.appserver._private
WOApplication.java  1678dispatchRequest  
com.webobjects.appserver

ERXApplication.java 1415dispatchRequest er.extensions
WOWorkerThread.java 144 runOnce  
com.webobjects.appserver._private
WOWorkerThread.java 226 run  
com.webobjects.appserver._private

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

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly  
if you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young


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


[OT] need a few testers

2008-02-27 Thread Josh Paul
I've just deployed a new site and am looking for some people to give  
it a run through. It's a WO app that allows people to create a 15s  
video commercial which is then digitally distributed. The site  
currently requires QuickTime and Flash (9+ if you're on Leopard).


If you're willing to help out, please send me an email off-list and  
I'll get you login information.


Thanks!
___
Do not post admin requests to the list. They will 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: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Susanne Schneider

Hi Archibald,

don't you mean the "noSelectionString"? Just set this binding to a 
string like "- please select a value -" or anything similar.


No further hassling necessary ;-)

HTH
Susanne
--
Susanne Schneider
Coordinator secuSuite Development

iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin

fon+49(0)30 69 00 42 - 05
fax+49(0)30 69 00 42 - 10
mail   [EMAIL PROTECTED]
webhttp://www.interActive-Systems.de


Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B

___
Do not post admin requests to the list. They will 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: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Archibal Singleton


On 27 Feb 2008, at 12:01, Mike Schrag wrote:


So I'm curious to know how you guys deal with this "problem"?
Not sure if I'm reading this correctly, but you should be able to  
just set noSelectionString = "Select a Person" (or whatever) ...  
When noSelectionString is submitted, it binds back to you as a null  
value.



Oopps, sorry! I guess I managed to somehow miss this binding %-)
I had the feeling that there had to be a simpler WebObjects kind of  
way to doing this. Glad I ask.


Thanks David and Thanks Mike.

= tmk =


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

2008-02-27 Thread Mike Schrag

Mike (?)

stmt.setParameter(1, "Anjo, Timo, Chuck, et al")

ms

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

This email sent to [EMAIL PROTECTED]


Wonder Ajax examples

2008-02-27 Thread John Larson
Here is a movie I put together to showcase some of the things that I  
have done with Wonder's Ajax framework.  I have been very happy with  
the results, and the users love it.  I can't express how great all the  
work that Mike (?) has put into the Ajax stuff is, and how I think it  
makes Wonder really much more 21st century.  I'd be happy to help as I  
can with integrating Ajax into projects.


John

http://www.youtube.com/watch?v=kYe9cxlFTG8
___
Do not post admin requests to the list. They will 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: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread George Domurot
Try binding the noSelectionString attribute to "> Select One <" and  
see what happens.


-G

On Feb 27, 2008, at 6:53 AM, Archibal Singleton wrote:


Hi everybody,

I was wondering what would be the best way to solve the following  
recurring problem:


You want to present a user with a list of options, using a  
WOPopUpButton. Typically those options are some kind of EO.


By default, the first time the list is presented, the selected  
(ideally the first item on the list) option would a *place holder*  
to indicate that no actual option is selected.


Now my question is how best to implement this?

The idea is that the dummy place holder is just be an artifact of  
the view.


But the WOPopUpButton iterates over a list of EOs so the dummy  
option should somehow be a dummy EO in that list and be handled  
correctly in various places (check for the selection, preventing  
from saving the dummy EO, etc) which makes it hard to prevent it  
from polluting my code beyond the view level.


So I'm curious to know how you guys deal with this "problem"?

Many thanks for any insight.

= tmk =
___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/george%40boxofficetickets.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: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Mike Schrag

So I'm curious to know how you guys deal with this "problem"?
Not sure if I'm reading this correctly, but you should be able to just  
set noSelectionString = "Select a Person" (or whatever) ... When  
noSelectionString is submitted, it binds back to you as a null value.


ms

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

This email sent to [EMAIL PROTECTED]


Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread David LeBer


On 27-Feb-08, at 9:53 AM, Archibal Singleton wrote:


Hi everybody,

I was wondering what would be the best way to solve the following  
recurring problem:


You want to present a user with a list of options, using a  
WOPopUpButton. Typically those options are some kind of EO.


By default, the first time the list is presented, the selected  
(ideally the first item on the list) option would a *place holder*  
to indicate that no actual option is selected.


Now my question is how best to implement this?

The idea is that the dummy place holder is just be an artifact of  
the view.


But the WOPopUpButton iterates over a list of EOs so the dummy  
option should somehow be a dummy EO in that list and be handled  
correctly in various places (check for the selection, preventing  
from saving the dummy EO, etc) which makes it hard to prevent it  
from polluting my code beyond the view level.


So I'm curious to know how you guys deal with this "problem"?

Many thanks for any insight.


the 'noSelectionString' binding doesn't do what you want?




;david

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


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

This email sent to [EMAIL PROTECTED]


Re: Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Archibal Singleton

Here are two screenshots to illustrate what I mean...

<>



<>




On 27 Feb 2008, at 11:53, Archibal Singleton wrote:


Hi everybody,

I was wondering what would be the best way to solve the following  
recurring problem:


You want to present a user with a list of options, using a  
WOPopUpButton. Typically those options are some kind of EO.


By default, the first time the list is presented, the selected  
(ideally the first item on the list) option would a *place holder*  
to indicate that no actual option is selected.


Now my question is how best to implement this?

The idea is that the dummy place holder is just be an artifact of  
the view.


But the WOPopUpButton iterates over a list of EOs so the dummy  
option should somehow be a dummy EO in that list and be handled  
correctly in various places (check for the selection, preventing  
from saving the dummy EO, etc) which makes it hard to prevent it  
from polluting my code beyond the view level.


So I'm curious to know how you guys deal with this "problem"?

Many thanks for any insight.

= tmk =


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

Best practice for dummy empty option in a WOPopupButton

2008-02-27 Thread Archibal Singleton

Hi everybody,

I was wondering what would be the best way to solve the following  
recurring problem:


You want to present a user with a list of options, using a  
WOPopUpButton. Typically those options are some kind of EO.


By default, the first time the list is presented, the selected  
(ideally the first item on the list) option would a *place holder* to  
indicate that no actual option is selected.


Now my question is how best to implement this?

The idea is that the dummy place holder is just be an artifact of the  
view.


But the WOPopUpButton iterates over a list of EOs so the dummy option  
should somehow be a dummy EO in that list and be handled correctly in  
various places (check for the selection, preventing from saving the  
dummy EO, etc) which makes it hard to prevent it from polluting my  
code beyond the view level.


So I'm curious to know how you guys deal with this "problem"?

Many thanks for any insight.

= tmk =
___
Do not post admin requests to the list. They will 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: NullPointerException in ERXLogger.getERXLogger

2008-02-27 Thread Daniele Corti
2008/2/27 Yung-Luen Lan <[EMAIL PROTECTED]>:

> 2008/2/27 Daniele Corti <[EMAIL PROTECTED]>:
>
> > 2008/2/27, Yung-Luen Lan <[EMAIL PROTECTED] <[EMAIL PROTECTED]>
> >
> > > An extra question: when you add some features to your wo project, how
> > > do you stop the current running wo server and start the new one? I don't
> > > know how to do this so I run my server inside eclipse. I know it's stupid,
> > > but I couldn't find the answer. Maybe it's too basic to document?
> >
> >
> > Not a stupid question: look at the bottom panels, and select the Console
> > one (if you are running WO app in development, WOLips changes it to show
> > logs) at the top of the panel, you can see a little red square. You can stop
> > the current app by clicking on it. It's not very visible, I've passed months
> > before notice it, when I've started working on Eclipse.
> >
>
> Thanks for your reply. My question actually is, how do you do that for
> normal deployed WO server. That is, the WO server is not running inside
> Eclipse --- sorry that I didn't make it clear.
>
> Regards,
> yllan
>

Are you using JavaMonitor?

if not what do you do? call the build file from Terminal?


-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 ___
Do not post admin requests to the list. They will 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: NullPointerException in ERXLogger.getERXLogger

2008-02-27 Thread Yung-Luen Lan
2008/2/27 Daniele Corti <[EMAIL PROTECTED]>:

> 2008/2/27, Yung-Luen Lan <[EMAIL PROTECTED] <[EMAIL PROTECTED]>
>
> > An extra question: when you add some features to your wo project, how do
> > you stop the current running wo server and start the new one? I don't know
> > how to do this so I run my server inside eclipse. I know it's stupid, but I
> > couldn't find the answer. Maybe it's too basic to document?
>
>
> Not a stupid question: look at the bottom panels, and select the Console
> one (if you are running WO app in development, WOLips changes it to show
> logs) at the top of the panel, you can see a little red square. You can stop
> the current app by clicking on it. It's not very visible, I've passed months
> before notice it, when I've started working on Eclipse.
>

Thanks for your reply. My question actually is, how do you do that for
normal deployed WO server. That is, the WO server is not running inside
Eclipse --- sorry that I didn't make it clear.

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

2008-02-27 Thread Anjo Krank
Classpath ordering. We fix this for normal deployment but not servlet  
deployment (not sure we even can). Make sure your frameworks and app  
comes before ERX and everything else.


Cheers, Anjo

Am 27.02.2008 um 13:44 schrieb Amedeo Mantica:


Hi,
It works in default deployment mode
Amedeo

On 27/feb/08, at 12:47, Daniele Corti wrote:


Hi,
 does it work in default deployment mode, or is only an error while  
deploying in servlet?


2008/2/27, Amedeo Mantica <[EMAIL PROTECTED]>: Helo all  
friends, I have this problem:


I have a Wonder Application
I made ANT build in servlet mode.
When I launch the app i got this:

Application: renatozacchia
Error:   java.lang.IllegalArgumentException: Class 'Main' exists  
but is

not a subclass of WOComponent.
Reason:  
Class 'Main' exists but is not a subclass of WOComponent.
Extra info: {
"Bundles" = {
"ERExtensions" = "4.0";
"JavaWebObjects" = "5.4";
"ERJars" = "4.0";
"JavaXML" = "5.4";
"JavaJDBCAdaptor" = "5.4";
"OpenBasePKPlugin" = "";
"WOOgnl" = "4.0";
"JavaEOAccess" = "5.4";
"JavaEOControl" = "5.4";
"JavaFoundation" = "5.4";
"renatozacchia" = "";
"JavaWOExtensions" = "4.0";
"ERPrototypes" = "4.0";
};
}




WOComponentDefinition.java  518 _componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  526 componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  532 _componentInstanceInContext
com.webobjects.appserver._private
WOComponentDefinition.java  664 componentInstanceInContext
com.webobjects.appserver._private
WOApplication.java  2323pageWithName 
com.webobjects.appserver

WOComponentRequestHandler.java  284 _dispatchWithPreparedSession
com.webobjects.appserver._private
WOComponentRequestHandler.java  332  
_dispatchWithPreparedApplication

com.webobjects.appserver._private
WOComponentRequestHandler.java  369 _handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java  442 handleRequest
com.webobjects.appserver._private
WOApplication.java  1678dispatchRequest  
com.webobjects.appserver

ERXApplication.java 1415dispatchRequest er.extensions
WOWorkerThread.java 144 runOnce  
com.webobjects.appserver._private
WOWorkerThread.java 226 run  
com.webobjects.appserver._private

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

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly  
if you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young


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

2008-02-27 Thread Anjo Krank

ERXLogger has long since been gone.

The frameworks are by no means a drag and drop replace and I can't  
figure why you would even want to do it?


You need to actually build and deploy a new version of your apps.

Cheers, Anjo

Am 27.02.2008 um 13:11 schrieb Yung-Luen Lan:


Hi all,

I'm a newbie of both WebObjects and server programming who is  
responsible to maintain a WO project left by other guy several years  
ago. I've added some features and tested in Eclipse. However, during  
these year, I always encountered a problem when I want to update the  
ERExtensions.framework in /Library/Frameworks.


When I replace the original ERExtensions.framework (whose version is  
believed ≤ Project WONDER 3) with new one, I got the exception:


Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:271)
at org.apache.log4j.LogManager.getLogger(LogManager.java:220)
at org.apache.log4j.Logger.getLogger(Logger.java:156)
at er.extensions.ERXLogger.getLogger(ERXLogger.java:111)
at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:91)
at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:121)
at woserver.Application.(Application.java:25)

And that's the very first line of my project.

public class Application extends ERXApplication {
public static final ERXLogger log =  
ERXLogger.getERXLogger(Application.class);


I've my Properties file configured like this:

 BEGIN OF PART OF MY PROPERTIES FILE 
er.extensions.ERXLocalizer.frameworkSearchPath = (app,ERExtensions)
er.extensions.ERXLocalizer.defaultLanguage = English
er.extensions.ERXLocalizer.availableLanguages = (English, Chinese)

### Enterprise Objects ###
er.extensions.ERXRaiseOnMissingEditingContextDelegate = false

### Application Name ###
er.extensions.ERXApplicationHostURL = localhost

#
# Log4j Configuration
#
log4j.rootLogger = INFO, A1, A2
log4j.loggerFactory=er.extensions.ERXLogger$Factory

# Appenders
log4j.appender.A1 = org.apache.log4j.ConsoleAppender

log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.datePattern='.'-MM-dd
log4j.appender.A2.append = true
log4j.appender.A2.File = /var/log/woproject/woproject.log

# A1, A2 uses PatternLayout.
log4j.appender.A1.layout = er.extensions.ERXPatternLayout
log4j.appender.A2.layout = er.extensions.ERXPatternLayout

# This pattern will produce logs that look like:
# 2002-06-18 17:46:18,292 MyAppName[4002:9133 0] MyCategory  
(MyClass.java:40)  - Some log
log4j.appender.A1.layout.ConversionPattern = %d{ISO8601} %-5p  
%W{n[i:p s]} %c{1} (%F:%L) %x - %m%n
log4j.appender.A2.layout.ConversionPattern = %d{ISO8601} %-5p  
%W{n[i:p s]} %c{1} (%F:%L) %x - %m%n


# Note that %F and %L is fairly slow and shouldn't be used in  
performance intensive logging



# Custom Categories - These are the main categories and sub categories
#that are used in frameworks.


# Base Category
log4j.logger.er = INFO
log4j.logger.er.extensions.ERXNSLogLog4jBridge = INFO
log4j.additivity.er.extensions.ERXNSLogLog4jBridge = false

log4j.logger.er.changenotification = INFO
 END OF PART OF MY PROPERTIES FILE 

Hence, I must copy the old ERExtensions to a new environment every  
time. Did I miss something?


An extra question: when you add some features to your wo project,  
how do you stop the current running wo server and start the new one?  
I don't know how to do this so I run my server inside eclipse. I  
know it's stupid, but I couldn't find the answer. Maybe it's too  
basic to document?


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

2008-02-27 Thread Amedeo Mantica

Hi,
It works in default deployment mode
Amedeo

On 27/feb/08, at 12:47, Daniele Corti wrote:


Hi,
 does it work in default deployment mode, or is only an error while  
deploying in servlet?


2008/2/27, Amedeo Mantica <[EMAIL PROTECTED]>:
Helo all friends, I have this problem:

I have a Wonder Application
I made ANT build in servlet mode.
When I launch the app i got this:

Application: renatozacchia
Error:   java.lang.IllegalArgumentException: Class 'Main' exists but  
is

not a subclass of WOComponent.
Reason:  
Class 'Main' exists but is not a subclass of WOComponent.
Extra info: {
"Bundles" = {
"ERExtensions" = "4.0";
"JavaWebObjects" = "5.4";
"ERJars" = "4.0";
"JavaXML" = "5.4";
"JavaJDBCAdaptor" = "5.4";
"OpenBasePKPlugin" = "";
"WOOgnl" = "4.0";
"JavaEOAccess" = "5.4";
"JavaEOControl" = "5.4";
"JavaFoundation" = "5.4";
"renatozacchia" = "";
"JavaWOExtensions" = "4.0";
"ERPrototypes" = "4.0";
};
}




WOComponentDefinition.java  518 _componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  526 componentClass
com.webobjects.appserver._private
WOComponentDefinition.java  532 _componentInstanceInContext
com.webobjects.appserver._private
WOComponentDefinition.java  664 componentInstanceInContext
com.webobjects.appserver._private
WOApplication.java  2323pageWithName 
com.webobjects.appserver

WOComponentRequestHandler.java  284 _dispatchWithPreparedSession
com.webobjects.appserver._private
WOComponentRequestHandler.java  332  
_dispatchWithPreparedApplication

com.webobjects.appserver._private
WOComponentRequestHandler.java  369 _handleRequest
com.webobjects.appserver._private
WOComponentRequestHandler.java  442 handleRequest
com.webobjects.appserver._private
WOApplication.java  1678dispatchRequest  
com.webobjects.appserver

ERXApplication.java 1415dispatchRequest er.extensions
WOWorkerThread.java 144 runOnce  
com.webobjects.appserver._private
WOWorkerThread.java 226 run  
com.webobjects.appserver._private

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

This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if  
you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young


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

2008-02-27 Thread Daniele Corti
2008/2/27, Yung-Luen Lan <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I'm a newbie of both WebObjects and server programming who is responsible
> to maintain a WO project left by other guy several years ago. I've added
> some features and tested in Eclipse. However, during these year, I always
> encountered a problem when I want to update the ERExtensions.framework in
> /Library/Frameworks.
>
> When I replace the original ERExtensions.framework (whose version is
> believed ≤ Project WONDER 3) with new one, I got the exception:


Do you also replace ERJar.framework?

Exception in thread "main" java.lang.ExceptionInInitializerError
> Caused by: java.lang.NullPointerException
> at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:271)
> at org.apache.log4j.LogManager.getLogger(LogManager.java:220)
> at org.apache.log4j.Logger.getLogger(Logger.java:156)
> at er.extensions.ERXLogger.getLogger(ERXLogger.java:111)
> at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:91)
> at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:121)
> at woserver.Application.(Application.java:25)
>
> And that's the very first line of my project.
>
> public class Application extends ERXApplication {
> public static final ERXLogger log = ERXLogger.getERXLogger(
> Application.class);
>
> I've my Properties file configured like this:
>
>  BEGIN OF PART OF MY PROPERTIES FILE 
> er.extensions.ERXLocalizer.frameworkSearchPath = (app,ERExtensions)
> er.extensions.ERXLocalizer.defaultLanguage = English
> er.extensions.ERXLocalizer.availableLanguages = (English, Chinese)
>
> ### Enterprise Objects ###
> er.extensions.ERXRaiseOnMissingEditingContextDelegate = false
>
> ### Application Name ###
> er.extensions.ERXApplicationHostURL = localhost
>
> #
> # Log4j Configuration
> #
> log4j.rootLogger = INFO, A1, A2
> log4j.loggerFactory=er.extensions.ERXLogger$Factory
>
> # Appenders
> log4j.appender.A1 = org.apache.log4j.ConsoleAppender
>
> log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
> log4j.appender.A2.datePattern='.'-MM-dd
> log4j.appender.A2.append = true
> log4j.appender.A2.File = /var/log/woproject/woproject.log
>
> # A1, A2 uses PatternLayout.
> log4j.appender.A1.layout = er.extensions.ERXPatternLayout
> log4j.appender.A2.layout = er.extensions.ERXPatternLayout
>
> # This pattern will produce logs that look like:
> # 2002-06-18 17:46:18,292 MyAppName[4002:9133 0] MyCategory (MyClass.java:40)
> - Some log
> log4j.appender.A1.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]}
> %c{1} (%F:%L) %x - %m%n
> log4j.appender.A2.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]}
> %c{1} (%F:%L) %x - %m%n
>
> # Note that %F and %L is fairly slow and shouldn't be used in performance
> intensive logging
>
> 
> # Custom Categories - These are the main categories and sub categories
> #that are used in frameworks.
> 
>
> # Base Category
> log4j.logger.er = INFO
> log4j.logger.er.extensions.ERXNSLogLog4jBridge = INFO
> log4j.additivity.er.extensions.ERXNSLogLog4jBridge = false
>
> log4j.logger.er.changenotification = INFO
>  END OF PART OF MY PROPERTIES FILE 
>
> Hence, I must copy the old ERExtensions to a new environment every time.
> Did I miss something?
>
> An extra question: when you add some features to your wo project, how do
> you stop the current running wo server and start the new one? I don't know
> how to do this so I run my server inside eclipse. I know it's stupid, but I
> couldn't find the answer. Maybe it's too basic to document?


Not a stupid question: look at the bottom panels, and select the Console one
(if you are running WO app in development, WOLips changes it to show logs)
at the top of the panel, you can see a little red square. You can stop the
current app by clicking on it. It's not very visible, I've passed months
before notice it, when I've started working on Eclipse.

Regards,
> yllan
>  ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>



-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (We

NullPointerException in ERXLogger.getERXLogger

2008-02-27 Thread Yung-Luen Lan
Hi all,

I'm a newbie of both WebObjects and server programming who is responsible to
maintain a WO project left by other guy several years ago. I've added some
features and tested in Eclipse. However, during these year, I always
encountered a problem when I want to update the ERExtensions.framework in
/Library/Frameworks.

When I replace the original ERExtensions.framework (whose version is
believed ≤ Project WONDER 3) with new one, I got the exception:

Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:271)
at org.apache.log4j.LogManager.getLogger(LogManager.java:220)
at org.apache.log4j.Logger.getLogger(Logger.java:156)
at er.extensions.ERXLogger.getLogger(ERXLogger.java:111)
at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:91)
at er.extensions.ERXLogger.getERXLogger(ERXLogger.java:121)
at woserver.Application.(Application.java:25)

And that's the very first line of my project.

public class Application extends ERXApplication {
public static final ERXLogger log = ERXLogger.getERXLogger(
Application.class);

I've my Properties file configured like this:

 BEGIN OF PART OF MY PROPERTIES FILE 
er.extensions.ERXLocalizer.frameworkSearchPath = (app,ERExtensions)
er.extensions.ERXLocalizer.defaultLanguage = English
er.extensions.ERXLocalizer.availableLanguages = (English, Chinese)

### Enterprise Objects ###
er.extensions.ERXRaiseOnMissingEditingContextDelegate = false

### Application Name ###
er.extensions.ERXApplicationHostURL = localhost

#
# Log4j Configuration
#
log4j.rootLogger = INFO, A1, A2
log4j.loggerFactory=er.extensions.ERXLogger$Factory

# Appenders
log4j.appender.A1 = org.apache.log4j.ConsoleAppender

log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.datePattern='.'-MM-dd
log4j.appender.A2.append = true
log4j.appender.A2.File = /var/log/woproject/woproject.log

# A1, A2 uses PatternLayout.
log4j.appender.A1.layout = er.extensions.ERXPatternLayout
log4j.appender.A2.layout = er.extensions.ERXPatternLayout

# This pattern will produce logs that look like:
# 2002-06-18 17:46:18,292 MyAppName[4002:9133 0] MyCategory (MyClass.java:40)
- Some log
log4j.appender.A1.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]}
%c{1} (%F:%L) %x - %m%n
log4j.appender.A2.layout.ConversionPattern = %d{ISO8601} %-5p %W{n[i:p s]}
%c{1} (%F:%L) %x - %m%n

# Note that %F and %L is fairly slow and shouldn't be used in performance
intensive logging


# Custom Categories - These are the main categories and sub categories
#that are used in frameworks.


# Base Category
log4j.logger.er = INFO
log4j.logger.er.extensions.ERXNSLogLog4jBridge = INFO
log4j.additivity.er.extensions.ERXNSLogLog4jBridge = false

log4j.logger.er.changenotification = INFO
 END OF PART OF MY PROPERTIES FILE 

Hence, I must copy the old ERExtensions to a new environment every time. Did
I miss something?

An extra question: when you add some features to your wo project, how do you
stop the current running wo server and start the new one? I don't know how
to do this so I run my server inside eclipse. I know it's stupid, but I
couldn't find the answer. Maybe it's too basic to document?

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

2008-02-27 Thread Daniele Corti
Hi,
 does it work in default deployment mode, or is only an error while
deploying in servlet?

2008/2/27, Amedeo Mantica <[EMAIL PROTECTED]>:
>
> Helo all friends, I have this problem:
>
> I have a Wonder Application
> I made ANT build in servlet mode.
> When I launch the app i got this:
>
> Application: renatozacchia
> Error:   java.lang.IllegalArgumentException: Class 'Main' exists but is
> not a subclass of WOComponent.
> Reason:  
> Class 'Main' exists but is not a subclass of WOComponent.
> Extra info: {
> "Bundles" = {
> "ERExtensions" = "4.0";
> "JavaWebObjects" = "5.4";
> "ERJars" = "4.0";
> "JavaXML" = "5.4";
> "JavaJDBCAdaptor" = "5.4";
> "OpenBasePKPlugin" = "";
> "WOOgnl" = "4.0";
> "JavaEOAccess" = "5.4";
> "JavaEOControl" = "5.4";
> "JavaFoundation" = "5.4";
> "renatozacchia" = "";
> "JavaWOExtensions" = "4.0";
> "ERPrototypes" = "4.0";
> };
> }
>
>
>
>
> WOComponentDefinition.java  518 _componentClass
> com.webobjects.appserver._private
> WOComponentDefinition.java  526 componentClass
> com.webobjects.appserver._private
> WOComponentDefinition.java  532 _componentInstanceInContext
> com.webobjects.appserver._private
> WOComponentDefinition.java  664 componentInstanceInContext
> com.webobjects.appserver._private
> WOApplication.java  2323pageWithNamecom.webobjects.appserver
> WOComponentRequestHandler.java  284 _dispatchWithPreparedSession
> com.webobjects.appserver._private
> WOComponentRequestHandler.java  332 _dispatchWithPreparedApplication
> com.webobjects.appserver._private
> WOComponentRequestHandler.java  369 _handleRequest
> com.webobjects.appserver._private
> WOComponentRequestHandler.java  442 handleRequest
> com.webobjects.appserver._private
> WOApplication.java  1678dispatchRequest com.webobjects.appserver
> ERXApplication.java 1415dispatchRequest er.extensions
> WOWorkerThread.java 144 runOnce com.webobjects.appserver._private
> WOWorkerThread.java 226 run com.webobjects.appserver._private
> Thread.java 613 run java.lang
>   ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/ildenae%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>



-- 
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly if you
open
WINDOWS

-- 
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 ___
Do not post admin requests to the list. They will 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]

Strange WO trouble

2008-02-27 Thread Amedeo Mantica

Helo all friends, I have this problem:

I have a Wonder Application
I made ANT build in servlet mode.
When I launch the app i got this:

Application: renatozacchia
Error:	 java.lang.IllegalArgumentException: Class 'Main' exists but is  
not a subclass of WOComponent.
Reason:	   
Class 'Main' exists but is not a subclass of WOComponent.

Extra info: {
"Bundles" = {
"ERExtensions" = "4.0";
"JavaWebObjects" = "5.4";
"ERJars" = "4.0";
"JavaXML" = "5.4";
"JavaJDBCAdaptor" = "5.4";
"OpenBasePKPlugin" = "";
"WOOgnl" = "4.0";
"JavaEOAccess" = "5.4";
"JavaEOControl" = "5.4";
"JavaFoundation" = "5.4";
"renatozacchia" = "";
"JavaWOExtensions" = "4.0";
"ERPrototypes" = "4.0";
};
}




WOComponentDefinition.java	518	_componentClass	 
com.webobjects.appserver._private
WOComponentDefinition.java	526	componentClass	 
com.webobjects.appserver._private
WOComponentDefinition.java	532	_componentInstanceInContext	 
com.webobjects.appserver._private
WOComponentDefinition.java	664	componentInstanceInContext	 
com.webobjects.appserver._private

WOApplication.java  2323pageWithNamecom.webobjects.appserver
WOComponentRequestHandler.java	284	_dispatchWithPreparedSession	 
com.webobjects.appserver._private
WOComponentRequestHandler.java	332	_dispatchWithPreparedApplication	 
com.webobjects.appserver._private
WOComponentRequestHandler.java	369	_handleRequest	 
com.webobjects.appserver._private
WOComponentRequestHandler.java	442	handleRequest	 
com.webobjects.appserver._private

WOApplication.java  1678dispatchRequest com.webobjects.appserver
ERXApplication.java 1415dispatchRequest er.extensions
WOWorkerThread.java 144 runOnce com.webobjects.appserver._private
WOWorkerThread.java 226 run com.webobjects.appserver._private
Thread.java 613 run java.lang
___
Do not post admin requests to the list. They will 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: A little bit of Ajax in a 5.3 app?

2008-02-27 Thread Susanne Schneider

Hi Mike,

that short video is really impressive!
Makes me wish we would have the time to change all of our page 
refresh-actions to ajax. Alas there are so many other new features to 
implement, there is no time left.


Regards,
Susanne



Message: 1
Date: Tue, 26 Feb 2008 15:32:51 -0500
From: Mike Schrag <[EMAIL PROTECTED]>
Subject: Re: A little bit of Ajax in a 5.3 app?
To: WebObjects-List Apple 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

I made a quicky screencast of going from zero (where zero is defined  
as "I have WOLips and WO installed") to a super lame hello-world-ish  
Ajax.framework app.  This is mostly because I wanted to play with  
ScreenFlow (which is one of the coolest apps ever made, btw).   
Caveats: This is completely unscripted, and just recorded straight  
through without any cuts, and to top it off, I didn't actually really  
PLAN what I was going do to beforehand, so the couple uncomfortable  
pauses are me trying to decide what I actually wanted to show --  
nothing but the highest quality from Team Wonder :) .  This does,  
however, show the new Add Key/Add Action in WOLips, whose dialogs will  
look awfully familiar to WOB folks.


http://webobjects.mdimension.com/wonder/screencasts/TinyAjaxApp.mov

On Feb 26, 2008, at 10:50 AM, Mike Schrag wrote:


Using Ajax framework should be relatively painless ...

1) Add Ajax, ERExtensions, and ERJars framework to your app
2) make your app extend ERXAjaxApplication
3) make your session extend ERXAjaxSession
4) if you want partial form submission, in your Application  
setContextClassName(ERXAjaxContext.class.getName());

5) profit

ms



--
Susanne Schneider
Coordinator secuSuite Development

iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin

fon+49(0)30 69 00 42 - 05
fax+49(0)30 69 00 42 - 10
mail   [EMAIL PROTECTED]
webhttp://www.interActive-Systems.de


Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B

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

2008-02-27 Thread Mike Schrag
The wolips blog is up at http://wolips.blogspot.com .  This makes more  
sense for announcement-y posts than the woproject-dev mailing list  
does, so woproject-dev can actually really be a -dev list (for  
discussions on wolips development topics) and the wolips blog can be  
the place for end-users to keep up with releases.


ms

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

This email sent to [EMAIL PROTECTED]


Re: A little bit of Ajax in a 5.3 app?

2008-02-27 Thread Mike Schrag
OK Mike, I've now spent 1/2 hour looking for documentation on how  
you added the "key" to your .java file in your video from the wod  
editor. I'm a newbie to Eclipse and for the life of me I can't find  
a command or keyboard shortcut that does that.


This question goes back to the thread about devtools. I have always  
tinkered with WO because it was so easy for a non-programmer like  
me. I am trying to learn WOLips and Eclipse.  One way is by going  
step by step through the old Apple Docs and trying to repeat  
functionality in Eclipse. The autocompletion nearly replaces the  
ability to quickly bind objects to EO attributes. But my question  
above and your use of something that's so basic and also so  
undocumented (unless I am completely missing something) is probably  
one reason that non-programmers are attempting to hold on to the old  
tools.


You experienced WO/Java programmers should take it easy on the rest  
of us hobbyists (as we were called).  And instead of lambasting us  
and telling us to "Just switch already," help us.  I really like WO  
because I have been able to quickly build little databased web apps.  
I tried using Rails, and found that to be a disaster. The arrogant  
folks at 37Signals assumes that everyone who wants to make dynamic  
websites must be experienced programmers.


Unfortunately, since I upgraded to Leopard, I had no choice but to  
learn to use WOLips.  But what so many of you "real programmers"  
take for granted, I haven't a clue.  Lately, I have seen answers to  
questions like, "just look at the Javadocs" with no further  
explanation among the many very helpful posts. That sort of "What an  
idiot you must be when the answer is right in front of you" is  
completely ignorant of the fact that not everyone knows what to do  
with the documentation and that some of us, especially me, learn  
more by example, than by reading the JavaDocs.


Mike's video is clearly an example that using Eclipse/WOLips is  
fast, even faster than the old tools and for the first time I now  
see how I can use Ajax in my WebApp. What a great example. More  
please.
(this might go through twice -- I sent this once and didn't see it on  
the list, so apologies if you get two)


Add Key / Add Action is a brand new feature that just went into WOLips  
on Sunday (brazenly stolen from WOB, I might add -- I have no pride  
here).  I actually DID post on the woproject-dev list about this on  
Sunday, but it appears that google does a terrible job at indexing the  
woproject-dev mailing list  I wrote the original email about this and  
I _still_ can't manage to find it in google results. I wonder if  
there's something about the mailing list web pages that causing it to  
not be indexed by Google properly (for reference: http://www.objectstyle.org/woproject/lists/woproject-dev/current/0226.html 
 , though without images, which is sort of lame).  I'm really not  
sure if I can even send the original email to the wo list because I  
think it will get blocked for its size.  I'll try to forward it after  
this post and we'll see what we shall see. [edit: nevermind ... I'm  
just going to setup a wolips blog -- http://wolips.blogspot.com ]


The short version of the story is that you can either  
Edit=>Refactor=>Add Key / Add Action or you can (as I did in the  
video) cmd-click on a broken binding.  Again, this only exists in the  
latest nightly builds.  The nightly builds, however, will become the  
new the new stable build as soon as Eclipse 3.3.2 is declared final  
(which should be by the end of this month).


ms

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

This email sent to [EMAIL PROTECTED]