Dear EG Members,
I'd like to get clarification in regards to the following. I am quoting
from EE 5.0 (see link below), section 8.3.1, paragraph 3c. This
language still exists in EE 7 and dates back to at least EE 1.3:
The Deployer must... "Assign a context root for each web module
included in the Java EE application. The context root is a relative
name in the web namespace for the application. Each web module must be
given a distinct and non-overlapping name for its context root."
This scenario I have today:
/context/something <-- context is /context
/context/something/somethingelse <-- context is /context/something
Please advise on these points:
a) The specification puts no limitations on the context root character
set (so it can include a slash). With that said, would you consider
these "overlapping" contexts as the specification defines it?
b) What does the language "web namespace for the application" really
mean? If I take "application" to mean EAR, it sounds like this
restriction is only within an EAR; yet I am puzzled why the restriction
isn't meant for the entire application server.
c) As someone else has already pointed out to me elsewhere [2], any
context always overlaps with the ROOT context.
d) For pure servlet containers (non-EE) like Tomcat, there is no
"application" (EAR); thus how does the rule apply in that case?
Please advise. Thank you.
[1]
http://download.oracle.com/otndocs/jcp/javaee-5.0-fr-eval-oth-JSpec/
[2]
http://mail-archives.apache.org/mod_mbox/tomcat-users/201603.mbox/%3C1E
00477A-4852-4D6D-ADCC-EDAEA9FADA15%40homeinbox.net%3E
Cheers,
Paul