Install on Debian Jessie

42 views
Skip to first unread message

Martin Knowles

unread,
Oct 18, 2015, 5:54:06 PM10/18/15
to jobsworth
I'm doing a new install. I've installed Jobsworth, mysql, and tomcat7 on a fresh VM running Debian Jessie (8). Replaced /etc/tomcat7/context.xml with context.example.xml per the documentation, and pointed it to the existing (empty) mysql database. I've tried both 4.0 and 4.1latest, and in either case when I hit the Jobsworth URL I'm getting:

jdbc adapter requires :driver and :url (got :driver = mysql) from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.3.16/lib/arjdbc/jdbc/connection.rb:89:in `setup_jdbc_factory' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.3.16/lib/arjdbc/jdbc/connection.rb:56:in `setup_connection_factory' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.3.16/lib/arjdbc/jdbc/connection.rb:14:in `initialize' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.3.16/lib/arjdbc/jdbc/adapter.rb:68:in `initialize' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.3.16/lib/arjdbc/jdbc/connection_methods.rb:12:in `jdbc_connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `checkout' from org/jruby/RubyKernel.java:1511:in `loop' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `checkout' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.20-lib-jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-jars-1.7.20-lib-jruby-stdlib-1.7.20.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activerecord-3.2.21/lib/active_record/migration.rb:592:in `current_version' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/config/initializers/020_database_migration.rb:24:in `(root)' from org/jruby/RubyKernel.java:1091:in `load' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:1:in `(root)' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:245:in `load' from org/jruby/RubyArray.java:1613:in `each' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/engine.rb:593:in `Engine' from org/jruby/RubyBasicObject.java:1566:in `instance_exec' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/initializable.rb:30:in `run' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/engine.rb:592:in `Engine' from org/jruby/RubyArray.java:1613:in `each' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/initializable.rb:55:in `run_initializers' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/initializable.rb:54:in `run_initializers' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/application.rb:136:in `initialize!' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/gems/gems/railties-3.2.21/lib/rails/railtie/configurable.rb:30:in `method_missing' from org/jruby/RubyKernel.java:1072:in `require' from /var/lib/tomcat7/webapps/ROOT/WEB-INF/config/environment.rb:5:in `(root)' from file:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.18-lib-jruby-rack-1.1.18.jar!/jruby/rack/rails/environment3.rb:1:in `(root)' from file:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/gems-gems-jruby-rack-1.1.18-lib-jruby-rack-1.1.18.jar!/jruby/rack/rails/environment3.rb:25:in `load_environment'


Any ideas as to what I can check and get it up and running? I'm new to Tomcat and Ruby--so if anyone has any ideas before I give up and switch to another solution that will actually install, I'm all ears!


Thanks!

Vikrant Chaudhary

unread,
Oct 19, 2015, 12:50:22 PM10/19/15
to jobs...@googlegroups.com
Hi Martin,
Please copy config/database.jruby.yml to config/database.yml and see if that solves the problem.


__

Vikrant Chaudhary
(Managing Director)
http://webstream.io
+91 9901 656064



--

---
You received this message because you are subscribed to the Google Groups "jobsworth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jobsworth+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martin Knowles

unread,
Oct 19, 2015, 8:32:39 PM10/19/15
to jobsworth
Nope. Same error.

Vikrant Chaudhary

unread,
Oct 20, 2015, 1:22:40 AM10/20/15
to jobs...@googlegroups.com
You'll need to ensure that there is a JDBC connection available to your application. This guide might be useful: https://www.mulesoft.com/tcat/tomcat-mysql


__

Vikrant Chaudhary
(Managing Director)
http://webstream.io
+91 9901 656064



Reply all
Reply to author
Forward
0 new messages