facebook

XFire and Hibernate

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #276527 Reply

    sarikan
    Participant

    I’m about to start a new project in which I intend to use XFire and HIbernate POJOs and of course MyEclipse.
    The problem is, when I use the hibernate reverse engineering feature, I get pojos which use Set type to represent relations between db tables. When I expose these pojos through a WS generated in MyEclipse, the results are not nice. I get an error, and the important part seems to be this ” Cannot create mapping for java.util.Set, unspecified component type for interface java.util.Set”.
    I guess this is due to XFire, and it can not use Set type. What is wrong in my approach. This is supposed to be a very common requirement: build web services to cary around POJOs which are generated from DB tables. What is the right way to implement this requirement in MyEclipse environment?

    Best Regards
    Seref Arikan

    #276563 Reply

    Riyad Kalla
    Member

    Seref,
    This looks exactly like this issue:
    http://www.nabble.com/Problem-with-jsr181-xml-binding-tf1869898s12049.html#a10935095

    but a resolution was never posted…

    and here:
    http://www.nabble.com/Cannot-create-mapping-for-java.util.Set-tf3659911.html#a10226670

    again with no resolution. This does look to be a XFire issue.

    #276564 Reply

    sarikan
    Participant

    It probably is. I have been struggling with Apache Axis all day. I can’t believe I have spent all my day for this, and still no result. I just want to send a pojo over Web Services. Unbelievable!

    #276568 Reply

    Riyad Kalla
    Member

    Seref,
    You are feeling very similar to how we felt when we evaluated WS support a few years ago… it’s unbelievable how much work it is but XFire helped us bridge that gap quickly. Unfortunately I don’t think there are any perfect solutions out htere.

    You could try JAX-WS, but MyEclipse doesn’t support that just yet.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: XFire and Hibernate

You must be logged in to post in the forum log in