Hi there,
I have a little rails-app which tries to load several Javaclasses to
work with them. The Java classes are located in my lib/java directory in
a Jar-File.
Warbling runs without any problems. While deploying the war file in
glassfish (v3 build 74.2) I get the following error (anonymized with
***.***).
My environment: Rails 2.3.5, JRuby 1.4, jruby-rack 0.9.5 (tried also
with 0.9.6)
[#|2010-02-19T10:21:54.828+0100|SEVERE|glassfishv3.0|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=26;_ThreadName=http-thread-pool-4848-(2);|WebModule[/gsm]unable
to create shared application instance
org.jruby.rack.RackInitializationException: cannot load Java class
de.***.***.SecurityManager
from
/home/mdohnke/sges-v3/glassfish/domains/domain1/generated/jsp/gsm/loader_732559948/META-INF/jruby.home//lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:51:in
method_missing' from /home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/app/models/grid_service_manager.rb:12 from /home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/app/models/grid_service_manager.rb:31:in
require’
from
/home/mdohnke/sges-v3/glassfish/domains/domain1/generated/jsp/gsm/loader_732559948/META-INF/jruby.home//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require' from /home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
require’
from
/home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in
require_or_load' from /home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:224:in
depend_on’
from
/home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/gems/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:136:in
require_dependency' ... 13 levels... from /home/mdohnke/sges-v3/glassfish/domains/domain1/applications/gsm/WEB-INF/gems/gems/rack-1.0.1/lib/rack/builder.rb:29:in
initialize’
from :2:in `new’
from :2
The whole stacktrace is longer. If anyone needs it, please tell me.
My application is quite empty. There is only a model which tries to load
the Java classes (anonymized with ***.***):
Dir[File.dirname(FILE) + 'lib/java/.jar’].each {|jar| require jar}
import Java::de.**.***.SecurityManager
These few lines let the deploy process fail. Does someone know what I
can do?
kind regards,
marco
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email