Re: Code question

2008-06-30 Thread Helmut Schottmüller

Hi Kevin,

this will work but it's not good code style because the parser cannot  
parse the HTML file correctly.

It would be better to use something like:

webobject name=HomeURL/webobject

instead of the whole a href

and set

HomeURL : WOHyperlink
{
  href=javascript:void(0);;
  onMouseDown=MM_openBrWindow...;
}

If the URL in your Dreamweaver MM_openBrWindow call is variable, then  
you may create the whole onMouseDown string in the code


HomeURL : WOHyperlink
{
  href=javascript:void(0);;
  onMouseDown=myURLOnMouseDown;
}

where

public String myURLOnMouseDown()
{
	return MM_openBrWindow(' + someFunctioncallOrBindingForMyHomeURL()  
+ ','photography','width= 450,height= 300');

}

Regards,
Helmut

Am 30.06.2008 um 06:28 schrieb Ren, Kevin:


Hi,

I have these code could not compiled

Said the character '' must be escaped

How to fix it?

a href=# onMouseDown=MM_openBrWindow('WEBOBJECT Name=HomeURL/ 
WEBOBJECT','photography','width= 450,height= 300')


WEBOBJECT NAME=HomeImage/WEBOBJECT/a


HomeURL :  WOActionURL { action = homeActionURL; }
HomeImage: WOImage {
filename = home.jpg;
width=125;
height=75;
border=0;
}


thanks

Kevin


This communication is confidential and may contain privileged and/ 
or copyright material. If you are not the intended recipient you  
must not use, disclose, copy or retain it. If you have received it  
in error please immediately notify me by return email, delete the  
emails and destroy any hard copies. ANZ National Bank Limited does  
not guarantee the integrity of this communication, or that it is  
free from errors, viruses or interference.


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

This email sent to [EMAIL PROTECTED]




smime.p7s
Description: S/MIME cryptographic signature
 ___
Do not post admin requests to the list. They will 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] Versioning and compatibility checking

2008-06-30 Thread Florijan Stamenkovic

Hi all,


I am about to implement a JavaClient focused versioning system to  
evaluate the compatibility between the client and the server during  
client startup. It is something that is a requirement in our  
situation (JC + JBND apps, separated server client projects etc).  
Also note that this will be the starting point for WOJCKit, an open  
source project where I plan to put this sort of generic stuff.


It is not my intention at the moment to deal with server app -  
database compatibility. Besides, I believe this has been addressed in  
WOnder already, no?


I have some ideas, but also some questions:
1. Does anyone do this, if so, can I have a look?
2. Anybody wants to share some general experience with this sort of  
stuff?
3. Any pointers to third party libraries with a similar purpose +  
recommendations?
4. Any design suggestions (if someone is interested, we can discuss  
this in more detail off list), or best practices?

5. Anything else?


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

2008-06-30 Thread David Avendasora
I _half_ joked with him at WOWODC that is business cards should read  
WebObjects development and Professional Conference Planning. It was  
carried off perfectly. I couldn't have asked for a better conference.  
I certainly hope that he got a share of the conference fees for all  
his work.


Dave



On Jun 27, 2008, at 8:32 PM, Chuck Hill wrote:



On Jun 16, 2008, at 8:06 AM, David LeBer wrote:



On 16-Jun-08, at 10:57 AM, Pascal Robert wrote:

I think I should write a FAQ about that... Look like the recording  
is ok for the 5 minutes that I looked at, but I will look at it in  
full lenght this week-end.  We hope to make it available before  
mid-July (I don't want to do video editing on my birthday :-P),  
more news on that after I dump the content from the tapes this  
week-end.


I blogged about this, but I want to make it abundantly clear...  
Pascal is a god.


The amount of work and responsibility he shouldered single-handedly  
to pull of WOWODC this year was staggering.


I, for one, am truly in awe.

THANK YOU!


Late to the party (got buried there for a while), but I could not  
agree more.  Pascal is Mr. WOWODC.


Pascal, you rock!

Chuck





Did the video recording work this year?  Do you have any  
estimates when they'll be available and the cost?  (I tried to  
attend but could not get management approval, but I'll pay for  
the videos myself if I have to.)


Thanks,
Chris


;david

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



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

This email sent to [EMAIL PROTECTED]




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

This email sent to [EMAIL PROTECTED]


Re: Java Code Coverage for Eclipse

2008-06-30 Thread David Avendasora


On Jun 27, 2008, at 5:04 PM, Chuck Hill wrote:

