tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "neal" <nealcab...@yahoo.com>
Subject Bug in 4.1.18???
Date Sat, 01 Mar 2003 20:42:38 GMT
I just upgraded from Tomcat 4.0.4 to Tomcat 4.1.18 and my application no
longer works.  It appears that the problem is that using:

this.getClass().getResource

is now returning paths with a leading "/" in Windows.  For instance, the
path I *should* get path is:

D:/dev/tomcat...

but I'm actually getting:

/D:/dev/tomcat....

I presume this is going to cause me x-platform issues because if I attempt
to compensate by removing that leading "/" it will cause the paths to be
incorrect when I deploy to linux.

Am I correct that this is an issue? What is an appropriate workaround?

Thanks.
Neal


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


Mime
View raw message