Re: Hibernate ClassCastException in GWT hosted mode only

2011-11-21 Thread Alexander Lochschmied
Juan that was a big help. Finally it seems to work with downgraded 
Hibernate (3.6.3) and additional dependencies:
dependency
groupIdjavax.validation/groupId
artifactIdvalidation-api/artifactId
!--version1.0.0.GA/version--
version${javax-validation.version}/version
scopeprovided/scope
/dependency
dependency
groupIdjavax.validation/groupId
artifactIdvalidation-api/artifactId
!--version1.0.0.GA/version--
version${javax-validation.version}/version
classifiersources/classifier
scopeprovided/scope
/dependency
dependency
groupIdorg.hibernate.javax.persistence/groupId
artifactIdhibernate-jpa-2.0-api/artifactId
!--version1.0.0.Final/version--
version${hibernate-jpa.version}/version
/dependency
!-- jsr 303 (javax.validation) provider--
dependency
groupIdorg.apache.bval/groupId
artifactIdbval-core/artifactId
!--version0.3-incubating/version--
version${bval.version}/version
/dependency
dependency
groupIdorg.apache.bval/groupId
artifactIdbval-jsr303/artifactId
!--version0.3-incubating/version--
version${bval.version}/version
/dependency

Thank you very much Juan! And good luck to jett!

-- 
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/-/xeW9sclR98cJ.
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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread Alexander Lochschmied


It only becomes:


Caused by: java.lang.ClassCastException: org.hibernate.dialect.MySQL5Dialect 
cannot be cast to org.hibernate.dialect.Dialect


We haven playing with those JARs as there may be incompatibilities (JPA 1 
vs 2) I think. Currently we do *not *reference them 
(hibernate-jpa-2.0-api, hibernate-validator and validation-api).

Could it be a class loading issue? I see the following in log with JPA 
setup being disabled (that's when Jetty starts normally):
JspRuntimeContext  - Parent class loader is: ContextLoader@null

Thanks Juan!

-- 
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/-/cXtHXc6B_MkJ.
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: Hibernate ClassCastException in GWT hosted mode only

2011-11-18 Thread Alexander Lochschmied
Sorry for the typo; wanted to say: We have been playing ...

-- 
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/-/MDrIMjRfHUwJ.
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.