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,
>
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();
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
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
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
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
6 matches
Mail list logo