You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2011/06/10 22:34:41 UTC

Re: [OT] Context Definition Doesn't Work

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

Chuck,

On 6/10/2011 12:33 AM, Caldarale, Charles R wrote:
> $CATALINA_HOME/webapps/mbp#filePort

FWIW, path names containing a # symbol can wreak havoc on certain APIs
that use URLs to locate resources.

Case in point: Apache Cocoon uses file: URLs to locate files on the
disk. Since the path contains a "#", it is determined to be illegal
because # isn't a valid character in a URL. "No problem", you say, and
change that to "%23" and all will be well. Yes and no. Evidently, Cocoon
specifically decodes the URL one or more times and by the tine it gets
to the component that tries to use it, it's a "#" no matter what you try
to do :(

If you find yourself having similar problems with mbp#filePort as your
deployment directory, you can always have the deployment descriptor
mbp#filePort.xml point to a directory somewhere *outside* Tomcat's
webapps directory and you should avoid that headache.

You will probably never have this problem, but I suffered through it
myself and seek to help others avoid it, or at least understand it.

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

iEYEARECAAYFAk3yf+EACgkQ9CaO5/Lv0PBp2ACfXvB/uvZHh32MgmnwCYwtq2oq
SR0AoJXKhDGlfftq6AZ+aBqxbNehDauD
=JQjg
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org