diff --git a/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java b/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java index 9d3040a3b4f6..d32f7063815e 100644 --- a/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java +++ b/java/debugger/debugger-agent/src/com/intellij/rt/debugger/agent/CaptureAgent.java @@ -64,6 +64,9 @@ public class CaptureAgent { // } // } //} + + setupJboss(); + if (DEBUG) { System.out.println("Capture agent: ready"); } @@ -74,6 +77,16 @@ public class CaptureAgent { } } + private static void setupJboss() { + String modulesKey = "jboss.modules.system.pkgs"; + String property = System.getProperty(modulesKey, ""); + if (!property.isEmpty()) { + property += ","; + } + property += "com.intellij.rt"; + System.setProperty(modulesKey, property); + } + private static String readSettings(String path) { FileReader reader = null; try {