Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » file download gives java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest exception
file download gives java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest exception [message #71953] Mon, 28 January 2008 10:51 Go to next message
Eclipse UserFriend
Hi

I am implementing a file download using a IServiceHandler
I use as servlet container a jboss AS 4.0.4.GA

My problem arises when I try to build the url to service handler
which will be set on a browser widget.

I call thi code to write the schema to the url :

HttpServletRequest request = RWT.getRequest();
url.append(request.getScheme());

on the second line the request.GetScheme(0 throws this exception :

17:42:40,281 ERROR [[equinoxbridgeservlet]] Servlet.service() for
servlet equinoxbridgeservlet threw exception
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

From what I have understand the osgi framwqork onstructs an extension
bundle wwhich exports the javax.servlet classes

I wonder what went wrong to have such an error ?

Thanks a lot,

Val
Re: file download gives java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest except [message #72010 is a reply to message #71953] Tue, 29 January 2008 03:53 Go to previous message
Eclipse UserFriend
My problem is solved, I haven't imported javax.servlet package in my plugin

Val wrote:
> Hi
>
> I am implementing a file download using a IServiceHandler
> I use as servlet container a jboss AS 4.0.4.GA
>
> My problem arises when I try to build the url to service handler which
> will be set on a browser widget.
>
> I call thi code to write the schema to the url :
>
> HttpServletRequest request = RWT.getRequest();
> url.append(request.getScheme());
>
> on the second line the request.GetScheme(0 throws this exception :
>
> 17:42:40,281 ERROR [[equinoxbridgeservlet]] Servlet.service() for
> servlet equinoxbridgeservlet threw exception
> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
>
> From what I have understand the osgi framwqork onstructs an extension
> bundle wwhich exports the javax.servlet classes
>
> I wonder what went wrong to have such an error ?
>
> Thanks a lot,
>
> Val
Previous Topic:Wizard-Buttons only english?
Next Topic:Progress for CellEditors?
Goto Forum:
  


Current Time: Sun Aug 31 00:08:12 EDT 2025

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

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

Back to the top