Re: Ant build in WO 5.4 not working (Windows)

2009-07-29 Thread Chuck Hill

On Jul 29, 2009, at 5:44 PM, Amiel Montecillo wrote:
On Thu, Jul 30, 2009 at 1:54 AM, Chuck Hill village.net> wrote:

Hi Susanne,
On Jul 29, 2009, at 2:49 AM, Susanne Schneider wrote:

Hi Chuck,

first thank you very much for your patience with such a latecomer  
like me!

Chuck Hill schrieb:
On Jul 28, 2009, at 8:16 AM, Susanne Schneider wrote:
Hello everybody,

today I tempted fate and installed WO 5.4 on an Windows system  
(based on an MacBook) for development parallel to an existing 5.2  
installation.


After trying the tutorial for parallel handling from the wiki  
without any success I simply copied the new Framework directories  
into the old location. Not very elegant but seems to work: I could  
compile in Eclipse (3.5, WOLips 3.4.5872).


But I did not succeed in making an ant build. I always get the  
message "There is not root named "C:/Apple" in [[Root: name=  
Project" when coming to the compile target. Alas I haven't the  
faintest idea what is meant by that. Could somebody help me,  
please?? Is the problem related to the new framework/classpath  
handling I hadn't understand either?
Yes, you need to update the build files.  The easiest is to create a  
new project and move the build.xml file over.  This will NOT be  
compatible with older versions of WOLips (pre-New Hotness).   Look  
in the woapplication task for a section like:

  

OK, for starting from scratch and learning I make a fresh new  
TestApp and tried to build that. At first try the ant build needs a  
new "wolips.properties" which I created.


That should get created automatically.  There might be a problem  
with this on Windows.


Yes it has a problem automatically creating in windows. (I felt the  
pain before) not sure if its still the case with the latest  
versions. Here's my wolips.properties file for reference. It should  
be located in C:\Documents and Settings\{user}\Library\Application  
Support\WOLips folder.


wo.system.root=F\:/Apple
wo.system.frameworks=F\:/Apple/Library/Frameworks
wo.bootstrapjar=F\:/Apple/Library/WebObjects/JavaApplications/ 
wotaskd.woa/WOBootstrap.jar

wo.extensions=F\:/Apple/Local/Library/WebObjects/Extensions
wo.user.root=F\:/Amiel
wo.local.frameworks=F\:/Apple/Local/Library/Frameworks
wo.apps.root=F\:/Apple/Library/WebObjects/JavaApplications
wo.local.root=F\:/Apple/Local

And yes the "\" after the drive letter is needed in windos. Maybe  
Chuck can enlighten me why that is. ;)


I have no idea.  It looks like it is escaping the :, but that makes no  
sense.



Chuck


This took me one step further but now the build fails with the  
message "Could not find wobuild.properties. Run the buildfile:  
woproperties.xml first".


But I have the normal old-fashioned wobuild.properties in the  
standard location. And I could not find any "woproperties.xml" file.  
Do I have to place the wobuild.properties in a special location or  
to configure it somewhere in Eclipse?


That part confuses me.  wobuild.properties is not used anymore.   
Where is that message coming from?




At the moment I found it very confusing: I found 3 locations where  
the installation of framework path are defined:

- classpath-variables (Eclipse during startup from NEXT_ROOT?)
- wobuild.properties
- wolips.properties
and even there are multiple properties to the same path in one file.

The new WOLips should only be using wolips.properties.



By the way, the licence terms of the 5.4 version leave some points  
unclear, especially section 4 about termination. I tried to get  
information from Apple, but at least at the german telephone sites  
there was no much help. Does anybody knows an email contact at apple  
for official information ("webobje...@apple.com" did come back)?
I don't have the license handy.  Do you have a link or can you paste  
in that section?

The legals are here: http://images.apple.com/legal/sla/docs/xcode.pdf
The section I found unclear is:

"4. Termination. ... In addition, Apple reserves the right to  
terminate this Licence if a new version of Apple's operating system  
software or the Developer Software is released wich is incompatible  
with this version of the Developer Software. Upon the termination of  
this Licence, you shall cease all use of the Developer Software and  
destroy all copies, full or partial, of the Developer Software."


What is meant by "incompatible"? A update from 5.4.3 to 5.4.4 or to  
6.0? Does this imply deployed applications too? There is no  
mentioning how do you get notice of a termination at all. And as I  
would interpret this section this would even apply if you do not  
upate your development system.


This is not a very trustable ground for developing to-be-sold  
software upon. I rather would like to pay for software I am free to  
use as long as I like (and on any platform I like)!



