Sometime, when an addon contains a new deployer implementation and a deployable application, the deployable application could not be deployed.
Sometime, when an addon contains a new deployer implementation and a deployable application (for example a war), the deployable application could not be deployed.
This is because in the addon system we start JOnAS service after the deployment of all deployables.
As a result a new deployer like the war deployer'll be register after the deployment operation of the war.
We could :
- simply use configadmin deployable for services configuration instead of using the metada file to declare service properties.
- the addon deployer could use the configadmin deployer to deploy all service properties of the metadata file
- we could add a second deployment operation for deployable with no associated deployer.
{noformat} 2012-12-16 19:53:42,030 : AddonDeployerImpl.doDeploy : Deploying 'AddonDeployableImpl[archive=/home/scapers/work/projects/FOSS/ow2/jonas/assemblies/profiles/addons/minimal/target/micro-jonas-5.3.0-M8-SNAPSHOT-bin.dir/micro-jonas-5.3.0-M8-SNAPSHOT/work/addons/tomcat6-with-war]' 2012-12-16 19:53:42,437 : AddonDeployerImpl.deploySortableDeployables : Could not find if the deployable sample.war is already deployed org.ow2.util.ee.deploy.api.deployer.UnsupportedDeployerException: No deployer was found for the deployable 'WARDeployableImpl[archive=/home/scapers/work/projects/FOSS/ow2/jonas/assemblies/profiles/addons/minimal/target/micro-jonas-5.3.0-M8-SNAPSHOT-bin.dir/micro-jonas-5.3.0-M8-SNAPSHOT/work/addons/tomcat6-with-war/deploy/sample.war]'. at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.findDeployerForDeployable(DeployerManager.java:127) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.isDeployed(DeployerManager.java:340) at org.ow2.jonas.addon.deploy.impl.deployer.AddonDeployerImpl.deploySortableDeployables(AddonDeployerImpl.java:890) at org.ow2.jonas.addon.deploy.impl.deployer.AddonDeployerImpl.deploy(AddonDeployerImpl.java:626) at org.ow2.jonas.addon.deploy.impl.deployer.AddonDeployerImpl.doDeploy(AddonDeployerImpl.java:457) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:94) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer$1.execute(AbsDeployer.java:92) at org.ow2.util.execution.helper.RunnableHelper.execute(RunnableHelper.java:77) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:92) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployerList.deploy(AbsDeployerList.java:52) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.doDeploy(AbsDeployer.java:234) at org.ow2.util.ee.deploy.impl.deployer.AbsDeployer.deploy(AbsDeployer.java:214) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deployOneTypeList(DeployerManager.java:240) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.doDeploymentOperation(DeployerManager.java:207) at org.ow2.util.ee.deploy.impl.deployer.DeployerManager.deploy(DeployerManager.java:221) at org.ow2.jonas.deployablemonitor.DeployableMonitor.detectNewArchives(DeployableMonitor.java:511) at org.ow2.jonas.deployablemonitor.DeployableMonitor.checkNewArchives(DeployableMonitor.java:345) at org.ow2.jonas.deployablemonitor.DeployableMonitor.run(DeployableMonitor.java:235) 2012-12-16 19:53:42,529 : AddonDeployerImpl.doDeploy : 'tomcat6-with-war' addon is now deployed {noformat}