-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.jruby.exceptions.RaiseException: (NameError) uninitialized constant #4987
Comments
please - as the guidelines suggest - you should specify the JRuby version you're using at the minimal. |
Sorry, version 9.1.15.0 JRuby. And I'm using ActiveMerchant gem 1.75.0. I'm using gem-maven-plugin 1.0.0 for assembly. Java 8. |
I've managed to get the app working by externalising the gems. Unfortunately I couldn't get it working if the gems are inside any jar file, including the top level one. |
@ralleman yes, that is probably not working due to maybe |
@ralleman If you can investigate more, or provide a simple repro (like a git repository we can just clone and run) we might be able to do more here, but since the related Ruby libraries are using their own tricks to look up other files we might be a little stuck. You could put some logic into the |
closing as defunct |
I'm repeating what I've written on Stackoverflow here https://stackoverflow.com/questions/48302471/org-jruby-exceptions-raiseexception-nameerror-uninitialized-constant/48304548#48304548. Looks like a bug to me.
I'm getting the following error from a JRuby wrapping of the ActiveMerchant library:
The code initiating it is:
I think this is happening because there is some dynamic loading of the gateways happening in gateways.rb:
This works during unit tests because the Ruby files are real files in my Maven target directory. However in the final application, the Ruby files are contained within a Jar which is in a Jar.
The text was updated successfully, but these errors were encountered: