Thanks this worked. Also copying the required files in WEB-INF gave me
the sdesired security also.
Regards
Nihita
Archana Mathur wrote:
In order to access resource of other applications, you have to set
parameter crossContext = "true" in context.xml file of application w1.
Example -
getSer
Hi, maybe the problem is not were we thought it was.
If you get a NullPointerException a (1) (i mean not somewhere deeper
inside 1
but exactly at 1), that can only mean getServletContext() returned false.
This may be the case if servelt was not properly initialized.
Check your init(ServletConfig co
In order to access resource of other applications, you have to set parameter
crossContext = "true" in context.xml file of application w1.
Example -
getServletContext().getContext("/w2app") will not return null, if you set this
parameter.
Nihita Goel wrote:
Hi,
I have two applications run
or the url does not exist). This could be a
standard TC rule preventing access between webapps. I don't know for sure,
perhaps someone that knows more will chip in.
-Original Message-
From: Nihita Goel [mailto:[EMAIL PROTECTED]
Sent: Thursday 27 October 2005 13:33
To: users@tomcat.a
nt: Thursday 27 October 2005 13:33
> To: users@tomcat.apache.org
> Subject: How to share resources across two applications
>
>
> Hi,
> I have two applications running on the tomcat application server.
> w1 - with context path "/w1app"
> and w2 with context path &q
Hi,
I have two applications running on the tomcat application server.
w1 - with context path "/w1app"
and w2 with context path "/w2app"
I wish to provide links in w1 displaying pages of w2.
I have used this code in my HttpServlet class of w1
if /// some condition
Servlet Context othercontext =