Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Gwt+Hibernate

 
reza aghazade
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for gwt+hibernate.png]
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
reza aghazade
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thats self explanatory. You are missing the hibernate.cfg.xml. What you have instead is the hibernate.cfg.gwt.xml
 
reza aghazade
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic