Hello Dan, thanks for all the time spent with my questions. The problem here is that I don't have any Collection exposed with this service. It only has a method that returns a Pojo class (which by itself does not have any Collections).
I know there's an answer for everything, but some days ago I was reporting a strange behaviour of XFire where it was kinda drilling thorough the entire object graph. I don't see a reason why it would complain about Hibernate Session Factory...

any ideas? If any code is needed I could post it here

On 4/18/06, Dan Diephouse <[EMAIL PROTECTED] > wrote:
Vinicius Carvalho wrote:

> Hello there! I'm exposing a system that has Hibernate as ORM solution.
> When exposing my services I get an error from the client due CGLIB
> enhancements, I know this is what really happens since the class
> signature is gonna be different from the one generated with the WSDL.
> My question is: Anyone who uses it, what's your solution? Initialize
> the whole Pojo? I tried opensession in view pattern but I get this error:
>
>org.codehaus.xfire.XFireRuntimeException: Couldn't create type for property definedFilterNames on interface org.hibernate.SessionFactory: Cannot create mapping for java.util.Set, unspecified component type for interface
>java.util.Set
>
>Any ideas?
>
>Best Regards
>
>
You need to tell xfire what type is contained in the Set. There are two
ways to do this. Either use mapping files (see the Aegis Binding section
of the manual) or use Java 5 generics like Set<String>.
Cheers,

- Dan

--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com



Reply via email to