Skip to content

??? jruby-opensll snapshot build not working properly on 1.7 branch #1749

@enebo

Description

@enebo

Ok. I landed Kares latest fix on master/ext/openssl and then generated a new snapshot build. I THINK when building on jruby-1_7 branch it is grabbing this snapshot. There is part of this process I don't understand perhaps. Then when I 'ant test-extended' (just copying what travis does) I made to a line like this (I simplified to only have one .rb):

${JRUBY_PROJECT_ROOT}/bin/jruby -I"lib" -X-C  -J-ea -J-cp test:test/target/test-classes:core/target/test-classes --1.8 -I"${JRUBY_PROJECT_ROOT}/lib/ruby/gems/shared/gems/rake-10.1.1/lib" "${JRUBY_PROJECT_ROOT}/lib/ruby/gems/shared/gems/rake-10.1.1/lib/rake/rake_test_loader.rb" "test/test_openssl.rb" 

When I run it:

NameError: cannot load Java class org.jruby.ext.openssl.PEMUtils
         for_name at org/jruby/javasupport/JavaClass.java:1250
  get_proxy_class at org/jruby/javasupport/JavaUtilities.java:34
      java_import at file:/Users/enebo/work/jruby/lib/jruby.jar!/jruby/java/core_ext/object.rb:26
          collect at org/jruby/RubyArray.java:2399
      java_import at file:/Users/enebo/work/jruby/lib/jruby.jar!/jruby/java/core_ext/object.rb:22
           PKCS12 at /Users/enebo/work/jruby/lib/ruby/shared/openssl/pkcs12.rb:11
          OpenSSL at /Users/enebo/work/jruby/lib/ruby/shared/openssl/pkcs12.rb:4
           (root) at /Users/enebo/work/jruby/lib/ruby/shared/openssl/pkcs12.rb:3
          require at org/jruby/RubyKernel.java:1057
           (root) at /Users/enebo/work/jruby/lib/ruby/shared/jopenssl/load.rb:1
          require at org/jruby/RubyKernel.java:1057
           (root) at /Users/enebo/work/jruby/lib/ruby/shared/jopenssl/load.rb:22
          require at org/jruby/RubyKernel.java:1057
           (root) at /Users/enebo/work/jruby/lib/ruby/shared/openssl.rb:1
          require at org/jruby/RubyKernel.java:1057
           (root) at /Users/enebo/work/jruby/lib/ruby/shared/openssl.rb:1
           select at org/jruby/RubyArray.java:2468
           (root) at /Users/enebo/work/jruby/test/test_openssl.rb:1

Is this a new issue or am I making an environment mistake? I used to be against us moving ext/openssl out of jruby repo and now I cannot wait to move it in this multi-branch world. dogs and cats...

PS- Changing to --1.9 does not change the result. Something basic about loading jossl jar (PEMUtils.class is there too).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions