-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
Hi,
I am having trouble running the application insights logback appender when running my application with an embedded Wildfly swarm server. It works fine if I load the WAR file in a tomcat server, for example. The error i get is:
2016-07-07 21:54:24,952 ERROR [stderr] (default task-1) AI: ERROR 07-07-2016 21:54, 59: Exception while fetching WebApp name: 'org.jboss.modules.ModuleClassLoader cannot be cast to java.net.URLClassLoader'
2016-07-07 21:54:24,954 ERROR [stderr] (default task-1) AI: ERROR 07-07-2016 21:54, 59: WebApp name is not found, unable to register WebApp
2016-07-07 21:54:24,954 ERROR [stderr] (default task-1) AI: INFO 07-07-2016 21:54, 59: Successfully registered the filter 'ApplicationInsightsWebFilter'
2016-07-07 21:54:24,961 ERROR [stderr] (default task-1) AI: INFO 07-07-2016 21:54, 59: Configuration file has been successfully found as resource
The dependencies im using are
compile group: 'com.microsoft.azure', name: 'applicationinsights-web', version: '1.0.4'
compile group: 'com.microsoft.azure', name: 'applicationinsights-logging-logback', version: '1.0.4'
Is there a known way around this?