problem with redirects when using tomcat-4.0b5 and mod_jk (fwd)
i've seen no responses to this issue. does anyone have any suggestions? - donald -- Forwarded message -- Date: Thu, 5 Jul 2001 22:37:26 -0400 (EDT) From: Donald Ball [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: problem with redirects when using tomcat-4.0b5 and mod_jk hey guys. i'm getting a problem with redirects when i use tomcat-4.0b5 and mod_jk with the ajp13 connector. my stacktrace is as follows: Error creating the resourcejava.lang.IllegalArgumentExceptiontables/trouble_ticket_table/query?clause=activeclause=for-employeejava.lang.IllegalArgumentException: tables/trouble_ticket_table/query?clause=activeclause=for-employeejava.lang.IllegalArgumentException: tables/trouble_ticket_table/query?clause=activeclause=for-employeejava.lang.IllegalArgumentException: tables/trouble_ticket_table/query?clause=activeclause=for-employee at org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.java:673) at org.apache.catalina.connector.HttpResponseBase.encodeRedirectURL(HttpResponseBase.java:925) at org.apache.catalina.connector.HttpResponseFacade.encodeRedirectURL(HttpResponseFacade.java:122) at org.apache.cocoon.environment.http.HttpResponse.encodeRedirectURL(HttpResponse.java:76) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEnvironment.java:99) at the url is, in fact, valid, and it works great with tomcat-4.0b5 with the http connector. note i'm using mod_jk built from the jtc cvs repository from about a week ago since the current cvs won't build. does anyone have any suggestions? - donald
Re: problem with redirects when using tomcat-4.0b5 and mod_jk (fwd)
On Sat, 7 Jul 2001, Donald Ball wrote: i've seen no responses to this issue. does anyone have any suggestions? - donald i thought i'd go ahead and take a gander at helping myself. after futilely trying to get catalina running in a debugger on linux (can anyone else do this?), i resorted to good ol' System.err and patched HttpResponseBase: private String toAbsolute(String location) { if (location == null) return (location); // Construct a new absolute URL if possible (cribbed from // the DefaultErrorPage servlet) URL url = null; try { url = new URL(location); } catch (MalformedURLException e1) { HttpServletRequest hreq = (HttpServletRequest) request.getRequest(); String requrl = HttpUtils.getRequestURL(hreq).toString(); System.err.println(REQURL: +requrl); try { url = new URL(new URL(requrl), location); } catch (MalformedURLException e2) { throw new IllegalArgumentException(location); } } return (url.toString()); } and i found the the request url that it's having trouble with is: https://foobar.webslingerZ.com/foobar/login apparantly, java.net.URL can't parse this because it doesn't recognize https as a protocol! i've got a couple of workarounds in mind, but before i kludge together a patch, is there anything else i can do to fix this? adding the jsse library doesn't seem to help, but maybe the https protocol handler needs to be registered? - donald
problem with redirects when using tomcat-4.0b5 and mod_jk
hey guys. i'm getting a problem with redirects when i use tomcat-4.0b5 and mod_jk with the ajp13 connector. my stacktrace is as follows: Error creating the resourcejava.lang.IllegalArgumentExceptiontables/trouble_ticket_table/query?clause=activeclause=for-employeejava.lang.IllegalArgumentException: tables/trouble_ticket_table/query?clause=activeclause=for-employeejava.lang.IllegalArgumentException: tables/trouble_ticket_table/query?clause=activeclause=for-employeejava.lang.IllegalArgumentException: tables/trouble_ticket_table/query?clause=activeclause=for-employee at org.apache.catalina.connector.HttpResponseBase.toAbsolute(HttpResponseBase.java:673) at org.apache.catalina.connector.HttpResponseBase.encodeRedirectURL(HttpResponseBase.java:925) at org.apache.catalina.connector.HttpResponseFacade.encodeRedirectURL(HttpResponseFacade.java:122) at org.apache.cocoon.environment.http.HttpResponse.encodeRedirectURL(HttpResponse.java:76) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEnvironment.java:99) at the url is, in fact, valid, and it works great with tomcat-4.0b5 with the http connector. note i'm using mod_jk built from the jtc cvs repository from about a week ago since the current cvs won't build. does anyone have any suggestions? - donald