Christopher, thanks a lot for your replies.

Christopher Schultz <chris <at> 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 that there
> exists an
> | object which implements this behavior just in case someone should try
> to open a
> | connection.
> 
> As I'm reading more in the API, I can see that the URL class has a
> constructor that takes a URLStreamHandler. Could you utilize this
> constructor instead?

that's a good idea actually (although it would require me to parse the incoming
URL strings on my own; a job which is otherwise done by the URL ctor itself, but
oh well). However, unfortunately this still does not help, because it merely
moves the problem further down the implementation of that (somewhat obscure) API
I am using. The problem is that with this constructor, creating a URL object on
my side succeeds, but passing it to that API will still result in a MalformedUrl
somewhere down their implementation, maybe because they pack/unpack the wrapped
URL string to create other URL objects from it, dunno. Dang! I though I almost
had it :-)

as for the checking whether the JVM argument for my protocol package is properly
set, I already had done that and I can assure you it is properly set. Tomcat
really seems not to honor this value properly before registering its
URLStreamHandlerFactory.

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.

Regards,
Matt


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to