Tomcat+JRuby Could not find jdbc-postgres-9.1.901
Added by Felipe Lorenz about 13 years ago
Hello,
I'm trying to create and deploy a war from Redmine.
Before I try to create the WAR file, I had configurated and everything works fine. Then I create the war file and deploy it in Tomcat 6, but when I try to run http://127.0.0.1:8080/redmine the log shows:
Caused by: org.jruby.exceptions.RaiseException: (GemNotFound) Could not find jdbc-postgres-9.1.901 in any of the sources Oct 9, 2012 3:52:00 PM org.apache.catalina.core.ApplicationContext log
I'm following this tutorial: [[http://www.redmine.org/projects/redmine/wiki/HowTo_install_Redmine_in_Apache_Tomcat]] with MySQL as database.
Could you please help?
Versions:
Redmine: 2.1-stable //from git repo
JRuby: jruby 1.7.0.RC2 (1.9.3p203) 2012-10-09 142cc7b on OpenJDK 64-Bit Server VM 1.6.0_24-b24 [linux-amd64]
MySQL: 5.. something :)
And here is the complete log:
INFO: An exception happened during JRuby-Rack startup
Could not find jdbc-postgres-9.1.901 in any of the sources
--- System
jruby 1.6.8 (ruby-1.8.7-p357) (2012-09-18 1772b40) (OpenJDK 64-Bit Server VM 1.6.0_24) [linux-amd64-java]
Time: Tue Oct 09 15:51:59 -0300 2012
Server: Apache Tomcat/6.0.35
jruby.home: file:/var/lib/tomcat6/webapps/redmine/WEB-INF/lib/jruby-stdlib-1.6.8.jar!/META-INF/jruby.home
--- Context Init Parameters:
public.root = /
rails.env = production
--- Backtrace
Bundler::GemNotFound: Could not find jdbc-postgres-9.1.901 in any of the sources
materialize at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/spec_set.rb:90
map! at org/jruby/RubyArray.java:2379
materialize at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83
specs at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/definition.rb:113
specs_for at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/definition.rb:158
requested_specs at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/definition.rb:147
requested_specs at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/environment.rb:23
setup at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/runtime.rb:11
setup at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler.rb:116
(root) at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/setup.rb:17
require at org/jruby/RubyKernel.java:1062
require at /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/setup.rb:60
(root) at /var/lib/tomcat6/webapps/redmine/WEB-INF/config/boot.rb:6
require at org/jruby/RubyKernel.java:1062
load_environment at /var/lib/tomcat6/webapps/redmine/WEB-INF/config/boot.rb:21
load_environment at file:/var/lib/tomcat6/webapps/redmine/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/rails_booter.rb:65
(root) at <script>:1
--- RubyGems
Gem.dir: /var/lib/tomcat6/webapps/redmine/WEB-INF/gems
Gem.path:
/var/lib/tomcat6/webapps/redmine/WEB-INF/gems
Activated gems:
bundler-1.2.1
--- Bundler
Bundler.bundle_path: /var/lib/tomcat6/webapps/redmine/WEB-INF/gems
Bundler.root: /var/lib/tomcat6/webapps/redmine/WEB-INF
Gemfile: /var/lib/tomcat6/webapps/redmine/WEB-INF/Gemfile
Settings:
gemfile = /var/lib/tomcat6/webapps/redmine/WEB-INF/Gemfile
without = development:test
--- JRuby-Rack Config
compat_version =
default_logger = org.jruby.rack.logging.StandardOutLogger@314d3b51
err = org.apache.tomcat.util.log.SystemLogHandler@376433e4
filter_adds_html = true
filter_verifies_resource = false
ignore_environment = false
initial_memory_buffer_size =
initial_runtimes =
jms_connection_factory =
jms_jndi_properties =
logger = org.jruby.rack.logging.ServletContextLogger@8a3cf3e
logger_class_name = servlet_context
logger_name = jruby.rack
maximum_memory_buffer_size =
maximum_runtimes =
num_initializer_threads =
out = org.apache.tomcat.util.log.SystemLogHandler@376433e4
rackup =
rackup_path =
rewindable = true
runtime_arguments =
runtime_timeout_seconds =
serial_initialization = false
servlet_context = org.apache.catalina.core.ApplicationContextFacade@23ccf0ad
Oct 9, 2012 3:51:59 PM org.apache.catalina.core.ApplicationContext log
SEVERE: ERROR: application error
org.jruby.rack.RackInitializationException: Could not find jdbc-postgres-9.1.901 in any of the sources
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/spec_set.rb:90:in `materialize'
from org/jruby/RubyArray.java:2379:in `map!'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/spec_set.rb:83:in `materialize'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/definition.rb:113:in `specs'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/definition.rb:158:in `specs_for'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/definition.rb:147:in `requested_specs'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/environment.rb:23:in `requested_specs'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/runtime.rb:11:in `setup'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler.rb:116:in `setup'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/setup.rb:17:in `(root)'
from org/jruby/RubyKernel.java:1062:in `require'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/gems/gems/bundler-1.2.1/lib/bundler/setup.rb:60:in `require'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/config/boot.rb:6:in `(root)'
from org/jruby/RubyKernel.java:1062:in `require'
from /var/lib/tomcat6/webapps/redmine/WEB-INF/config/boot.rb:21:in `load_environment'
from file:/var/lib/tomcat6/webapps/redmine/WEB-INF/lib/jruby-rack-1.1.10.jar!/jruby/rack/rails_booter.rb:65:in `load_environment'
from <script>:1:in `(root)'
at org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:231)
at org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:58)
at org.jruby.rack.PoolingRackApplicationFactory.createApplication(PoolingRackApplicationFactory.java:323)
at org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:171)
at org.jruby.rack.DefaultRackDispatcher.getApplication(DefaultRackDispatcher.java:27)
at org.jruby.rack.AbstractRackDispatcher.process(AbstractRackDispatcher.java:32)
at org.jruby.rack.AbstractFilter.doFilter(AbstractFilter.java:66)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)
Caused by: org.jruby.exceptions.RaiseException: (GemNotFound) Could not find jdbc-postgres-9.1.901 in any of the sources
Oct 9, 2012 3:52:00 PM org.apache.catalina.core.ApplicationContext log
INFO: WARN: ignoring null application
Replies (3)
RE: Tomcat+JRuby Could not find jdbc-postgres-9.1.901
-
Added by Maurizio Totti almost 13 years ago
Probably you stop when launch
jruby ./script/server -e production
It's correct? Error messages describe that probably you have a postgresql configuration in config/database.yml
RE: Jetty+JRuby Could not find jdbc-mysql-5.1.22.1
-
Added by Askia Developer over 12 years ago
Any progress on this? I have almost the same issue except that my database.yml only has a production entry with postgresql. I can test the site fine using jruby script/rails server webrick -e production
However, after running warble and dropping the war file in the jetty/webapps I get the error above with the complain: Could not find jdbc-mysql-5.1.22.1 in any of the sources.
The problem is that I am not sure where it is picking up the mysql information. I haven't specified this anywhere. Also, config/warble.rb contains a line with that activerecord-jdbc-mysql reference but I uncommented that part and replaced it with activerecord-jdbc-postgresql.
I have attached a copy of the error.
| redmine_jruby_jetty_error.log (2.63 KB) redmine_jruby_jetty_error.log | Error | ||
| jetty_log (11.5 KB) jetty_log | Jetty log |
RE: Tomcat+JRuby Could not find jdbc-postgres-9.1.901
-
Added by Felipe Lorenz over 12 years ago
Hello Askia,
I just give up to try to find a solution. I just configure an old plain configuration (ruby+apache).
There is a tutorial which can be useful: http://www.javacodegeeks.com/2012/02/redmine-installation-getting-started.html
Please, let me know if have any progress.
Cheers,
Felipe