Login  Register

Re: AsciidoctorJ error when using in a OSGi bundle

Posted by twasyl on Aug 16, 2014; 8:43am
URL: https://discuss.asciidoctor.org/AsciidoctorJ-error-when-using-in-a-OSGi-bundle-tp1910p2014.html

Hi all,

Sorry for my late response. I got something work but not completely. The problem was indeed a misconfiguration when creating my OSGi bundle. Now I get it work but I have another error:

Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- asciidoctor
        at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1065)
        at RUBY.require(classpath:/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)
        at RUBY.(root)(<script>:9)

Previously I had: Caused by: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- jruby/java

Which I solved using the following line:

this.asciidoctor = Asciidoctor.Factory.create(AsciidoctorMarkup.class.getClassLoader());

So what should I do in order to correct the error regarding the asciidoctor file?
Any help is appreciated.

Thanks a lot.