[
https://issues.jboss.org/browse/WFLY-10615?page=com.atlassian.jira.plugin...
]
Jan Kalina commented on WFLY-10615:
-----------------------------------
The unwanted module.path is added because of {{addModuleDirs}} instead of
{{setModuleDirs}} (which is probably more appropriate here) - following change is
sufficient to fix issue above:
{code}
---
a/container-managed/src/main/java/org/jboss/as/arquillian/container/managed/ManagedDeployableContainer.java
+++
b/container-managed/src/main/java/org/jboss/as/arquillian/container/managed/ManagedDeployableContainer.java
@@ -87,7 +87,7 @@ public final class ManagedDeployableContainer extends
CommonDeployableContainer<
String modulesPath = config.getModulePath();
if (modulesPath != null && !modulesPath.isEmpty()) {
-
commandBuilder.addModuleDirs(modulesPath.split(Pattern.quote(File.pathSeparator)));
+
commandBuilder.setModuleDirs(modulesPath.split(Pattern.quote(File.pathSeparator)));
}
{code}
Will have to check whether it will not break some wildfly tests when will be time to run
them all.
Duplicate layer 'base' in integration/elytron testsuite
-------------------------------------------------------
Key: WFLY-10615
URL:
https://issues.jboss.org/browse/WFLY-10615
Project: WildFly
Issue Type: Bug
Components: Test Suite
Affects Versions: 13.0.0.Final
Reporter: Jan Kalina
Assignee: Jan Kalina
Priority: Minor
Testsuite wildfly/testsuite/integration/elytron has workarounded module path problem:
{code}
MSC000001: Failed to start service jboss.patching.manager:
org.jboss.msc.service.StartException in service jboss.patching.manager:
java.lang.IllegalStateException: Duplicate layer 'base'
at
org.jboss.as.patching.installation.InstallationManagerService.start(InstallationManagerService.java:106)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Duplicate layer 'base'
at
org.jboss.as.patching.installation.LayersFactory$ProcessedLayers.addLayer(LayersFactory.java:305)
at org.jboss.as.patching.installation.LayersFactory.processRoot(LayersFactory.java:182)
at org.jboss.as.patching.installation.LayersFactory.process(LayersFactory.java:127)
at org.jboss.as.patching.installation.LayersFactory.load(LayersFactory.java:86)
at
org.jboss.as.patching.installation.InstallationManagerImpl.<init>(InstallationManagerImpl.java:47)
at
org.jboss.as.patching.installation.InstallationManager.load(InstallationManager.java:185)
at
org.jboss.as.patching.installation.InstallationManagerService.load(InstallationManagerService.java:128)
at
org.jboss.as.patching.installation.InstallationManagerService.start(InstallationManagerService.java:63)
... 8 more
{code}
This is currently workarounded using following in pom.xml:
{code}
<!-- let's override the module.path parent configuration with dummy value, to
avoid the "IllegalStateException: Duplicate layer 'base'" -->
<module.path>foo</module.path>
{code}
But this prevent using `org.jboss.as.test.module.util.TestModule`, as it try to put
created module into "foo", which fails - adding tests using custom modules
requires removing this workaround.
The reason is {{target/wildfly/modules}} is twice in {{module.path}} system property
(when in InstallationManagerService):
{code}
/home/jkalina/work/wildfly/testsuite/integration/elytron/target/wildfly/modules:
/home/jkalina/work/wildfly/testsuite/integration/elytron/target/wildfly/modules:
/home/jkalina/work/wildfly/testsuite/integration/elytron/target/modules
{code}
Note: when reading {{module.path}} from the test (regardless RunAsClient is used or not),
the value is correct:
{code}
/home/jkalina/work/wildfly/testsuite/integration/elytron/target/wildfly/modules:
/home/jkalina/work/wildfly/testsuite/integration/elytron/target/modules
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)