Web explorer uses proprietary mechanism for the repository accessing. Initialy it tries to get a repo via its name "ghs-repository" and that's why you can log in
I'm not sure what's going on, but if Oleg's suggestion doesn't work, manually set the JNDI name via the "jndi-name" XML attribute on the "repository" XML element in the standalone.xml file.
Oleg, we probably need to check that the web explorer does not create new repositories when provided with a name that doesn't match a running repository.
So if web-explorer creates a new repository when it doesnt find one, why does jcr/ghs-repository let me log-in but jcr/xyz doesnt?
Marius, "ghs-repository" is defined but probably not started and web-explorer starts it using definition(probably, let me check it carefully) while jcr/xyz is not defined so nothing happen
So I did check. Web explorer is not creating new repositories but jndi defaults to "jcr/ghs-repository" (without java: prefix) and repository is available under this name. Web explorer picks it up using this name. To be able to bind repository to java: namespace you need to specify jndi name explicit
<repository name="ghs-repository" cache-name="ghs-repository" cache-container="modeshape" jndi-name="java:/jcr/ghs-repository">
After that it will be visible by invoking /subsystem=naming:jndi-view