Hi Chris,

What type of script is this?  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.

Thanks,

Leo
On Tue, Jan 28, 2014 at 6:45 AM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> 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
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIcBAEBCAAGBQJS58J+AAoJEBzwKT+lPKRY/p4P/j3F0MPaQGoOY4xu0ZNIgPom
> dQKNthbNd1EcfN+aPcKaXrEwY8GkcjIctODPbDXs7Th4xQj3ldRBjzRqr28RG+xX
> ujDFnMqIB6isvf2e03I+l4hogTb8dDgCFMepf1A642N6ThvD7hmRGDgi8TizyPJJ
> e6HddQAYprZOheANC6aj6JI8NEiwIeHpyS96XWdMQHxHg/rF/1Uqg4Vv/EF+NdeL
> e6CPxrhSQ7iEBNFU08tzEDgV1OCWs/CvgMPONZO+J6SxvyvW6OABEsmQQrAVWBSa
> SFk2LXRH8qSqayilmcDv4VCBCMqSeytK8Bg1Fyg3frHE6Pmi2th14rp53ndUkSYt
> OPfPtC6Pdqa8vXxShe3b9LeRxjgdUvpXgnXjnM1B+Lay4OEankmOd36ZIkYaaW+3
> q7fgaRYr//2skFLbq154koCo493DrV5leaJPjFEcwFKE3SUElU6vnYCeeMsNuN4Q
> rlTZdYKL54aWQg0HI45jxfg44lh1AX/d7UQ4U505IgilJJvxa9g/wRiRhEy051wJ
> nFX25ZODviJmJc090sqkVqv+bgpO1UAWu7/sFbhkZ8+zcA73HS9J0+0ItB108JiF
> MnaJQMIgdda9Li/NagD8otW+U6Hon3C3Pyl/AmCmO5+j4/USurxHd7HxlT4vugNI
> 5/MzyNBL8A+uDh+Kk4Iv
> =nOU4
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to