org.jruby.rack.RackInitializationException: undefined method `+' for nil:NilClass from /var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/010_devise.rb:6:in `(root)' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/devise-2.2.3/lib/devise.rb:258:in `setup' from /var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/010_devise.rb:3:in `(root)' from org/jruby/RubyKernel.java:1046:in `load' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:1:in `(root)' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:588:in `Engine' from org/jruby/RubyBasicObject.java:1738:in `instance_exec' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:587:in `Engine' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `run_initializers' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers' from org/jruby/RubyBasicObject.java:1677:in `__send__' from org/jruby/RubyKernel.java:2103:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing' from org/jruby/RubyKernel.java:1027:in `require' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/config/environment.rb:5:in `(root)' from file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:1:in `(root)' from file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:25:in `load_environment' at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29) at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590) at java.lang.Thread.run(Thread.java:722) Caused by: org.jruby.exceptions.RaiseException: (NoMethodError) undefined method `+' for nil:NilClass at RUBY.(root)(/var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/010_devise.rb:6) at RUBY.setup(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/devise-2.2.3/lib/devise.rb:258) at RUBY.(root)(/var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/010_devise.rb:3) at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1046) at RUBY.(root)(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:1) at ActiveSupport::Dependencies::Loadable.load_dependency(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236) at RUBY.load(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245) at RUBY.load(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.Engine(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:588) at org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1738) at Rails::Initializable::Initializer.run(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:30) at RUBY.Engine(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:587) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.run_initializers(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:55) at RUBY.run_initializers(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:54) at org.jruby.RubyBasicObject.__send__(org/jruby/RubyBasicObject.java:1677) at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2103) at RUBY.initialize!(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/application.rb:136) at RUBY.method_missing(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.(root)(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/config/environment.rb:5) at RUBY.(root)(file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:1) at RUBY.load_environment(file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:25)
Please helpme, It is necessary to have previously installed Ruby?
On 12/12/2013 4:59am, Balmore Lopez wrote:
> thanks Ari!!!, your work is great!
>
> i have been stuck in this step
>
>
> Step 3: Connect
>
> what is the url to connect jobsworth ? for example:
>
> localhost/jobworth
> localhost:8080/jobsworth
This will be defined in tomcat itself. By default it is 8080. And the path (the bit after the /) is the same as the same of the war file. If the war is called ROOT.war then there is no path. So....
jobsworth.war => localhost:8080/jobsworth
ROOT.war -> localhost:8080/
somethingelse.war => localhost:8080/somethingelse
Changing the port is easy enough:
http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/
But note that to put it on port 80 or 443, then tomcat needs to run as root. A more common arrangement is to run a web server in front as a proxy.
> your last contribution is a .war, so i assume than run in tomcat.
>
> Thanks you very much.
>
> note. as I can donate to your project?
The most useful donation is code, or if you aren't a coder, then testing and feedback. Clearly thought through ideas for improvement are also useful.
Regards
Ari
> El martes, 10 de diciembre de 2013 16:33:54 UTC-6, Ari Maniatis escribi�:
org.jruby.rack.RackInitializationException: The driver encountered an unknown error: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/connection.rb:32:in `initialize' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/adapter.rb:31:in `initialize' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connection' from org/jruby/RubyBasicObject.java:1683:in `__send__' from org/jruby/RubyKernel.java:2107:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `checkout' from org/jruby/RubyKernel.java:1409:in `loop' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `checkout' from jar:file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-jars-1.7.3-lib-jruby-stdlib-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `connection' from jar:file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-jars-1.7.3-lib-jruby-stdlib-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211:in `mon_synchronize' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:662:in `initialize' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate' from /var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/020_database_migration.rb:26:in `(root)' from org/jruby/RubyKernel.java:1046:in `load' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:1:in `(root)' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:588:in `Engine' from org/jruby/RubyBasicObject.java:1738:in `instance_exec' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:587:in `Engine' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `run_initializers' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers' from org/jruby/RubyBasicObject.java:1677:in `__send__' from org/jruby/RubyKernel.java:2103:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing' from org/jruby/RubyKernel.java:1027:in `require' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/config/environment.rb:5:in `(root)' from file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:1:in `(root)' from file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:25:in `load_environment' at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29) at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.jruby.exceptions.RaiseException: (JDBCError) The driver encountered an unknown error: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.) at RUBY.initialize(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/connection.rb:32) at RUBY.initialize(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/adapter.rb:31) at RUBY.jdbc_connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/connection_methods.rb:6) at org.jruby.RubyBasicObject.__send__(org/jruby/RubyBasicObject.java:1683) at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2107) at RUBY.new_connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:315) at RUBY.checkout_new_connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:325) at RUBY.checkout(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:247) at org.jruby.RubyKernel.loop(org/jruby/RubyKernel.java:1409) at RUBY.checkout(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:242) at RUBY.mon_synchronize(jar:file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-jars-1.7.3-lib-jruby-stdlib-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211) at RUBY.checkout(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:239) at RUBY.connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:102) at RUBY.mon_synchronize(jar:file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-jars-1.7.3-lib-jruby-stdlib-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/monitor.rb:211) at RUBY.connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:101) at RUBY.retrieve_connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:410) at RUBY.retrieve_connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:171) at RUBY.connection(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_specification.rb:145) at RUBY.initialize(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:662) at RUBY.up(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:570) at RUBY.migrate(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:551) at RUBY.(root)(/var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/020_database_migration.rb:26) at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1046) at RUBY.(root)(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:1) at ActiveSupport::Dependencies::Loadable.load_dependency(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236) at RUBY.load(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245) at RUBY.load(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.Engine(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:588) at org.jruby.RubyBasicObject.instance_exec(org/jruby/RubyBasicObject.java:1738) at Rails::Initializable::Initializer.run(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:30) at RUBY.Engine(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:587) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613) at RUBY.run_initializers(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:55) at RUBY.run_initializers(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:54) at org.jruby.RubyBasicObject.__send__(org/jruby/RubyBasicObject.java:1677) at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2103) at RUBY.initialize!(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/application.rb:136) at RUBY.method_missing(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30) at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1027) at RUBY.(root)(/usr/share/tomcat6/webapps/jobsworth/WEB-INF/config/environment.rb:5) at RUBY.(root)(file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:1) at RUBY.load_environment(file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:25)
ActiveRecord::JDBCError: Table 'jobsworth.tasks' doesn't exist: ALTER TABLE `tasks` ADD `milestone_id` int(11) from arjdbc/jdbc/RubyJdbcConnection.java:215:in `execute' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/adapter.rb:305:in `_execute' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/adapter.rb:291:in `execute' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/jdbc/adapter.rb:291:in `execute' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.9/lib/arjdbc/mysql/adapter.rb:352:in `add_column' from org/jruby/RubyBasicObject.java:1704:in `__send__' from org/jruby/RubyKernel.java:2115:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:466:in `method_missing' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time' from jar:file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-jars-1.7.3-lib-jruby-stdlib-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:280:in `measure' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:458:in `method_missing' from org/jruby/RubyBasicObject.java:1704:in `__send__' from org/jruby/RubyKernel.java:2115:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:334:in `method_missing' from /var/lib/tomcat6/webapps/jobsworth/WEB-INF/db/migrate/1_create_milestones.rb:14:in `up' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:370:in `up' from org/jruby/RubyBasicObject.java:1677:in `__send__' from org/jruby/RubyKernel.java:2103:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `migrate' from jar:file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-jars-1.7.3-lib-jruby-stdlib-1.7.3.jar!/META-INF/jruby.home/lib/ruby/1.9/benchmark.rb:280:in `measure' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `migrate' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:389:in `migrate' from org/jruby/RubyBasicObject.java:1683:in `__send__' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `migrate' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:720:in `migrate' from org/jruby/RubyProc.java:249:in `call' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `ddl_transaction' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:719:in `migrate' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `migrate' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate' from /var/lib/tomcat6/webapps/jobsworth/WEB-INF/config/initializers/020_database_migration.rb:26:in `(root)' from org/jruby/RubyKernel.java:1046:in `load' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:1:in `(root)' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:588:in `Engine' from org/jruby/RubyBasicObject.java:1738:in `instance_exec' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/engine.rb:587:in `Engine' from org/jruby/RubyArray.java:1613:in `each' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `run_initializers' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers' from org/jruby/RubyBasicObject.java:1677:in `__send__' from org/jruby/RubyKernel.java:2103:in `send' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/gems/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing' from org/jruby/RubyKernel.java:1027:in `require' from /usr/share/tomcat6/webapps/jobsworth/WEB-INF/config/environment.rb:5:in `(root)' from file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:1:in `(root)' from file:/var/lib/tomcat6/webapps/jobsworth/WEB-INF/lib/gems-gems-jruby-rack-1.1.13.2-lib-jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment3.rb:25:in `load_environment' at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29) at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98) at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:722) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:593) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.jruby.exceptions.RaiseException: (StandardError) An error has occurred, all later migrations canceled: ActiveRecord::JDBCError: Table 'jobsworth.tasks' doesn't exist: ALTER TABLE `tasks` ADD `milestone_id` int(11)
On 12/12/2013 4:59am, Balmore Lopez wrote:
> thanks Ari!!!, your work is great!
>
> i have been stuck in this step
>
>
> Step 3: Connect
>
> what is the url to connect jobsworth ? for example:
>
> localhost/jobworth
> localhost:8080/jobsworth
This will be defined in tomcat itself. By default it is 8080. And the path (the bit after the /) is the same as the same of the war file. If the war is called ROOT.war then there is no path. So....
jobsworth.war => localhost:8080/jobsworth
ROOT.war -> localhost:8080/
somethingelse.war => localhost:8080/somethingelse
Changing the port is easy enough:
http://www.mkyong.com/tomcat/how-to-change-tomcat-default-port/
But note that to put it on port 80 or 443, then tomcat needs to run as root. A more common arrangement is to run a web server in front as a proxy.
> your last contribution is a .war, so i assume than run in tomcat.
>
> Thanks you very much.
>
> note. as I can donate to your project?
The most useful donation is code, or if you aren't a coder, then testing and feedback. Clearly thought through ideas for improvement are also useful.
Regards
Ari
> El martes, 10 de diciembre de 2013 16:33:54 UTC-6, Ari Maniatis escribi�:
RAILS_ENV=production rake db:schema:load
helpme...
Can you see records in the database? Are there lots of tables?
Ari
On 14/12/2013 4:30am, Balmore Lopez wrote:
> Thanks Ari,
>
> now stuck is this
>
> Invalid user or password
>
> http://postimg.org/image/ky287wdcx/ <http://www.google.com/url?q=http%3A%2F%2Fpostimg.org%2Fimage%2Fky287wdcx%2F&sa=D&sntz=1&usg=AFQjCNHmUD83RSCnlY27DH695JmPIi6RZA>
>
> probably, because don't populate db... used this command.
>
> RAILS_ENV=production rake db:schema:load
>
> helpme...
>
>
>
> El jueves, 12 de diciembre de 2013 16:53:31 UTC-6, Ari Maniatis escribi�: