Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(LoadError) no such file to load -- asciidoctor-diagram (Use after fat Jar deployment) #471

Closed
Ghuu420 opened this issue Oct 1, 2024 · 2 comments

Comments

@Ghuu420
Copy link

Ghuu420 commented Oct 1, 2024

Ive been working on a Spring boot project lately that uses the asciidoctor and keep having this problem so hopefully someone is familiar with it and could say something about it ..

Its a basic projekt to creates different types of reports. Locally using a IDE (ECLIPSE) everything works fine but after the deployment , some problems start to happen. I am using java 17 and Apach Maven 3.9.1 locally .

The project is built into a fat executable Jar which is used for deployment (Linux Ubuntu (Java 17 too)) using these dependencies and build plugins


org.springframework.boot
spring-boot-starter-web


org.apache.poi
poi-ooxml
3.17


org.asciidoctor
asciidoctorj
3.0.0
compile


org.asciidoctor
asciidoctorj-pdf
2.3.18
compile


org.asciidoctor
asciidoctorj-diagram
2.3.1

build_screen

I double checked after the successful build, that the asciidoctor-diagramm is unpacked and existant (at xxx1.0.0.jar\BOOT-INF\classes\gems\asciidoctor-diagram-2.3.1).
After the deployment , calling an Api to generate a pdf report , I keep getting this error :

[org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.jruby.exceptions.LoadError: (MissingSpecError) Gem::MissingSpecError] with root cause : org.jruby.exceptions.LoadError: (LoadError) no such file to load -- asciidoctor-diagram
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1184)
at RUBY.require(uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:85)
at RUBY.

(<script>:1)

@abelsromero
Copy link
Member

I answered in asciidoctor/asciidoctorj#1286. I can't close, but whoever has permission can? 🙏

@Ghuu420
Copy link
Author

Ghuu420 commented Oct 4, 2024

im really sorry about the double posting.

@Ghuu420 Ghuu420 closed this as completed Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants