Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread Abhi
Thanks a ton. On Mon, Dec 1, 2008 at 6:50 PM, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote: > Abhi wrote: > >> I apologize for not being clear. The code is in the init method. >> >> > Tomcat 6.x implements Servlet API 2.5. There's appropiate > ServletContext#getContextPath() method: http://tinyurl

Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread Mikolaj Rydzewski
Abhi wrote: I apologize for not being clear. The code is in the init method. Tomcat 6.x implements Servlet API 2.5. There's appropiate ServletContext#getContextPath() method: http://tinyurl.com/5scpfz . So you can use it from Filter#init() without any problems. -- Mikolaj Rydzewski <[EMAI

Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread Abhi
I apologize for not being clear. The code is in the init method. On Mon, Dec 1, 2008 at 6:14 PM, André Warnier <[EMAIL PROTECTED]> wrote: > Abhi wrote: > >> This is an issue with the way getServletContextName() is implemented in >> Resin and Tomcat. In Tomcat this returns the display-name of the

Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread André Warnier
Abhi wrote: This is an issue with the way getServletContextName() is implemented in Resin and Tomcat. In Tomcat this returns the display-name of the application where as in Resin it returns the URL prefix for the servlet context. Once I added a display name to my web application I am getting the

Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread Abhi
This is an issue with the way getServletContextName() is implemented in Resin and Tomcat. In Tomcat this returns the display-name of the application where as in Resin it returns the URL prefix for the servlet context. Once I added a display name to my web application I am getting the context name i

Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread Abhi
Thanks Mark. I am getting the context name using the session object session.getServletContext().getServletContextName() On Mon, Dec 1, 2008 at 5:23 PM, Mark Thomas <[EMAIL PROTECTED]> wrote: > Abhi wrote: > > I am trying to migrate my application from Resin to Tomcat 6.0.18. The > > application

Re: Resin to Tomcat migration(context name is null)

2008-12-01 Thread Mark Thomas
Abhi wrote: > I am trying to migrate my application from Resin to Tomcat 6.0.18. The > application runs fine, but my application context name(the context is > created) is coming as null in Tomcat. How are you getting the context name? > > > Can someone please let me know as to what exactly shou

Resin to Tomcat migration(context name is null)

2008-12-01 Thread Abhi
I am trying to migrate my application from Resin to Tomcat 6.0.18. The application runs fine, but my application context name(the context is created) is coming as null in Tomcat. I tried using context.xml but still I am facing the same problem. In Resin the equivalent configuration in resin.conf l