Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1592

Warp: Wrong command bus uri for multiple context roots

XMLWordPrintable

    • Hide

      Deploy two WARs in an EAR. The WAR marked with Testable.archiveToTest should deploy under a context root other than "/".

      Show
      Deploy two WARs in an EAR. The WAR marked with Testable.archiveToTest should deploy under a context root other than "/".

      When using warp with an EAR containing multiple WARs (only one marked as testable in the deployment) that have different context roots (e.g. "/foo" and "/bar") then local part of URI for the command event bus is determined as "/" in method CommandBusOnClient.locateCommandEventBusUri. Subsequent calls to the bus fail with HTTP 404 which is unhandled in CommandBusOnClient.execute and thus lead to

      java.lang.NullPointerException
      	at org.jboss.arquillian.warp.impl.client.commandBus.CommandBusOnClient.executeRemotely(CommandBusOnClient.java:163)
      	at org.jboss.arquillian.warp.impl.client.commandBus.CommandServiceOnClient.execute(CommandServiceOnClient.java:38)
      	at org.jboss.arquillian.warp.impl.client.commandBus.RemoteSuiteLifecyclePropagation.sendAfter(RemoteSuiteLifecyclePropagation.java:61)
      ...
      
      

            Unassigned Unassigned
            tilm4nn Tilmann Kuhn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: