Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP Upload Widget Problem
RAP Upload Widget Problem [message #553048] Mon, 16 August 2010 08:57 Go to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hello i am having a problem with the upload widget from the sandbox. actually it worked perfect till i decided to reinstall eclipse and install the 1.3 release version oft the RAP runtime. since then im getting the following exception when i call update.performupdate() Method:
2010-08-16 10:48:42.526:WARN::ERROR:  Error for /webapp
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
	at org.apache.commons.fileupload.servlet.ServletFileUpload.isMultipartContent(ServletFileUpload.java:68)
	at org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHandler.service(FileUploadServiceHandler.java:74)
	at org.eclipse.rwt.internal.service.ServiceManager$HandlerDispatcher.service(ServiceManager.java:96)
	at org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelegate.java:60)
	at org.eclipse.rap.ui.internal.servlet.RequestHandler.service(RequestHandler.java:51)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:126)
	at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:318)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
	at org.mortbay.jetty.Server.handle(Server.java:326)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:939)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

i the aplication, i choose the file that should be uploaded. i have a button listener that calls performUpload() method. but when i click on it the exception is thrown. as the following exception later on, im getting the nullpointer excpetion when i try to get the input stream of the uploaded file. any idea? perhaps some missing plugins or jars, or did sth changed in the upload widget plugin. i have the latest cvs version installed and also the latest org.apache.commons.fileupload version.

best regards, edin
Re: RAP Upload Widget Problem [message #553059 is a reply to message #553048] Mon, 16 August 2010 09:30 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi edin,

do you have these bundles in your target platform (see upload widget
readme.txt):
org.apache.commons.fileupload (v1_2)
org.apache.commons.io (v_1_3_2)

HTH,
Ivan


On 08/16/2010 11:57 AM, ededagic wrote:
> Hello i am having a problem with the upload widget from the sandbox.
> actually it worked perfect till i decided to reinstall eclipse and
> install the 1.3 release version oft the RAP runtime. since then im
> getting the following exception when i call update.performupdate()
> Method:
>
> 2010-08-16 10:48:42.526:WARN::ERROR: Error for /webapp
> java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
> at
> org.apache.commons.fileupload.servlet.ServletFileUpload.isMu ltipartContent(ServletFileUpload.java:68)
> at
> org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.service(FileUploadServiceHandler.java:74)
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:96)
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:60)
> at
> org.eclipse.rap.ui.internal.servlet.RequestHandler.service(R equestHandler.java:51)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.service(ServletRegistration.java:61)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:126)
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:60)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:511)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:390)
> at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:182)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:326)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:542)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:939)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 218)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:582)
>
> i the aplication, i choose the file that should be uploaded. i have a
> button listener that calls performUpload() method. but when i click on
> it the exception is thrown. as the following exception later on, im
> getting the nullpointer excpetion when i try to get the input stream
> of the uploaded file. any idea? perhaps some missing plugins or jars,
> or did sth changed in the upload widget plugin. i have the latest cvs
> version installed and also the latest org.apache.commons.fileupload
> version.
>
> best regards, edin
Re: RAP Upload Widget Problem [message #553068 is a reply to message #553048] Mon, 16 August 2010 10:12 Go to previous messageGo to next message
Edin Edin is currently offline Edin EdinFriend
Messages: 101
Registered: January 2010
Senior Member
Hi Ivan,

thx, now its working. i had that plugins, but io bundle was in the version 1.4. i deleted them and used your psf file and it seems to work again.
thx!!

greetings edin
Re: RAP Upload Widget Problem [message #559369 is a reply to message #553048] Thu, 16 September 2010 13:35 Go to previous message
Ravi Kumar S is currently offline Ravi Kumar SFriend
Messages: 12
Registered: July 2009
Junior Member
Hi,
Is there any chance of making this work in an exported war file scenario and deployed into tomcat.

I could however run it successfully withing eclipse, but could not get it to work in an war file case.

-Ravi
Previous Topic:Workbench UI from 3.5
Next Topic:WAR deployment issue
Goto Forum:
  


Current Time: Mon Feb 26 02:31:04 GMT 2024

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

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

Back to the top