Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » About the exception of upload widget
About the exception of upload widget [message #93603] Mon, 16 June 2008 10:07 Go to next message
Terry  is currently offline Terry Friend
Messages: 19
Registered: July 2009
Junior Member
Hi

The org.eclipse.rwt.widgets.Upload component has been used in my project.
I have deployed my project in jetty-6.1.9.
When I visited this project, the following exception will be throw out:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at
net.heartsome.srp.component.ContentPageComposite$1$1.widgetS elected(ContentPageComposite.java:318)
at
org.eclipse.swt.events.SelectionEvent.dispatchToObserver(Sel ectionEvent.java:174)
at org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
at
org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:114)
at
org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.jav a:154)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:243)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :682)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2393)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 05)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
at
net.heartsome.srp.ssisrap.Application.createUI(Application.j ava:34)
at
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Error: Unresolved compilation problem:

at
org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.register(FileUploadServiceHandler.java:155)
at org.eclipse.rwt.Upload.<clinit>(Upload.java:55)
But it working properly in Eclipse.
What the cause of this exception? How can i resolve it?

Cheers,
Terry
Re: About the exception of upload widget [message #93652 is a reply to message #93603] Mon, 16 June 2008 11:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

the root cause of your exception is a 'Unresolved compilation problem'. So
it seems that your export doesn't work properly. Maybe some dependencies
used by the fileupload projects are available. To get a better picture of
the problem it often helps to use the feature export which provides more
detailed information.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Terry Zhang [mailto:terry_zhang@i-len.com]
Bereitgestellt: Montag, 16. Juni 2008 12:07
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: About the exception of upload widget
Betreff: About the exception of upload widget

Hi

The org.eclipse.rwt.widgets.Upload component has been used in my project.
I have deployed my project in jetty-6.1.9.
When I visited this project, the following exception will be throw out:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at
net.heartsome.srp.component.ContentPageComposite$1$1.widgetS elected(ContentPageComposite.java:318)
at
org.eclipse.swt.events.SelectionEvent.dispatchToObserver(Sel ectionEvent.java:174)
at
org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
at
org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:114)
at
org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.jav a:154)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:243)
at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :682)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2393)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 05)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
at
net.heartsome.srp.ssisrap.Application.createUI(Application.j ava:34)
at
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.Error: Unresolved compilation problem:

at
org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.register(FileUploadServiceHandler.java:155)
at org.eclipse.rwt.Upload.<clinit>(Upload.java:55)
But it working properly in Eclipse.
What the cause of this exception? How can i resolve it?

Cheers,
Terry
Re: About the exception of upload widget [message #93711 is a reply to message #93652] Tue, 17 June 2008 08:26 Go to previous messageGo to next message
Terry  is currently offline Terry Friend
Messages: 19
Registered: July 2009
Junior Member
Hi Frank,

Thank you for your advice.

I used the feature export, but the following error information appeared in
log file:

39. ERROR
in /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 18)
import org.apache.commons.fileupload.*;
^^^^^^^^^^^^^^^^^^
The import org.apache.commons cannot be resolved
----------
40. ERROR
in /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 19)
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
^^^^^^^^^^^^^^^^^^
The import org.apache.commons cannot be resolved
----------
41. ERROR
in /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 20)
import org.apache.commons.fileupload.servlet.ServletFileUpload;
^^^^^^^^^^^^^^^^^^
The import org.apache.commons cannot be resolved
----------
42. ERROR
in /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 109)
FileItemFactory factory = new DiskFileItemFactory();
^^^^^^^^^^^^^^^
FileItemFactory cannot be resolved to a type
----------
43. ERROR
in /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 109)
FileItemFactory factory = new DiskFileItemFactory();
^^^^^^^^^^^^^^^^^^^
DiskFileItemFactory cannot be resolved to a type
....

And then the feature export failed. I don't know what happen about it, and
how to resolve it.

Cheers,
Terry

Frank Appel wrote:

> Hi,
>
> the root cause of your exception is a 'Unresolved compilation problem'. So
> it seems that your export doesn't work properly. Maybe some dependencies
> used by the fileupload projects are available. To get a better picture of
> the problem it often helps to use the feature export which provides more
> detailed information.
>
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Terry Zhang [mailto:terry_zhang@i-len.com]
> Bereitgestellt: Montag, 16. Juni 2008 12:07
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: About the exception of upload widget
> Betreff: About the exception of upload widget
>
> Hi
>
> The org.eclipse.rwt.widgets.Upload component has been used in my project.
> I have deployed my project in jetty-6.1.9.
> When I visited this project, the following exception will be throw out:
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
> Method)
> at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at
>
net.heartsome.srp.component.ContentPageComposite$1$1.widgetS elected(ContentPageComposite.java:318)
> at
>
org.eclipse.swt.events.SelectionEvent.dispatchToObserver(Sel ectionEvent.java:174)
> at
> org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
> at
> org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:114)
> at
> org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.jav a:154)
> at
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:243)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :682)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2393)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
> at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 05)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
> at
>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
> at
> net.heartsome.srp.ssisrap.Application.createUI(Application.j ava:34)
> at
>
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
> at
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
> at
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.Error: Unresolved compilation problem:
>
> at
>
org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.register(FileUploadServiceHandler.java:155)
> at org.eclipse.rwt.Upload.<clinit>(Upload.java:55)
> But it working properly in Eclipse.
> What the cause of this exception? How can i resolve it?
>
> Cheers,
> Terry
Re: About the exception of upload widget [message #93756 is a reply to message #93711] Tue, 17 June 2008 09:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

so it seems that org.apache.commons.fileupload is not on your build path.
Have you added it to your feature.xml? Is it available in your workspace
from where you build the deployment version?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Terry Zhang [mailto:terry_zhang@i-len.com]
Bereitgestellt: Dienstag, 17. Juni 2008 10:27
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: About the exception of upload widget
Betreff: Re: About the exception of upload widget

Hi Frank,

Thank you for your advice.

I used the feature export, but the following error information appeared in
log file:

39. ERROR
in
/data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 18)
import org.apache.commons.fileupload.*;
^^^^^^^^^^^^^^^^^^
The import org.apache.commons cannot be resolved
----------
40. ERROR
in
/data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 19)
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
^^^^^^^^^^^^^^^^^^
The import org.apache.commons cannot be resolved
----------
41. ERROR
in
/data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 20)
import org.apache.commons.fileupload.servlet.ServletFileUpload;
^^^^^^^^^^^^^^^^^^
The import org.apache.commons cannot be resolved
----------
42. ERROR
in
/data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 109)
FileItemFactory factory = new DiskFileItemFactory();
^^^^^^^^^^^^^^^
FileItemFactory cannot be resolved to a type
----------
43. ERROR
in
/data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
(at line 109)
FileItemFactory factory = new DiskFileItemFactory();
^^^^^^^^^^^^^^^^^^^
DiskFileItemFactory cannot be resolved to a type
....

And then the feature export failed. I don't know what happen about it, and
how to resolve it.

Cheers,
Terry

Frank Appel wrote:

> Hi,
>
> the root cause of your exception is a 'Unresolved compilation problem'.
> So
> it seems that your export doesn't work properly. Maybe some dependencies
> used by the fileupload projects are available. To get a better picture
> of
> the problem it often helps to use the feature export which provides more
> detailed information.
>
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Terry Zhang [mailto:terry_zhang@i-len.com]
> Bereitgestellt: Montag, 16. Juni 2008 12:07
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: About the exception of upload widget
> Betreff: About the exception of upload widget
>
> Hi
>
> The org.eclipse.rwt.widgets.Upload component has been used in my
> project.
> I have deployed my project in jetty-6.1.9.
> When I visited this project, the following exception will be throw out:
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
> Method)
> at
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
> at
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
> at
> java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at
>
net.heartsome.srp.component.ContentPageComposite$1$1.widgetS elected(ContentPageComposite.java:318)
> at
>
org.eclipse.swt.events.SelectionEvent.dispatchToObserver(Sel ectionEvent.java:174)
> at
> org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
> at
> org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:114)
> at
> org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.jav a:154)
> at
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:243)
> at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :682)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2393)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
> at
> org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 05)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
> at
>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
> at
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
> at
> net.heartsome.srp.ssisrap.Application.createUI(Application.j ava:34)
> at
>
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
> at
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
> at
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.Error: Unresolved compilation problem:
>
> at
>
org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.register(FileUploadServiceHandler.java:155)
> at org.eclipse.rwt.Upload.<clinit>(Upload.java:55)
> But it working properly in Eclipse.
> What the cause of this exception? How can i resolve it?
>
> Cheers,
> Terry
Re: About the exception of upload widget [message #93891 is a reply to message #93756] Wed, 18 June 2008 02:14 Go to previous messageGo to next message
Terry  is currently offline Terry Friend
Messages: 19
Registered: July 2009
Junior Member
Hi,

I have added org.apache.commons.fileupload to my feature.xml, but errors
still exist after deployment. I am sure that it is available in my
workspace. Now I have found a way to solve this problem. I add
commons-fileupload-1.2.jar & commons-io-1.3.2.jar to classpath of
org.eclipse.rwt.widgets.upload, modify build.properties of
org.eclipse.rwt.widgets.upload as below:

output.. = targetclasses
bin.includes = META-INF/,\
plugin.xml,\
qx-upload.js,\
.,\
commons-fileupload-1.2.jar,\
commons-io-1.3.2.jar
source.. = src/

Thereafter, I don't have to add it to feature.xml. However, the
build.properties is modified. Do you have any better solution?

Cheers,
Terry

Frank Appel wrote:

> Hi,
>
> so it seems that org.apache.commons.fileupload is not on your build path.
> Have you added it to your feature.xml? Is it available in your workspace
> from where you build the deployment version?
>
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Terry Zhang [mailto:terry_zhang@i-len.com]
> Bereitgestellt: Dienstag, 17. Juni 2008 10:27
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: About the exception of upload widget
> Betreff: Re: About the exception of upload widget
>
> Hi Frank,
>
> Thank you for your advice.
>
> I used the feature export, but the following error information appeared in
> log file:
>
> 39. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 18)
> import org.apache.commons.fileupload.*;
> ^^^^^^^^^^^^^^^^^^
> The import org.apache.commons cannot be resolved
> ----------
> 40. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 19)
> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
> ^^^^^^^^^^^^^^^^^^
> The import org.apache.commons cannot be resolved
> ----------
> 41. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 20)
> import org.apache.commons.fileupload.servlet.ServletFileUpload;
> ^^^^^^^^^^^^^^^^^^
> The import org.apache.commons cannot be resolved
> ----------
> 42. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 109)
> FileItemFactory factory = new DiskFileItemFactory();
> ^^^^^^^^^^^^^^^
> FileItemFactory cannot be resolved to a type
> ----------
> 43. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 109)
> FileItemFactory factory = new DiskFileItemFactory();
> ^^^^^^^^^^^^^^^^^^^
> DiskFileItemFactory cannot be resolved to a type
> ...
>
> And then the feature export failed. I don't know what happen about it, and
> how to resolve it.
>
> Cheers,
> Terry
>
> Frank Appel wrote:
>
>> Hi,
>>
>> the root cause of your exception is a 'Unresolved compilation problem'.
>> So
>> it seems that your export doesn't work properly. Maybe some dependencies
>> used by the fileupload projects are available. To get a better picture
>> of
>> the problem it often helps to use the feature export which provides more
>> detailed information.
>>
>>
>> Ciao
>> Frank
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Terry Zhang [mailto:terry_zhang@i-len.com]
>> Bereitgestellt: Montag, 16. Juni 2008 12:07
>> Bereitgestellt in: eclipse.technology.rap
>> Unterhaltung: About the exception of upload widget
>> Betreff: About the exception of upload widget
>>
>> Hi
>>
>> The org.eclipse.rwt.widgets.Upload component has been used in my
>> project.
>> I have deployed my project in jetty-6.1.9.
>> When I visited this project, the following exception will be throw out:
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
>> Method)
>> at
>>
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>> at
>>
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
>> at
>>
>
net.heartsome.srp.component.ContentPageComposite$1$1.widgetS elected(ContentPageComposite.java:318)
>> at
>>
>
org.eclipse.swt.events.SelectionEvent.dispatchToObserver(Sel ectionEvent.java:174)
>> at
>> org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
>> at
>> org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:114)
>> at
>> org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.jav a:154)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:243)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :682)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2393)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
>> at
>> org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 05)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
>> at
>>
>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>> at
>>
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
>> at
>> net.heartsome.srp.ssisrap.Application.createUI(Application.j ava:34)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
>> at java.lang.Thread.run(Thread.java:595)
>> Caused by: java.lang.Error: Unresolved compilation problem:
>>
>> at
>>
>
org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.register(FileUploadServiceHandler.java:155)
>> at org.eclipse.rwt.Upload.<clinit>(Upload.java:55)
>> But it working properly in Eclipse.
>> What the cause of this exception? How can i resolve it?
>>
>> Cheers,
>> Terry
Re: About the exception of upload widget [message #93920 is a reply to message #93891] Wed, 18 June 2008 09:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi again,

at least we can see that it's realy a build path problem. Somehow the
dependencies seem not to be resolved in your build process, but from my
point of view I can't see what is going wrong.


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Terry Zhang [mailto:terry_zhang@i-len.com]
Bereitgestellt: Mittwoch, 18. Juni 2008 04:14
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: About the exception of upload widget
Betreff: Re: About the exception of upload widget

Hi,

I have added org.apache.commons.fileupload to my feature.xml, but errors
still exist after deployment. I am sure that it is available in my
workspace. Now I have found a way to solve this problem. I add
commons-fileupload-1.2.jar & commons-io-1.3.2.jar to classpath of
org.eclipse.rwt.widgets.upload, modify build.properties of
org.eclipse.rwt.widgets.upload as below:

output.. = targetclasses
bin.includes = META-INF/,\
plugin.xml,\
qx-upload.js,\
.,\
commons-fileupload-1.2.jar,\
commons-io-1.3.2.jar
source.. = src/

Thereafter, I don't have to add it to feature.xml. However, the
build.properties is modified. Do you have any better solution?

Cheers,
Terry

Frank Appel wrote:

> Hi,
>
> so it seems that org.apache.commons.fileupload is not on your build
> path.
> Have you added it to your feature.xml? Is it available in your workspace
> from where you build the deployment version?
>
>
> Ciao
> Frank
>
> -----Ursprüngliche Nachricht-----
> Von: Terry Zhang [mailto:terry_zhang@i-len.com]
> Bereitgestellt: Dienstag, 17. Juni 2008 10:27
> Bereitgestellt in: eclipse.technology.rap
> Unterhaltung: About the exception of upload widget
> Betreff: Re: About the exception of upload widget
>
> Hi Frank,
>
> Thank you for your advice.
>
> I used the feature export, but the following error information appeared
> in
> log file:
>
> 39. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 18)
> import org.apache.commons.fileupload.*;
> ^^^^^^^^^^^^^^^^^^
> The import org.apache.commons cannot be resolved
> ----------
> 40. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 19)
> import org.apache.commons.fileupload.disk.DiskFileItemFactory;
> ^^^^^^^^^^^^^^^^^^
> The import org.apache.commons cannot be resolved
> ----------
> 41. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 20)
> import org.apache.commons.fileupload.servlet.ServletFileUpload;
> ^^^^^^^^^^^^^^^^^^
> The import org.apache.commons cannot be resolved
> ----------
> 42. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 109)
> FileItemFactory factory = new DiskFileItemFactory();
> ^^^^^^^^^^^^^^^
> FileItemFactory cannot be resolved to a type
> ----------
> 43. ERROR
> in
> /data/terry/Studio/rap_studio/workspace/org.eclipse.rwt.widg ets.upload/src/org/eclipse/rwt/widgets/upload/servlet/FileUp loadServlet.java
> (at line 109)
> FileItemFactory factory = new DiskFileItemFactory();
> ^^^^^^^^^^^^^^^^^^^
> DiskFileItemFactory cannot be resolved to a type
> ...
>
> And then the feature export failed. I don't know what happen about it,
> and
> how to resolve it.
>
> Cheers,
> Terry
>
> Frank Appel wrote:
>
>> Hi,
>>
>> the root cause of your exception is a 'Unresolved compilation problem'.
>> So
>> it seems that your export doesn't work properly. Maybe some
>> dependencies
>> used by the fileupload projects are available. To get a better picture
>> of
>> the problem it often helps to use the feature export which provides
>> more
>> detailed information.
>>
>>
>> Ciao
>> Frank
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Terry Zhang [mailto:terry_zhang@i-len.com]
>> Bereitgestellt: Montag, 16. Juni 2008 12:07
>> Bereitgestellt in: eclipse.technology.rap
>> Unterhaltung: About the exception of upload widget
>> Betreff: About the exception of upload widget
>>
>> Hi
>>
>> The org.eclipse.rwt.widgets.Upload component has been used in my
>> project.
>> I have deployed my project in jetty-6.1.9.
>> When I visited this project, the following exception will be throw out:
>> java.lang.reflect.InvocationTargetException
>> at
>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
>> Method)
>> at
>>
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>> at
>>
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>> at
>> java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
>> at
>>
>
net.heartsome.srp.component.ContentPageComposite$1$1.widgetS elected(ContentPageComposite.java:318)
>> at
>>
>
org.eclipse.swt.events.SelectionEvent.dispatchToObserver(Sel ectionEvent.java:174)
>> at
>> org.eclipse.rwt.internal.events.Event.processEvent(Event.jav a:44)
>> at
>> org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.ja va:114)
>> at
>> org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.jav a:154)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.readAndDispa tch(RWTLifeCycle.java:243)
>> at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :682)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2393)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352)
>> at
>> org.eclipse.ui.internal.Workbench.access$5(Workbench.java:22 05)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:425)
>> at
>>
>
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>> at
>>
>
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:408)
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:157)
>> at
>> net.heartsome.srp.ssisrap.Application.createUI(Application.j ava:34)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.EntryPointManager.createU I(EntryPointManager.java:92)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWT LifeCycle.java:230)
>> at
>>
>
org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadCont roller.run(RWTLifeCycle.java:116)
>> at java.lang.Thread.run(Thread.java:595)
>> Caused by: java.lang.Error: Unresolved compilation problem:
>>
>> at
>>
>
org.eclipse.rwt.widgets.upload.servlet.FileUploadServiceHand ler.register(FileUploadServiceHandler.java:155)
>> at org.eclipse.rwt.Upload.<clinit>(Upload.java:55)
>> But it working properly in Eclipse.
>> What the cause of this exception? How can i resolve it?
>>
>> Cheers,
>> Terry
Re: About the exception of upload widget [message #95980 is a reply to message #93920] Wed, 02 July 2008 20:10 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
hi,

I also face problem with File upload widget. When i build the
rwt.widget.upload plugin with my other RAP application plugins, an Error
is thrown in the browser:
Failed to register resource 'qx-upload.js'.

Any suggestion to solve this prob


Regards
Salwa
Re: About the exception of upload widget [message #96039 is a reply to message #95980] Wed, 02 July 2008 21:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Salwa,

there should be a stack trace, either on the console or in your
server log.

Cheers,
Rüdiger

Salwa wrote:
> hi,
> I also face problem with File upload widget. When i build the
> rwt.widget.upload plugin with my other RAP application plugins, an Error
> is thrown in the browser:
> Failed to register resource 'qx-upload.js'.
>
> Any suggestion to solve this prob
>
>
> Regards Salwa
>
Re: About the exception of upload widget [message #96051 is a reply to message #96039] Wed, 02 July 2008 22:26 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi,

sorry , I just forgot to post it

==========

osgi> Jul 3, 2008 1:11:36 AM org.mortbay.http.HttpServer doStart
INFO: Version Jetty/5.1.x
Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
INFO: Started
org.eclipse.equinox.http.jetty.internal.Servlet25Handler@15a0305
Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
INFO: Started HttpContext[/,/]
Jul 3, 2008 1:11:36 AM org.mortbay.http.SocketListener start
INFO: Started SocketListener on 0.0.0.0:7070
Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
INFO: Started org.mortbay.http.HttpServer@1f3aa07
Jul 3, 2008 1:11:48 AM org.mortbay.jetty.servlet.ServletHandler handle
SEVERE: /rap?startup=default:
org.eclipse.rwt.internal.resources.ResourceRegistrationExcep tion: Failed
to register resource 'qx-upload.js'.
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:411)
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.regis ter(ResourceManagerImpl.java:224)
at
org.eclipse.ui.internal.servlet.ResourceManagerFactory$Resou rceManagerWrapper.register(ResourceManagerFactory.java:134)
at
org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerContributions(QooxdooResourcesUtil.java:211)
at
org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerResources(QooxdooResourcesUtil.java:189)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:217)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:31)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
at
org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
at
org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
at
org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
at
org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
at
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
at
org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
at
org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at
org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
at
org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.http.HttpServer.service(HttpServer.java:909)
at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
at
org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
Caused by: java.io.IOException: Resource to read not found: qx-upload.js
at
org.eclipse.rwt.internal.resources.ResourceUtil.openStream(R esourceUtil.java:228)
at
org.eclipse.rwt.internal.resources.ResourceUtil.readText(Res ourceUtil.java:113)
at
org.eclipse.rwt.internal.resources.ResourceUtil.read(Resourc eUtil.java:44)
at
org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:406)
... 40 more


Regards
Salwa
Re: About the exception of upload widget [message #96110 is a reply to message #96051] Thu, 03 July 2008 05:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lilli.stegmueller.sybit.de

I had the same exception. In my case I just forgot to include qx-upload.js
in the binary build. Maybe you have the same problem.

Lilli
Re: About the exception of upload widget [message #96122 is a reply to message #96110] Thu, 03 July 2008 06:03 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
thankx lilli, but i already include it in my binary build and i still get
the Error

Regards
Salwa
Re: About the exception of upload widget [message #96150 is a reply to message #96051] Thu, 03 July 2008 06:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Hi Salwa,

still, the stack trace tells that the resource was not found. Please
double check that it is where it is expected. Maybe unpack the
deployed bundle and see it it is really there.

Cheers,
Rüdiger


Salwa wrote:
> Hi,
> sorry , I just forgot to post it
>
> ==========
>
> osgi> Jul 3, 2008 1:11:36 AM org.mortbay.http.HttpServer doStart
> INFO: Version Jetty/5.1.x
> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
> INFO: Started
> org.eclipse.equinox.http.jetty.internal.Servlet25Handler@15a0305
> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
> INFO: Started HttpContext[/,/]
> Jul 3, 2008 1:11:36 AM org.mortbay.http.SocketListener start
> INFO: Started SocketListener on 0.0.0.0:7070
> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
> INFO: Started org.mortbay.http.HttpServer@1f3aa07
> Jul 3, 2008 1:11:48 AM org.mortbay.jetty.servlet.ServletHandler handle
> SEVERE: /rap?startup=default:
> org.eclipse.rwt.internal.resources.ResourceRegistrationExcep tion: Failed
> to register resource 'qx-upload.js'.
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:411)
>
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.regis ter(ResourceManagerImpl.java:224)
>
> at
> org.eclipse.ui.internal.servlet.ResourceManagerFactory$Resou rceManagerWrapper.register(ResourceManagerFactory.java:134)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerContributions(QooxdooResourcesUtil.java:211)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerResources(QooxdooResourcesUtil.java:189)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:217)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:31)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>
> at
> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
> at
> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
> at
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
> at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
> Caused by: java.io.IOException: Resource to read not found: qx-upload.js
> at
> org.eclipse.rwt.internal.resources.ResourceUtil.openStream(R esourceUtil.java:228)
>
> at
> org.eclipse.rwt.internal.resources.ResourceUtil.readText(Res ourceUtil.java:113)
>
> at
> org.eclipse.rwt.internal.resources.ResourceUtil.read(Resourc eUtil.java:44)
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:406)
>
> ... 40 more
>
>
> Regards Salwa
>
Re: About the exception of upload widget [message #96261 is a reply to message #96150] Thu, 03 July 2008 09:29 Go to previous messageGo to next message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi


I unpack the upload bundle , and the qx-upload.js is there ,,, The
strange thing is, the load.js is registered , but qx-upload.js No...

The export bundle hold the following files:
1) plugin.xml:it contain this info:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension point="org.eclipse.rap.ui.themeableWidgets">
<widget
class="org.eclipse.rwt.widgets.Upload"
id="org.eclipse.rwt.widgets.upload"
name="upload">
</widget>
</extension>
<extension point="org.eclipse.rap.ui.resources">
<resource
class="org.eclipse.rwt.widgets.internal.uploadkit.QxUploadResource "/>
<resource
class="org.eclipse.rwt.widgets.internal.uploadkit.UploadResource "/>
</extension>
<extension point="org.eclipse.equinox.http.registry.servlets">
<servlet
alias="/upload"

class="org.eclipse.rwt.widgets.upload.servlet.FileUploadServlet "
httpcontextId="org.eclipse.rap.httpcontext"
load-on-startup="false">
</servlet>
</extension>
</plugin>
========================
2) qx-upload.js
3) upload.jar
4) META-INF : contain this info:

Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-Vendor: %Bundle-Vendor
Bundle-SymbolicName: org.eclipse.rwt.widgets.upload;singleton:=true
Bundle-Version: 1.0.0
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
org.eclipse.rap.rwt,
org.apache.commons.fileupload;bundle-version="1.2.0",
org.apache.commons.io;bundle-version="1.3.2"
Export-Package: org.eclipse.rwt.widgets
Import-Package: javax.servlet;version="[2.3.0,2.5.0]",
javax.servlet.http;version="[2.3.0,2.5.0]"
Bundle-ClassPath: upload.jar
Bundle-ActivationPolicy: lazy
Bundle-Activator: org.eclipse.rwt.widgets.Activator


Regards
Salwa
Re: About the exception of upload widget [message #96289 is a reply to message #96261] Thu, 03 July 2008 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Salwa,

looking at the source code in CVS, the qx-upload.js is registered in
QxUploadResource.
If I export the plug-in, there is no embedded upload.jar either. Are
you maybe working with an outdated or modified version?

Cheers,
Rüdiger

Salwa wrote:
>
> Hi
>
>
> I unpack the upload bundle , and the qx-upload.js is there ,,, The
> strange thing is, the load.js is registered , but qx-upload.js No...
> The export bundle hold the following files:
> 1) plugin.xml:it contain this info:
> <?xml version="1.0" encoding="UTF-8"?>
> <?eclipse version="3.2"?>
> <plugin>
> <extension point="org.eclipse.rap.ui.themeableWidgets">
> <widget
> class="org.eclipse.rwt.widgets.Upload"
> id="org.eclipse.rwt.widgets.upload"
> name="upload">
> </widget>
> </extension>
> <extension point="org.eclipse.rap.ui.resources">
> <resource
> class="org.eclipse.rwt.widgets.internal.uploadkit.QxUploadResource "/>
> <resource
> class="org.eclipse.rwt.widgets.internal.uploadkit.UploadResource "/>
> </extension>
> <extension point="org.eclipse.equinox.http.registry.servlets">
> <servlet
> alias="/upload"
>
> class="org.eclipse.rwt.widgets.upload.servlet.FileUploadServlet "
> httpcontextId="org.eclipse.rap.httpcontext"
> load-on-startup="false">
> </servlet>
> </extension>
> </plugin>
> ========================
> 2) qx-upload.js
> 3) upload.jar
> 4) META-INF : contain this info:
>
> Bundle-ManifestVersion: 2
> Bundle-Name: %Bundle-Name
> Bundle-Vendor: %Bundle-Vendor
> Bundle-SymbolicName: org.eclipse.rwt.widgets.upload;singleton:=true
> Bundle-Version: 1.0.0
> Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
> org.eclipse.rap.rwt,
> org.apache.commons.fileupload;bundle-version="1.2.0",
> org.apache.commons.io;bundle-version="1.3.2"
> Export-Package: org.eclipse.rwt.widgets
> Import-Package: javax.servlet;version="[2.3.0,2.5.0]",
> javax.servlet.http;version="[2.3.0,2.5.0]"
> Bundle-ClassPath: upload.jar
> Bundle-ActivationPolicy: lazy
> Bundle-Activator: org.eclipse.rwt.widgets.Activator
>
>
> Regards Salwa
>
>
Re: About the exception of upload widget [message #96414 is a reply to message #96051] Thu, 03 July 2008 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tavoaqp.gmail.com

Hi
I have the same problem here, do you have any progress on this issue?

Thanks
Gustavo

Salwa escreveu:
> Hi,
> sorry , I just forgot to post it
>
> ==========
>
> osgi> Jul 3, 2008 1:11:36 AM org.mortbay.http.HttpServer doStart
> INFO: Version Jetty/5.1.x
> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
> INFO: Started
> org.eclipse.equinox.http.jetty.internal.Servlet25Handler@15a0305
> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
> INFO: Started HttpContext[/,/]
> Jul 3, 2008 1:11:36 AM org.mortbay.http.SocketListener start
> INFO: Started SocketListener on 0.0.0.0:7070
> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
> INFO: Started org.mortbay.http.HttpServer@1f3aa07
> Jul 3, 2008 1:11:48 AM org.mortbay.jetty.servlet.ServletHandler handle
> SEVERE: /rap?startup=default:
> org.eclipse.rwt.internal.resources.ResourceRegistrationExcep tion: Failed
> to register resource 'qx-upload.js'.
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:411)
>
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.regis ter(ResourceManagerImpl.java:224)
>
> at
> org.eclipse.ui.internal.servlet.ResourceManagerFactory$Resou rceManagerWrapper.register(ResourceManagerFactory.java:134)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerContributions(QooxdooResourcesUtil.java:211)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerResources(QooxdooResourcesUtil.java:189)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:217)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:31)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>
> at
> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
> at
> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> at
> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
> at
> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> at org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
> at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
> Caused by: java.io.IOException: Resource to read not found: qx-upload.js
> at
> org.eclipse.rwt.internal.resources.ResourceUtil.openStream(R esourceUtil.java:228)
>
> at
> org.eclipse.rwt.internal.resources.ResourceUtil.readText(Res ourceUtil.java:113)
>
> at
> org.eclipse.rwt.internal.resources.ResourceUtil.read(Resourc eUtil.java:44)
> at
> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:406)
>
> ... 40 more
>
>
> Regards Salwa
>
Re: About the exception of upload widget [message #96772 is a reply to message #96414] Fri, 04 July 2008 09:01 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,
maybe the problem is, that the qx-upload.js is in the root folder of the
project. Can someone who can reproduce this issue try to move it to a
subfolder (i.e. /src).

I think that the registration mechanism starts searching there - the
location for Upload.js is "org/eclipse/rwt/widgets/Upload.js" in the
UpdateResource.java.

Regards,
Stefan.

Gustavo schrieb:
> Hi
> I have the same problem here, do you have any progress on this issue?
>
> Thanks
> Gustavo
>
> Salwa escreveu:
>> Hi,
>> sorry , I just forgot to post it
>>
>> ==========
>>
>> osgi> Jul 3, 2008 1:11:36 AM org.mortbay.http.HttpServer doStart
>> INFO: Version Jetty/5.1.x
>> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
>> INFO: Started
>> org.eclipse.equinox.http.jetty.internal.Servlet25Handler@15a0305
>> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
>> INFO: Started HttpContext[/,/]
>> Jul 3, 2008 1:11:36 AM org.mortbay.http.SocketListener start
>> INFO: Started SocketListener on 0.0.0.0:7070
>> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
>> INFO: Started org.mortbay.http.HttpServer@1f3aa07
>> Jul 3, 2008 1:11:48 AM org.mortbay.jetty.servlet.ServletHandler handle
>> SEVERE: /rap?startup=default:
>> org.eclipse.rwt.internal.resources.ResourceRegistrationExcep tion:
>> Failed to register resource 'qx-upload.js'.
>> at
>> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:411)
>>
>> at
>> org.eclipse.rwt.internal.resources.ResourceManagerImpl.regis ter(ResourceManagerImpl.java:224)
>>
>> at
>> org.eclipse.ui.internal.servlet.ResourceManagerFactory$Resou rceManagerWrapper.register(ResourceManagerFactory.java:134)
>>
>> at
>> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerContributions(QooxdooResourcesUtil.java:211)
>>
>> at
>> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerResources(QooxdooResourcesUtil.java:189)
>>
>> at
>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:217)
>>
>> at
>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:31)
>>
>> at
>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
>>
>> at
>> org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
>>
>> at
>> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>>
>> at
>> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
>>
>> at
>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
>>
>> at
>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>>
>> at
>> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
>>
>> at
>> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
>> at
>> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at
>> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>>
>> at
>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>> at
>> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>>
>> at
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
>> at
>> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>>
>> at
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>> at
>> org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
>> at
>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
>> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
>> at
>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>> at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>> Caused by: java.io.IOException: Resource to read not found: qx-upload.js
>> at
>> org.eclipse.rwt.internal.resources.ResourceUtil.openStream(R esourceUtil.java:228)
>>
>> at
>> org.eclipse.rwt.internal.resources.ResourceUtil.readText(Res ourceUtil.java:113)
>>
>> at
>> org.eclipse.rwt.internal.resources.ResourceUtil.read(Resourc eUtil.java:44)
>>
>> at
>> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:406)
>>
>> ... 40 more
>>
>>
>> Regards Salwa
>>
Re: About the exception of upload widget [message #96907 is a reply to message #96772] Fri, 04 July 2008 16:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tavoaqp.gmail.com

Hi
I guess I solved this issue, is pretty simple in fact and a known solution:
- Export the org.apache.commons.upload and org.apache.commons.io bundles
as deployable plugins
- Delete the projects from your workspace (with content)
- Import the deployable plugins (File->Import->Plugin
development->Plugin and fragments)
- Ccompile your .war again

At least that worked for me, hope it helps :)

Gustavo

Stefan Roeck escreveu:
> Hi,
> maybe the problem is, that the qx-upload.js is in the root folder of the
> project. Can someone who can reproduce this issue try to move it to a
> subfolder (i.e. /src).
>
> I think that the registration mechanism starts searching there - the
> location for Upload.js is "org/eclipse/rwt/widgets/Upload.js" in the
> UpdateResource.java.
>
> Regards,
> Stefan.
>
> Gustavo schrieb:
>> Hi
>> I have the same problem here, do you have any progress on this issue?
>>
>> Thanks
>> Gustavo
>>
>> Salwa escreveu:
>>> Hi,
>>> sorry , I just forgot to post it
>>>
>>> ==========
>>>
>>> osgi> Jul 3, 2008 1:11:36 AM org.mortbay.http.HttpServer doStart
>>> INFO: Version Jetty/5.1.x
>>> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
>>> INFO: Started
>>> org.eclipse.equinox.http.jetty.internal.Servlet25Handler@15a0305
>>> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
>>> INFO: Started HttpContext[/,/]
>>> Jul 3, 2008 1:11:36 AM org.mortbay.http.SocketListener start
>>> INFO: Started SocketListener on 0.0.0.0:7070
>>> Jul 3, 2008 1:11:36 AM org.mortbay.util.Container start
>>> INFO: Started org.mortbay.http.HttpServer@1f3aa07
>>> Jul 3, 2008 1:11:48 AM org.mortbay.jetty.servlet.ServletHandler handle
>>> SEVERE: /rap?startup=default:
>>> org.eclipse.rwt.internal.resources.ResourceRegistrationExcep tion:
>>> Failed to register resource 'qx-upload.js'.
>>> at
>>> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:411)
>>>
>>> at
>>> org.eclipse.rwt.internal.resources.ResourceManagerImpl.regis ter(ResourceManagerImpl.java:224)
>>>
>>> at
>>> org.eclipse.ui.internal.servlet.ResourceManagerFactory$Resou rceManagerWrapper.register(ResourceManagerFactory.java:134)
>>>
>>> at
>>> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerContributions(QooxdooResourcesUtil.java:211)
>>>
>>> at
>>> org.eclipse.swt.internal.widgets.displaykit.QooxdooResources Util.registerResources(QooxdooResourcesUtil.java:189)
>>>
>>> at
>>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:217)
>>>
>>> at
>>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:31)
>>>
>>> at
>>> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>>>
>>> at
>>> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:66)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:60)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.BrowserSurvey.load(BrowserS urvey.java:123)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:180)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:168)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:133)
>>>
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:47 )
>>>
>>> at
>>> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:35)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:140)
>>>
>>> at
>>> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:100)
>>>
>>> at
>>> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:61)
>>> at
>>> org.eclipse.ui.internal.servlet.RequestHandler.service(Reque stHandler.java:51)
>>>
>>> at
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>>>
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>>>
>>> at
>>> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>>>
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>>> at
>>> org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:269)
>>>
>>> at
>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:428)
>>> at
>>> org.mortbay.jetty.servlet.ServletHandler.dispatch(ServletHan dler.java:677)
>>>
>>> at
>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:568)
>>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>>> at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>>> at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>>> at
>>> org.mortbay.http.HttpConnection.service(HttpConnection.java: 820)
>>> at
>>> org.mortbay.http.HttpConnection.handleNext(HttpConnection.ja va:986)
>>> at
>>> org.mortbay.http.HttpConnection.handle(HttpConnection.java:8 37)
>>> at
>>> org.mortbay.http.SocketListener.handleConnection(SocketListe ner.java:245)
>>>
>>> at
>>> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:3 57)
>>> at
>>> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:5 34)
>>> Caused by: java.io.IOException: Resource to read not found: qx-upload.js
>>> at
>>> org.eclipse.rwt.internal.resources.ResourceUtil.openStream(R esourceUtil.java:228)
>>>
>>> at
>>> org.eclipse.rwt.internal.resources.ResourceUtil.readText(Res ourceUtil.java:113)
>>>
>>> at
>>> org.eclipse.rwt.internal.resources.ResourceUtil.read(Resourc eUtil.java:44)
>>>
>>> at
>>> org.eclipse.rwt.internal.resources.ResourceManagerImpl.doReg ister(ResourceManagerImpl.java:406)
>>>
>>> ... 40 more
>>>
>>>
>>> Regards Salwa
>>>
Re: About the exception of upload widget [message #97074 is a reply to message #96907] Sat, 05 July 2008 11:52 Go to previous message
Salwa Alzhmi is currently offline Salwa AlzhmiFriend
Messages: 69
Registered: July 2009
Member
Hi,

Thankx for you help guys.
I have solved the prob :).
Actually, I was exporting the upload plug-in as a jar File, but when i
export it as a folder, it works with me.
So in your export window , there is "Option" tab , you just need to check
out "Package plugins as individual JAR archive".


Regards
Salwa
Previous Topic:Exception handling in RAP
Next Topic:Missing ControlDecoration
Goto Forum:
  


Current Time: Thu Mar 28 14:40:09 GMT 2024

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

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

Back to the top