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]