This content has been marked as final.
Show 2 replies
-
1. Re: MainDeployer#isDeployed() used with an URL
ozizka Jul 9, 2010 9:14 PM (in response to ozizka)Solved: There was yet another war causing collisions.
However, what is not clear to me, is why EAP did not show any errors every second try to deploy.
-
2. Re: MainDeployer#isDeployed() used with an URL
emuckenhuber Jul 10, 2010 5:21 AM (in response to ozizka)Ondrej Zizka wrote:
However, what is not clear to me, is why EAP did not show any errors every second try to deploy.
The deployer you are using is the legacy JMX deployer org.jboss.deployment.MainDeployer and just delegates everything to the VDF. The deploy() method should tell you why it won't fail on subsequent calls:
public void deploy(URL url) throws DeploymentException { log.info("deploy, url="+url); String deploymentName = contextMap.get(url); // if it does not exist create a new deployment if (deploymentName == null) { try { .... VFSDeployment deployment = deploymentFactory.createVFSDeployment(file); delegate.addDeployment(deployment); deploymentName = deployment.getName(); delegate.process(); contextMap.put(url, deploymentName); delegate.checkComplete(deployment); } catch(Exception e) { ... } } }