Re: Custom URL handlers in Tomcat web app

2008-03-18 Thread MK
Christopher Schultz christopherschultz.net> writes: > Praveen, > > pmanvi wrote: > | I found that org.apache.catalina.loader.WebappLoader was setting the > | URL.setURLStreamHandlerFactory() with DirContextURLStreamHandlerFactory, > | basically jndi stream handler. > | I updated this file rebuil

Re: Custom URL handlers in Tomcat web app

2008-03-18 Thread MK
Hi Praveen, pmanvi gmail.com> writes: > ... > > Do let me know if you find some solution to the same. actually, in the end I got it working using Christoph's suggestion to use the URL(scheme, host, port, path, handler) constructor. Unless that legacy system you're using unwraps and reconstruct

Re: Tomcat 5.5: How to dump incoming, unprocessed HTTP requests?

2008-03-12 Thread MK
Actually, I found a solution, but it is specific to WinHTTP: http://msdn2.microsoft.com/en-us/library/aa384119(VS.85).aspx It worked perfectly for me, and I found the error I was hunting down for 2 hours... So in this regard, I'm fine now. But still, I am curious whether there is a server-side so

Tomcat 5.5: How to dump incoming, unprocessed HTTP requests?

2008-03-11 Thread MK
Hi tomcat users, I was wondering whether it's possible to advise Tomcat to dump any incoming HTTP requests while preserving their original plain text nature? I tried hard to find something like this, but I only stumbled upon the RequestDumperValve, which unfortunately only has access to a request

Re: Custom URL handlers in Tomcat web app

2008-02-25 Thread MK
MK nts.ricoh.co.jp> writes: > [...] > I am using Tomcat 5.5 by the way. > > I will try rolling a jar from my protocol handler and put it in the places you > suggested. Maybe that'll work, I'll report back. actually I just realized that this is not gonna help

Re: Custom URL handlers in Tomcat web app

2008-02-25 Thread MK
Christopher, thanks a lot for your replies. Christopher Schultz christopherschultz.net> writes: > MK wrote: > | Actually I don't even call URL.openConnection, because I don't need it > at all. > | It's really just that the java.net.URL constructor requires tha

Re: Custom URL handlers in Tomcat web app

2008-02-24 Thread MK
Christopher Schultz christopherschultz.net> writes: > > [...] > | problem is, none of these approaches work in Tomcat 5.5. For 1), this > simply > | didn't have any effect for me. 2) neither, maybe Tomcat simply ignores > that > | property? > > How did you set the property? I am running my web

Custom URL handlers in Tomcat web app

2008-02-22 Thread MK
Hi everybody, I have the following problem: My Web application needs to handle Lotus Notes URLs which use the scheme "notes". However, since Java does not know this protocol by default, it throws a MalformedUrlException when I construct a java.net.URL from a notes:// URL-string. So, I read up on