arquillian-container-wls icon indicating copy to clipboard operation
arquillian-container-wls copied to clipboard

Incorrect HttpContextBuilder#findMatchingDeployment

Open ihostage opened this issue 9 years ago • 0 comments

Hi!

My case

  1. I set Weblogic-Application-Version: X.Y.Z in MANIFEST​.​MF file.
  2. I deploy WebArchive
@Deployment
public static WebArchive createDeployment() {
    return ShrinkWrap.createFromZipFile(WebArchive.class, new File("target/app-name.war"));
}
  1. In the undeploy phase i got error
Test  Time elapsed: 8.998 sec  <<< ERROR!
org.jboss.arquillian.container.spi.client.container.DeploymentException: Failed to populate the HTTPContext with the deployment details
    ...
Caused by: org.jboss.arquillian.container.spi.client.container.DeploymentException: The specified deployment could not be found in the MBean Server.
The deployment must have failed. Verify the output of the weblogic.Deployer process.
    at org.jboss.arquillian.container.wls.HttpContextBuilder.createContext(HttpContextBuilder.java:73)
    at org.jboss.arquillian.container.wls.WebLogicJMXClient.verifyDeployment(WebLogicJMXClient.java:116)
    ... 96 more

Summary

In HttpContextBuilder#findMatchingDeployment local variable appDeploymentName assign "app-name#X.Y.Z" (logic naming in WLS), but method attribute deploymentName is "app-name". As a result method - null.

ihostage avatar May 27 '15 16:05 ihostage