Just to follow up on this further. I have managed to work out that it
appears to be a localisation related issue.
The HelloWorld example is localised and therefore has no Resources/
Main.wo instead it has a bunch of Resource/<Lang>.lprog/Main.wo
components.
It seems that when launched with WOCachingEnabled=YES, WO will try to
read the Resources/Main.wo on startup, regardless of whether the app
is localised or not, so it seems you need to make sure that Resources/
Main.wo exists even if it's just a symlink to one of the localised
languages.
I have never played with localisation before so I have no idea if
this is something new, but it would be nice if the HelloWorld example
that comes with WO 5.4 was actually deployable out of the box.
Seeya...Q
On 27/10/2007, at 3:03 PM, Q wrote:
I have been messing with 5.4 this morning and have run into an
issue when doing a test deployment that I am hoping is just
something stupid on my part.
I have built the HelloWorld app that comes with WO 5.4 using 'ant
woa', tarred up the woa bundle from dist and untarred it to /
Library/WebObjects/Applications/HelloWorld.woa
In all the cases below I am testing using direct connect, not
through apache.
If I launch the app manually with no args it works fine. However,
if I launch the app with -WOCachingEnabled YES (like you would in
deployment) the app starts but fails to render any content, and
throws the following error:
<WorkerThread0>
<com.webobjects.appserver._private.WOComponentDefinition> No
template found for component Main at "file:/Library/WebObjects/
Applications/HelloWorld.woa/"
The same thing occurs when deploying with JavaMonitor/wotaskd, with
caching on, the app doesn't work, with it off it runs fine. (again,
using direct connect to test the app)
If I launch the app from /Developer/Examples/JavaWebObjects/
HelloWorld/dist/legacy/HelloWorld.woa with caching turned on it
works, but prints this in the output log:
Application project found: Will locate resources in '/Developer/
Examples/JavaWebObjects/HelloWorld' rather than '/Developer/
Examples/JavaWebObjects/HelloWorld/dist/legacy/HelloWorld.woa' .
What am I missing?
--
Seeya...Q
Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
--
Seeya...Q
Quinton Dolan - [EMAIL PROTECTED]
Gold Coast, QLD, Australia (GMT+10)
Ph: +61 419 729 806
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]