Re: Not able to read file from jar in tomcat

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bibin, On 1/28/13 6:07 AM, Bibin Balakrishnan wrote: > I have a web application running under tomcat 7, and in one of the > class, Im trying to read a file in one of the jar under WEB-INF/lib > folder. > > URL resourceURL = > MyClass.class.getClas

Re: Not able to read file from jar in tomcat

2013-01-28 Thread Konstantin Kolinko
2013/1/28 Bibin Balakrishnan : > I have a web application running under tomcat 7, and in one of the class, > Im trying to read a file in one of the jar under WEB-INF/lib folder. > > URL resourceURL = > MyClass.class.getClassLoader().getResource("xml/xslt/master.xsl"); > File xslfile = new File(reso