Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2783

EmbeddedContainerConfiguration does not validate correctly

    XMLWordPrintable

    Details

      Description

      I experimented a bit with arquillian and the embedded wildfly container.

      However, durinng startup I am getting this exception:

          java.lang.RuntimeException: JBAS011137: Cannot load module org.jboss.vfs from: local module loader @3a55b9b (finder: local module finder @5d211efb (roots: /home/username/dev/arquillian-tutorial/null/modules))
      

      So I took a deeper look at class
      org.jboss.as.arquillian.container.embedded.EmbeddedContainerConfiguration located in "wildfly/arquillian/embedded"

      The validate method there seems to have a validation problem:

      @Override
          public void validate() throws ConfigurationException {
              super.validate();
              Validate.configurationDirectoryExists(jbossHome, "jbossHome '" + jbossHome + "' must exist");
              Validate.configurationDirectoryExists(jbossHome, "modulePath '" + modulePath + "' must exist");
              Validate.configurationDirectoryExists(jbossHome, "bundlePath '" + bundlePath + "' must exist");
          }
      

      It checks jbossHome three times. But I assume it should check jbossHome, bundleHome and moduleHome instead.

      I am not sure if the Exception and the validation-implementation are associated with each other in any way, but the validate() method looks wrong to me

        Attachments

          Activity

            People

            Assignee:
            tommysdk Tommy Tynjä (Inactive)
            Reporter:
            mvrueden Markus von Rüden (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: