Re: Unable to create page 'Main'
Re: Unable to create page 'Main'
- Subject: Re: Unable to create page 'Main'
- From: Lachlan Deck <email@hidden>
- Date: Thu, 14 Feb 2013 11:30:49 +1100
On 13/02/2013, at 9:38 PM, Ron X <email@hidden> wrote:
> i have an application, but after rebuild it to Tomcat-application with Wonder i have problem:
>
> com.webobjects.appserver.WOPageNotFoundException: <com.lsx.Application>: Unable to create page 'Main'.
> at com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2346)
Something like the following might help (from a years ago)...
public class Application extends … {
<…>
/**
* Install patches including ensuring that Main is correctly resolved at
* runtime.
*
* @see er.extensions.appserver.ERXApplication#installPatches()
*/
@Override
public void installPatches() {
super.installPatches();
// component classes
ERXPatcher.setClassForName(Main.class, "Main");
_NSUtilities.registerPackage(Main.class.getPackage().getName());
// action classes
ERXPatcher.setClassForName(DirectAction.class, "DirectAction");
_NSUtilities.registerPackage(DirectAction.class.getPackage().getName());
// register additional tag shortcuts
WOHelperFunctionTagRegistry.registerTagShortcut("ERXStyleSheet", "css");
}
}
cheers
Lachlan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden