arquillian-container-wls
arquillian-container-wls copied to clipboard
Incorrect HttpContextBuilder#findMatchingDeployment
Hi!
My case
- I set Weblogic-Application-Version: X.Y.Z in MANIFEST.MF file.
- I deploy WebArchive
@Deployment
public static WebArchive createDeployment() {
return ShrinkWrap.createFromZipFile(WebArchive.class, new File("target/app-name.war"));
}
- 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
.