On 13/02/2013, at 9:38 PM, Ron X <[email protected]> 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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to