Re: Main or other...
but what is the cause of not-finding base-web-object classes - Main, DirectAction, Session? they are existing in the package! if i fix it with Patcher... then i have the same error with all components, PageWrapper for example: Error: com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException message '[com.webobjects.appserver.WOComponent name: PageWrapper subcomponents: {0.1 = er.directtoweb.components.ERD2WHead name: er.directtoweb.components.ERD2WHead subcomponents: null ; } valueForKey()]: lookup of unknown key: 'bodyClass'. The WOComponent com.webobjects.appserver.WOComponent does not have an instance variable of the name bodyClass or _bodyClass, nor a method of the name bodyClass, _bodyClass, getBodyClass, or _getBodyClass' object 'com.webobjects.appserver.WOComponent name: PageWrapper subcomponents: {0.1 = er.directtoweb.components.ERD2WHead name: er.directtoweb.components.ERD2WHead subcomponents: null ; } ' key 'bodyClass' Reason: [com.webobjects.appserver.WOComponent name: PageWrapper subcomponents: {0.1 = er.directtoweb.components.ERD2WHead name: er.directtoweb.components.ERD2WHead subcomponents: null ; } valueForKey()]: lookup of unknown key: 'bodyClass'. The WOComponent com.webobjects.appserver.WOComponent does not have an instance variable of the name bodyClass or _bodyClass, nor a method of the name bodyClass, _bodyClass, getBodyClass, or _getBodyClass 2012/5/3 Lachlan Deck lachlan.d...@gmail.com ERXPatcher.setClassForName(Main.class, Main); ERXPatcher.setClassForName(DirectAction.class, DirectAction); ___ 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
Re: Main or other...
On 04/05/2012, at 4:09 PM, Ron X wrote: but what is the cause of not-finding base-web-object classes - Main, DirectAction, Session? Historically WO had no concept of java packages. Possibly classpath ordering. You could try it yourself with NS utilities looking up class for name. Lachlan Deck lachlan.d...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Main or other...
but what should i do now? every time when i try to convert project into Maven - 8 of 10 cases i get error of Session class or Main class or just nothing on page (defaultAction executes and nothing appears) how can i fix this? 2012/5/4 Lachlan Deck lachlan.d...@gmail.com On 04/05/2012, at 4:09 PM, Ron X wrote: but what is the cause of not-finding base-web-object classes - Main, DirectAction, Session? Historically WO had no concept of java packages. Possibly classpath ordering. You could try it yourself with NS utilities looking up class for name. Lachlan Deck lachlan.d...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Main or other...
when displays nothing - something like this DEBUG 26.12 MB used/54.94 MB free [main] (ERXNSLogLog4jBridge.java:46) - Waiting for requests... DEBUG 27.24 MB used/53.82 MB free [WorkerThread0] (ERXNSLogLog4jBridge.java:46) - com.webobjects.appserver._private.WOComponentDefinition No template found for component Main at file:/Users/user/Documents/workspace/LSX/. 2012/5/4 Ron X ron.x.by...@gmail.com but what should i do now? every time when i try to convert project into Maven - 8 of 10 cases i get error of Session class or Main class or just nothing on page (defaultAction executes and nothing appears) how can i fix this? 2012/5/4 Lachlan Deck lachlan.d...@gmail.com On 04/05/2012, at 4:09 PM, Ron X wrote: but what is the cause of not-finding base-web-object classes - Main, DirectAction, Session? Historically WO had no concept of java packages. Possibly classpath ordering. You could try it yourself with NS utilities looking up class for name. Lachlan Deck lachlan.d...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Main or other...
On 04/05/2012, at 4:38 PM, Ron X wrote: but what should i do now? every time when i try to convert project into Maven - 8 of 10 cases i get error of Session class or Main class or just nothing on page (defaultAction executes and nothing appears) how can i fix this? This is the kind of thing that should work (see attachment). Lachlan Deck lachlan.d...@gmail.com Application.java Description: Binary data ___ 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
Re: Main or other...
JarResourceRequestHandler - what is it? i can not import it 2012/5/4 Lachlan Deck lachlan.d...@gmail.com On 04/05/2012, at 4:38 PM, Ron X wrote: but what should i do now? every time when i try to convert project into Maven - 8 of 10 cases i get error of Session class or Main class or just nothing on page (defaultAction executes and nothing appears) how can i fix this? This is the kind of thing that should work (see attachment). Lachlan Deck lachlan.d...@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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Main or other...
On 04/05/2012, at 5:15 PM, Ron X wrote: JarResourceRequestHandler - what is it? i can not import it It was posted by Henrique some time ago (not sure why it's not in Wonder yet?) I changed it slightly .. fixing a method signature to use long instead of int). 2012/5/4 Lachlan Deck lachlan.d...@gmail.com On 04/05/2012, at 4:38 PM, Ron X wrote: but what should i do now? every time when i try to convert project into Maven - 8 of 10 cases i get error of Session class or Main class or just nothing on page (defaultAction executes and nothing appears) how can i fix this? This is the kind of thing that should work (see attachment). Lachlan Deck lachlan.d...@gmail.com Lachlan Deck lachlan.d...@gmail.com JarResourceRequestHandler.java Description: Binary data ___ 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
Re: Main or other...
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 (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
Re: Main or other...
yes, now i do that: public LSXApplication() { setDefaultRequestHandler(new ERXDirectActionRequestHandler()); } but nothing changed :-( 2012/5/3 Paul Hoadley pa...@logicsquad.net 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 (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
Re: Main or other...
and it is very strange - because i have Main component. but i have exception, that i haven't it! 2012/5/3 Ron X ron.x.by...@gmail.com yes, now i do that: public LSXApplication() { setDefaultRequestHandler(new ERXDirectActionRequestHandler()); } but nothing changed :-( 2012/5/3 Paul Hoadley pa...@logicsquad.net 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 (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