Thank you very for your answers,
i have read and tried what you have suggested me. What i have noticed is
that the main hibernate problem in gwt is that it cannot identify properly
the entities of the class while passing from the client side to the server
side. However, my entity class in my own application is never been accessed
by the client side. All the instances are being used in the server side.
Does this somehow affect the hibernate? Moreover, i have created an
application using the default hibernate approach and i have the following
error.
[error]
http://127.0.0.1:/isemanipulation/upload
Jan 5, 2012 11:25:18 PM org.hibernate.annotations.common.Version
INFO: HCANN01: Hibernate Commons Annotations {4.0.1.Final}
Jan 5, 2012 11:25:18 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.0.0.Final}
Jan 5, 2012 11:25:18 PM org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
Jan 5, 2012 11:25:18 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH21: Bytecode provider name : javassist
Jan 5, 2012 11:25:18 PM
org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator
initiateService
WARN: HHH000181: No appropriate connection provider encountered, assuming
application will be supplying connections
Jan 5, 2012 11:25:18 PM org.hibernate.dialect.Dialect
INFO: HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
[WARN] Error for /isemanipulation/upload
java.lang.ExceptionInInitializerError
at
com.isemanipulation.server.fileUpload.FileUploadImpl.createHoney(FileUploadImpl.java:150)
at
com.isemanipulation.server.fileUpload.FileUploadImpl.doPost(FileUploadImpl.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: org.hibernate.HibernateException: Could not instantiate dialect
class
at
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:82)
at
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:64)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1775)
at
com.isemanipulation.server.fileUpload.hibernate.SessionFactoryUtil.(SessionFactoryUtil.java:28)
... 21 more
Caused by: java.lang.ClassCastException:
org.hibernate.dialect.PostgreSQLDialect cannot be cast to
org.hibernate.dialect.Dialect
at
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:73)
... 32 more
[WARN] Nested in java.lang.ExceptionInInitializerError:
org.hibernate.HibernateException: Could not instantiate dialect class
at
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.constructDialect(DialectFactoryImpl.java:82)
at
org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:64)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:1