• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unable to create page 'Main'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Unable to create page 'Main' (From: Ron X <email@hidden>)

  • Prev by Date: Re: null pointer question on flattened relationship
  • Next by Date: Re: null pointer question on flattened relationship
  • Previous by thread: Unable to create page 'Main'
  • Next by thread: Re: Webobjects-dev Digest, Vol 10, Issue 127
  • Index(es):
    • Date
    • Thread