log4j based fuse 7.10 Spring Boot application which uses hawtio does not start with Fuse 7.11

Solution Verified - Updated -

Issue

A log4j based fuse 7.10 Spring Boot application which uses hawtio does not start with Fuse 7.11 due to some ClassNotFoundException.

Caused by: java.lang.NoClassDefFoundError: io/hawt/log/logback/LogbackLogQuery
    at io.hawt.springboot.SpringHawtioContextListener.<init>(SpringHawtioContextListener.java:21)
    at io.hawt.springboot.HawtioManagementConfiguration.hawtioContextListener(HawtioManagementConfiguration.java:268)
    at io.hawt.springboot.HawtioManagementConfiguration$$EnhancerBySpringCGLIB$$aa2a8c64.CGLIB$hawtioContextListener$12(<generated>)
    at io.hawt.springboot.HawtioManagementConfiguration$$EnhancerBySpringCGLIB$$aa2a8c64$$FastClassBySpringCGLIB$$902ded99.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
    at io.hawt.springboot.HawtioManagementConfiguration$$EnhancerBySpringCGLIB$$aa2a8c64.hawtioContextListener(<generated>)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
    ... 51 more
Caused by: java.lang.ClassNotFoundException: io.hawt.log.logback.LogbackLogQuery
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    ... 63 more

Environment

  • Red Hat Fuse 7.11

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