Which means it is worthless if you don't do some sort of organized,  
planned testing.  :-)


Organized, planned testing??

I'm _vaugly_ familiar with all three terms, but not used in that  
combination. Sometimes I think Canadians use an entirely different  
version of English than what I grew up with.


Dave


___
Do not post admin requests to the list. They will 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: [OT] Versioning and compatibility checking

2008-06-30 Thread David Avendasora


On Jun 30, 2008, at 10:28 AM, Florijan Stamenkovic wrote:


Hi all,


I am about to implement a JavaClient focused versioning system to  
evaluate the compatibility between the client and the server during  
client startup. It is something that is a requirement in our  
situation (JC + JBND apps, separated server client projects etc).


What kinds of things are you trying to catch? Things like if a  
invokeRemoteMethod(clientSideRequestFoo, keys[], values[]) is called  
that it will verify that the clientSideRequestFoo with the defined  
parameters actually exists? That would be nice.


Also note that this will be the starting point for WOJCKit, an open  
source project where I plan to put this sort of generic stuff.


Wow. You are the Mike Schrag of JC! First JBND, now this? (no offense  
to all the other Wonder/Wolips contributors)


It is not my intention at the moment to deal with server app -  
database compatibility. Besides, I believe this has been addressed  
in WOnder already, no?


If you are referring to Migrations updating the DB at startup to match  
application-defined schema and some basic data massaging, yes, it does.



I have some ideas, but also some questions:
1. Does anyone do this, if so, can I have a look?
2. Anybody wants to share some general experience with this sort of  
stuff?
3. Any pointers to third party libraries with a similar purpose +  
recommendations?
4. Any design suggestions (if someone is interested, we can discuss  
this in more detail off list), or best practices?


Why off list? The more this type of thing is discussed on-list the  
more people may chime in with similar non-JC ideas.


5. Anything else?


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

This email sent to [EMAIL PROTECTED]




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

This email sent to [EMAIL PROTECTED]


Fwd: WebObjects take on GWT?

2008-06-30 Thread Daniel Beatty



Begin forwarded message:


From: Daniel Beatty [EMAIL PROTECTED]
Date: June 30, 2008 9:19:11 AM CDT
To: Florijan Stamenkovic [EMAIL PROTECTED]
Cc: Daniel Beatty [EMAIL PROTECTED]
Subject: Re: WebObjects take on GWT?

Greetings Ronny, Florijan, and the rest of the gang,
This is good.  It is another channel to be used with GWT and WO.   I  
saw your write-up and plan to include it as related work in my  
paper.  I also plan on writing a report with more of a developer- 
centric orientation to showcase both your work,  and work by others  
like Andrew Lindesay, Mike Schrag, Chuck Hill and myself.   The only  
delay thrown in was the integration between Web-Kit/ Core Data so  
that the JS generated by GWT would have little trouble transferring  
its data.


Your work is very valuable for the conservation of bandwidth and  
utilization of GWT's RPC mechanism, which until now was considered  
unusable in WO.   It deserves a place along side JSON-RPC and Wonder  
Actions.


Thank you,
Dan



On Jun 29, 2008, at 1:39 PM, Florijan Stamenkovic wrote:



On Oct 18, 2006, at 23:33, Q wrote:

Has anyone looked into GWT and got a mind map or some general  
thoughts about what value, if any, GWT could provide to WebObjects  
developers.


My initial impression is that it could potentially provide a way  
of writing WO web apps as though they were Java Client apps  
rather than the usual web centric approach. However, this is a  
first impression, and I haven't yet ingestigated to see if this is  
even possible. Has anyone actually looked into this further and  
got a feel for how GWT might be leveraged?


Also note that the primary quality of Java Client is not  
necessarily the desktop GUI, but having a part of EOF on the  
client. As opposed to AJAX, Flex, and from what I understand GWT  
apps, which depend on the server to do all the EOF work, and are  
only view representations of it.


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

This email sent to [EMAIL PROTECTED]




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







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

This email sent to [EMAIL PROTECTED]


Re: Component action context().hasSession() returns false? [Was Re: context().hasSession() returns false... then true?]

2008-06-30 Thread Rams
I'd like to say upfront that I'm no longer considering Tomcat a viable  
option for me.  I will detail my problems with it further for anyone  
interested, but I now need to work through the Java Monitor/wotaskd  
tutorials to replace my appserver.  I'm hoping that replacing the  
appserver will yield behavior that is more consistent with the  
development environment.


On Jun 29, 2008, at 8:43 PM, Lachlan Deck wrote:


On 28/06/2008, at 1:20 AM, Rams wrote:


Hi everyone...

I should add, I am currently using component actions. I'm not  
defaulting to direct actions yet... so I'm under the impression  
that there should always be a session present.


Not always so. But you can force a session to be invoked by  
referencing session() in your component.


The only time session() is called in my Main WO or any of it's  
embedded components, is in the authenticated method.


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}

But since I'm logging session creation in the Session() constructor, I  
know one should already exists.  context().hasSession() is returning  
false even though a session exists.  Here's what my Main WO looks like:


wo:PageWrapper
ul
wo:if condition = $authenticated
wo:link directActionName = logout 1
2
3
/wo:if
wo:else
wo:link pageName = Login 4
5
6
/wo:else
wo:link 7

wo:ERXBatchNavigationBar
wo:loop
wo:MyStatelessDisplayItem authenticated = $authenticated 
/wo:loop

/wo:PageWrapper

I only check context().hasSession() now because I had planned to  
move to direct actions at a future date.  At least Tomcat is  
failing consistently at the same places, so I guess that's a small  
ray of hope.


Failing how?



Miserably! ;-)  I click my login link (let's say link 4), which takes  
me to my login component.  I'm returned to my main page after  
submitting valid credentials to a component action.  There I am  
presented with links 1, 2, 3.  After that, failures begin.  For  
example, clicking my logout directaction link, context().hasSession()  
evals to false and logout fails to session().terminate().


public WOActionResults logoutAction() {
if(context().hasSession()) {
NSLog.out.appendln(Terminating session:  + 
session().sessionID());
session().terminate();
}

	WORedirect mainPage = (WORedirect)  
pageWithName(WORedirect.class.getName());

mainPage.setUrl(
context().directActionURLForActionNamed(
	default, new NSDictionaryObject,Object(Boolean.FALSE,  
wosid)));


return mainPage;
}

When I come back to main, the first call to $auth evals to false, then  
subsequent calls eval to true making all MyStatelessDisplayItems  
display as logged in.  I log session creation in the Session  
constructor, so I know there is no new session being created.  What I  
find even more wonky is that clicking link 4 to go to the login page  
again does not take me to my login component at all.  It refreshes  
main and gives me link 1, 2, 3.


All of this works fine on the dev machine.  It fails consistently, in  
the same places, on the Tomcat deployment.


But at this point, I think using Tomcat is just going to be a  
thoroughly bad idea.  Aside from the app simply not working in a  
manner consistent with the development environment, I have other  
reservations about using Tomcat.  The JSessionID, in particular,  
bothers me.   I *have* to have a second, useless session object adding  
overhead to my app?  AND it's probably going to bork my search engine  
rankings by adding that uselessness to the URL when cookies are  
disabled?


Needless to say, my patience with Tomcat is pretty much exhausted. I'm  
hoping Java Monitor and wotaskd can give me results that are a little  
more consistent with the development environment :-)


However, thanks again to everyone who has responded!  I do appreciate  
all the help.

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

This email sent to [EMAIL PROTECTED]

Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
If I just ran the app through command line and paste the URL in the browser,
it will always give The requested application was not found on this server
message.

If I add an instance through the JavaMonitor, and run from there (same URL
basically), it works.

For deployment on non-leopard server, we can always just ran the app through
command line.  Not sure why on Leopard server, we can't do that anymore.
Anyone have the same experience?


