|
From: Thomas R. <tri...@tr...> - 2003-05-06 18:11:20
|
Rod, maybe the other way around. First look for any overrides in the root of the classpath (WEB-INF/classes) and if we don't find the file then we'll look in the jdbc/core package and we should find the default one. Thomas > I think we should make it look in both places. First in jdbc.core (no /) > then in the root of the classpath if not found. All jars should ship with > the file in the jdbc.core package. > > Does this make sense? > > Regards, > Rod > > ----- Original Message ----- > From: "Thomas Risberg" <tri...@tr...> > To: <spr...@li...> > Sent: Sunday, May 04, 2003 3:37 PM > Subject: Re: [Springframework-developer] sql-error-codes.xml > > > > Jean-Pierre, > > > > I think there is some confusion over where this file should live. > > Juergen suggested moving the source to the jdbc.core package and have > > the build script copy it to the root of the build directory. I made that > > change, but Rod also took out the leading '/' to make it look in the > > current directory. I think we should put the '/' back in so the file > > will be found at the root of the classpath. That way you can put your > > version in WEB-INF/classes and it should be picked up. > > > > change line 38 of > > com.interface21.jdbc.core.SQLExceptionTranslaterFactory to: > > > > public static final String SQL_ERROR_CODE_PATH = "/sql-error-codes.xml"; > > > > Thomas > > > > > Hi, > > > > > > Why the console tells me about the sql-error-codes.xml cannot be loaded > > > ? > > > It is in the jar. When I copy it in WEB-INF/classes, the behaviour is > > > the same. At least for normal processing, the database access runs well. > > > > > > Regards, > > > > > > Jean-Pierre Pawlak > > > jp....@ti... > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Springframework-developer mailing list > > > Spr...@li... > > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > > > > > -- > > Thomas Risberg > > tri...@tr... > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > -- Thomas Risberg tri...@tr... |