使用arquillian调试远程容器失败

时间:2012-10-26 07:10:09

标签: jboss7.x jboss-arquillian

使用arquillian调试远程容器jboss7.1.1失败。我按照此处所述https://community.jboss.org/wiki/WhyDontBreakPointsWorkWhenDebugging在standalone.conf.bat中设置调试conf。但这并没有在调试模式下启动jboss。 Consoleoutput:

INFO: Starting container with: [D:\java\jdk1.6.0_22\bin\java, -Xmx512m,
 -XX:MaxPermSize=128m, -ea, -Djboss.home.dir=target/jboss-as-7.1.1.Final,
...

使用arquillian 1.0.3.Final。

1 个答案:

答案 0 :(得分:3)

如果您使用托管容器并且arquillian正在为您启动JBoss AS,则需要将该选项添加到arquillian.xml。类似的东西:

<arquillian xmlns="http://jboss.org/schema/arquillian"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://jboss.org/schema/arquillian
        http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

    <engine>
        <property name="deploymentExportPath">target/</property>
    </engine>

    <container qualifier="jboss" default="true">
        <protocol type="jmx-as7">
            <property name="executionType">REMOTE</property>
        </protocol>
        <configuration>
            <property name="jbossHome">${basedir}/target/jboss-as-${jbossas.version}</property>
            <property name="javaVmArguments">-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=y -Xmx512m -XX:MaxPermSize=128m</property>
        </configuration>
    </container>

</arquillian>