[jboss-jira] [JBoss JIRA] (WFLY-13568) SSLEJBRemoteClientTestCase shouldn't deal with dirs out of the codebase or java.io.tmpdir
Cheng Fang (Jira)
issues at jboss.org
Sun Jun 7 16:32:00 EDT 2020
[ https://issues.redhat.com/browse/WFLY-13568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14142716#comment-14142716 ]
Cheng Fang commented on WFLY-13568:
-----------------------------------
this test alway passes for me locally.
{code}
testsuite/integration/manualmode >
mvn clean test -Dtest=org.jboss.as.test.manualmode.ejb.ssl.SSLEJBRemoteClientTestCase
{code}
[The test|https://github.com/wildfly/wildfly/blob/master/testsuite/integration/manualmode/src/test/java/org/jboss/as/test/manualmode/ejb/ssl/SSLRealmSetupTool.java#L129] uses the code source of the test class (usually resolves to {{target/test-classes/}}) as the parent dir for the temp keystore files. In my testing, the keystore files ({{target/test-classes/ejb3/ssl/jbossServer.keystore}}) are always under the local test target directory.
The fact that it complained about /Library/Java/Extensions/engines/, seems to suggest you have some libs under there which might have affected classloading. This directory in my machine is empty.
> SSLEJBRemoteClientTestCase shouldn't deal with dirs out of the codebase or java.io.tmpdir
> -----------------------------------------------------------------------------------------
>
> Key: WFLY-13568
> URL: https://issues.redhat.com/browse/WFLY-13568
> Project: WildFly
> Issue Type: Task
> Components: EJB, Security
> Reporter: Brian Stansberry
> Assignee: Cheng Fang
> Priority: Major
>
> When I run org.jboss.as.test.manualmode.ejb.ssl.SSLEJBRemoteClientTestCase locally it fails. Looking in the logs I see:
> {code}
> [31m10:02:07,579 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service org.wildfly.core.management.security.realm.SSLRealm.key-manager: org.jboss.msc.service.StartException in service org.wildfly.core.management.security.realm.SSLRealm.key-manager: Failed to start service
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1731)
> at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
> at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
> at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
> at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1363)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.IllegalStateException: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at /Library/Java/Extensions/engines/ejb3/ssl/jbossServer.keystore
> at org.jboss.as.domain.management.security.FileKeyManagerService.loadKeyStore(FileKeyManagerService.java:179)
> at org.jboss.as.domain.management.security.AbstractKeyManagerService.createKeyManagers(AbstractKeyManagerService.java:128)
> at org.jboss.as.domain.management.security.AbstractKeyManagerService.start(AbstractKeyManagerService.java:93)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
> ... 6 more
> Caused by: org.jboss.msc.service.StartException in anonymous service: WFLYDM0086: The KeyStore can not be found at /Library/Java/Extensions/engines/ejb3/ssl/jbossServer.keystore
> at org.jboss.as.domain.management.security.FileKeystore.load(FileKeystore.java:114)
> at org.jboss.as.domain.management.security.FileKeyManagerService.loadKeyStore(FileKeyManagerService.java:175)
> ... 10 more
> {code}
> I haven't analyzed what's going on but I don't think a test should be expected to find content created by the test in /Library/Java/Extensions/engines/.
> I don't know how long this has been an issue but I suspect it's not at all recent. I generally use ci.wildfly.org for running testsuite/integration/manualmode or I'm doing something focused and don't pay deep attention to issues not related to that focus.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list