That one is easy: that is NOT the WebObjects license.  That is the  
license for the Xcode Developer Tools.  The WebObjects license is  
completely different a

Re: Ant build in WO 5.4 not working (Windows)

2009-07-29 Thread Amiel Montecillo
On Thu, Jul 30, 2009 at 1:54 AM, Chuck Hill wrote:

> Hi Susanne,
>
>
> On Jul 29, 2009, at 2:49 AM, Susanne Schneider wrote:
>
>  Hi Chuck,
>>
>> first thank you very much for your patience with such a latecomer like me!
>> Chuck Hill schrieb:
>>
>>> On Jul 28, 2009, at 8:16 AM, Susanne Schneider wrote:
>>>
 Hello everybody,

 today I tempted fate and installed WO 5.4 on an Windows system (based on
 an MacBook) for development parallel to an existing 5.2 installation.

 After trying the tutorial for parallel handling from the wiki without
 any success I simply copied the new Framework directories into the old
 location. Not very elegant but seems to work: I could compile in Eclipse
 (3.5, WOLips 3.4.5872).

 But I did not succeed in making an ant build. I always get the message
 "There is not root named "C:/Apple" in [[Root: name= Project" when
 coming to the compile target. Alas I haven't the faintest idea what is 
 meant
 by that. Could somebody help me, please?? Is the problem related to the new
 framework/classpath handling I hadn't understand either?

>>> Yes, you need to update the build files.  The easiest is to create a new
>>> project and move the build.xml file over.  This will NOT be compatible with
>>> older versions of WOLips (pre-New Hotness).   Look in the woapplication task
>>> for a section like:
>>>   >> It should be  more like
>>>   >>   embed="${your.property.here}"
>>>   eclipse="true" />
>>>
>>
>> OK, for starting from scratch and learning I make a fresh new TestApp and
>> tried to build that. At first try the ant build needs a new
>> "wolips.properties" which I created.
>>
>
> That should get created automatically.  There might be a problem with this
> on Windows.
>

Yes it has a problem automatically creating in windows. (I felt the pain
before) not sure if its still the case with the latest versions. Here's my
wolips.properties file for reference. It should be located in C:\Documents
and Settings\{user}\Library\Application Support\WOLips folder.

wo.system.root=F\:/Apple
wo.system.frameworks=F\:/Apple/Library/Frameworks
wo.bootstrapjar=F\:/Apple/Library/WebObjects/JavaApplications/wotaskd.woa/WOBootstrap.jar
wo.extensions=F\:/Apple/Local/Library/WebObjects/Extensions
wo.user.root=F\:/Amiel
wo.local.frameworks=F\:/Apple/Local/Library/Frameworks
wo.apps.root=F\:/Apple/Library/WebObjects/JavaApplications
wo.local.root=F\:/Apple/Local

And yes the "\" after the drive letter is needed in windos. Maybe Chuck can
enlighten me why that is. ;)

