Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 阿奎利安·托米未能开始_Maven_Testng_Jboss Arquillian_Apache Tomee - Fatal编程技术网

Maven 阿奎利安·托米未能开始

Maven 阿奎利安·托米未能开始,maven,testng,jboss-arquillian,apache-tomee,Maven,Testng,Jboss Arquillian,Apache Tomee,我有一个基于TOME的应用程序,我正在使用arquillian进行测试。我正在使用testNg&通过将以下内容添加到pom.xml中,将TOME配置为使用随机端口: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId>

我有一个基于TOME的应用程序,我正在使用arquillian进行测试。我正在使用testNg&通过将以下内容添加到pom.xml中,将TOME配置为使用随机端口:

       <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.17</version>
            <configuration>
            <suiteXmlFiles>
                    <suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>
                </suiteXmlFiles>
                <systemPropertyVariables>
                    <tomee.httpPort>-1</tomee.httpPort>
                    <tomee.stopPort>-1</tomee.stopPort>
                </systemPropertyVariables>
            </configuration>
        </plugin>

我的tommee版本是1.7.2,开放ejb版本是4.7.2。有人能告诉我我做错了什么吗?

我听说嵌入的tomee容器有问题,但我根本没有调查过。托管或远程容器是否按预期工作?是否有任何地方可以看到代码?至少测试和整个pom.xml?请添加以下信息:(a)您使用的是哪个TOME版本(b)哪个OpenEJB版本(在原始问题中)。是否添加了版本详细信息。@SurajMenon Hi,您是否能够解决此问题?我也有同样的问题,无法在网上找到解决方案。
org.jboss.arquillian.container.spi.client.container.DeploymentException: Unable to deploy
    at org.apache.openejb.arquillian.embedded.EmbeddedTomEEContainer.deploy(EmbeddedTomEEContainer.java:165)
    at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)
    ...
Caused by: java.lang.NullPointerException: null
    at org.apache.openejb.arquillian.common.TomEEContainer.addServlets(TomEEContainer.java:229)
    at org.apache.openejb.arquillian.embedded.EmbeddedTomEEContainer.deploy(EmbeddedTomEEContainer.java:157)
    ...