Comments (2)
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.
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)
- Downloads should include .submit and .submitUser
- webstart plugin for source upload
- DisplayProperties should also look at .submitIgnore
- UTF8 support for student names
- Rubrics not listed in prototype review of own code HOT 2
- Shouldn't be able to drop rubric on elided/unmodified lines of code
- Feature request: Be able to view and edit general comments and rubrics from test results page for submission
- Too many build servers doing background retesting of the same submission HOT 1
- Report build server deaths
- Cannot initialize server due to apparently missing db table
- Need to validate fields when adding checkbox rubrics
- checkbox not showing up.
- Allow list of required files
- Incomplete documentation for building a submit server
- Deployment of SubmitServer on Tomcat 7 fails, SEVERE: Error filterStart HOT 3
- submitServer fails to start HOT 1
- Issues with deprecation and unchecked in submitServer2 ant build
- Use tomcat-6.0.36 or newer
- BuildServer ant has issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from marmoset.