GWT con Hibernate

277 views
Skip to first unread message

monical...@gmail.com

unread,
Mar 1, 2012, 7:15:11 AM3/1/12
to Google Web Toolkit
Hi all,
I'm programming with GWT and I would like to use Hibernate as
persistence framework .. But I have a problem when I make an action
that I perform the operation of the log (I click on the button) come
out the following errors:

00:00:11,621 [ERROR] Line 20: No source code is available for type
org.apache.commons.logging.Log; did you forget to inherit a required
module?

00:00:11,621 [ERROR] Line 20: No source code is available for type
org.apache.commons.logging.LogFactory; did you forget to inherit a
required module?

00:00:11,621 [ERROR] Line 34: No source code is available for type
org.hibernate.Session; did you forget to inherit a required module?

00:00:11,621 [ERROR] Line 37: No source code is available for type
org.hibernate.HibernateException; did you forget to inherit a required
module?

00:00:11,622 [ERROR] Line 69: No source code is available for type
org.hibernate.LockMode; did you forget to inherit a required module?

00:00:11,622 [ERROR] Line 105: No source code is available for type
org.hibernate.criterion.Criterion; did you forget to inherit a
required module?

00:00:11,622 [ERROR] Line 107: No source code is available for type
org.hibernate.Criteria; did you forget to inherit a required module?

Infine lancia UmbrellaException


However, in the configuration file path gwt.xml also specific classes
of the persistence of the type:

<source path='persistence'/>

Thank you for availability.

Frank

unread,
Mar 2, 2012, 7:35:19 AM3/2/12
to google-we...@googlegroups.com
You can't just use any Java library on the GWT client side since GWT is not Java.
Hibernate uses a lot of stuff that the GWT compiler can't translate to javascript so using hibernate in this way is not going to work.

You can however offcourse use Hibernate at the serverside.
To have a good integration you can think hard (this is what I did) and create your own solution, or you can Google for "GWT hibernate" as there is a project available some where that does this.

Op donderdag 1 maart 2012 13:15:11 UTC+1 schreef monical...@gmail.com het volgende:

Harpal Grover

unread,
Mar 2, 2012, 9:41:37 AM3/2/12
to google-we...@googlegroups.com
Try using the 'Gilead' project for GWT. This provides Hibernate + GWT integration.
 
--
Harpal Grover
President
Harpal Grover Consulting Inc


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NfmbQCv2uAIJ.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



Daniel Mauricio Patino León

unread,
Mar 2, 2012, 9:21:22 PM3/2/12
to google-we...@googlegroups.com
Why you guys, just use RequestFactory?

2012/3/2 Harpal Grover <harpal...@gmail.com>



--
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.



Reply all
Reply to author
Forward
0 new messages