Subscribed unsubscribe Subscribe Subscribe

igarashitm.log

igarashitm, a Japanese software engineer writes something in English here.

JBoss AS7 remote debug

Standard installation

enable following option in $AS7/bin/standalone.conf

JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"


JUnit testcase kicked by Maven

mvn -Dmaven.surefire.debug test

or

mvn -Dmaven.surefire.debug="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000" test


Arquillian testcase

Add javaVmArguments property into arquillian.xml

...(snip)...
     <container qualifier="jboss7" default="true">
         <configuration>
+           <property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y</property> 
         </configuration>
...(snip)...