• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

context conflict

 
Esteban Puertas
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can someone tell me please what happens if I have two web modules with conflicting contexts within the same application ?
web module A with a context "/"
web module B with a context "/app2"

A request like /app2/index.htm will be handled by module A or B ?

Thanks
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Esteban Puertas:
Hi,
Can someone tell me please what happens if I have two web modules with conflicting contexts within the same application ?
web module A with a context "/"
web module B with a context "/app2"

A request like /app2/index.htm will be handled by module A or B ?

Thanks


What you have described above is not conflicting , as long as the context roots of the two web applications are different there should be no problem. So, Module B should happily deal with the request.
[ July 29, 2008: Message edited by: Martijn Verburg ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think will happen? When you tested it out, were you correct?
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
web module A with a context "/"
web module B with a context "/app2"


From the above it looks like module B is a part of module A, isn't it?
So there wont be any conflict at all.

If they are different, then why dont you use /app1 and /app2.


Hope this helps
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Amit Ghorpade:
From the above it looks like module B is a part of module A, isn't it?
No. One is the root context, and one is not.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get it now, but its still confusing
with the /, I can access /app1/foo.html isn't it?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, which is why the OP has asked his question. As this is such an easy thing to test, I'm still waiting to hear what he discovered.
 
M Kilby
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't the ROOT application help itself to the 'empty' context? I.e. opening http://myserver:myport/ will map to the application installed at webapps/ROOT.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"m a k", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic