[jboss-jira] [JBoss JIRA] (WFCORE-950) Embedded server started non-modular use first passed --jboss-home value only

Brian Stansberry (JIRA) issues at jboss.org
Thu Sep 3 08:59:00 EDT 2015


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

Brian Stansberry reassigned WFCORE-950:
---------------------------------------

    Fix Version/s: 3.0.0.Alpha1
         Assignee: Ken Wills  (was: Brian Stansberry)


[~luck3y] I've scheduled this for 3 as I suspect it may not be easily solved, although it's fine to fix it for 2 if other stuff is done.

I suspect once all the modular classloading is set up once it can't be readily discarded.

A better failure would be good though.

> Embedded server started non-modular use first passed --jboss-home value only
> ----------------------------------------------------------------------------
>
>                 Key: WFCORE-950
>                 URL: https://issues.jboss.org/browse/WFCORE-950
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 2.0.0.Beta4
>            Reporter: Petr Kremensky
>            Assignee: Ken Wills
>             Fix For: 3.0.0.Alpha1
>
>
> First value passed as --jboss-home to embed server instance (must be an existing directory) is always used for modules lookup and server standard paths setup within single CLI session.
> # Use wrong directory on first try, use correct directory on second try, embedded instance still tries to boot from wrong directory
> {noformat}$ pwd
> /home/pkremens/workspace/jboss-eap-7.0/bin/client
> $ java -jar jboss-cli-client.jar 
> [disconnected /] embed-server --jboss-home=/home/pkremens/workspace/jboss-eap-7.0/bin
> Cannot start embedded server: WFLYEMB0014: Cannot load module org.jboss.vfs from: local module loader @500e80c2 (finder: local module finder @75670fc4 (roots: /home/pkremens/workspace/jboss-eap-7.0/bin/modules)): org.jboss.vfs:main
> # server still tries to use /home/pkremens/workspace/jboss-eap-7.0/bin
> [disconnected /] embed-server --jboss-home=/home/pkremens/workspace/jboss-eap-7.0    
> Cannot start embedded server: WFLYEMB0014: Cannot load module org.jboss.vfs from: local module loader @500e80c2 (finder: local module finder @75670fc4 (roots: /home/pkremens/workspace/jboss-eap-7.0/bin/modules)): org.jboss.vfs:main
> {noformat}
> # Try to manage multiple EAP distros
> {noformat}
> /home/pkremens/workspace2
> ├── eap1
> │   └── jboss-eap-7.0
> └── eap2
>     └── jboss-eap-7.0
> $ java -jar jboss-cli-client.jar 
> [disconnected /] embed-server --jboss-home=/home/pkremens/workspace2/eap1/jboss-eap-7.0 --server-config=eap1.xml --empty-config
> [standalone at embedded /] stop-embedded-server 
> [disconnected /] embed-server --jboss-home=/home/pkremens/workspace2/eap2/jboss-eap-7.0 --server-config=eap2.xml --empty-config
> # jboss.server.*.dir point to eap1, but should point to eap2
> [standalone at embedded /] /path=*:read-attribute(name=path)
> ...
>             "address" => [("path" => "jboss.server.log.dir")],
>             "result" => "/home/pkremens/workspace2/eap1/jboss-eap-7.0
>             "address" => [("path" => "jboss.server.data.dir")],
>             "result" => "/home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone/data"
>             "address" => [("path" => "jboss.server.base.dir")],
>             "result" => "/home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone"
>             "address" => [("path" => "jboss.server.config.dir")],
>             "result" => "/home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone/configuration"
>             "address" => [("path" => "jboss.server.temp.dir")],
>             "result" => "/home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone/tmp"
>             "address" => [("path" => "jboss.controller.temp.dir")],
>             "result" => "/home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone/tmp"
>             "address" => [("path" => "jboss.home.dir")],
>             "result" => "/home/pkremens/workspace2/eap2/jboss-eap-7.0"
> ...
> # Both configuration files were created in eap1 directory
> $ find /home/pkremens/workspace2 | grep eap[12].xml
> /home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone/configuration/eap2.xml
> /home/pkremens/workspace2/eap1/jboss-eap-7.0/standalone/configuration/eap1.xml
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list