Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

WOExamples

Radar #3001491

Your application doesn't respond at all after it's started up. Only occurs on Mac OS X.

Description:

The symptoms typically seen are an error page that contains text like:

Error:  com.webobjects.appserver.WOPageNotFoundException:
 Unable to create page 'Main'.Reason:
 <webobjectsexamples.thinkmovies.Application>:
Unable to create page 'Main'.

In the stack trace that follows, you should notice no references to your WOApplication subclass, either (which is typically named "Application").

The lack of your WOApplication subclass and your "Main" WOComponent subclass should indicate to you that the main bundle (i.e. the .woa) is not being recognized by WebObjects.If you have a symbolic link that points to your .woa directory and you're using that to access the launch script (the executable file that is the same name as your .woa directory with the .woa extension stripped from it), check whether the path to which this symbolic link points ends in one or more slash characters (/).

There's a bug in the Java Runtime Environment that shipped with Mac OS X 10.2 that prevents java.io.File.getCanonicalPath() from properly removing slashes from the end of the paths that it returns, and this problem confuses part of the WebObjects runtime.

Workaround:

Recreate the symbolic link in question, and exclude slash characters from the end of the path to which the recreated symbolic link points.



< Previous PageNext Page > Hide TOC


Last updated: 2004-12-02




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice