[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9709) osgi deployments fails

Rob Stryker (JIRA) jira-events at lists.jboss.org
Mon Oct 3 06:16:26 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631738#comment-12631738 ] 

Rob Stryker commented on JBIDE-9709:
------------------------------------

I am not currently able to replicate this. My method is as follows:

1) Create as7 server adapter
2) Create new plugin project, (Standard, NOT equinox)
3) Select the Hello World template
4) Start the server
5) Add the osgi project to the server
6) No errors

Output is as follows: 
18:13:09,795 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) Starting deployment of "OsgiBundlenull"
18:13:09,836 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-7) JBossOSGi Framework Core - 1.0.0.CR6
18:13:09,960 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-6) Install bundle: system.bundle:0.0.0
18:13:10,222 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: javaee.api:0.0.0
18:13:10,246 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-5) Install bundle: jbosgi-webconsole:1.0.6
18:13:10,295 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: jboss-osgi-jmx:1.0.10
18:13:10,298 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-5) Install bundle: jboss-osgi-logging:1.0.0
18:13:10,322 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: jbosgi-blueprint:1.0.2
18:13:10,350 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: org.apache.felix.metatype:1.0.4
18:13:10,366 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-7) Install bundle: org.apache.felix.configadmin:1.2.8
18:13:10,409 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-8) Install bundle: org.apache.aries.jmx:0.3.0
18:13:10,413 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-8) Install bundle: org.jboss.logging:3.0.0
18:13:10,413 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-7) Install bundle: org.apache.felix.log:1.0.0
18:13:10,467 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-1) Install bundle: org.apache.aries.util:0.3.0
18:13:10,479 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-7) Install bundle: jboss-as-osgi-configadmin:7.0.0.Final-SNAPSHOT
18:13:10,577 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-5) Install bundle: jboss-osgi-xerces:2.9.1.SP7
18:13:10,625 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-6) Install bundle: org.apache.felix.eventadmin:1.2.6
18:13:10,650 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-3) Install bundle: jbosgi-webapp:1.0.2
18:13:10,701 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: jboss-osgi-http:1.0.3
18:13:10,748 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-8) Install bundle: org.apache.felix.webconsole:3.1.6.SP1
18:13:10,834 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: osgi.cmpn:4.2.0.200908310645
18:13:10,857 INFO  [org.jboss.osgi.framework.internal.StartLevelPlugin] (MSC service thread 1-8) Starting bundles for start level: 1
18:13:11,002 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-8) Bundle started: org.apache.felix.configadmin:1.2.8
18:13:11,026 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-8) Bundle started: org.apache.felix.log:1.0.0
18:13:11,053 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-8) Bundle started: jboss-osgi-logging:1.0.0
18:13:11,072 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-8) Bundle started: jboss-as-osgi-configadmin:7.0.0.Final-SNAPSHOT
18:13:11,074 INFO  [org.jboss.osgi.framework.internal.FrameworkActive] (MSC service thread 1-8) OSGi Framework started
18:13:11,079 INFO  [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-4) Install bundle: OsgiBundle:1.0.0.201110031812
18:13:11,090 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployed "OsgiBundlenull"
18:13:11,096 INFO  [stdout] (MSC service thread 1-4) Hello World!!
18:13:11,097 INFO  [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-4) Bundle started: OsgiBundle:1.0.0.201110031812


Please let me know if you can still replicate this as of late, and what exactly your method is. Thanks. 

> osgi deployments fails
> ----------------------
>
>                 Key: JBIDE-9709
>                 URL: https://issues.jboss.org/browse/JBIDE-9709
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: JBossAS/Servers
>    Affects Versions: 3.3.0.M3
>            Reporter: Vlado Pakan
>            Assignee: Rob Stryker
>             Fix For: 3.3.0.M4
>
>
> while testing JBIDE-9206:
> Deployment works for war deployments, but fails for OSGI deployments
> temporary dir gets created
> This is what server says:
> 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\""}}}}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list