>
>
>
>  This took me one step further but now the build fails with the message
>> "Could not find wobuild.properties. Run the buildfile: woproperties.xml
>> first".
>>
>> But I have the normal old-fashioned wobuild.properties in the standard
>> location. And I could not find any "woproperties.xml" file. Do I have to
>> place the wobuild.properties in a special location or to configure it
>> somewhere in Eclipse?
>>
>
> That part confuses me.  wobuild.properties is not used anymore.  Where is
> that message coming from?
>
>
>  At the moment I found it very confusing: I found 3 locations where the
>> installation of framework path are defined:
>> - classpath-variables (Eclipse during startup from NEXT_ROOT?)
>> - wobuild.properties
>> - wolips.properties
>> and even there are multiple properties to the same path in one file.
>>
>
> The new WOLips should only be using wolips.properties.
>
>
>  By the way, the licence terms of the 5.4 version leave some points
>> unclear, especially section 4 about termination. I tried to get information
>> from Apple, but at least at the german telephone sites there was no much
>> help. Does anybody knows an email contact at apple for official information
>> ("webobje...@apple.com" did come back)?
>>
>>> I don't have the license handy.  Do you have a link or can you paste in
>>> that section?
>>>
>> The legals are here: http://images.apple.com/legal/sla/docs/xcode.pdf
>> The section I found unclear is:
>>
>> "4. Termination. ... In addition, Apple reserves the right to terminate
>> this Licence if a new version of Apple's operating system software or the
>> Developer Software is released wich is incompatible with this version of the
>> Developer Software. Upon the termination of this Licence, you shall cease
>> all use of the Developer Software and destroy all copies, full or partial,
>> of the Developer Software."
>>
>> What is meant by "incompatible"? A update from 5.4.3 to 5.4.4 or to 6.0?
>> Does this imply deployed applications too? There is no mentioning how do you
>> get notice of a termination at all. And as I would interpret this section
>> this would even apply if you do not upate your development system.
>>
>> This is not a very trustable ground for developing to-be-sold software
>> upon. I rather would like to pay for software I am free to use as long as I
>> like (and on any plat

Re: Ant build in WO 5.4 not working (Windows)

2009-07-29 Thread Mr. Pierre Frisch

Hi Susanne,

The WebObjects license is very liberal and the intent is that you can  
pretty much install it anywhere provided that you don't build a  
competing dev environment with it.


If you have a MacBook why not develop under MacOSX?

Pierre
--
Pierre Frisch
pie...@apple.com


On Jul 29, 2009, at 2:49, Susanne Schneider wrote:


Hi Chuck,

first thank you very much for your patience with such a latecomer  
like me!

Chuck Hill schrieb:

On Jul 28, 2009, at 8:16 AM, Susanne Schneider wrote:

Hello everybody,

today I tempted fate and installed WO 5.4 on an Windows system  
(based on an MacBook) for development parallel to an existing 5.2  
installation.


After trying the tutorial for parallel handling from the wiki  
without any success I simply copied the new Framework directories  
into the old location. Not very elegant but seems to work: I could  
compile in Eclipse (3.5, WOLips 3.4.5872).


But I did not succeed in making an ant build. I always get the  
message "There is not root named "C:/Apple" in [[Root: name=  
Project" when coming to the compile target. Alas I haven't the  
faintest idea what is meant by that. Could somebody help me,  
please?? Is the problem related to the new framework/classpath  
handling I hadn't understand either?
Yes, you need to update the build files.  The easiest is to create  
a new project and move the build.xml file over.  This will NOT be  
compatible with older versions of WOLips (pre-New Hotness).   Look  
in the woapplication task for a section like:

   


OK, for starting from scratch and learning I make a fresh new  
TestApp and tried to build that. At first try the ant build needs a  
new "wolips.properties" which I created. This took me one step  
further but now the build fails with the message "Could not find  
wobuild.properties. Run the buildfile: woproperties.xml first".


But I have the normal old-fashioned wobuild.properties in the  
standard location. And I could not find any "woproperties.xml" file.  
Do I have to place the wobuild.properties in a special location or  
to configure it somewhere in Eclipse?


At the moment I found it very confusing: I found 3 locations where  
the installation of framework path are defined:

- classpath-variables (Eclipse during startup from NEXT_ROOT?)
- wobuild.properties
- wolips.properties
and even there are multiple properties to the same path in one file.


By the way, the licence terms of the 5.4 version leave some points  
unclear, especially section 4 about termination. I tried to get  
information from Apple, but at least at the german telephone sites  
there was no much help. Does anybody knows an email contact at  
apple for official information ("webobje...@apple.com" did come  
back)?
I don't have the license handy.  Do you have a link or can you  
paste in that section?

The legals are here: http://images.apple.com/legal/sla/docs/xcode.pdf
The section I found unclear is:

"4. Termination. ... In addition, Apple reserves the right to  
terminate this Licence if a new version of Apple's operating system  
software or the Developer Software is released wich is incompatible  
with this version of the Developer Software. Upon the termination of  
this Licence, you shall cease all use of the Developer Software and  
destroy all copies, full or partial, of the Developer Software."


What is meant by "incompatible"? A update from 5.4.3 to 5.4.4 or to  
6.0? Does this imply deployed applications too? There is no  
mentioning how do you get notice of a termination at all. And as I  
would interpret this section this would even apply if you do not  
upate your development system.


This is not a very trustable ground for developing to-be-sold  
software upon. I rather would like to pay for software I am free to  
use as long as I like (and on any platform I like)!


Regards,
Susanne
--
Susanne Schneider
Coordinator secuTrial Development

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

fon+49(0)30 22 50 50 - 498
fax+49(0)30 22 50 50 - 451
mail   susanne.schnei...@interactive-systems.de
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/pierre%40apple.com

This email sent to pie...@apple.com




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.

Re: Odd request - WebObjects URLs

2009-07-29 Thread Mike Schrag

WOContext.componentActionURL

ms

On Jul 29, 2009, at 5:31 PM, John Ours wrote:

I know that WOComponentRequestHandler is the class that's  
responsible for deciphering the wo URLs into the session id,  
context, etc.  Does anyone know what part of the framework is  
responsible for generating those?


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

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



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

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


Re: Odd request - WebObjects URLs

2009-07-29 Thread Chuck Hill

WOContext.


On Jul 29, 2009, at 2:31 PM, John Ours wrote:

I know that WOComponentRequestHandler is the class that's  
responsible for deciphering the wo URLs into the session id,  
context, etc.  Does anyone know what part of the framework is  
responsible for generating those?


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

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



--
Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

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

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


Odd request - WebObjects URLs

2009-07-29 Thread John Ours
I know that WOComponentRequestHandler is the class that's responsible  
for deciphering the wo URLs into the session id, context, etc.  Does  
anyone know what part of the framework is responsible for generating  
those?


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

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


Re: My first Eclipse D2W

2009-07-29 Thread David Holt


On 29-Jul-09, at 11:05 AM, Dino Strausz wrote:



On 29 Jul 2009, at 12:57 PM, Chuck Hill wrote:



On Jul 29, 2009, at 10:23 AM, Dino Strausz wrote:


Hola Chuck et al.,


On 28 Jul 2009, at 1:02 PM, Chuck Hill wrote:


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a  
subclass of WOSession.


It is picking up the wrong session.  Using WO 5.3?  You really  
want / need to use Wonder if you are doing D2W.  Wonder will fix  
this problem.


I am running the latest version of WO (I suppose)


Might want to check that.


My WebServiceAsistent reports being 5.4 (I suppose all my WO is too).


http://support.apple.com/kb/TA26706?viewlocale=en_US

You need to open /System/Library/Frameworks/JavaWebObjects.framework/ 
Resources/version.plist and check the value of  
CFBundleShortVersionString









on top of Leopard 5.7 on an Aluminium MacBook
I did try both D2W type of project (one of them being Wonder's)  
with the same result/error


A proper Wonder project should fix this.


strange...




If you really won't use Wonder (and you will regret it), add  
this to you Application class:


protected Class _sessionClass() {
return your.package.here.Session.class;
}


Tried but did not worked...


You got the same error?  A different error?


exactly same error... I will start from scratch to see what happens...




Chuck



I think I did something wrong from the beginning ... didn't I?

D2W is supposed to work "from the box" just with a model and a  
running database, right?

Does Wonder's D2W needs something else?
Are there some versions issues I am not seeing?

Please, gimme some light on how to start using D2W with in the  
Eclipse+WOlips+... environment!


Gracias!
Dino





And change "your.package.here" to the package your Session class  
is in.



Chuck





--
Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced- 
from-106but-prognosis-of-death-premature.ars




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


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


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

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

Re: My first Eclipse D2W

2009-07-29 Thread David Holt


On 29-Jul-09, at 11:32 AM, Dino Strausz wrote:


Sorry on:

On 29 Jul 2009, at 1:12 PM, webobjects-dev-requ...@lists.apple.com  
wrote:




Did you include the plugin framework for your database in your
classpath?


How do I do that? I am using the Postgres that came with the nice-
installable WO-new-tools.pkg ;^)


got confused here. The  database that comes with THE tools is Front  
Base, right?


If you mean the all-in-one installer, I believe that is correct.  
However, you still need to add the dependancy for the database plugin  
framework you are using to your project, even if it is Frontbase.


http://wiki.objectstyle.org/confluence/display/WOL/Add+a+Framework 
+Dependency





I installed Postgres because of Alex's tool's adaptor http:// 
www.raftis.net/~alex/


So, can you be so kind to tell me how do I do this?


Did you try without a model? And if so, what happened?

Did you watch David LeBer's introduction to D2W that Paul pointed you  
to? David provided a link to a model framework and SQL dump built up  
for MySQL if you want to play along with the screencasts.




Gracias!


Dino
--
di...@mac.com
Business Applied X Objects
http://strausz.blogspot.com
(+52-1) 55-5437-8205




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


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


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

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


Re: My first Eclipse D2W

2009-07-29 Thread Dino Strausz

Sorry on:

On 29 Jul 2009, at 1:12 PM, webobjects-dev-requ...@lists.apple.com  
wrote:




Did you include the plugin framework for your database in your
classpath?


How do I do that? I am using the Postgres that came with the nice-
installable WO-new-tools.pkg ;^)


got confused here. The  database that comes with THE tools is Front  
Base, right?


I installed Postgres because of Alex's tool's adaptor 
http://www.raftis.net/~alex/

So, can you be so kind to tell me how do I do this?

Gracias!


Dino
--
di...@mac.com
Business Applied X Objects
http://strausz.blogspot.com
(+52-1) 55-5437-8205




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

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


Re: My first Eclipse D2W

2009-07-29 Thread Dino Strausz

Hola David, thanks for your replay...

On 29 Jul 2009, at 12:58 PM, David Holt wrote:


Back to basics in case there is a step you missed along the way.

On 28-Jul-09, at 10:55 AM, Dino Strausz wrote:


Hola t...@s!

Finally, I am trying, no without some frustrations, to move to  
Eclipse and the "new" tools... recall please I am an old dog, and  
is hard to me to learn new tricks...

I did the following:

1. created a sample database (a couple of tables) in Postgres


Ok. It has content?


not yet




2. created a model using Alex's EOModeler


What is Alex's EOModeler? I assume you mean that you reverse  
engineered using the EOModeler perspective in Eclipse??


it is an open sourced Objective-C version of EOModeler which runs on  
nicely on Leopard (via Rosseta)




3. created a D2W project within Eclipse, importing from the wizard  
the model


