Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Gyrex » jersey multipart support?
jersey multipart support? [message #872639] Wed, 16 May 2012 14:05 Go to next message
Jürgen Albert is currently offline Jürgen AlbertFriend
Messages: 1
Registered: May 2012
Location: Jena
Junior Member

Hi,

I'm trying to realise a file upload via REST with gyrex. To do so I want to use the jersey multipart implementation, but it does not seem to be supported by now. I'm currently using the targetplattform provided eclipsecon tutorial.

Unfortunately I was unable to find a updatesite with the missing jersey components (ageto github does only provide the core as far as I could see). My try to deploy the jersey multipart jar and mimepull as osgi bundles had also no effect. I assume there is some wrapping necessary to register the MultipartReader for the Multipart entity.

I'm new to gyrex and jersey, so it might be possible that I miss something, so does anybody have an idea or advise for me?

Thanks
Re: jersey multipart support? [message #874640 is a reply to message #872639] Mon, 21 May 2012 09:53 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Hi,

Am 16.05.2012 16:05, schrieb Jürgen Albert:
> To do so I want to use the jersey multipart implementation, but it
> does not seem to be supported by now. I'm currently using the
> targetplattform provided eclipsecon tutorial.

I just checked and the target platform does not include the multipart
support. It includes the Jersey "bundle" which contains all other Jersey
jars but non of the jars from the "contribs" package. The advantage of
the "bundle" is that it doesn't need a 'DynamicImport-Package: *'.

> Unfortunately I was unable to find a updatesite with the missing
> jersey components (ageto github does only provide the core as far as
> I could see).My try to deploy the jersey multipart jar and mimepull
> as osgi bundles had also no effect. I assume there is some wrapping
> necessary to register the MultipartReader for the Multipart entity.

It may work if you replace the Jersey bundle with the individual jars
from the Jersey project. They are already OSGi bundles. However, they
add some activator logic to scan OSGi bundles for possible
META-INF/services contributions which adds imports dynamically and
creates interesting runtime wirings.

I went with the "all-in-one" bundle initially because it makes things
easier without the dynamic imports. As an alternative you can convert
the multi-part bundle into a fragment to the "all-in-one" bundle. This
should make the content of the META-INF/services visible to the
"all-in-one" bundle for loading. I prepared bundles and uploaded
binaries to new GitHub repos.

https://github.com/AGETO/osgi-bundles-jersey/downloads
https://github.com/AGETO/osgi-bundles-jersey-mulitpart/downloads
https://github.com/AGETO/osgi-bundles-mimepull/downloads

Can you try to replace the Jersey bundles in the local target platform
with the 6 bundles from the downloads above? Let me know if it works.
Looks like a nice addition.

-Gunnar

--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
Re: jersey multipart support? [message #933671 is a reply to message #874640] Fri, 05 October 2012 08:21 Go to previous messageGo to next message
Tomas Tamošaitis is currently offline Tomas TamošaitisFriend
Messages: 2
Registered: October 2012
Junior Member
Hi Gunnar
Is this issue fixed in latest Gyrex build (1.2)
Becaus i'm still facing this issue.
Re: jersey multipart support? [message #934043 is a reply to message #933671] Fri, 05 October 2012 15:45 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Am 05.10.2012 01:21, schrieb Tomas Tamošaitis:> Is this issue fixed in
latest Gyrex build (1.2)
> Becaus i'm still facing this issue.

The latest Gyrex 1.2 builds include JAX-RS and Jersey. However, that's
still the all-in-one bundle.

Did you try the steps I suggested in a previous reply, i.e. replace the
all-in-one bundle with individual bundles?

-Gunnar

--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
Previous Topic:Clustering
Next Topic:Users of IRuntimeContext.getInjector().inject(Object)
Goto Forum:
  


Current Time: Tue Mar 19 02:37:28 GMT 2024

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

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

Back to the top