users@glassfish.java.net

Re: Get application context root through JNDI

From: <forums_at_java.net>
Date: Mon, 3 Dec 2012 05:17:29 -0600 (CST)

Yes, I saw that mentioned somewhere. I already gave it a try, but without
result. Because you also bring it up, and because you give a slightly
different syntax as stated in the spec, I decided to look at it once more. I
tried all syntaxes I can think of: "java:global!ROOT", "java:global/!ROOT",
"java:global//!ROOT", "java:global/ROOT", "java:global//ROOT",
"java:global/$app!ROOT", "java:global/$app/!ROOT", "java:global//$app/!ROOT",
"java:global/$app/ROOT", "java:global//$app/ROOT",
"java:global/$app/$app!ROOT", "java:global//$app/$app!ROOT",
"java:global/$app/$app/!ROOT", "java:global//$app/$app/!ROOT",
"java:global/$app/$app/ROOT", "java:global//$app/$app/ROOT", "java:app!ROOT",
"java:app/!ROOT", "java:app//!ROOT", "java:app/ROOT", "java:app//ROOT",
"java:app/$app!ROOT", "java:app//$app!ROOT", "java:app/$app/!ROOT",
"java:app//$app/!ROOT", "java:app/$app/ROOT", "java:app//$app/ROOT",("$app"
gets substituted with InitialContext.doLookup("java:app/AppName")) They all
result in a lookup failure. I also tried "Root" and "root" instead of "ROOT",
and even "CONTEXT_ROOT", "CONTEXT-ROOT", "CONTEXTROOT", in different
uppercase/lowercase variations. Nothing seems to work. Since this is clearly
described in the spec, perhaps it should be reported to the Glassfish team.
Any idea how to do that? Cheers and thanks, sohan

--
[Message sent by forum member 'sohan']
View Post: http://forums.java.net/node/892853