aspose file tools*
The moose likes GWT and the fly likes Gwt+Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Gwt+Hibernate" Watch "Gwt+Hibernate" New topic
Forums: GWT Object Relational Mapping
Author

Gwt+Hibernate

reza aghazade
Greenhorn

Joined: Oct 01, 2013
Posts: 4
hi folks,,
i have a problem with integration of gwt & hibernate,,,
when i use RPC without Hibernate & dataObj Movement over the network..it's work(for Object Like Inreger,String),,
but when i add the hibernate to the project & want to move a myOwn Class Object over the net to the server for Saving it to the DB,,it's make a error,,
this is my Error:

ERROR: Unable to find type 'com.mySampleApplication.client.MySampleApplication'
ERROR: Hint: Previous compiler errors may have made this type unavailable
ERROR: Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly
ERROR: Failed to load module 'MySampleApplication' from user agent 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36' at localhost:49745


this is Structure of My Project,,:

https://www.dropbox.com/s/tgcpz8luyivcgxt/gwt%2Bhibernate.png

this is my gwt Configuration File:


I have Entity CLass With name Student :

i Have Student Manager:


this is implementation of My Service in the Server :


And this is my own Code for the Client Side to send the Object to the Server,,




i'm wating for your Solutions,,


[gwt+hibernate.png]

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

Welcome to the Ranch.

Which version of GWT are you using (latest being 2.5)

The RPC Impl servlet should really be defined in the web.xml

You also seem to be missing these in your application xml



Does your MySampleApplication implement EntryPoint?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
reza aghazade
Greenhorn

Joined: Oct 01, 2013
Posts: 4
hey man,,i put the

& App is Up but when i want to save a Object to the DB,,it send me an error,,,
i know this error what is about,,but i cant & idon't know how to resolve that,,
i use this code for Factory Session Class Creation:


& Error is :


this is my Project Structure,,

https://www.dropbox.com/s/tgcpz8luyivcgxt/gwt%2Bhibernate.png
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7


Thats self explanatory. You are missing the hibernate.cfg.xml. What you have instead is the hibernate.cfg.gwt.xml
reza aghazade
Greenhorn

Joined: Oct 01, 2013
Posts: 4
i change the hibernate.cfg.xml to hibernate.cfg.gwt.xml but problem is still there
the point is ,,, at now where am i & in short what is the outPut of PWD command and address the file by PWD outPut,,
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

This is turning out to be more of an Hibernate configuration issue than GWT. I will cross post this to the ORM forum for you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Gwt+Hibernate
 
Similar Threads
GWT and Hibernate - Issue with Dom4j
Update Hibernate Objects
CRUD + Hibernate + GWT
problem with simple gwt app
GWT and Struts