Skip to content

Instantly share code, notes, and snippets.

warble --trace
warble aborted!
uninitialized constant Arel::Visitors::SQLServer::ArJdbc
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/rake-0.8.7/lib/rake.rb:2503:in `const_missing'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activerecord-jdbc-adapter-1.1.0/lib/arel/visitors/mssql.rb:4
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activerecord-jdbc-adapter-1.1.0/lib/arel/visitors/mssql.rb:7:in `require'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/arel-2.0.7/lib/arel/visitors.rb:7
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/arel-2.0.7/lib/arel/visitors.rb:15:in `require'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/arel-2.0.7/lib/arel.rb:15
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/arel-2.0.7/lib/arel.rb:34:in `require'
source 'http://rubygems.org'
gem 'rails', '3.0.3'
group :development do
gem 'warbler'
gem 'activerecord-jdbcsqlite3-adapter'
end
group :test do
gem 'activerecord-jdbcsqlite3-adapter'
end
group :production do
Works on linux but NOT on windows:
source 'http://rubygems.org'
gem 'rails', '3.0.3'
gem 'activerecord-jdbcmysql-adapter'
In order to work on windows I need this:
source 'http://rubygems.org'
SEVERE: Application Error
org.jruby.rack.RackInitializationException: OpenSSL::Cipher requires the jruby-openssl gem
from file:/C:/application-framework/tomcat/webapps/scrapple/WEB-INF/lib/jruby-stdlib-1.5.6.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/cipher.rb:14
from C:/application-framework/tomcat/webapps/scrapple/WEB-INF/gems/gems/activesupport-3.0.3/lib/active_support/message_encryptor.rb:239:in `require'
from C:/application-framework/tomcat/webapps/scrapple/WEB-INF/gems/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
from C:/application-framework/tomcat/webapps/scrapple/WEB-INF/gems/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
from C:/application-framework/tomcat/webapps/scrapple/WEB-INF/gems/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
from C:/application-framework/tomcat/webapps/scrapple/WEB-INF/gems/gems/activesupport-3.0.3/lib/active_support/dependencies.
@atambo
atambo / gist:797311
Created January 26, 2011 19:52
nokogiri 1.5.0.beta.3 with warbler breaks
$ warble --trace
warble aborted!
load error: nokogiri/nokogiri -- java.lang.NoClassDefFoundError: org/apache/xerces/xni/QName
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:596:in `new_constants_in'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:225:in `load_dependency'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/tambellini/.rvm/gems/jruby-1.5.6@scrapple/gems/nokogiri-1.5.0.beta.3-java/lib/nokogiri.rb:22
Windows Server 2008:
C:\scrapple>warble --trace
warble aborted!
no such file to load -- nokogiri/nokogiri
org/jruby/RubyKernel.java:1041:in `require'
c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/bundler/gems/nokogiri-558e7cd040e4/lib/nokogiri.rb:25:in `(root)'
org/jruby/RubyKernel.java:1041:in `require'
c:/jruby-1.6.0.RC1/lib/ruby/gems/1.8/bundler/gems/nokogiri-558e7cd040e4/lib/nokogiri.rb:68:in `require'
org/jruby/RubyArray.java:1671:in `each'
jruby-1.6.0.RC1 :001 > EntityRegionWidget.find(46)
RuntimeError: The driver encountered an unknown error: java.sql.SQLException: Failed to start database 'db/development' with class loader org.jruby.util.JRubyClassLoader@6af2f0d0, see the next exception for details.
from /home/tambellini/.rvm/gems/jruby-1.6.0.RC1@scrapple/gems/activerecord-jdbc-adapter-1.1.1/lib/arjdbc/jdbc/connection.rb:93:in `initialize'
from /home/tambellini/.rvm/gems/jruby-1.6.0.RC1@scrapple/gems/activerecord-jdbc-adapter-1.1.1/lib/arjdbc/jdbc/adapter.rb:31:in `initialize'
from /home/tambellini/.rvm/gems/jruby-1.6.0.RC1@scrapple/gems/activerecord-jdbc-adapter-1.1.1/lib/arjdbc/jdbc/connection_methods.rb:6:in `jdbc_connection'
from /home/tambellini/.rvm/gems/jruby-1.6.0.RC1@scrapple/gems/activerecord-jdbc-adapter-1.1.1/lib/arjdbc/jdbc/connection_methods.rb:13:in `embedded_driver'
from /home/tambellini/.rvm/gems/jruby-1.6.0.RC1@scrapple/gems/activerecord-jdbc-adapter-1.1.1/lib/arjdbc/derby/connection_methods.rb:7:in `derby_connection'
rake db:reset --trace
(in /home/tambellini/repositories/scrapple)
** Invoke db:reset (first_time)
** Invoke db:drop (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
NativeException in SessionsController#create
java.lang.IllegalStateException: invalidate: Session already invalidated
Rails.root: C:/abin/apache-tomcat-7.0.11/webapps/scrapple/WEB-INF
Application Trace | Framework Trace | Full Trace
org/apache/catalina/session/StandardSession.java:1248:in `invalidate'
org/apache/catalina/session/StandardSessionFacade.java:186:in `invalidate'
file:/lib/jruby-rack-1.0.7.jar!/jruby/rack/session_store.rb:110:in `close_session'
$ rake torquebox:run
(in /home/tambellini/repositories/scrapple)
/home/tambellini/repositories/scrapple/config/application.rb:61 warning: already initialized constant EntityHub
/home/tambellini/repositories/scrapple/config/application.rb:62 warning: already initialized constant ActivityHub
/home/tambellini/repositories/scrapple/config/application.rb:63 warning: already initialized constant PropertyDBHub
TorqueBox Server OK: /home/tambellini/Desktop/torquebox-1.0.0.CR1-SNAPSHOT/jboss/server/default
=========================================================================
JBoss Bootstrap Environment