[
https://issues.jboss.org/browse/JBIDE-9206?page=com.atlassian.jira.plugin...
]
Libor Zoubek commented on JBIDE-9206:
-------------------------------------
Deployment works for war deployments, but fails for OSGI deployments
temporary dir gets created
This is what server says:
{noformat}
16:40:06,375 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting
deployment of "testnull"
16:40:06,375 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed
to start service jboss.deployment.unit.testnull.STRUCTURE:
org.jboss.msc.service.StartException in service jboss.deployment.unit.testnull.STRUCTURE:
Failed to process phase STRUCTURE of deployment "testnull"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_27]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to
mount deployment content
at
org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:82)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: java.io.IOException: Could not create directory for original name
'testnull' after 10 attempts
at org.jboss.vfs.TempFileProvider.createTempDir(TempFileProvider.java:103)
at org.jboss.vfs.VFS.mountZip(VFS.java:406)
at org.jboss.vfs.VFS.mountZip(VFS.java:434)
at
org.jboss.as.server.deployment.repository.impl.ServerDeploymentRepositoryImpl.mountDeploymentContent(ServerDeploymentRepositoryImpl.java:75)
at
org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:78)
... 6 more
16:40:06,377 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1)
Deployment of "testnull" was rolled back with failure message {"Failed
services" => {"jboss.deployment.unit.testnull.STRUCTURE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.testnull.STRUCTURE: Failed to process phase STRUCTURE of deployment
\"testnull\""}}
16:40:06,378 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped
deployment testnull in 0ms
16:40:06,379 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2)
{"Composite operation failed and was rolled back. Steps that failed:" =>
{"Operation step-2" => {"Failed services" =>
{"jboss.deployment.unit.testnull.STRUCTURE" =>
"org.jboss.msc.service.StartException in service
jboss.deployment.unit.testnull.STRUCTURE: Failed to process phase STRUCTURE of deployment
\"testnull\""}}}}
{noformat}
AS7 Adapter : Deployment of zipped projects fails if the temporary
folder doesn't exist
---------------------------------------------------------------------------------------
Key: JBIDE-9206
URL:
https://issues.jboss.org/browse/JBIDE-9206
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JBossAS/Servers
Affects Versions: 3.3.0.M2
Environment: JBossAS Tools 2.3.0.v20110617-0009-H467-M2
Reporter: Fred Bricon
Assignee: Rob Stryker
Fix For: 3.3.0.M3
I noticed that, in the context of JBIDE-9133, for the existing -broken- AS7 server
instances the utility projects were not zipped to the deployment area.
On the other hand, creating a new server instance fixed the issue.
So it seems the temporary folder is only created at the same time as the server instance.
It's an issue in the sense that you can not guarantee the temporary folder will exist
at deployment time (could have been deleted by the user ...).
Solution is to call tempdir.mkdirs() right before the actual deployment occurs.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira