[jboss-jira] [JBoss JIRA] (AS7-2456) NPE when deploying an OSGi bundle with JAX-RS annotations

Thomas Diesler (JIRA) jira-events at lists.jboss.org
Wed Feb 1 10:16:48 EST 2012


     [ https://issues.jboss.org/browse/AS7-2456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thomas Diesler updated AS7-2456:
--------------------------------

       Fix Version/s: 7.1.0.Final
                          (was: 7.1.1.Final)
    Git Pull Request: https://github.com/jbossas/jboss-as/pull/1313  (was: https://github.com/jbossas/jboss-as/pull/1313)

    
> NPE when deploying an OSGi bundle with JAX-RS annotations
> ---------------------------------------------------------
>
>                 Key: AS7-2456
>                 URL: https://issues.jboss.org/browse/AS7-2456
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: OSGi
>            Reporter: David Bosschaert
>            Assignee: Thomas Diesler
>             Fix For: 7.1.0.Final
>
>         Attachments: cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar
>
>
> While trying to get the CXF-DOSGi REST sample (http://cxf.apache.org/distributed-osgi.html) to work in AS7 I noticed that deploying an OSGi bundle with JAX-RS annotations causes an exception. 
> It seems that the AS7 JAX-RS subsystem is trying to take hold of it without success.
> Should the AS7 JAX-RS subsystem try to process the deployment if it is an OSGi bundle?
> The exception observed is:
> {code}22:03:46,219 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar"
> 22:03:46,271 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar".POST_MODULE: Failed to process phase POST_MODULE of deployment "cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar"
> 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
> 	at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
> Caused by: java.lang.NullPointerException
> 	at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:101)
> 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
> 	... 5 more
> 22:03:46,274 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar\""}}
> 22:03:46,280 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar in 6ms
> 22:03:46,282 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"cxf-dosgi-ri-samples-greeter-rest-interface-1.3-SNAPSHOT.jar\""}}}}
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list