Can you try creating a Wonder D2W project that doesn't point to any  
model and see if it starts up? I have just tested that the Wonder  
D2W wizard creates a runnable app.


I will try...



Did you include the plugin framework for your database in your  
classpath?


How do I do that? I am using the Postgres that came with the nice- 
installable WO-new-tools.pkg ;^)





4. pushed the green button

My Safari started with the following error on the page:

Application: JavaFoundation
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: An Exception occurred while  
generating the Exception page 'WOExceptionPage'. This is most  
likely due to an error in 'WOExceptionPage' itself or WebObjects  
encountered an uncaught exception while creating a Session object.



Below are the logs of the original Exception which occured in  
com.webobjects.appserver.WOApplication, then the later Exception in  
WOExceptionPage.


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a subclass  
of WOSession.
at  
com 
.webobjects 
.appserver.WOApplication._sessionClass(WOApplication.java:1925)
at  
com 
.webobjects 
.appserver.WOApplication.createSessionForRequest(WOApplication.java: 
1964)
at  
com 
.webobjects 
.appserver 
.WOApplication._initializeSessionInContext(WOApplication.java:2101)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._dispatchWithPreparedApplication(WOComponentRequestHandler.java:319)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
._handleRequest(WOComponentRequestHandler.java:369)
at  
com 
.webobjects 
.appserver 
._private 
.WOComponentRequestHandler 
.handleRequest(WOComponentRequestHandler.java:442)
at  
com 
.webobjects 
.appserver.WOApplication.dispatchRequest(WOApplication.java:1678)
at  
com 
.webobjects 
.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at  
com 
.webobjects 
.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)

at java.lang.Thread.run(Thread.java:613)


What did I wrong??

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

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




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

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

Re: My first Eclipse D2W

2009-07-29 Thread Dino Strausz


On 29 Jul 2009, at 12:57 PM, Chuck Hill wrote:



On Jul 29, 2009, at 10:23 AM, Dino Strausz wrote:


Hola Chuck et al.,


On 28 Jul 2009, at 1:02 PM, Chuck Hill wrote:


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a subclass  
of WOSession.


It is picking up the wrong session.  Using WO 5.3?  You really  
want / need to use Wonder if you are doing D2W.  Wonder will fix  
this problem.


I am running the latest version of WO (I suppose)


Might want to check that.


My WebServiceAsistent reports being 5.4 (I suppose all my WO is too).





