@Override
        public WOActionResults defaultAction() {
                return pageWithName(CPEMain.class.getName());
        }


what about adding getName()



On Aug 12, 2014, at 3:32 PM, Larry Mills-Gahl <elem...@gmail.com> wrote:

> I am trying to use a different default component in the defaultAction. 
> The defaultAction is pretty straight forward:
> 
>       @Override
>       public WOActionResults defaultAction() {
>               return pageWithName(CPEMain.class);
>       }
> 
> … but the Application still looks for “Main” when calling the base 
> application url ( (e.g. /cgi-bin/WebObjects/VACPE_201407_RC4.woa instead of 
> /cgi-bin/WebObjects/VACPE_201407_RC4.woa/wa/default)
> 
> 
> CPEMain is just the default Main component renamed. Using the full url to the 
> default directAction works as expected, but the application still tries to 
> use “Main” when no explicit action is given. I’m trying to avoid some class 
> path issues with other classes named Main. It seems like somewhere in 
> WOApplication the string for the component name is being set (rather than the 
> class as in ERXApplication.pageWithName) and that is causing the class path 
> issues and this insertion of “Main” as the component name to return.
> 
> I’ve seen this through Apache, and in direct connect also. 
> 
> Does anybody have suggestions on where I can look next?
> 
> 
> ERROR 14:55:49 (com.vascalert.cpe.Application:38):  
> handleException(Exception, WOContext) - Exception 
> _exception=com.webobjects.appserver.WOPageNotFoundException: 
> <com.vascalert.cpe.Application>: Unable to create page 'Main'.
> com.webobjects.appserver.WOPageNotFoundException: 
> <com.vascalert.cpe.Application>: Unable to create page 'Main'.
>       at 
> com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:2346)
>       at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:284)
>       at 
> com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
>       at 
> com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>       at 
> com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:445)
>       at 
> com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>       at 
> er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:2112)
>       at 
> er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:2077)
>       at 
> com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>       at 
> com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
> 
> 
> Larry Mills-Gahl
> elem...@gmail.com
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to tedp...@yahoo.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to