Hi Folks,
When trying to load a java class from within ruby in a jror-web-app
I get the following error (see below).
The ruby code  looks something like
require 'java'
require 'myxyz.jar'
MyJavaClass = Java::pkg.MyXyz

The runtime is findign myxyz.jar (else I get a no-file-to-load error)
The above code works as a standalone ruby script.
This is against jruby trunk, goldspike trunk,  jetty/glassfish.
Any ideas ?

Thanks
Ashish

SyntaxError in SayController#hello

<mydir>/bs/app/controllers/say_controller.rb:8: dynamic constant assignment

|RAILS_ROOT: <mydir>bs/config/..|

Application Trace <http://hysteria.sfbay.sun.com:8080/bs/say/hello#> | Framework Trace <http://hysteria.sfbay.sun.com:8080/bs/say/hello#> | Full Trace <http://hysteria.sfbay.sun.com:8080/bs/say/hello#>

|<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in
 `load'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in
 `load_file'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:94:in
 `new_constants_in'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:204:in
 `load_file'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:94:in
 `require_or_load'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:248:in
 `load_missing_constant'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in
 `const_missing'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in
 `const_missing'
<mydir>/bs/WEB-INF/gems/gems/activesupport-1.4.2/lib/active_support/inflector.rb:0:in
 `module_eval'
<mydir>/bs/WEB-INF/gems/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1283:in
 `constantize'
<mydir>/bs/WEB-INF/gems/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1283:in
 `recognize'
:0|

_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to