On 6/26/08 1:52 PM, Xia, Wen [EMAIL PROTECTED] wrote:

 I tried the command, the host name matches the reverse DNS lookup.
 
 
 On 6/26/08 1:43 PM, Pascal Robert [EMAIL PROTECTED] wrote:
 
 To do a reserve DNS (IP - name) lookup, open Terminal and type :
 
 host 192.168.11.21
 
 And to check forward DNS (name - IP):
 
 host budgetdevxs.dof.finance
 
 On the deployment machine, in Java Monitor - Hosts tab, I got the
 host name
 as budgetdevxs.dof.finance with IP address 192.168.11.21.
 
 When I ran the application from command line on the server with -
 WOHost
 budgetdevxs.dof.finance, the URL for web server connect is:
 http://192.168.11.21/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 
 I pasted the URL in browser and replaced the IP address with the
 host name,
 it still gives the same error message.  I don't know how to check the
 reverse DNS lookup.
 
 
 
 On 6/26/08 1:22 PM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 What host name are you using?  For a dev machine, this should be
 localhost.  For deployment it should be the same as what hostname
 returns.  I think.  It should match the reverse DNS lookup
 
 
 
 
 On Jun 26, 2008, at 1:14 PM, Xia, Wen wrote:
 
 Thank you, Chuck.  I got the host name in wotaskd configuration and
 used it
 as -WOHost when launching the app, but still the same error
 occurred.  I
 wonder what else I should check?
 
 
 On 6/26/08 11:59 AM, Chuck Hill [EMAIL PROTECTED] wrote:
 
 
 On Jun 26, 2008, at 11:35 AM, Xia, Wen wrote:
 
 Thank you both for your help.
 
 But where is build.properties?
 
 It should be in the top level of your project.
 
 
 In build.xml, it looks for it in my home
 directory, but I can't find it there.  Is it generated/updated
 when I
 compiled the application?
 
 I changed the principal class in the Properties for the project,
 and
 now it
 launches the application without exception:
 [2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
 Welcome to StaffDirectory !
 -- Cleaning Log Files More Than 30 Days Old
 [2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 [2008-6-26 11:33:20 PDT] main null
 [2008-6-26 11:33:19 PDT] main Waiting for requests...
 
 But when I pasted the URL
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324 in
 my
 browser, it says: The requested application was not found on this
 server.
 
 I wonder what is wrong with it.  Thanks again.
 
 Probably a host naming problem.  The WOHost parameter should match
 what wotaskd is using on that machine.
 
 Chuck
 
 
 
 On 6/25/08 7:01 PM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 25.06.2008, at 18:12, Mike Schrag wrote:
 
 This is the problem ... Or rather, your build.properties is
 probably
 the root cause.  This variable should have been resolved at the
 time
 build.properties was generated.
 
 Isn't that changed whenever you change the principal class in the
 Properties for that project?
 
 cug
 
 ___
 Do not post admin requests to the list. They will 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-vil
l
 ag
 e
 .
 net
 
 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/probert%40macti.ca
 
 This email sent to [EMAIL PROTECTED]
 
 
 ---
 Pascal Robert
 
 http://www.macti.ca
 http://www.linkedin.com/in/macti
 
 Skype: MacTICanada
 AIM/iChat : MacTICanada
 
 
  ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/webobjects-dev/wen.xia%40dof.ca.gov
 
 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: [OT] Versioning and compatibility checking

2008-06-30 Thread Florijan Stamenkovic
I am about to implement a JavaClient focused versioning system to  
evaluate the compatibility between the client and the server  
during client startup. It is something that is a requirement in  
our situation (JC + JBND apps, separated server client projects etc).


What kinds of things are you trying to catch? Things like if a  
invokeRemoteMethod(clientSideRequestFoo, keys[], values[]) is  
called that it will verify that the clientSideRequestFoo with the  
defined parameters actually exists? That would be nice.


Hm, I did intend to put some basic RMI stuff in, I guess I can put  
this too. I am not sure how much benefit this will bring us. It will  
not give us compile time checking when writing RMI code, and if you  
try to invoke a non existing method you get a runtime exception  
anyway... What would you like to gain by this? A suggestion for the API?


Note that I can make both the server and the client side, I think I  
will provide a custom superclass to be used by the server side  
JavaClient WO component, so a lot can be automated without the need  
to afterwards do anything else except subclass the custom stuff.


Also note that this will be the starting point for WOJCKit, an  
open source project where I plan to put this sort of generic stuff.


Wow. You are the Mike Schrag of JC! First JBND, now this? (no  
offense to all the other Wonder/Wolips contributors)


I'm also hoping at some point to build something like an AppKit for  
JBND, and WOJC. JBND is concerned only with binding GUI components to  
data, WOJCKit will be concerned with client - server related issues.  
AppKit (I guess it would need a different name) should be a framework  
for building JC applications (architecture). Then I also might  
implement a Derby or XML based local persistence for JBND apps. That  
all together should give a nice base to start building the *really*  
cool stuff on top ;)


Why off list? The more this type of thing is discussed on-list the  
more people may chime in with similar non-JC ideas.


Fair enough. To visualize this it is important to know that the  
WOJCKit will have at some point a division into three packages:  
client, server, common. Client and server sometimes subclassing  
common stuff. That said, here's my current versioning idea:


1. Have a Version class that is common to the server and the  
client, have a client subclass of it: ClientVersion

2. Have Version contain the following info:
	-	app name and supported modules (modules being groups of Entities  
that are interdependent)

-   model versioning numbers (major, minor, correction)
	-	have it somehow try to automagically load version info from some  
sort of a property file

3. Have some additional stuff in ClientVersion:
	-	client app versioning numbers (major, minor, correction, bug),  
these would be in the ClientVersion

4. Have a string formatting / parsing support for all of the above
5. Provide RMI based functionality to compare the client and the  
server, comparison criteria would be:
	-	app name and supported modules (server needs to support *at least*  
all of the modules used by the client)

-   model versioning numbers (only major and minor)

Comments?

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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Guido Neitzer

On 30.06.2008, at 09:57, Xia, Wen wrote:

If I just ran the app through command line and paste the URL in the  
browser,
it will always give The requested application was not found on this  
server

message.

If I add an instance through the JavaMonitor, and run from there  
(same URL

basically), it works.


Stupid question: are you using the same command line parameters in  
both start methods? Exactly the same!?


cug

--
http://www.event-s.net

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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
Yes.


On 6/30/08 9:13 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 30.06.2008, at 09:57, Xia, Wen wrote:
 
 If I just ran the app through command line and paste the URL in the
 browser,
 it will always give The requested application was not found on this
 server
 message.
 
 If I add an instance through the JavaMonitor, and run from there
 (same URL
 basically), it works.
 
 Stupid question: are you using the same command line parameters in
 both start methods? Exactly the same!?
 
 cug

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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Guido Neitzer
Okay, next question: you have the right permissions? What error  
message do you get when trying to start the app from the command line?


cug

On 30.06.2008, at 10:25, Xia, Wen wrote:


Yes.


On 6/30/08 9:13 AM, Guido Neitzer [EMAIL PROTECTED] wrote:


On 30.06.2008, at 09:57, Xia, Wen wrote:


If I just ran the app through command line and paste the URL in the
browser,
it will always give The requested application was not found on this
server
message.

If I add an instance through the JavaMonitor, and run from there
(same URL
basically), it works.


Stupid question: are you using the same command line parameters in
both start methods? Exactly the same!?

cug




--
http://www.event-s.net

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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
The application is launched without exception at all:
[2008-6-26 11:33:19 PDT] main WebObjects version = 5.4.1
Welcome to StaffDirectory !
-- Cleaning Log Files More Than 30 Days Old
[2008-6-26 11:33:19 PDT] main The URL for webserver connect is:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
[2008-6-26 11:33:20 PDT] main null
[2008-6-26 11:33:19 PDT] main Waiting for requests...


On 6/30/08 9:51 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 Okay, next question: you have the right permissions? What error
 message do you get when trying to start the app from the command line?
 
 cug
 
 On 30.06.2008, at 10:25, Xia, Wen wrote:
 
 Yes.
 
 
 On 6/30/08 9:13 AM, Guido Neitzer [EMAIL PROTECTED] wrote:
 
 On 30.06.2008, at 09:57, Xia, Wen wrote:
 
 If I just ran the app through command line and paste the URL in the
 browser,
 it will always give The requested application was not found on this
 server
 message.
 
 If I add an instance through the JavaMonitor, and run from there
 (same URL
 basically), it works.
 
 Stupid question: are you using the same command line parameters in
 both start methods? Exactly the same!?
 
 cug
 

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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Guido Neitzer

On 30.06.2008, at 11:00, Xia, Wen wrote:


http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324


There is something wrong with your start script. It seems to not  
specify a listen port. Copy the start parameters from Monitor and run  
the application with the exact same parameters (only get rid of  
NSProjectSearchPath).


Run it as the appserver user: sudo -u appserver ...

cug


--
http://www.event-s.net

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

This email sent to [EMAIL PROTECTED]


(Eclipse) copy and paste attributes....

2008-06-30 Thread tedpet5
Interesting... If I create a new project (wonder), then create a new EOModel 
then create a new entity and lastly create a new attribute, I can not copy and 
paste the newly created attribute. But if I quit Eclipse and relaunch, I can... 
This is with the current nightly build...

I have duplicated this 'bug' on three different machines... (all macs running 
10.5.3, eclipse 3.4)

If my description is not complete, just let me know. It looks like this is only 
a problem the first time you run eclipse. 

I take that back.. It was working, I just created a new table with a 
'firstName' attribute. When I tried to copy and paste it the error reads 
Failed to clone[EOModelMap:backingMap = {generatedSource=NO}].

Ted


  
 ___
Do not post admin requests to the list. They will 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: Java Code Coverage for Eclipse

2008-06-30 Thread Chuck Hill


On Jun 30, 2008, at 8:23 AM, David Avendasora wrote:



On Jun 27, 2008, at 5:04 PM, Chuck Hill wrote:

Which means it is worthless if you don't do some sort of organized,  
planned testing.  :-)


