I’m trying to use warbler-1.3.1 for my application, I selected the
compiled feature to compile all .rb files and the war was created
successfully. When I’m deploying this app, I’m getting error that
development.class can’t be loaded. I’m attaching the sample app and its
war using which the issue was replicated. A similar issue was reported
in
Warbler 1.2.1, Rails 2.3.8 and Tomcat - RackInitializationException: no such file to load - JRuby - Ruby-Forum but no solution were found there.
If I disable the “compiled” feature, it works fine. Also, when I choose
to compile app//*.rb and lib//*.rb, it works fine but it fails when
all files are compiled. Any suggestions?
May 31, 2011 7:05:15 PM org.apache.catalina.core.ApplicationContext log
SEVERE: Application Error
org.jruby.rack.RackInitializationException: no such file to load –
/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/config/environments/development.class
from
file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/jruby-stdlib-1.6.1.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
require' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in
require’
from
file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in
new_constants_in' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in
require’
from
/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/config/environments/development.rb:386:in
load_environment' from org/jruby/RubyKernel.java:1088:in
eval’
from
file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/rails-2.3.9/lib/initializer.rb:386:in
load_environment' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/activesupport-2.3.9/lib/active_support/core_ext/kernel/reporting.rb:11:in
silence_warnings’
from
file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/rails-2.3.9/lib/initializer.rb:379:in
load_environment' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/rails-2.3.9/lib/initializer.rb:137:in
process’
from org/jruby/RubyKernel.java:2052:in send' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/gems.jar!/gems/rails-2.3.9/lib/initializer.rb:113:in
run’
from config/environment.rb:9:in (root)' from org/jruby/RubyKernel.java:1063:in
load’
from
file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/jruby-rack-1.0.8.jar!/jruby/rack/rails.rb:54:in
load_environment' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/jruby-rack-1.0.8.jar!/jruby/rack/rails.rb:47:in
to_app’
from
file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/jruby-rack-1.0.8.jar!/jruby/rack/rails.rb:193:in
new' from <web.xml>:1:in
(root)’
from org/jruby/RubyKernel.java:2021:in instance_eval' from file:/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/lib/jruby-rack-1.0.8.jar!/vendor/rack-1.2.2/rack/builder.rb:46:in
initialize’
from <web.xml>:1:in `(root)’
at
org.jruby.rack.DefaultRackApplicationFactory$4.init(DefaultRackApplicationFactory.java:224)
at
org.jruby.rack.DefaultRackApplicationFactory.getApplication(DefaultRackApplicationFactory.java:57)
at
org.jruby.rack.PoolingRackApplicationFactory.getApplication(PoolingRackApplicationFactory.java:95)
at
org.jruby.rack.DefaultRackDispatcher.process(DefaultRackDispatcher.java:28)
at org.jruby.rack.RackFilter.doFilter(RackFilter.java:58)
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:298)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.jruby.exceptions.RaiseException: (MissingSourceFile) no
such file to load –
/home/jayant/java_framework/apache-tomcat-6.0.32/webapps/cp/WEB-INF/config/environments/development.class