You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having an error running the application insights log4j appender when running my application. It works fine if I load the WAR file in a tomcat server. The error I get is:
AI: ERROR 19-04-2017 17:33, 318: Exception while fetching WebApp name: 'org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 cannot be cast to java.net.URLClassLoader'
AI: ERROR 19-04-2017 17:33, 318: WebApp name is not found, unable to register WebApp
Quick response will be very helpful.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
The current implementation of the Java SDK does not support custom class loaders that do not inherit from (or rather could not be cast to ) URLClassLoader as per this code.
Thus, BundleClassLoadedJava from felix.framework.BundleWiringImpl is failing the cast and cannot be used to identify the URL to fetch the name for the registration. Loading WAR in tomcat server should work fine because it will use standard class loader.
Hi,
I am having an error running the application insights log4j appender when running my application. It works fine if I load the WAR file in a tomcat server. The error I get is:
AI: ERROR 19-04-2017 17:33, 318: Exception while fetching WebApp name: 'org.apache.felix.framework.BundleWiringImpl$BundleClassLoaderJava5 cannot be cast to java.net.URLClassLoader'
AI: ERROR 19-04-2017 17:33, 318: WebApp name is not found, unable to register WebApp
Quick response will be very helpful.
Thanks in advance.
The text was updated successfully, but these errors were encountered: