Application is not able to load a Markitwire class which is in project's classpath in JBoss EAP 6.
Issue
- While connecting to third party API(Markitwire), the application is not able to load a class which is in project's classpath. We are getting ClassNotFoundException. Below is the stack trace:
01:11:05,181 ERROR [stderr] (Thread-127) java.lang.NoClassDefFoundError: com/abc/sw_api/SW_DealNotifyData
01:11:05,181 ERROR [stderr] (Thread-127) Caused by: java.lang.ClassNotFoundException: com.abc.sw_api.SW_DealNotifyData
01:11:05,181 ERROR [stderr] (Thread-127) at java.net.URLClassLoader$1.run(Unknown Source)
01:11:05,181 ERROR [stderr] (Thread-127) at java.net.URLClassLoader$1.run(Unknown Source)
01:11:05,181 ERROR [stderr] (Thread-127) at java.security.AccessController.doPrivileged(Native Method)
01:11:05,181 ERROR [stderr] (Thread-127) at java.net.URLClassLoader.findClass(Unknown Source)
01:11:05,181 ERROR [stderr] (Thread-127) at java.lang.ClassLoader.loadClass(Unknown Source)
01:11:05,196 ERROR [stderr] (Thread-127) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
01:11:05,196 ERROR [stderr] (Thread-127) at java.lang.ClassLoader.loadClass(Unknown Source)
- We are facing issue with Markitwire while calling third party API. There is a thread getting starting at root level while receiving the response from their side and jboss is not able to load the class. Class is getting loaded successfully when running the program as standlone java application(not jboss dependent). We are able to connect to third party API. Issue occur only when running the application on jboss
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.