Java 1.8 and JBoss EAP 7.0.0.GA

230 views
Skip to first unread message

Dinko Belchevski

unread,
Jul 15, 2016, 5:10:08 AM7/15/16
to HotswapAgent
Hello,
I'm having problems with configuring JBoss EAP 7.0.0.GA with DCEVM and Hotswap agent. Here is configuration:


Jboss startup line:

set JAVA_OPTS=-XXaltjvm=dcevm -Xrs -Xms8G -Xmx8G -Dtafj.home=%TAFJ_HOME% -Dfile.encoding=UTF-8 -Djboss.node.name=r16srv -javaagent:C:\Temenos\TAFJ\lib\hotswap-agent.jar=autoHotswap=true


Hotswap agent:

extraClasspath=C:/Temenos/T24_R16/src/compiler/classes
autoHotswap=true


Jboss module configuration:

<module xmlns="urn:jboss:module:1.0" name="com.temenos.advz">
  <resources>
<!-- Insert resources here -->
<resource-root path="lib/local.jar" />
<resource-root path="." />
  </resources>
  <dependencies>
    <module name="com.temenos.tafj"/>
    <module name="com.temenos.t24"/>
    <module name="javax.api"/>
<module name="javaee.api"/>
<module name="javax.jms.api"/>
  </dependencies> 
</module>


I have exactly same configuration on Jboss EAP 6.4 with Java 1.7 and it works fine. Unfortunately with Jboss EAP 7 and Java 1.8 things are not so straightforward. During the change of some class in directory  C:/Temenos/T24_R16/src/compiler/classes, hotswap agent react to that change with error:

2016-07-15 09:54:06,112 INFO  [stdout] (Thread-368) HOTSWAP AGENT: 9:54:6.112 DEBUG (org.hotswap.agent.config.PluginConfiguration) - Unable to set extraClasspath to [file:/C:/Temenos/T24_R16/src/compiler/classes/] on classLoader ModuleClassLoader for Module "com.temenos.advz:main" from local module loader @491cc5c9 (finder: local module finder @74ad1f1f (roots: C:\jboss-EAP-7.0.0\modules,C:\jboss-EAP-7.0.0\modules\system\layers\base)). Only URLClassLoader is supported.
2016-07-15 09:54:06,112 INFO  [stdout] (Thread-368) *** extraClasspath configuration property will not be handled on JVM level ***

I'm not sure what I'm missing in order to configure it properly.

Reply all
Reply to author
Forward
0 new messages