I did, but I got the error at Tomcat startup. I had written: <Context path="/A" docBase="A" debug="0" reloadable="true" crossContext="true"/>
in server.xml. Is there no way to access context of another servlet from root servlet/war? Regards, umer ----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, April 16, 2004 5:55 PM Subject: RE: getContext() returns null Hi, Did you try setting crossContext to true for the A context as well? ;) Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Umer Rashid [mailto:[EMAIL PROTECTED] >Sent: Friday, April 16, 2004 6:49 AM >To: Tomcat Users List >Subject: getContext() returns null > >Hello, > >I was able to acess A.war from B.war, but after I set B.war as ROOT (by >setting Context path="" in server.xml), >getServletContext().getContext("/A") >in B.war return null, even though I have set crossContext ="true" in >Context tag of B. Can anyone tell me how this problem can be fixed? > >Regards, umer > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]