-
1. Re: Jndi problem in Jboss 6.1 eap
oleg.kulikov Nov 5, 2013 8:48 AM (in response to mgie)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
-
2. Re: Jndi problem in Jboss 6.1 eap
rhauch Nov 5, 2013 8:56 AM (in response to mgie)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.
-
3. Re: Jndi problem in Jboss 6.1 eap
mgie Nov 5, 2013 9:08 AM (in response to rhauch)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?
-
4. Re: Jndi problem in Jboss 6.1 eap
oleg.kulikov Nov 5, 2013 9:32 AM (in response to mgie)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
-
5. Re: Jndi problem in Jboss 6.1 eap
oleg.kulikov Nov 5, 2013 10:14 AM (in response to mgie)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
--Oleg