Re: Help with Cross context

2004-03-31 Thread Aadi Deshpande
i believe crossContext marks that specific web application as being able 
to initiate a cross-context request, not as the recipient of a 
cross-context request.

so try marking the other web-application that you are calling out from 
as crossContext=true

-a

[EMAIL PROTECTED] wrote:

Hey gang,

I'm trying to access one web appl from another. I added crosscontext in the
server.xml file
 Host
Context docBase=/servlets-examples path=/servlets-examples
crossContext=true reloadable=true/Context
 /Host
And in java,

ServletContext sc = filterConfig.getServletContext().getContext
(/servlets-examples);
System.out.println(sc.getServletContextName());
This is giving null pointer exception. I'm held up on this for few hours. I
would appreciate if anyone could solve this.
Thanks,
Madhan Lakshmanan(Maddy)
Park Seed Inc
864-941-4232


-
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]


RE: Help with Cross context

2004-03-31 Thread Shapira, Yoav

Hi,
Someone else already corrected your understanding of the crossContext
attribute, so I won't repeat that.  I just wanted to point out that I
doubt you mean what you say here:

 Context docBase=/servlets-examples path=/servlets-examples

Is your docBase really /servlets-examples (the absolute path), or is
it servlets-examples (relative to the host's appBase directory,
webapps by default)?  If you're not sure, you probably want the
latter.

Yoav Shapira



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]



Re: Help with Cross context

2004-03-31 Thread Norris Shelton
I have the same problem.  I have both of the contexts marked as
crossContext.  I get a non-null context object, but a forward
never finds the destination page.

Tomcat 4.1.18 on W2KPro


--- Aadi Deshpande [EMAIL PROTECTED] wrote:
 i believe crossContext marks that specific web application as
 being able 
 to initiate a cross-context request, not as the recipient of a
 
 cross-context request.
 
 so try marking the other web-application that you are calling
 out from 
 as crossContext=true
 
 -a
 
 [EMAIL PROTECTED] wrote:
 
 Hey gang,
 
 I'm trying to access one web appl from another. I added
 crosscontext in the
 server.xml file
   Host
  Context docBase=/servlets-examples
 path=/servlets-examples
 crossContext=true reloadable=true/Context
   /Host
 
 And in java,
 
 ServletContext sc =
 filterConfig.getServletContext().getContext
 (/servlets-examples);
 System.out.println(sc.getServletContextName());
 
 This is giving null pointer exception. I'm held up on this
 for few hours. I
 would appreciate if anyone could solve this.
 
 Thanks,
 Madhan Lakshmanan(Maddy)
 Park Seed Inc
 864-941-4232
 
 
 

-
 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]
 


=

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]