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