[jboss-jira] [JBoss JIRA] (WFLY-10615) Duplicate layer 'base' in integration/elytron testsuite

Jan Kalina (JIRA) issues at jboss.org
Wed Sep 19 07:19:00 EDT 2018


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

Jan Kalina closed WFLY-10615.
-----------------------------
    Resolution: Out of Date


> 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)


More information about the jboss-jira mailing list