tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Umer Rashid" <u...@highersummit.com>
Subject Re: getContext() returns null
Date Mon, 19 Apr 2004 06:22:11 GMT
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" <Yoav.Shapira@mpi.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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:umer@highersummit.com]
>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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message