and it is very strange - because i have Main component. but i have exception, that i haven't it!
2012/5/3 Ron X <[email protected]> > yes, now i do that: > > public LSXApplication() { > setDefaultRequestHandler(new ERXDirectActionRequestHandler()); > } > > but nothing changed :-( > > > 2012/5/3 Paul Hoadley <[email protected]> > >> Hi Ron, >> >> On 03/05/2012, at 5:12 PM, Ron X wrote: >> >> > hi for all >> > >> > i wanna to start application using another component - not Main! >> > >> > so i do: >> > >> > @Override >> > public WOActionResults defaultAction() { >> > return pageWithName(Start.class); >> > } >> >> That alone is not quite sufficient, but from the stack trace it _looks_ >> like you've also set the default request handler in your Application class: >> >> > WOActionRequestHandler.java 259 _handleRequest >> com.webobjects.appserver._private >> > WOActionRequestHandler.java 158 handleRequest >> com.webobjects.appserver._private >> > ERXDirectActionRequestHandler.java 126 handleRequest >> er.extensions.appserver >> > WOApplication.java 1687 dispatchRequest >> com.webobjects.appserver >> > ERXApplication.java 2096 dispatchRequestImmediately >> er.extensions.appserver >> > ERXApplication.java 2061 dispatchRequest >> er.extensions.appserver >> >> Have you done that? That is, called setDefaultRequestHandler(new >> ERXDirectActionRequestHandler()) in Application's constructor? >> >> (Even that's not _quite_ sufficient to cover all bases. It turns out >> that the "Main" component is hard-coded in at least a couple of WebObjects >> classes, including WOApplication.pageWithName(String aName, WOContext >> aContext). That's relevant if 'aName' is null, which happens when you >> request '.../SomeApp.woa/wo/'—the method looks for a "Main" component in >> that case. To cover every base, you also need to override that.) >> >> >> -- >> Paul Hoadley >> >> http://logicsquad.net/ >> >> >> >> >
_______________________________________________ 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]