Organized, planned testing??

I'm _vaugly_ familiar with all three terms,


Vaugly?  Is that some sort of Minnesota slang?



but not used in that combination. Sometimes I think Canadians use an  
entirely different version of English than what I grew up with.



Yes, the world calls it correct English.  All y'all can speak what  
y'all want.  :-P



Chuck


--

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

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





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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Xia, Wen
Hi Guido,

Thank you so much for your help.

I tried what you suggested and it worked.

I also tried only adding the -WOPort parameter to the command and the app
runs as well.

Both of the above running app has the same URL as before:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324

What confused me is, should the system automatically assign a port if there
is no port specified?  I thought in the URL:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
54324 is the port assigned.

Wen

On 6/30/08 10:10 AM, Guido Neitzer [EMAIL PROTECTED] wrote:

 On 30.06.2008, at 11:00, Xia, Wen wrote:
 
 http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324
 
 There is something wrong with your start script. It seems to not
 specify a listen port. Copy the start parameters from Monitor and run
 the application with the exact same parameters (only get rid of
 NSProjectSearchPath).
 
 Run it as the appserver user: sudo -u appserver ...
 
 cug
 

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

This email sent to [EMAIL PROTECTED]


Re: Problems deploying app on Leopard server

2008-06-30 Thread Guido Neitzer

On 30.06.2008, at 12:11, Xia, Wen wrote:


Both of the above running app has the same URL as before:
http://budgetdevxs/cgi-bin/WebObjects/StaffDirectory.woa/-54324


But this looks like a development URL. So there is still something  
wrong. You should be able to connect without specifying the port.


cug

--
http://www.event-s.net

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

This email sent to [EMAIL PROTECTED]


Re: (Eclipse) copy and paste attributes....

2008-06-30 Thread Mike Schrag
Interesting... If I create a new project (wonder), then create a new  
EOModel then create a new entity and lastly create a new attribute,  
I can not copy and paste the newly created attribute. But if I quit  
Eclipse and relaunch, I can... This is with the current nightly  
build...
Please log a bug in the wolips jira, though this is working fine for  
me with the (sort-of-cooler-than-nightly-but-should-be-the-same-from- 
this-perspective build).


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: [OT] Versioning and compatibility checking

2008-06-30 Thread Andrew Lindesay

Hello Florijan;

I use a compatibility integer that gets matched between the client  
and the server's base-endpoint.  This works well for the situation  
where you have one or two pieces of (in my case JSON-RPC) client  
software, but as the number of different pieces of client software  
grows, it then calls for a roll-out of everything for each update to  
this compatibility integer.  So far, I have not seen an easy  
solution to this issue, but have also not had the opportunity to  
invest any serious time into it because in my cases it is manageable.


cheers.

I am about to implement a JavaClient focused versioning system to  
evaluate the compatibility between the client and the server during  
client startup. It is something that is a requirement in our  
situation (JC + JBND apps, separated server client projects etc).  
Also note that this will be the starting point for WOJCKit, an open  
source project where I plan to put this sort of generic stuff.


___
Andrew Lindesay
www.lindesay.co.nz

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

This email sent to [EMAIL PROTECTED]


Re: [OT] Versioning and compatibility checking

2008-06-30 Thread David Avendasora


On Jun 30, 2008, at 12:00 PM, Florijan Stamenkovic wrote:

I am about to implement a JavaClient focused versioning system to  
evaluate the compatibility between the client and the server  
during client startup. It is something that is a requirement in  
our situation (JC + JBND apps, separated server client projects  
etc).


What kinds of things are you trying to catch? Things like if a  
invokeRemoteMethod(clientSideRequestFoo, keys[], values[]) is  
called that it will verify that the clientSideRequestFoo with the  
defined parameters actually exists? That would be nice.


Hm, I did intend to put some basic RMI stuff in, I guess I can put  
this too. I am not sure how much benefit this will bring us. It will  
not give us compile time checking when writing RMI code, and if you  
try to invoke a non existing method you get a runtime exception  
anyway... What would you like to gain by this? A suggestion for the  
API?


I'm not really sure, it's just more of one of those things that it  
would be nice to catch on launch instead of having to wait for someone  
to stumble across it at runtime. But, If you are testing new code as  
it is added, this is something that really shouldn't slip through the  
cracks anyway. I think making sure the versions of each are compatible  
is much more important and I'd certainly do that long before worrying  
about this.