on top of Leopard 5.7 on an Aluminium MacBook
I did try both D2W type of project (one of them being Wonder's)  
with the same result/error


A proper Wonder project should fix this.


strange...




If you really won't use Wonder (and you will regret it), add this  
to you Application class:


protected Class _sessionClass() {
return your.package.here.Session.class;
}


Tried but did not worked...


You got the same error?  A different error?


exactly same error... I will start from scratch to see what happens...




Chuck



I think I did something wrong from the beginning ... didn't I?

D2W is supposed to work "from the box" just with a model and a  
running database, right?

Does Wonder's D2W needs something else?
Are there some versions issues I am not seeing?

Please, gimme some light on how to start using D2W with in the  
Eclipse+WOlips+... environment!


Gracias!
Dino





And change "your.package.here" to the package your Session class  
is in.



Chuck





--
Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars



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

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


Re: My first Eclipse D2W

2009-07-29 Thread David Holt


On 29-Jul-09, at 10:23 AM, Dino Strausz wrote:


Hola Chuck et al.,


On 28 Jul 2009, at 1:02 PM, Chuck Hill wrote:


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a subclass  
of WOSession.


It is picking up the wrong session.  Using WO 5.3?  You really  
want / need to use Wonder if you are doing D2W.  Wonder will fix  
this problem.


I am running the latest version of WO (I suppose) on top of Leopard  
5.7 on an Aluminium MacBook
I did try both D2W type of project (one of them being Wonder's)  
with the same result/error


Which Wonder version are you using? What version of Eclipse/WOLips?  
Stable? Nightly? You might be seeing an issue with the templates for  
creating Wonder D2W projects...






If you really won't use Wonder (and you will regret it), add this  
to you Application class:


protected Class _sessionClass() {
return your.package.here.Session.class;
}


Tried but did not worked...
I think I did something wrong from the beginning ... didn't I?


Maybe :-)



D2W is supposed to work "from the box" just with a model and a  
running database, right?


Yes. An app created from the Wonder D2W template will start up  
without a model as well.



Does Wonder's D2W needs something else?


No


Are there some versions issues I am not seeing?


Try the project with no model and see what happens.



Please, gimme some light on how to start using D2W with in the  
Eclipse+WOlips+... environment!


:-)



Gracias!
Dino





And change "your.package.here" to the package your Session class  
is in.



Chuck


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


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


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

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


Re: My first Eclipse D2W

2009-07-29 Thread David Holt

Back to basics in case there is a step you missed along the way.

On 28-Jul-09, at 10:55 AM, Dino Strausz wrote:


Hola t...@s!

Finally, I am trying, no without some frustrations, to move to  
Eclipse and the "new" tools... recall please I am an old dog, and  
is hard to me to learn new tricks...

I did the following:

1. created a sample database (a couple of tables) in Postgres


Ok. It has content?


2. created a model using Alex's EOModeler


What is Alex's EOModeler? I assume you mean that you reverse  
engineered using the EOModeler perspective in Eclipse??


3. created a D2W project within Eclipse, importing from the wizard  
the model


Can you try creating a Wonder D2W project that doesn't point to any  
model and see if it starts up? I have just tested that the Wonder D2W  
wizard creates a runnable app.


Did you include the plugin framework for your database in your  
classpath?



4. pushed the green button

My Safari started with the following error on the page:

Application: JavaFoundation
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: An Exception occurred while  
generating the Exception page 'WOExceptionPage'. This is most  
likely due to an error in 'WOExceptionPage' itself or WebObjects  
encountered an uncaught exception while creating a Session object.



Below are the logs of the original Exception which occured in  
com.webobjects.appserver.WOApplication, then the later Exception in  
WOExceptionPage.


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a subclass  
of WOSession.
at com.webobjects.appserver.WOApplication._sessionClass 
(WOApplication.java:1925)
at com.webobjects.appserver.WOApplication.createSessionForRequest 
(WOApplication.java:1964)
at  
com.webobjects.appserver.WOApplication._initializeSessionInContext 
(WOApplication.java:2101)
at  
com.webobjects.appserver._private.WOComponentRequestHandler._dispatchW 
ithPreparedApplication(WOComponentRequestHandler.java:319)
at  
com.webobjects.appserver._private.WOComponentRequestHandler._handleReq 
uest(WOComponentRequestHandler.java:369)
at  
com.webobjects.appserver._private.WOComponentRequestHandler.handleRequ 
est(WOComponentRequestHandler.java:442)
at com.webobjects.appserver.WOApplication.dispatchRequest 
(WOApplication.java:1678)
at com.webobjects.appserver._private.WOWorkerThread.runOnce 
(WOWorkerThread.java:144)
at com.webobjects.appserver._private.WOWorkerThread.run 
(WOWorkerThread.java:226)

at java.lang.Thread.run(Thread.java:613)


What did I wrong??

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


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


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

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

Re: My first Eclipse D2W

2009-07-29 Thread Chuck Hill


On Jul 29, 2009, at 10:23 AM, Dino Strausz wrote:


Hola Chuck et al.,


On 28 Jul 2009, at 1:02 PM, Chuck Hill wrote:


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a subclass  
of WOSession.


It is picking up the wrong session.  Using WO 5.3?  You really  
want / need to use Wonder if you are doing D2W.  Wonder will fix  
this problem.


I am running the latest version of WO (I suppose)


Might want to check that.



