Open GoogleCodeExporter opened 9 years ago
Examined tomcat6 startup using strace to figure out where and how
tomcat6/submitServer was being instructed on where to look for mysql driver.
Discovered the following search paths:
stat("/usr/share/java/tomcat6/com/mysql/jdbc/Driver .class"
stat("/usr/share/tomcat6/com/mysql/jdbc/Driver .class"
stat("/usr/share/tomcat6/com/mysql/jdbc/Driver.class"
stat("/usr/share/tomcat6/com/mysql/jdbc/NonRegisteringDriver.class"
stat("/var/lib/tomcat6/webapps/submitServer/WEB-INF/classes/com/mysql/jdbc/Drive
r .class"
stat("/var/lib/tomcat6/webapps/submitServer/WEB-INF/classes/com/mysql/jdbc/Drive
r.class"
stat("/var/lib/tomcat6/webapps/submitServer/WEB-INF/classes/com/mysql/jdbc/NonRe
gisteringDriver.class"
Of these search paths, I believe that those using WEB-INF/classes will not work
as currently configured due to the way "ant clean" deals with clearing out the
classes directory by removing the directory and contents and then creating an
empty directory.
I believe the space between Driver and .class will also cause problems for some
of the first search paths, so I tried unzipping the jar file in
/usr/share/tomcat6. The next batch of strace found the file and read it, but
I'm not sure that it really used it. Also noticed some attempts to deal with
the mysql-connector-java-5.1.27-bin.jar file, but it also does not seem to have
helped. The error messages in the /var/log/tomcat6 localhost file is the same
as before, but this may be due to the trap method being employed in
submitServer code.
OK. I seem to be getting wrapped around the axle here with respect to finding
and reading the com.mysql.jdbc.Driver class definition.
Let me try again: Found the following section in the strace where
mysql-connector-java-5.1.24-bin.jar in
/var/lib/tomcat6/webapps/submitServer/WEB-INF/lib, is being located, opened
(read only), some of the content seems to be being pulled out
(META-INF/MANIFEST.MF, and subsequent reads seem to fail), eventually suffering
a Segmentation fault).
There's a part of me that feels I'm missing something really basic here.
Original comment by Karl.Bur...@gmail.com
on 8 Jan 2014 at 4:52
Solved this part of getting server to run.
database.driver=com.mysql.jdbc.Driver contained a space at the end of "Driver"
string. I can't say that I'm pleased that this took so long to sort out, but I
got there in the end.
Is it possible to have strings delimited as strings using ' or "? This would
have avoided the problem.
Original comment by Karl.Bur...@gmail.com
on 8 Jan 2014 at 10:15
Original issue reported on code.google.com by
Karl.Bur...@gmail.com
on 7 Jan 2014 at 10:47