Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ServletContext is null
ServletContext is null [message #43543] Tue, 28 August 2007 13:09 Go to next message
Eclipse UserFriend
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 07:19 Go to previous message
Eclipse UserFriend
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?
Previous Topic:How to show a MessageDialog in a web browser when an event occoured in the backround thread
Next Topic:Problem with Label.setText() and StackLayout
Goto Forum:
  


Current Time: Tue Apr 16 22:11:20 GMT 2024

Powered by FUDForum. Page generated in 1.26334 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top