> from you first post I had the feeling you use the java cblasses from BC > directly. if this is the case then I would say your code should work > with jruby-1.7.1 after you included the right BC jar.
Hmm..Thats what I thought. Still get the same issue though! /usr/local/rvm/rubies/jruby-1.7.1/bin/jruby -J-cp /Users/cb/IdeaProjects/JSCEP-Test/out/production/Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar:/Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test:/Users/cb/Development/JavaLibraries/BC/bcmail-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcpkix-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/BC/bcprov-jdk15on-147.jar:/Users/cb/Development/JavaLibraries/Apache/commons-lang-2.6.jar --1.9 -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/cb/IdeaProjects/JSCEP-Test/src/ScepDemoCertEnrol.rb JKS File: /Users/cb/Downloads/Test/example.jks JKS Keys Alias: tester org.bouncycastle.pkcs.PKCS10CertificationRequestBuilder@44f3e005 ArgumentError: Java package `org.bouncycastle.asn1' does not have a method `DERObjectIdentifier' method_missing at file:/usr/local/rvm/rubies/jruby-1.7.1/lib/jruby.jar!/jruby/java/java_package_module_template.rb:9 initialize at /Users/cb/IdeaProjects/JSCEP-Test/out/production/JSCEP-Test/scenroller.rb:101 (root) at /Users/cb/IdeaProjects/JSCEP-Test/src/enrol.rb:21 load at org/jruby/RubyKernel.java:1046 (root) at -e:1 Carl On 18 Jan 2013, at 13:34, kristian <m.krist...@web.de> wrote: > I am saying with 1.7.1 you can add any version BC to you > classpath/classloader and use it, the jruby-openssl uses its own > version with different packages. > > from you first post I had the feeling you use the java classes from BC > directly. if this is the case then I would say your code should work > with jruby-1.7.1 after you included the right BC jar. > > - Kristian > > On Fri, Jan 18, 2013 at 6:54 PM, Carl Bourne <carl.bou...@me.com> wrote: >> Kristian, >> >> Are you suggesting that should work in JRuby 1.7.1? >> >> Carl >> >> On 17 Jan 2013, at 04:17, kristian <m.krist...@web.de> wrote: >> >>> On Thu, Jan 17, 2013 at 3:32 AM, Matt Hauck <mattha...@gmail.com> wrote: >>>> Kristian, do you mean to say that jruby has forked BC and renamed all of >>>> its >>>> packages? I just unpacked the jar file in >>>> lib/ruby/shared/bcprov-jdk15-146.jar, and it doesn't look like any packages >>>> have been renamed. >>> >>> sorry I did not realize that this changed from 1.7.1 to 1.7.2 >>> the package renaming took place during the packaging of the jruby.jar, >>> jruby-complete.jar and jruby-core.jar - this was really nice since it >>> did NOT force the BC version onto everybody - it was just an >>> implementation detail not visible to outside. the next version of BC >>> is coming and might come again with API changes. >>> >>> in the commit message headius mentioned something like problems with >>> signed security providers - not sure whether this is true for 1.7.1 >>> since that was the reason to repackage BC in the first place. if there >>> were no problems with those signed security providers in 1.7.1 then I >>> think jruby-openssl should do embed BC and repackage it as jruby-1.7.1 >>> - I am happy to help here. these wrapped jar as gems are quite a thing >>> when you want to embed jruby with java and need various gems which >>> wraps a jar which you might have already on your parent classloader. >>> >>> regards, Kristian >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email