You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fresh install of Java 8 on Windows, move my warbler-created Rails WAR file over, run java -jar railsapp.war and load it up in the browser:
Illegal key size: possibly you need to install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files for your JRE
Added the following code to initializers/java_crypto_patch.rb:
beginsecurity_class=java.lang.Class.for_name('javax.crypto.JceSecurity')restricted_field=security_class.get_declared_field('isRestricted')restricted_field.accessible=truerestricted_field.setnil,falserescuejava.lang.ClassNotFoundExceptionputs"JCE security not available on this platform"end
Ran warble executable war on the app again and moved it over to windows. Start the app, ....
And it works this time. Wow, now I wonder what caused the error before.
In any case, thanks for making me walk through it again, and sorry for wasting your time!
The programmatic way to fix the crypto restriction does get rid of the initial error message, but still fails for me due to another error related to not finding the algorithm.
This is with a Rails 4.2.0.beta4 app built on Mac OSX JRuby and deployed via executable WAR to Windows.
Installing the files worked fine, but I wonder if the programmatic instructions need some updating or clarification.
The text was updated successfully, but these errors were encountered: