[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Re: FileUpload provided from .jar (plugin)

Hi Ben,
I am afraid that I am not sure what 'running RWT standalone' means...
However I start my projects in Eclipse and I deploy them in tomcat
sometimes, so in either case there is a web-container running /Jetty in
the first case/.
I hope that I managed to export the upload widget as a plug-in but I'm
not quite sure...
Here is the manifest file generated after the Eclipse export process
proposed in the 'Overview' tab of the plugin.xml:

Thanks for your time,
Aleks

--FILE------
Manifest-Version: 1.0
Export-Package: org.eclipse.rwt.widgets,org.eclipse.rwt.widgets.intern
 al.resource;x-internal:=true,org.eclipse.rwt.widgets.internal.resourc
 e.qxcontrib;x-internal:=true,org.eclipse.rwt.widgets.internal.uploadk
 it;x-internal:=true,org.eclipse.rwt.widgets.upload.servlet
Require-Bundle: org.eclipse.rap.rwt,org.apache.commons.fileupload;bund
 le-version="1.2.0",org.apache.commons.io;bundle-version="1.3.2"
Bundle-Vendor: %Bundle-Vendor
Bundle-Version: 1.0.0.200909151557
Bundle-Name: %Bundle-Name
Bundle-ManifestVersion: 2
Import-Package: javax.servlet;version="[2.3.0,2.5.0]",javax.servlet.ht
 tp;version="[2.3.0,2.5.0]"
Bundle-SymbolicName: org.eclipse.rwt.widgets.upload;singleton:=true
Bundle-RequiredExecutionEnvironment: J2SE-1.4
--EOF-------

Benjamin Muskalla wrote:
> Hi Aleksandar,
> 
> the upload widget and it's dependencies are all OSGi-bundles (I expect
> you're not running RWT standalone).
> As with every other OSGi bundle, you should either have it in your
> workspace or export them as plugins to your target platform location.
> After that you can use it by defining a dependency from your plugin to
> the upload widget bundle.
> 
> If you're still not sure what to do, feel free to ask!
> 
> Regards,
>   Ben
> 
> Aleksandar Pavlov wrote:
>> Hello friends,
>> finally I get to know the file upload process.
>> The problem that I am stuck at is that I would like to use the upload
>> project as a jar plug-in. So I jar-ed commons-fileupload, commons-io and
>> rwt.widgets.upload. Then added them to a lib folder in the upload demo.
>> And ended up with the well known error:
>>
>> "Could not evaluate javascript response:
>> TypeError: org.eclipse.rwt.widgets.Upload is not a constructor"
>>
>> This thread[1] discuses the same problem but the solution[2] is too
>> vague for me.
>> My questions are:
>> 1) is that the expected way to use the upload project;
>> 2) what is web.xml in the context of RAP projects, as this is the first
>> time for me to stumble upon such case. Where is it defined and what are
>> its functions. An example is greatly appreciated;
>> 3) is there another solution to this problem;
>>
>> Thank you in advance,
>> Aleks
>>
>>
>> [1]
>> http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg05437.html
>>
>> [2]
>> http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg05500.html
>>
> 
>