Re: _rewriteURL not firing
Hey Jeff, On 12/03/2011, at 7:10 AM, Jeff Schmitz wrote: > context class:er.extensions.appserver.ajax.ERXAjaxContext > Interesting, when this started happening was about the time I added the > ERAjax frameworks to my project. I think you're onto something. Bingo. I believe ERXAjaxContext does not extend ERXWOContext, but WOContext. It therefore doesn't use url rewriting afaik... You would need to subclass it to add url rewriting to it. I don't know what problems, if any, that would present. Perhaps Mike knows? >> On 11/03/2011, at 12:59 PM, Jeff Schmitz wrote: >> >>> Still haven't figured this one out so I downloaded and installed the Wonder >>> source so I can setup breakpoints in it. I see that my _rewriteURL should >>> be getting called by the ERXWOContext _postprocessURL function, so I put a >>> break point there. Moving up the chain, I also put breakpoints in: >>> >>> ERXWOContext54 _urlWithRequestHandlerKey >>> ERXRedirect appendToRepsonse >> >> Ah, you didn't mention ERXRedirect before. Perhaps it doesn't work with >> ERXRedirect? Does it work for your normal urls? >> On 12/03/2011, at 9:08 AM, Jeff Schmitz wrote: > Missed your last question. I don't know that I am using ERXRedirect, I was > just snooping through the code trying to figure out places that might > eventually lead to _rewriteURL being called. As the breakpoint that I put > there was never hit, perhaps that means I'm actually not using ERXRedirect. Okay. with regards, - Lachlan Deck ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: _rewriteURL not firing
Missed your last question. I don't know that I am using ERXRedirect, I was just snooping through the code trying to figure out places that might eventually lead to _rewriteURL being called. As the breakpoint that I put there was never hit, perhaps that means I'm actually not using ERXRedirect. On Mar 11, 2011, at 3:21 AM, Lachlan Deck wrote: > What context are you getting at runtime? > > WOContext context = request().context(); > LOG.warn("context class:" + context.getClass().getName()); > > Are you running in a servlet container or just plain WO? > > ERXWOContext._postprocessURL should get called. > > > On 11/03/2011, at 12:59 PM, Jeff Schmitz wrote: > >> Still haven't figured this one out so I downloaded and installed the Wonder >> source so I can setup breakpoints in it. I see that my _rewriteURL should >> be getting called by the ERXWOContext _postprocessURL function, so I put a >> break point there. Moving up the chain, I also put breakpoints in: >> >> ERXWOContext54 _urlWithRequestHandlerKey >> ERXRedirect appendToRepsonse > > Ah, you didn't mention ERXRedirect before. Perhaps it doesn't work with > ERXRedirect? Does it work for your normal urls? > >> And none of the breakpoints are hit on a page load. I do have other >> breakpoints in the wonder code that are hit, so it's not a >> classpath/debugger issue. >> >> Is there some flag that needs to be set for the _rewriteURL in my >> Application class that extends ERXApplication to be called now? As I noted >> below, this did work at one time. >> >> I'm using webobjects 5.4.x and the latest Wonder source. > > with regards, > - > > Lachlan Deck > ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: _rewriteURL not firing
context class:er.extensions.appserver.ajax.ERXAjaxContext Interesting, when this started happening was about the time I added the ERAjax frameworks to my project. I think you're onto something. I'm running with just plain WO with Apache and the WOAdaptor (hope I said that right). I'm not running inside tomcat or anything like that. On Mar 11, 2011, at 3:21 AM, Lachlan Deck wrote: > What context are you getting at runtime? > > WOContext context = request().context(); > LOG.warn("context class:" + context.getClass().getName()); > > Are you running in a servlet container or just plain WO? > > ERXWOContext._postprocessURL should get called. > > > On 11/03/2011, at 12:59 PM, Jeff Schmitz wrote: > >> Still haven't figured this one out so I downloaded and installed the Wonder >> source so I can setup breakpoints in it. I see that my _rewriteURL should >> be getting called by the ERXWOContext _postprocessURL function, so I put a >> break point there. Moving up the chain, I also put breakpoints in: >> >> ERXWOContext54 _urlWithRequestHandlerKey >> ERXRedirect appendToRepsonse > > Ah, you didn't mention ERXRedirect before. Perhaps it doesn't work with > ERXRedirect? Does it work for your normal urls? > >> And none of the breakpoints are hit on a page load. I do have other >> breakpoints in the wonder code that are hit, so it's not a >> classpath/debugger issue. >> >> Is there some flag that needs to be set for the _rewriteURL in my >> Application class that extends ERXApplication to be called now? As I noted >> below, this did work at one time. >> >> I'm using webobjects 5.4.x and the latest Wonder source. > > with regards, > - > > Lachlan Deck > ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: _rewriteURL not firing
What context are you getting at runtime? WOContext context = request().context(); LOG.warn("context class:" + context.getClass().getName()); Are you running in a servlet container or just plain WO? ERXWOContext._postprocessURL should get called. On 11/03/2011, at 12:59 PM, Jeff Schmitz wrote: > Still haven't figured this one out so I downloaded and installed the Wonder > source so I can setup breakpoints in it. I see that my _rewriteURL should > be getting called by the ERXWOContext _postprocessURL function, so I put a > break point there. Moving up the chain, I also put breakpoints in: > > ERXWOContext54 _urlWithRequestHandlerKey > ERXRedirect appendToRepsonse Ah, you didn't mention ERXRedirect before. Perhaps it doesn't work with ERXRedirect? Does it work for your normal urls? > And none of the breakpoints are hit on a page load. I do have other > breakpoints in the wonder code that are hit, so it's not a classpath/debugger > issue. > > Is there some flag that needs to be set for the _rewriteURL in my Application > class that extends ERXApplication to be called now? As I noted below, this > did work at one time. > > I'm using webobjects 5.4.x and the latest Wonder source. with regards, - Lachlan Deck ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: _rewriteURL not firing
Still haven't figured this one out so I downloaded and installed the Wonder source so I can setup breakpoints in it. I see that my _rewriteURL should be getting called by the ERXWOContext _postprocessURL function, so I put a break point there. Moving up the chain, I also put breakpoints in: ERXWOContext54 _urlWithRequestHandlerKey ERXRedirect appendToRepsonse And none of the breakpoints are hit on a page load. I do have other breakpoints in the wonder code that are hit, so it's not a classpath/debugger issue. Is there some flag that needs to be set for the _rewriteURL in my Application class that extends ERXApplication to be called now? As I noted below, this did work at one time. I'm using webobjects 5.4.x and the latest Wonder source. Thanks! Jeff On Feb 26, 2011, at 7:27 PM, Jeff Schmitz wrote: > I'm not using a custom context, and ERXWOContext is in my classpath, but I > did recently upgrade to the latest Wonder build. > > Jeff > > > On Feb 26, 2011, at 1:58 PM, Lachlan Deck wrote: > >> On 27/02/2011, at 12:22 AM, Jeff Schmitz wrote: >> >>> Hello, >>> I'm not sure exactly when, but somewhere along the line the _rewriteURL >>> method in my Application class stopped firing. My Application class >>> extends ERXApplication and the signature of the overriding method is: >>> >>> public String _rewriteURL(String url) >> >> This should be called by ERXWOContext[54] >> >> Are you using a custom context class? >> Or did you upgrade to using Wonder 54... or are perhaps missing the above >> class in your classpath? >> >> >> with regards, >> - >> >> Lachlan Deck >> >> >> > > ___ > 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: > http://lists.apple.com/mailman/options/webobjects-dev/jeffandmonica%40mac.com > > This email sent to jeffandmon...@mac.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: _rewriteURL not firing
I'm not using a custom context, and ERXWOContext is in my classpath, but I did recently upgrade to the latest Wonder build. Jeff On Feb 26, 2011, at 1:58 PM, Lachlan Deck wrote: > On 27/02/2011, at 12:22 AM, Jeff Schmitz wrote: > >> Hello, >> I'm not sure exactly when, but somewhere along the line the _rewriteURL >> method in my Application class stopped firing. My Application class extends >> ERXApplication and the signature of the overriding method is: >> >> public String _rewriteURL(String url) > > This should be called by ERXWOContext[54] > > Are you using a custom context class? > Or did you upgrade to using Wonder 54... or are perhaps missing the above > class in your classpath? > > > with regards, > - > > Lachlan Deck > > > ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: _rewriteURL not firing
On 27/02/2011, at 12:22 AM, Jeff Schmitz wrote: > Hello, > I'm not sure exactly when, but somewhere along the line the _rewriteURL > method in my Application class stopped firing. My Application class extends > ERXApplication and the signature of the overriding method is: > > public String _rewriteURL(String url) This should be called by ERXWOContext[54] Are you using a custom context class? Or did you upgrade to using Wonder 54... or are perhaps missing the above class in your classpath? with regards, - Lachlan Deck ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
_rewriteURL not firing
Hello, I'm not sure exactly when, but somewhere along the line the _rewriteURL method in my Application class stopped firing. My Application class extends ERXApplication and the signature of the overriding method is: public String _rewriteURL(String url) but when I put a breakpoint in it, it never gets hit. I do have the rewrite properties in my project Properties file commented out: #er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/netBrackets.woa #er.extensions.ERXApplication.replaceApplicationPath.replace=/netBrackets I tried uncommenting them too, but the rewrites still weren't happening. Are there any other properties that need to be set? I do have -WODirectConnectEnabled set to false for both development and deployment (actually it's set to NO for deployment). Any ideas? Thanks, Jeff ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
_rewriteURL not firing
Hello, I'm not sure exactly when, but somewhere along the line my _rewriteURL method stopped firing. My Application extends ERXApplication and the signature the overriding method is: public String _rewriteURL(String url) but when I put a breakpoint in it, it never gets hit. I do have the rewrite properties in my project Properties file commented out: #er.extensions.ERXApplication.replaceApplicationPath.pattern=/cgi-bin/WebObjects/netBrackets.woa #er.extensions.ERXApplication.replaceApplicationPath.replace=/netBrackets I tried uncommenting them too, but the rewrites still weren't happening. And I do have -WODirectConnectEnabled set to false for both development and deployment (actually it's set to NO for deployment). Any ideas? Thanks, Jeff ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com