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

WebApp name is not found, unable to register WebApp #370

Closed
pankajmahajan10 opened this issue Apr 19, 2017 · 3 comments
Closed

WebApp name is not found, unable to register WebApp #370

pankajmahajan10 opened this issue Apr 19, 2017 · 3 comments
Milestone

Comments

@pankajmahajan10
Copy link

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.

@Dmitry-Matveev
Copy link
Member

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.

@pankajmahajan10
Copy link
Author

is there a solution or work around for this yet? We are currently integrating AppInsights within a custom JIRA plugin and facing the error.

@beckylino beckylino added this to the 1.0.10 milestone Jun 5, 2017
@dhaval24 dhaval24 modified the milestones: 1.0.10, 1.0.11 Oct 2, 2017
@littleaj littleaj modified the milestones: 1.0.11, 2.0.0 Dec 12, 2017
@dhaval24 dhaval24 modified the milestones: 2.0.0, future Dec 27, 2017
@littleaj
Copy link
Contributor

If you are still having this issue with the latest version, please reopen.

@ghost ghost locked as resolved and limited conversation to collaborators Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants