tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43150] - Tomcat and path with pound sign (#) -> ClassNotFoundException
Date Fri, 17 Aug 2007 17:16:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43150>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43150





------- Additional Comments From len.popp@gmail.com  2007-08-17 10:16 -------
I've looked into this problem a bit. Briefly, the exception on startup can be
fixed but that reveals problems in other Tomcat components.

1. CNFE on startup (problem reported by Markus):
Caused by a problem with File.toURL called from o.a.c.startup.ClassLoaderFactory.
Can be fixed by Sun's suggested workaround of using File.toURI and URI.toURL -
see http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#toURL()

2. After fixing that, Tomcat starts but JSPs won't run because Jasper is putting
its output files in the wrong directory.
This is caused by some strange-looking code in
o.a.jasper.JspCompilationContext.createOutputDir that mixes file and URL syntax
together to create the wrong directory.

3, etc. There are several other places in Tomcat where File.toURL is used and I
think it could have problems with "#" in pathnames, but I don't know what the
effects are. I've noted *potential* problems in:
o.a.c.ant, o.a.c.core, o.a.c.ha.deploy, o.a.c.loader, o.a.c.startup, o.a.jasper.

I could help fix some of the problems, but there are lots that I haven't figured
out. Is it worth the trouble to find and fix all the related problems, or is it
better to just tell people not to use unusual directory names?


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message