Re: gwt application using hibernate and postgresql

2012-01-05 Thread Stefanos Antaris
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

Re: gwt application using hibernate and postgresql

2012-01-04 Thread Rob
Hi,

Check out this post re GWT, JPA, Hibernate and HSQLDB:

-> http://uptick.com.au/content/working-gwt-jpa-hibernate-and-hsqldb

You just need to update persistence.xml for the sample to work with
PostgreSQL.

Cheers
Rob

On Jan 5, 12:42 am, Patrick Julien  wrote:
> I think you should use RequestFactory in conjunction with guice-persist.
>  It works with any JPA layer.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: gwt application using hibernate and postgresql

2012-01-04 Thread Patrick Julien
I think you should use RequestFactory in conjunction with guice-persist. 
 It works with any JPA layer.

-- 
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/-/TVLYHjXjqCQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: gwt application using hibernate and postgresql

2012-01-04 Thread Harpal Grover
Gilead is the tool you're looking for. Google it to get started. I use it
for my hibernate + postgres projects.
On Jan 4, 2012 6:41 AM, "Stefanos Antaris"  wrote:

> Hi to all,
>
> i have implemented a new gwt application without any app engine
> integration and i need to use postgresql as a database . I have managed to
> integrate postgresql but one of the prerequisites is to use hibernate. I am
> searching for about 2 days for a solution but i haven't found any and the
> jboss hibernate examples are not working. Has any a complete gwt example
> with hibernate and postgres integration? Thanks in advance.
>
> Best regards,
> Stefanos Antaris
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



gwt application using hibernate and postgresql

2012-01-04 Thread Stefanos Antaris
Hi to all,

i have implemented a new gwt application without any app engine integration
and i need to use postgresql as a database . I have managed to integrate
postgresql but one of the prerequisites is to use hibernate. I am searching
for about 2 days for a solution but i haven't found any and the jboss
hibernate examples are not working. Has any a complete gwt example with
hibernate and postgres integration? Thanks in advance.

Best regards,
Stefanos Antaris

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.