How to include custom libraries in a Fuse Springboot deployment

Solution Verified - Updated -

Issue

  • Using a S2I approach to deploy a Springboot project, log shows:
Caused by: java.lang.ClassNotFoundException: com.redhat.MyClass
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 51 common frames omitted
  • How custom libraries can be added to any Springboot project?

Environment

  • Red Hat Fuse 7.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content