Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossOSGI 2.3.1, JBossOSGI 2.4.0, JBossOSGI 2.5.0, JBossOSGI 2.5.1, JBossOSGI 2.4.1
    • Component/s: wildfly
    • Labels:
      None

      Description

      If you try to deploy a wab fragment to already deployed wab comes exception:

      00:26:42,178 INFO  [org.jboss.osgi.framework] (MSC service thread 1-7) JBOSGI011001: Bundle installed: com.mrs.budget.portal:1.0.0
      00:26:42,180 INFO  [org.jboss.osgi.framework] (MSC service thread 1-8) JBOSGI011001: Bundle installed: com.mrs.budget.portal.resources:1.0.0
      00:26:50,267 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "com.mrs.budget.portal.resources.jar"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at org.jboss.as.webservices.deployers.WSClassVerificationProcessor.deploy(WSClassVerificationProcessor.java:75)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
      	... 5 more
       
      00:26:55,362 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0021: Registered web context: /budget
      00:26:55,374 INFO  [org.jboss.osgi.framework] (MSC service thread 1-8) JBOSGI011002: Bundle started: com.mrs.budget.portal:1.0.0
      00:26:55,376 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "com.mrs.budget.portal.resources.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"com.mrs.budget.portal.resources.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"com.mrs.budget.portal.resources.jar\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"com.mrs.budget.portal.resources.jar\"
          Caused by: java.lang.NullPointerException"}}
      00:26:55,393 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010: Deployed "com.mrs.budget.portal.resources.jar" (runtime-name : "com.mrs.budget.portal.resources.jar")
      00:26:55,394 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010: Deployed "com.mrs.budget.portal.jar" (runtime-name : "com.mrs.budget.portal.jar")
      00:26:55,397 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
      WFLYCTL0186:   Services which failed to start:      service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "com.mrs.budget.portal.resources.jar"
      
      

      Debugging showd, that the deployment of wab Fragment tryes to pass through WS verification, that needs a deployment unit module:

          @Override
          public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
              final DeploymentUnit unit = phaseContext.getDeploymentUnit();
              final JAXWSDeployment wsDeployment = unit.getAttachment(JAXWS_ENDPOINTS_KEY);
              if (wsDeployment != null) {
                  final Module module = unit.getAttachment(Attachments.MODULE);
                  final DeploymentReflectionIndex deploymentReflectionIndex = unit
                          .getAttachment(org.jboss.as.server.deployment.Attachments.REFLECTION_INDEX);
                  final ClassLoader moduleClassLoader = module.getClassLoader();
                  for (AbstractEndpoint pojoEndpoint : wsDeployment.getPojoEndpoints()) {
                      verifyEndpoint(pojoEndpoint, moduleClassLoader, deploymentReflectionIndex);
                  }
                  for (AbstractEndpoint ejbEndpoint : wsDeployment.getEjbEndpoints()) {
                      verifyEndpoint(ejbEndpoint, moduleClassLoader, deploymentReflectionIndex);
                  }
                  verifyApacheCXFModuleDependencyRequirement(unit);
              }
          }
      

      but according to ModelManager - fragment is not a module

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  arcivanov Arcadiy Ivanov
                  Reporter:
                  herr_romich Roman Smushkevich
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: