-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Leo,
On 1/28/14, 4:10 PM, Leo Medina wrote: > What type of script is this? Bash. It should work on any sh-compatible shell. > I'm on a linux box and keep getting and error: > > [javadev@corpjbdev01 apache-tomcat-6.0.26]$ for > /apps/tomcat/apache-tomcat-6.0.26/lib/*.jar \ ? > /apps/tomcat/apache-tomcat-6.0.26/webapps/rbacx/WEB-INF/lib/*.jar > \ ? ; do echo$jar ; unzip -v $jar |grep -i mysql ; done for: > Command not found. jar: Undefined variable. Something above got really broken: it should be "for jar in [filelist]" and you are missing the (literal) "jar" part of it. - -chris > On Tue, Jan 28, 2014 at 6:45 AM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Leo, > > On 1/27/14, 12:17 PM, Leo Medina wrote: >>>> Good morning Mark, >>>> >>>> Can you please elaborate more as to what you meant by: >>>> "com.mysql.jdbc.Driver must be present in one of your >>>> webapps. I'd expect it to be in a JAR that has mysql in the >>>> name. If you don't need it remove it." I meant that we don't >>>> have a mysql db. in our original integration. You also >>>> mention that it *must* be present, yet if I don't need it to >>>> remove it." Sorry a little confused on that statement, can >>>> you please clarify. > > $ for jar in $CATALINA_HOME/lib/*.jar \ > $PATH_TO_WEBAPP/WEB-INF/lib/*.jar \ ; do echo $jar ; unzip -v $jar > | grep -i mysql ; done > > That ought to find it. > > I'm not sure why it would be auto-loaded... JDBC drivers don't > auto-load themselves just because they are available to a > ClassLoader. Some code somewhere must be loading the driver, > whether explicitly using Class.forName(...) or by referencing part > of Connector/J elsewhere in the code, causing a chain of > class-loading and static-initializers that ultimately end up > loading the JDBC Driver into the DriverManager. > > -chris >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJS6C9hAAoJEBzwKT+lPKRYHkUQAIfIvwxFA/cW0ACFsC2/JnTt 5Gb4439A0HZkZHyGAKCZQJlNVcNlRKblvaVGNrg1fwzrTIxs9b1F8asSahQmp1HU vqrSsZkA4jVYxENRk6D1q6xJYN7BZeufx8efrw6ulJl+3jTCmIUCyYbs6hPVJXjT QVoa8+peQw0fGr2Ax62rgkjjV3FDJbPS8jJTRUqVuF7ioRDn+giaLFMeYeCAbcGN YIw+ZxUxY8aIxF/0ZdChCBkSPDguRTN5Epl4khsoOEC919m33c0OyytI8RMhMR4q dJzXtaSBetPG5jXD5hx4M4TFdVWHzXaVtZZELdQB/5S5urrzPdUgMfBTQBIkZfgv V0sz7JXm67KDISgKng4QK6dV5ngMxBY7nfnvyacc1qkYkNbP55pwqzPY5o/NXBcz Sx2NsOVlx865rOryU1hN8pv2cby9DyFEPiSpKqv7Ww2OMj4K9uGM1VgZ85PZJ+ck CaAl/NLgscxuX+NM2urFNUgfWvd4E+JHfPzBQ2EByZs2kKAbri1u6a12veUr/xb4 Zt3towRQnwfXqGGPxyA1YD3o7RggJnqVdF5Tn4hrWyqbzlOh7hXHqy4KvCiLXKNe enKNzbbOzfbN3wXe4lbtjpyVxbnwVeE5lVVxzX3QaBPjr58hoXf4Rv9A78LD+7N0 U0jyXhHbtIka12Fe/vHV =ooBC -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org