Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOLips and building / deploying webobjects as a servlet



Hello,

I am thinking of moving my WO apps to a servlet deployment.

I use eclipse for development, and up to now only used WOProject sans WOLips to build my apps for standard WO deployment.

I installed WOLips and used it to build a simple app using its "wizard" and had it build and install a war file of this simple app.

I am using resin to test the servlet deployment as it is very simple to setup.
I plan to move to tomcat or jboss in the future.
My current and future deployment os platform is win2k.

I am using WO 5.22 and java 1.4.2_12

I put may war file in the correct location for resin to unpack and run it.

However, I get the following error in the console at runtime.

[14:53:25.596] javax.servlet.UnavailableException: Can't find application bundle. You can either define WOROOT, LOCALROOT and WOAINSTALLROOT as Java system properties (e.g. in your application server's launch script as command line arguments) or in the application Deployment Descriptor file (web.xml).

In the WOLips generated build.xml file I set webXML="true" and embed="true" in the build.woapp target, removed the if="${never}" in the war and ssdd targets.

Any ideas?

 
Jerry Porter
IT Distribution MS 34-202
Lincoln Financial Group
One Commerce Square
2005 Market Street
Philadelphia, PA 19103
(215) 255-7031


----- Original Message ----
From: Ray Kiddy <email@hidden>
To: WebObjectsDev Apple <email@hidden>
Sent: Tuesday, March 20, 2007 2:39:00 PM
Subject: Re: Delete cascade?


On Mar 20, 2007, at 10:43 AM, Chuck Hill wrote:

> Hi Ian,
>
> On Mar 19, 2007, at 5:47 PM, Ian Joyner wrote:
>> On 20/03/2007, at 10:48 AM, Chuck Hill wrote:
>>> On Mar 19, 2007, at 4:20 PM, Ian Joyner wrote:
>>>> On 20/03/2007, at 2:57 AM, Chuck Hill wrote:
>>>>> On Mar 18, 2007, at 10:11 PM, Ian Joyner wrote:
>>>>>
<snip>

This discussion just makes me say. WO and EOF have certain  
abstractions. The object graph is one of the strongest. We often see  
non-optimal SQL as a result of this. There are things that can be  
done to improve the situation, like upgrading the adaptors in less  
than five years, but that is a separate issue.

The point is there will always be non-optimal SQL from EOF because  
EOF is at a different layer of abstraction. It is arguably impossible  
to completely allow all customizations available at a lower level of  
abstraction to the higher level of abstraction. C cannot do  
everything that assembly language can do in the same way, and so on.

It is as if you have a performer on a grand piano and he also wants a  
drumstick and a cymbal. You can give him one. How is it going to  
sound? But, hey, he just wants to hit something. He can see it, so  
why can he not hit it? So there it is. Of course, it is easier to  
resist workarounds if real bugs in WO get fixed.

I once talked to a guy at WWDC who had trained himself in WO. He was  
a long-time SQL hacker. He wondered why his app was so slow. He had,  
essentially, taken his entire model apart and was using straight SQL  
for everything. There were no relationships in his model. He did SQL  
joins himself and just used EOF to package up the results. It is hard  
to know what to say to such people.

But having, for example, a "list.@count" turn into a "select count(*)  
from table;" is a step down that same road. It is perhaps a  
reasonable step, but it is on that same road.

I still do some apps completely in SQL. I like SQL. But WO is good at  
what it does. If it hard to achieve fine-grained control in a certain  
area, that tells me to stop doing it that way. If I back up and  
figure out a different way to look at the problem, I usually get  
better results and less bruising on the forehead.

FWIW - ray

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

This email sent to email@hidden


 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.