NoClassDefFoundError occurs after running embed-server or jdr.sh alongside an active JBoss EAP 7.x/8.x server
Issue
- Application error such as NoClassDefFoundError happens on JBoss EAP 7.x/8.x after starting
embed-serverin JBoss-CLI (or executing$JBOSS_HOME/bin/jdr.sh) beside running server - Starting
embed-server(either directly via JBoss-CLI or indirectly via$JBOSS_HOME/bin/jdr.shwith incorrect connection details) while a JBoss EAP instance is running will delete the active server'stmp/vfsdirectory. This action removes critical class files, causing application failures withNoClassDefFoundError. - Your application running on JBoss EAP unexpectedly fails with
NoClassDefFoundErrorafter you use the JBoss-CLIembed-servercommand or run the$JBOSS_HOME/bin/jdr.shdiagnostic script.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- 8.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.