You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/11/06 22:01:44 UTC

DO NOT REPLY [Bug 4543] - RMI fails if tomcat is installed in directory with white space

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4543>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4543

RMI fails if tomcat is installed in directory with white space





------- Additional Comments From hlee@handysoft.com  2003-11-06 21:01 -------
Even thought, it is a problem with URL class, you can get around by using getURI
() of File class.

For example,
jakarta-tomcat-4.0
\catalina\src\share\org\apache\catalina\startup\ClassLoaderFactory.java has 
following line:
URL url = new URL("file", null, file.getCanonicalPath());

I solved the malFormedURL issue by changing as following:
URL url = file.toURI().toURL();

Hope this helps.

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