RE: Re: Unable to access servletContext?

2007-07-11 Thread Jerome Louvel
ine- > De : news [mailto:[EMAIL PROTECTED] De la part de Tammy Croteau > Envoyé : mercredi 11 juillet 2007 18:49 > À : discuss@restlet.tigris.org > Objet : Re: Re: Unable to access servletContext? > > Balas Julien JohnDeere.com> writes: > > > > > Hi, >

Re: Re: Unable to access servletContext?

2007-07-11 Thread Tammy Croteau
Balas Julien JohnDeere.com> writes: > > Hi, > I'm using the code recently send by Thierry on the list to get the servlet context > And it's working great. > > ServletContextAdapter adapter = (ServletContextAdapter) getContext(); > ServletContext servletContext = adapter.getServletContext();

RE: Re: Unable to access servletContext?

2007-07-11 Thread Balas Julien
ervlet.ServerServlet org.restlet.application com.bla.bla.rest.RestletRouter ServerServletRouter /rest/* -- Julien Balas JDAS Rennes -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Tammy Croteau Envoyé : mercredi 11 juillet 200

Re: Unable to access servletContext?

2007-07-11 Thread Tammy Croteau
Hi Thierry, Yes, my application does implement the contructor that you are describing. I can successfully cast to an ApplicationContext but not to the ServletContextAdapter. My web.xml is very simple as it only contains the restlet adapter, servlet mapping and context params needed for the S

Re: Unable to access servletContext?

2007-07-10 Thread Thierry Boileau
Hello Tammy, does your application implements the following constructor? public MyApplication(Context parentContext) { super(parentContext); } best regards, Thierry Boileau Hi, I need access to the servletContext in order to get the root of my webapplication when running restlet

Unable to access servletContext?

2007-07-10 Thread Tammy Croteau
Hi, I need access to the servletContext in order to get the root of my webapplication when running restlets inside of tomcat. The below code snippet is returning a ClassCastException with a detailMessage of "com.noelios.restlet.application.ApplicationContext" ServletContextAdapter adapter = (S