I’m attempting to run some migrations on an empty database and I’m
getting an error from rake.
This is reported as a Warbler problem
(http://kenai.com/jira/browse/WARBLER-4), but I’ve uninstalled it and
I still have this error. (Neither the gem nor plugin exist on my
system).
A suggestion from the Warbler issue page suggests that it will work
after removing vendor/plugins/warbler-0.9.12/tasks/warbler.rake, but
that’s obviously no solution since I have no trace of Warbler.
A suggestion from the Warbler issue page suggests that it will work
after removing vendor/plugins/warbler-0.9.12/tasks/warbler.rake, but
that’s obviously no solution since I have no trace of Warbler.
JRuby 1.3.1
Rake 0.8.7
Rails 2.3.4
Any suggestions of where to look?
So based on the stack trace, it appears that somewhere some JRuby java
integration code is running in the context of Rake that is using the
“import” method to import a java class, and that’s colliding with
Rake’s own “import”. By chance do you have any code like that lying
around? If you do, try changing it to use “java_import”.
Now that I realized that this is the problem, I’m not sure what
Warbler has to do with it since Warbler doesn’t use import anywhere.
(in /Users/jim/SCM/cvs/IRIS2/rails_code)
/Users/jim/Library/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in
/Users/jim/Library/jruby-1.3.1/bin/rake:19
So based on the stack trace, it appears that somewhere some JRuby java
integration code is running in the context of Rake that is using the
“import” method to import a java class, and that’s colliding with
Rake’s own “import”. By chance do you have any code like that lying
around? If you do, try changing it to use “java_import”.
Now that I realized that this is the problem, I’m not sure what
Warbler has to do with it since Warbler doesn’t use import anywhere.
/Nick
YES! Thank you. I had one import of a java class and changing it to
java_import saved it!
–
Jim G.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.