Hi,
For getContext() to work across contexts, you need to set
crossContext="true" on your context definition.  This has negative
security implications which is why this attribute is false by default.

getRealPath of course has its own problems, namely crashing in a packed
WAR.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Umer Rashid [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 24, 2004 12:39 AM
>To: Tomcat Users List
>Subject: getContext Problem
>
>I am have used this statement on JBoss to get iamges from another War
and
>it
>works perfectly well:
>
> getServletContext().getContext("/outSideWar").getRealPath("/images").
>
>but I get error while running this on Tomcat 4.1 . Can anyone please
sort
>out my problem?
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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]

Reply via email to