2

使用 arquillian 调试远程容器 jboss7.1.1 失败。我按照https://community.jboss.org/wiki/WhyDontBreakPointsWorkWhenDebugging的描述在standalone.conf.bat 中设置了调试配置。但这不会在调试模式下启动 jboss。控制台输出:

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。

4

1 回答 1

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>
于 2012-10-29T10:15:29.877 回答