[jboss-jira] [JBoss JIRA] (WFLY-2783) EmbeddedContainerConfiguration does not validate correctly

Tomaz Cerar (JIRA) issues at jboss.org
Mon Feb 10 09:13:28 EST 2014


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

Tomaz Cerar updated WFLY-2783:
------------------------------

    Component/s: Test Suite

    
> EmbeddedContainerConfiguration does not validate correctly
> ----------------------------------------------------------
>
>                 Key: WFLY-2783
>                 URL: https://issues.jboss.org/browse/WFLY-2783
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Test Suite
>    Affects Versions: 8.0.0.CR1
>            Reporter: Markus von Rüden
>            Priority: Minor
>
> I experimented a bit with arquillian and the embedded wildfly container.
> However, durinng startup I am getting this exception: 
> {code}
>     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))
> {code}
> 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:
> {code}
> @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");
>     }
> {code}
> 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 :)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list