NoClassDefFoundError occurs after running embed-server or jdr.sh alongside an active JBoss EAP 7.x/8.x server

Solution Verified - Updated -

Issue

  • Application error such as NoClassDefFoundError happens on JBoss EAP 7.x/8.x after starting embed-server in 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.sh with incorrect connection details) while a JBoss EAP instance is running will delete the active server's tmp/vfs directory. This action removes critical class files, causing application failures with NoClassDefFoundError.
  • Your application running on JBoss EAP unexpectedly fails with NoClassDefFoundError after you use the JBoss-CLI embed-server command or run the $JBOSS_HOME/bin/jdr.sh diagnostic 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content