Hi Stefan,
thanks for your suggestion. I thought about using Request Factory
without Gilead but I should rewrite many lines of code because the
project is very large.

I think you're right; maybe there is a circular reference inside
LightEntity :-(

Now I'm trying to creare a plain java class in witch I copy all fields
fron LightEntity object. But I've this exception:

org.apache.axis2.AxisFault: java.lang.RuntimeException:
org.apache.axis2.AxisFault: Mapping qname not fond for the package:
org.hibernate.collection
        at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:
517)
        at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:
371)
        at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:
417)
        at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:
229)
        at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:
165)
        at
it.pianetatecno.ztl.server.webservices.PassWsStub.autenticaCliente(PassWsStub.java:
2780)
        at it.Main.main(Main.java:28)

Strange: infact my object is detached from hibernate session!!

Thanks

On 24 Gen, 13:44, Stefan Ollinger <[email protected]> wrote:
> Hi Daniele,
>
> You could give JPA (via Hibernate) and GWT 2.1.1 Request Factory a try.
> With those, you dont need to have serializable Java classes like with
> GWT-RPC before.
> Request Factory uses Interfaces instead, for a) Entity/Value Proxies and
> b) Service Facades (Request Context) and works seamlessly together with
> annotated JPA classes.
> That means your domain classes dont have to extend LightEntity.
>
> The other option would be to find a way to marshal the LightEntities via
> Axis2.
>
> 23/01/2011 11:56:00 DEBUG StAXOMBuilder:333 - START_ELEMENT:
> 23/01/2011 11:56:00 DEBUG StAXOMBuilder:334 -   QName: 
> {http://gwt.pojo.gilead.sf.net/xsd}debugString
> 23/01/2011 11:56:15 DEBUG StAXOMBuilder:350 - END_ELEMENT:
> 23/01/2011 11:56:15 DEBUG StAXOMBuilder:351 -   QName: 
> {http://gwt.pojo.gilead.sf.net/xsd}debugString
> 23/01/2011 11:56:28 DEBUG StAXOMBuilder:333 - START_ELEMENT:
> 23/01/2011 11:56:28 DEBUG StAXOMBuilder:334 -   QName: 
> {http://gwt.pojo.gilead.sf.net/xsd}underlyingValue
>
> ...
>
> Looks like LightEntities contain properties which you dont want to send
> to the client (debugString, underlyingValue). Maybe there is even a
> circular reference inside where the timeout comes from.
>
> Regards,
> Stefan
>
> Am 24.01.2011 13:00, schrieb bond:
>
> > Hi Stefan,
> > I need Gilead because my application is a GWT application and ALSO
> > expose some webservice to another java standalone application.
> > So my application internally uses GWT+Gilead+Hibernate, instead my
> > application<->external application communicate with webservices Axis2.
>
> > So to avoid rewriting my domain I'd like to return a domain object but
> > in this case every domain object extends LightEntity.
>
> > Thanks!!
>
> > Daniele
>
> > On 24 Gen, 12:53, Stefan Ollinger<[email protected]>  wrote:
> >> Why do you need Gilead?
>
> >> Regards,
> >> Stefan
>
> >> Am 24.01.2011 09:15, schrieb bond:
>
> >>> Hi Y2i,
> >>> I think so. This is a problem infact. The only solution I think is
> >>> creare a pojo class with the same fields of the object I want return
> >>> but that doesn't extends LightEntity.
> >>> Any other idea?
> >>> Thanks
> >>> On 23 Gen, 18:57, Y2i<[email protected]>    wrote:
> >>>> May be the problem is related to the fact that 
> >>>> LightEntity<http://noon.gilead.free.fr/javadoc/index.html>    is
> >>>> not translatable?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to