Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-61

Wrong URL of deployment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3.0.GA, 2.4.0.GA, 2.5.0.GA
    • Fix Version/s: None
    • Component/s: Arquillian
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      Deploy package with dots on its name, for example using shrinkwrap-resolver like that: Maven.resolver().resolve("org.ow2.jonas:jonas-web-container-base:war:5.0.1").withoutTransitivity().asSingle(WebArchive.class). The deployment will be accessible by "http://localhost:8080/jonas-web-container-base-5.0.1". But when you try to get the value of injected URL in test, it will be "http://localhost:8080/jonas-web-container-base-5.0" which is invalid.

      Show
      Deploy package with dots on its name, for example using shrinkwrap-resolver like that: Maven.resolver().resolve("org.ow2.jonas:jonas-web-container-base:war:5.0.1").withoutTransitivity().asSingle(WebArchive.class) . The deployment will be accessible by "http://localhost:8080/jonas-web-container-base-5.0.1". But when you try to get the value of injected URL in test, it will be "http://localhost:8080/jonas-web-container-base-5.0" which is invalid.
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Rename the deployed package so it doesn't contain dots in its name. For example:
      ShrinkWrap.create(WebArchive.class, "name-without-dots.war")
      .as(ZipImporter.class).importFrom(
      Maven.resolver().resolve("org.ow2.jonas:jonas-web-container-base:war:5.0.1")
      .withoutTransitivity().asSingleFile()).as(WebArchive.class);

      Show
      Rename the deployed package so it doesn't contain dots in its name. For example: ShrinkWrap.create(WebArchive.class, "name-without-dots.war") .as(ZipImporter.class).importFrom( Maven.resolver().resolve("org.ow2.jonas:jonas-web-container-base:war:5.0.1") .withoutTransitivity().asSingleFile()).as(WebArchive.class);
    • Affects:
      Release Notes
    • Release Notes Docs Status:
      Documented as Known Issue
    • Release Notes Text:
      Hide
      The @ArquillianResource URL injection injects an incorrect URL if the deployed package name contains a full stop ('.'). The only workaround currently known for this issue is to rename the deployed package so that its name does not contain any full stops.
      Show
      The @ArquillianResource URL injection injects an incorrect URL if the deployed package name contains a full stop ('.'). The only workaround currently known for this issue is to rename the deployed package so that its name does not contain any full stops.

      Description

      The deployment url, injected by:

      @ArquillianResource
      URL url;

      is wrong when the deployed package contains dots. Expected url was "http://localhost:8080/pushee-0.1.0/", on which the deployed war was accessible, but injected url was "http://localhost:8080/pushee-0.1/", which didn't exist on server.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alrubinger Andrew Rubinger
                  Reporter:
                  tkriz Tadeas Kriz
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: