Thread t = new Thread(new Runnable() {
@Override
public void run() {
while(true) {
try {
System.err.println("within the loop 7");
Thread.sleep(2000);
if(grid.isAttached() && grid.isVisible() ) {
updateLastActiveRuns();
}
} catch (InterruptedException e1) {
}
}
}
});
t.start();
Hi all!
I have problems to have a working DCEVM + HotwapAgent on JBOSS EAP 7.2 Docker Container setup.
Chosen setup:
hotswap-agent.properties
with extraClasspath
to build/classes (via docker mount) on subprojects src/main/resources
.I managed to launch the container only with disabling JBossModules plugin.
HotSwap Agent doesn't recognise changes during remote debug hot swapping.
If i enable JBossModules plugin i get this error during app server start:
HOTSWAP AGENT: 08:55:11.139 INFO (org.hotswap.agent.HotswapAgent) - Loading Hotswap agent {1.4.1} - unlimited runtime class redefinition.
HOTSWAP AGENT: 08:55:11.957 INFO (org.hotswap.agent.config.PluginRegistry) - Discovered plugins: [JdkPlugin, Hotswapper, WatchResources, ClassInitPlugin, AnonymousClassPatch, Proxy, WebObjects, Weld, JBossModules, Undertow]
Listening for transport dt_socket at address: 8787
Exception in thread "main" java.lang.NoClassDefFoundError: org/hotswap/agent/util/classloader/HotswapAgentClassLoaderExt
at org.jboss.modules.Module.<init>(Module.java:247)
at org.jboss.modules.ModuleLoader$3.run(ModuleLoader.java:729)
at org.jboss.modules.ModuleLoader$3.run(ModuleLoader.java:724)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.modules.ModuleLoader.defineModule(ModuleLoader.java:724)
at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:531)
at org.jboss.modules.DelegatingModuleLoader.preloadModule(DelegatingModuleLoader.java:57)
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:295)
at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:92)
at __redirected.__RedirectedUtils.loadProvider(__RedirectedUtils.java:86)
at __redirected.__DocumentBuilderFactory.changeDefaultFactory(__DocumentBuilderFactory.java:53)
at __redirected.__JAXPRedirected.changeAll(__JAXPRedirected.java:53)
at org.jboss.modules.Main.main(Main.java:428)
Any idea what is wrong here? I am struck with this issue. Any help will be appreciated.