Note that I can make both the server and the client side, I think I  
will provide a custom superclass to be used by the server side  
JavaClient WO component, so a lot can be automated without the need  
to afterwards do anything else except subclass the custom stuff.


Also note that this will be the starting point for WOJCKit, an  
open source project where I plan to put this sort of generic stuff.


Wow. You are the Mike Schrag of JC! First JBND, now this? (no  
offense to all the other Wonder/Wolips contributors)


I'm also hoping at some point to build something like an AppKit for  
JBND, and WOJC. JBND is concerned only with binding GUI components  
to data, WOJCKit will be concerned with client - server related  
issues. AppKit (I guess it would need a different name) should be a  
framework for building JC applications (architecture). Then I also  
might implement a Derby or XML based local persistence for JBND  
apps. That all together should give a nice base to start building  
the *really* cool stuff on top ;)


Why off list? The more this type of thing is discussed on-list the  
more people may chime in with similar non-JC ideas.


Fair enough. To visualize this it is important to know that the  
WOJCKit will have at some point a division into three packages:  
client, server, common. Client and server sometimes subclassing  
common stuff. That said, here's my current versioning idea:


1. Have a Version class that is common to the server and the  
client, have a client subclass of it: ClientVersion


2. Have Version contain the following info:
	-	app name and supported modules (modules being groups of Entities  
that are interdependent)

-   model versioning numbers (major, minor, correction)
	-	have it somehow try to automagically load version info from some  
sort of a property file

3. Have some additional stuff in ClientVersion:
	-	client app versioning numbers (major, minor, correction, bug),  
these would be in the ClientVersion

4. Have a string formatting / parsing support for all of the above
5. Provide RMI based functionality to compare the client and the  
server, comparison criteria would be:
	-	app name and supported modules (server needs to support *at  
least* all of the modules used by the client)

-   model versioning numbers (only major and minor)

Comments?



Maybe in the context that you are talking about it would work just  
fine, but I've been actually running into several problems with the  
whole common superclass architecture for consolidating client- and  
server-side business logic. Look for a more in-depth email about my  
struggles in the next couple days. I'm running into things that I  
think may make the benefits of a common class insignificant in  
comparison with the complexities that you'd have to add to get those  
benefits.


Dave

___
Do not post admin requests to the list. They will 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: [OT] Versioning and compatibility checking

2008-06-30 Thread Lachlan Deck

On 01/07/2008, at 6:39 AM, Andrew Lindesay wrote:


Hello Florijan;

I use a compatibility integer that gets matched between the client  
and the server's base-endpoint.  This works well for the situation  
where you have one or two pieces of (in my case JSON-RPC) client  
software, but as the number of different pieces of client software  
grows, it then calls for a roll-out of everything for each update to  
this compatibility integer.  So far, I have not seen an easy  
solution to this issue, but have also not had the opportunity to  
invest any serious time into it because in my cases it is manageable.


Yeah, we have the same situation. It's essentially a schema  
compatibility integer.


Perhaps a major and minor version would work where major versions have  
to match and minor versions are insignificant (e.g., for bug fixes)


I am about to implement a JavaClient focused versioning system to  
evaluate the compatibility between the client and the server during  
client startup. It is something that is a requirement in our  
situation (JC + JBND apps, separated server client projects etc).  
Also note that this will be the starting point for WOJCKit, an open  
source project where I plan to put this sort of generic stuff.


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]


Re: Open used vs. Open Source

2008-06-30 Thread Lachlan Deck

On 01/07/2008, at 10:08 AM, Ren, Kevin wrote:

I remember lots of people talking about Open Source after WOWODC in  
the

last year.
Nobody body mention it this year, I understand Apple has good keeping
secret manner.

Is it possible open used instead of Open source?

The question is from WO is  proprietary frameworks. If it's open used
for non-apple developer, lots of people could know WO and Apple.
Buy Apple, Xservermaybe

Currently the deployment is open used/free for non-Apple environment,
why not for development?


This is a question that's worth submitting as a bug report to  
radar.apple.com. Your vote there could make a difference.


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]


EOEditingContext in Application

2008-06-30 Thread Drew Thoeni
I'm not even sure I know enough to ask this question correctly, but  
here goes.


I'm trying to make an application more efficient by moving the code  
table lists from the session to the application.


To do so, though, I need an editing context to hold the lists. But, I  
can't use the defaultEditingContext as I don't have a session upon  
application start.


So, I (wrongly, it seems) created an editing context in the  
application. I'm sure most of you can see what's coming.


