-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias,

MK wrote:
| actually I just realized that this is not gonna help if Tomcat does
not honor
| the java.protocol.handler.pkgs setting, because even if Tomcat can
load the JAR
| and knows where to look for it, it would still need to read this
setting to load
| the Handler class upon URL construction (because this happens through
Tomcat's
| URLStreamHandlerFactory), no?

That depends on whether or not TC really ignores that system property. I
would be willing to bet that it /is/ respecting that property, but that
your handler wasn't in the system class path, so it was ignored.

| Anywho, I just tried common/lib, common/endorsed and a custom location
I added
| manually to the classpath (which would make it available to the system
| classloader right?).

No. Setting the CLASSPATH on the command-line doesn't do anything for
Tomcat. The first things that happens to the CLASSPATH in the startup
scripts is to blank-out anything that's already there.

| Didn't work.

As a last-ditch effort, try putting your JAR file into the JVM's
"endorsed" directory and see if that works.

| Any ideas left that do not include the words "Tomcat sources" and
"modify"? :D

Yeah... always a scary proposition.

| I still can't quite believe how a trivial operation such as constructing a
| java.net.URL from a wellformed (!) URL can cause so much trouble in a
Servlet
| based environment. I must be missing something.

I never knew it was this bad. I completely agree that creating a
well-formed URL with an unknown protocol should be allowed. Oh, well.

Okay, for my final trick, I have one last idea for you. If nothing else
works, try this:

Change all notes:// URLs into http:// URLs and pass them around, etc.
When you're ready to display them on the screen, change the leading
"http://"; to "notes://".

Okay, now I really /am/ all out of ideas.

Good luck!
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfEJTwACgkQ9CaO5/Lv0PD9JQCbBsKnpPY5o86fAqyMuM+qnslh
BxsAn26aH7SeimNQLJ6uZvAIWG3pQH0f
=ZQ4L
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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