ServletContext is null [message #43543] |
Tue, 28 August 2007 09:09  |
Eclipse User |
|
|
|
Originally posted by: pfischer06.fast-mail.org
Hello,
in M5 I used the folowing in an IEntryPoint-Implementation:
HttpSession session = ContextProvider.getRequest().getSession();
ServletContext context = session.getServletContext();
context.putAttribute(...);
[...]
context.getAttribute(...);
With M6 I get some nullpointer on getServletContext(). Why is there no
ServletContext available? Where else can I store some shared objects?
Because of the access-rules I changed it to
RWT.getSessionStore().getHttpSession().getServletContext();
but this is not the reason for the error.
regards,
Peter
btw: can it be, that in M6-binaries are no source-line informations for
debuging?
|
|
|
Re: ServletContext is null [message #43696 is a reply to message #43543] |
Wed, 29 August 2007 03:19  |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
that's wired, since the servlet context is not part of the RAP application,
it's part of the underlying Servlet-Engine. Does this problem occur in
development mode with the jetty servlet container?
Ciao
Frank
"Peter Fischer" <pfischer06@fast-mail.org> schrieb im Newsbeitrag
news:fb16q3$ap5$1@build.eclipse.org...
> Hello,
>
> in M5 I used the folowing in an IEntryPoint-Implementation:
>
> HttpSession session = ContextProvider.getRequest().getSession();
> ServletContext context = session.getServletContext();
> context.putAttribute(...);
>
> [...]
>
> context.getAttribute(...);
>
>
> With M6 I get some nullpointer on getServletContext(). Why is there no
> ServletContext available? Where else can I store some shared objects?
>
> Because of the access-rules I changed it to
> RWT.getSessionStore().getHttpSession().getServletContext();
> but this is not the reason for the error.
>
> regards,
> Peter
>
> btw: can it be, that in M6-binaries are no source-line informations for
> debuging?
|
|
|
Powered by
FUDForum. Page generated in 0.05220 seconds