When I went to use the popup that accesses the list, it can't match up  
the list to the already stored value (for items that are being  
editied) and it also can't find the correct object for items being  
saved. Error reported is: Cannot obtain globalId for an object which  
is registered in an other than the databaseContext's active  
editingContext, object:...


Clearly because I have two editing contexts and the session one  
(defaultEditingContext) can't see the objects in the one shown below  
(appEC).


So, if I want to make efficient use of memory by storing these rarely  
changing code table lists in the application, how does one go about  
storing them in an EC that the sessions can get to?


Regards,

Drew



private EOEditingContext appEC = new EOEditingContext();

public static void main(String[] argv) {
WOApplication.main(argv, Application.class);
}

public Application() {
NSLog.out.appendln(Welcome to  + name() + !);
/* ** put your initialization code in here ** */

WOMessage.setDefaultEncoding(UTF8);
}


/*** CODE TABLE LISTS ***/

	/** Builds an array of all available Language objects recorded in the  
database.
	 * This is not to be confused with languages supported by the browser  
or

 * languages as part of ERXLocalizer.
 * The array is used by components to build, for example, pop-up lists.
 * @return NSArray List of all available languages.
 */
@SuppressWarnings(unchecked)
public NSArrayLanguage languageList() {
		return  
(NSArray)EOUtilities.objectsWithFetchSpecificationAndBindings( appEC,  
Language, FetchAllAvailableLanguages, null );

}

snip ___
Do not post admin requests to the list. They will 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: Component action context().hasSession() returns false? [Was Re: context().hasSession() returns false... then true?]

2008-06-30 Thread Lachlan Deck

On 01/07/2008, at 1:51 AM, Rams wrote:


On Jun 29, 2008, at 8:43 PM, Lachlan Deck wrote:


On 28/06/2008, at 1:20 AM, Rams wrote:


Hi everyone...

I should add, I am currently using component actions. I'm not  
defaulting to direct actions yet... so I'm under the impression  
that there should always be a session present.


Not always so. But you can force a session to be invoked by  
referencing session() in your component.


The only time session() is called in my Main WO or any of it's  
embedded components, is in the authenticated method.


public Boolean authenticated() {
		return (context().hasSession()   
session().valueForKey(User.ENTITY_NAME.toLowerCase()) != null);

}


You can also try context().sessionID() to see if it has one. You can  
also look at com.webobjects.jspservlet.WOServletContext which is  
relevant when running in servlet environments.


I think you'll find that context().hasSession() is not checking for  
the presence of a jspServlet sessionID. So you'll need to adjust your  
if statement to suit.


But since I'm logging session creation in the Session() constructor,  
I know one should already exists. context().hasSession() is  
returning false even though a session exists.


You can also look at WOApplication.restoreSessionWithID(sessionID,  
woContext);


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]


Re: EOEditingContext in Application

2008-06-30 Thread Art Isbell

On Jun 30, 2008, at 5:25 PM, Drew Thoeni wrote:

So, if I want to make efficient use of memory by storing these  
rarely changing code table lists in the application, how does one go  
about storing them in an EC that the sessions can get to?


	EOSharedEditingContext.  See  http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_4.5/System/Documentation/Developer/WebObjects/DeltaDoc/EOF.html#CBGCHAIA 
 for restrictions, caveats, etc.


Aloha,
Art

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

2008-06-30 Thread Lachlan Deck

On 01/07/2008, at 1:25 PM, Drew Thoeni wrote:

I'm not even sure I know enough to ask this question correctly, but  
here goes.
I'm trying to make an application more efficient by moving the code  
table lists from the session to the application.


To do so, though, I need an editing context to hold the lists. But,  
I can't use the defaultEditingContext as I don't have a session upon  
application start.
So, I (wrongly, it seems) created an editing context in the  
application.


Nothing wrong with that per se. But what you want is a better api so  
as to treat them like read-mostly data.


Clearly because I have two editing contexts and the session one  
(defaultEditingContext) can't see the objects in the one shown below  
(appEC).


So, if I want to make efficient use of memory by storing these  
rarely changing code table lists in the application, how does one go  
about storing them in an EC that the sessions can get to?


Two options:

1) EOSharedEditingContext.

2) localize your eos

public NSArrayLanguage languageList(EOEditingContext ec) {
	NSArray results =  
EOUtilities.objectsWithFetchSpecificationAndBindings( appEC,  
Language, FetchAllAvailableLanguages, null );

return EOUtilities.localInstancesOfObjects(ec, results);
}

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]