1

i'm trying to setup hudson job to release out project. I have one problem with cargo maven plugin. On release:prepare and release:perform it runs twice our integration tests. To run integration tests we unpack our artifact with jboss, then we deploy ear to our instance run tests, then stop instance, undeploy our ear. On this step everything is ok. But when doing second run cargo maven plugin fails with such an error:

  [INFO] [ERROR] FATAL ERROR
  [INFO] [INFO] ------------------------------------------------------------------------
  [INFO] [INFO] Failed to create a JBoss 4.2.3 existing configuration
  ..
  The required web context is already in use by another application.
  [INFO]    at     org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer.deploy(AbstractCopyingInstalledLocalDeployer.java:139)
  [INFO]    at org.codehaus.cargo.container.spi.deployer.AbstractDeployer.deploy(AbstractDeployer.java:48)
  [INFO]    at org.codehaus.cargo.container.jboss.JBossExistingLocalConfiguration.doConfigure(JBossExistingLocalConfiguration.java:84)
  [INFO]    at org.codehaus.cargo.container.spi.configuration.AbstractLocalConfiguration.configure(AbstractLocalConfiguration.java:190)

So i guess the problem itself is in :The required web context is already in use by another application. Maybe someone had similar issue with webcontext?

4

2 回答 2

1

我有这样的问题。我有 2 个申请。当我检查META-INF/context.xml文件时,我看到两个应用程序的Context标签的路径属性是相同的。当每个应用程序具有不同的上下文值时,问题就消失了。我希望它对你也有帮助。

于 2011-05-10T12:40:05.843 回答
0

我有同样的问题,但与货物插件版本有关。

出现错误

            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.6.3</version>

正常工作

            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.4.8</version>
于 2017-05-16T02:45:48.167 回答