I have also seen cases where you have to use a leading / with different classloaders, I know, it sounds retarded (and IMO, it is), but it has worked for me in the past.
Larry On 1/20/06, Clinton Begin <[EMAIL PROTECTED]> wrote: > Because JAR files mess up the resource path. You'd probably have to use > something goofy like "jar!/sqlMapConfig.xml"....but I wouldn't depend upon > that. I suggest just putting them in WEB-INF/classes. > > Clinton > > > On 1/20/06, Tony Qian <[EMAIL PROTECTED]> wrote: > > Can someone tell why Resources.getResourceAsReader(sqlMapConfig.xml) can > not find the sqlMapConfig.xml and sql mapping xml files if I package them > inside jar file? When I put them under WEB-INF/classes/ (i'm using tomcat), > everything works okay. > > > > Thanks, > > Tony > > > >
