[jboss-jira] [JBoss JIRA] (WFCORE-3943) Embedded server operations executed using different classloaders

Yeray Borges (JIRA) issues at jboss.org
Fri Jun 22 10:38:00 EDT 2018


Yeray Borges created WFCORE-3943:
------------------------------------

             Summary: Embedded server operations executed using different classloaders
                 Key: WFCORE-3943
                 URL: https://issues.jboss.org/browse/WFCORE-3943
             Project: WildFly Core
          Issue Type: Bug
          Components: Embedded
            Reporter: Yeray Borges
            Assignee: Yeray Borges


The embedded server, when it is used by Galleon, launched via client/jboss-cli-client.jar or in the test suite, is using the application classloader. The embedded server when is launched via CLI uses the {{org.jboss.as.cli}} module classloader.

Running the embedded server using inconsistent classloaders could lead to different bugs and strange behaviors, for example, we are using different implementations of XMLStreamWriter when the embedded server is executed via CLI and via Galleon.

Specifically, this issue cannot be reproduced with the test suite, because the woodstock XMLStreamWriter is already in the classpath.

As suggested by [~brian.stansberry], we should use {{org.jboss.as.controller}} classloader to run the embedded server operations.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list