Giter Club home page Giter Club logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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 [email protected] on 8 Jan 2014 at 4:52

from marmoset.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 3, 2024
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 [email protected] on 8 Jan 2014 at 10:15

from marmoset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.