-
1. Re: crossContext does not work on jboss4.02-rc1-tomcat-5.5.8
kblythe Mar 30, 2005 4:55 PM (in response to sdhaliwal)I too experienced this problem.
My workaround was to copy jbossweb-tomcat55.sar/context.xml to the WEB-INF directory for all webapps that need crossContext=true. -
2. Re: crossContext does not work on jboss4.02-rc1-tomcat-5.5.8
starksm64 Mar 31, 2005 9:30 PM (in response to sdhaliwal)All war specific context info needs to be set via the WEB-INF/context.xml descriptor. We do not support context info from the server.xml since war deployments are dynamic entities. Tomcat itself has deprecated the user of the Context settings from the server.xml.
-
3. Re: crossContext does not work on jboss4.02-rc1-tomcat-5.5.8
forkbomb Apr 1, 2005 8:45 AM (in response to sdhaliwal)Thanks for the workaround, that worked for me as well. It seems as though you only need the context.xml in the WEB-INF of the webapp you're getting the ServletContext from, not the one to which you're going to. For example, if I am in webapp context1 trying to forward to context2 with getServletContext().getContext("/context2").getRequestDispatcher("/myServletPath"), you only need the context.xml in the war file for context1. I found that a little surprising...
-
4. Re: crossContext does not work on jboss4.02-rc1-tomcat-5.5.8
harryco Aug 22, 2006 5:55 AM (in response to sdhaliwal)Hi ,
I'm facing this problem also.
What are the requirements to get this work. It's clearly stated in the javadoc of javax.servlet.ServletContext that calling ServletContext.getContext(String uri) must return the context of the wanted uri; (not the root context) or nul if some security policy was defined.
I've tried puting context.xml in my calling war WEB-INF/. But still wont work.
Any suggestion would be appreciated.
TIA.
Harry