on top of Leopard 5.7 on an Aluminium MacBook
I did try both D2W type of project (one of them being Wonder's) with  
the same result/error


A proper Wonder project should fix this.


If you really won't use Wonder (and you will regret it), add this  
to you Application class:


protected Class _sessionClass() {
return your.package.here.Session.class;
}


Tried but did not worked...


You got the same error?  A different error?


Chuck



I think I did something wrong from the beginning ... didn't I?

D2W is supposed to work "from the box" just with a model and a  
running database, right?

Does Wonder's D2W needs something else?
Are there some versions issues I am not seeing?

Please, gimme some light on how to start using D2W with in the  
Eclipse+WOlips+... environment!


Gracias!
Dino





And change "your.package.here" to the package your Session class is  
in.



Chuck





--
Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

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

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


Re: Ant build in WO 5.4 not working (Windows)

2009-07-29 Thread Chuck Hill

Hi Susanne,


On Jul 29, 2009, at 2:49 AM, Susanne Schneider wrote:


Hi Chuck,

first thank you very much for your patience with such a latecomer  
like me!

Chuck Hill schrieb:

On Jul 28, 2009, at 8:16 AM, Susanne Schneider wrote:

Hello everybody,

today I tempted fate and installed WO 5.4 on an Windows system  
(based on an MacBook) for development parallel to an existing 5.2  
installation.


After trying the tutorial for parallel handling from the wiki  
without any success I simply copied the new Framework directories  
into the old location. Not very elegant but seems to work: I could  
compile in Eclipse (3.5, WOLips 3.4.5872).


But I did not succeed in making an ant build. I always get the  
message "There is not root named "C:/Apple" in [[Root: name=  
Project" when coming to the compile target. Alas I haven't the  
faintest idea what is meant by that. Could somebody help me,  
please?? Is the problem related to the new framework/classpath  
handling I hadn't understand either?
Yes, you need to update the build files.  The easiest is to create  
a new project and move the build.xml file over.  This will NOT be  
compatible with older versions of WOLips (pre-New Hotness).   Look  
in the woapplication task for a section like:

   


OK, for starting from scratch and learning I make a fresh new  
TestApp and tried to build that. At first try the ant build needs a  
new "wolips.properties" which I created.


That should get created automatically.  There might be a problem with  
this on Windows.



This took me one step further but now the build fails with the  
message "Could not find wobuild.properties. Run the buildfile:  
woproperties.xml first".


But I have the normal old-fashioned wobuild.properties in the  
standard location. And I could not find any "woproperties.xml" file.  
Do I have to place the wobuild.properties in a special location or  
to configure it somewhere in Eclipse?


That part confuses me.  wobuild.properties is not used anymore.  Where  
is that message coming from?



At the moment I found it very confusing: I found 3 locations where  
the installation of framework path are defined:

- classpath-variables (Eclipse during startup from NEXT_ROOT?)
- wobuild.properties
- wolips.properties
and even there are multiple properties to the same path in one file.


The new WOLips should only be using wolips.properties.


By the way, the licence terms of the 5.4 version leave some points  
unclear, especially section 4 about termination. I tried to get  
information from Apple, but at least at the german telephone sites  
there was no much help. Does anybody knows an email contact at apple  
for official information ("webobje...@apple.com" did come back)?
I don't have the license handy.  Do you have a link or can you  
paste in that section?

The legals are here: http://images.apple.com/legal/sla/docs/xcode.pdf
The section I found unclear is:

"4. Termination. ... In addition, Apple reserves the right to  
terminate this Licence if a new version of Apple's operating system  
software or the Developer Software is released wich is incompatible  
with this version of the Developer Software. Upon the termination of  
this Licence, you shall cease all use of the Developer Software and  
destroy all copies, full or partial, of the Developer Software."


What is meant by "incompatible"? A update from 5.4.3 to 5.4.4 or to  
6.0? Does this imply deployed applications too? There is no  
mentioning how do you get notice of a termination at all. And as I  
would interpret this section this would even apply if you do not  
upate your development system.


This is not a very trustable ground for developing to-be-sold  
software upon. I rather would like to pay for software I am free to  
use as long as I like (and on any platform I like)!



That one is easy: that is NOT the WebObjects license.  That is the  
license for the Xcode Developer Tools.  The WebObjects license is  
completely different and very liberal.  You will see it when you run  
the WebObjects installer.


Chuck

--
Chuck Hill Senior Consultant / VP Development

Learn WO at WOWODC'09 East in Montréal this August!
http://www.wocommunity.org/wowodc09/east

http://arstechnica.com/apple/news/2009/07/webobjects-sliced-from-106but-prognosis-of-death-premature.ars

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

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


Re: My first Eclipse D2W

2009-07-29 Thread Dino Strausz

Hola Chuck et al.,


On 28 Jul 2009, at 1:02 PM, Chuck Hill wrote:


Original Exception:
java.lang.IllegalArgumentException:  
 Class 'Session' exists  
(interface org.apache.axis.session.Session) but is not a subclass  
of WOSession.


It is picking up the wrong session.  Using WO 5.3?  You really  
want / need to use Wonder if you are doing D2W.  Wonder will fix  
this problem.


I am running the latest version of WO (I suppose) on top of Leopard  
5.7 on an Aluminium MacBook
I did try both D2W type of project (one of them being Wonder's) with  
the same result/error




If you really won't use Wonder (and you will regret it), add this to  
you Application class:


protected Class _sessionClass() {
return your.package.here.Session.class;
}


Tried but did not worked...
I think I did something wrong from the beginning ... didn't I?

D2W is supposed to work "from the box" just with a model and a running  
database, right?

Does Wonder's D2W needs something else?
Are there some versions issues I am not seeing?

Please, gimme some light on how to start using D2W with in the Eclipse 
+WOlips+... environment!


Gracias!
Dino





And change "your.package.here" to the package your Session class is  
in.



Chuck


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

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


Re: Ant build in WO 5.4 not working (Windows)

2009-07-29 Thread Susanne Schneider

Hi Chuck,

first thank you very much for your patience with such a latecomer like me!
Chuck Hill schrieb:


On Jul 28, 2009, at 8:16 AM, Susanne Schneider wrote:


Hello everybody,

today I tempted fate and installed WO 5.4 on an Windows system (based 
on an MacBook) for development parallel to an existing 5.2 installation.


After trying the tutorial for parallel handling from the wiki without 
any success I simply copied the new Framework directories into the old 
location. Not very elegant but seems to work: I could compile in 
Eclipse (3.5, WOLips 3.4.5872).


But I did not succeed in making an ant build. I always get the message 
"There is not root named "C:/Apple" in [[Root: name= Project" when 
coming to the compile target. Alas I haven't the faintest idea what is 
meant by that. Could somebody help me, please?? Is the problem related 
to the new framework/classpath handling I hadn't understand either?


Yes, you need to update the build files.  The easiest is to create a new 
project and move the build.xml file over.  This will NOT be compatible 
with older versions of WOLips (pre-New Hotness).   Look in the 
woapplication task for a section like:







OK, for starting from scratch and learning I make a fresh new TestApp 
and tried to build that. At first try the ant build needs a new 
"wolips.properties" which I created. This took me one step further but 
now the build fails with the message "Could not find wobuild.properties. 
Run the buildfile: woproperties.xml first".


But I have the normal old-fashioned wobuild.properties in the standard 
location. And I could not find any "woproperties.xml" file. Do I have to 
place the wobuild.properties in a special location or to configure it 
somewhere in Eclipse?


At the moment I found it very confusing: I found 3 locations where the 
installation of framework path are defined:

- classpath-variables (Eclipse during startup from NEXT_ROOT?)
- wobuild.properties
- wolips.properties
and even there are multiple properties to the same path in one file.


By the way, the licence terms of the 5.4 version leave some points 
unclear, especially section 4 about termination. I tried to get 
information from Apple, but at least at the german telephone sites 
there was no much help. Does anybody knows an email contact at apple 
for official information ("webobje...@apple.com" did come back)?



I don't have the license handy.  Do you have a link or can you paste in 
that section?



The legals are here: http://images.apple.com/legal/sla/docs/xcode.pdf
The section I found unclear is:

"4. Termination. ... In addition, Apple reserves the right to terminate 
this Licence if a new version of Apple's operating system software or 
the Developer Software is released wich is incompatible with this 
version of the Developer Software. Upon the termination of this Licence, 
you shall cease all use of the Developer Software and destroy all 
copies, full or partial, of the Developer Software."


What is meant by "incompatible"? A update from 5.4.3 to 5.4.4 or to 6.0? 
Does this imply deployed applications too? There is no mentioning how do 
you get notice of a termination at all. And as I would interpret this 
section this would even apply if you do not upate your development system.


This is not a very trustable ground for developing to-be-sold software 
upon. I rather would like to pay for software I am free to use as long 
as I like (and on any platform I like)!


Regards,
Susanne
--
Susanne Schneider
Coordinator secuTrial Development

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

fon+49(0)30 22 50 50 - 498
fax+49(0)30 22 50 50 - 451
mail   susanne.schnei...@interactive-systems.de
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 arch...@mail-archive.com