Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Error with Gilead on GWT

Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone. I'm a new user and I would like to tell you that this is a great forum (It helped me a lot in the past)
Well, right now I'm facing a new problem: I'm working on a GWT proyect with Hibernate and everything seems to work fine until I want to send the retrieved object (retrieved from the database) to the client's side. That's were I started to work with Gilead.
I found several tutorials and followed them but I keep getting this error: java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
I thought it was a problem related to missing jars on my Class path; I already imported all the jars on the Gilead folder (that was downloaded from the Gilead's official site) but the problem persists.

Here are several things that could be important:
a) Without Gilead, the project retrieves the objects properly, because I'm able to display them on console, but at the moment I want to send them to the client's side the program fails.
b) I'm using Eclipse Galileo, and GWT 2.0

Thank you very much for your help.
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
slf4j is required by hibernate. I Don't know why they didn't include it. I had to download it and then add it to my lib folder for my app.

When you are using Gilead and displaying to the console. I would believe you are doing on the server side and not on the client side. One thing which I have done is instead of using Gilead or any other framework. I created DTO objects which mimick the Hibernate POJO objects, you copy the values from your POJO object to DTO Object which will in turn gets serialized on the client side. Hibernate Pojo objects are not serializable. I hope that helps.


- Harjit
This tiny ad is guaranteed to be gluten free.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic