-
45. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
manarh Feb 16, 2012 3:56 AM (in response to kwutzke)Karsten Wutzke wrote:
Hello Tomaz,
sorry but I cannot go below any version of Hibernate 3.5 because JPA compatibility issues.
When reading this http://stackoverflow.com/questions/3344389/java-lang-nosuchmethodexception-org-hibernate-validator-classvalidator-seam-web that doesn't necessarily solve the issue.
Karsten
That I can't understand, what JPA compatibility issues are you referencing? JPA1 or JPA2?. Seam2.2 is integrated with hibernate 3.2 and AFAIK 3.5.x is JPA2 first implementation release from Hiberanate.
-
46. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
manarh Feb 16, 2012 3:58 AM (in response to ctomc)Tomaz Cerar wrote:
sorry but I cannot go below any version of Hibernate 3.5 because JPA compatibility issues.
hmm, and your are positive that seam 2.2.x works with that version of hibernate without any problems? AFAIK seam2 does not even compile with hibernate 3.5+ Seam 2 is JPA1 based and hibernate 3.5 and up are all JPA2 implementations...
It might work but i would bet on it.
--
tomaz
It worked but not fully. We tested some example's functionality with Hibernate Search 3.3 on AS 6, but it was very limited.
-
47. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
manarh Feb 16, 2012 4:02 AM (in response to kwutzke)Karsten Wutzke wrote:
I'm pretty sure yes, also because my demo website at http://www.bbstats.net is such a webapp. The entity mappings pre-Hibernate 3.5 didn't work at all, so had to put Hibernate 3.5 online. Just checked it, there is
4000 -rw-r--r-- 1 root staff 4089101 2010-10-13 20:52 hibernate3.jar
on ther server, which is the JAR naming scheme of Hibernate 3.5 and 3.6.
AFAIK that is not true, hibernate-core.jar is artifact/file name schema from 3.3 releases ;-)
-
48. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
kwutzke Feb 16, 2012 7:37 AM (in response to manarh)Marek,
I seem to have more luck with getting Hibernate 4 to work with Seam 2: https://community.jboss.org/message/714893
I need(ed) as much JPA 2 compatibility as possible, also for testing purposes (see my MySQL Workbench plugin at http://www.kawoolutions.com/Projects/JPA_Export).
Karsten
-
49. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
ctomc Feb 16, 2012 8:55 AM (in response to kwutzke)Hi,
this is exacly the problem I was talking about I have created an fork of seam that was meant to be working with hibernate 4
https://github.com/ctomc/seam-revisited/tree/as7/jboss-seam-parent but it has been a while since I have touched it, so do not consider it "stable" and mentained.
you can build it from there and just use jboss-seam artifact, version is 2.5-SNAPSHOT just to be sure it does not colide with any official versions.
To make sure everything works as it should fix for jira issue that Scott's links to would be proper.
In mean time can you try with seam 2.3 as Marek suggests?
-
50. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
kwutzke Feb 17, 2012 9:11 AM (in response to ctomc)Hello Tomaz,
sorry for the late reply. I tried it with Seam 2.3.0.ALPHA and there are no problems. (I wonder why 2.3.0.SNAPHOT given item not found on repo https://repository.jboss.org/nexus/content/groups/public-jboss/ ...)
Karsten
-
51. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
daxxy Feb 17, 2012 1:29 PM (in response to kwutzke)Karsten,
Are you saying you got a Seam 2.2.2 WAR to finally run on JBoss AS 7? And it was as simple as upgrading to seam 2.3.ALPHA?
I'm having a possibly similar issue https://community.jboss.org/message/717291
I'm getting ready to give up and wait until the final release, but if you've got something working, I'd like to know exactly what did it in the end.
I tried seam 2.3.ALPHA and even 2.5-SNAPSHOT. No change.
TDR
-
52. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
ctomc Feb 17, 2012 5:10 PM (in response to daxxy)What you have is a different problem which has same couse unfortunaly...
Seam 2.x (does not matter which version) does not work completly with hibernate 4, the biggest part non funcional code is actualy seam application framework(which is really tightly bound to hibernate 3.3 impl specifics), that is the problem you are having. but app at least deployes
for both cases fix is what Scott is preparing that will allow you to properly bundle hibernate 3.3 in your application.
--
tomaz
-
53. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
kwutzke Feb 18, 2012 8:36 AM (in response to daxxy)Tanya,
yes I got Seam 2.2.2 to work on JBAS 7. See http://www.bbstats.net/
I think you should use Hibernate 4 and use the module on the server, that is you shouldn't include it in your deployment. See my pom.xml (if you're using Maven, which you should) and deployment desciptor earlier here on this thread, maybe you can derive something from that.
Karsten
-
54. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
smarlow Feb 23, 2012 2:02 PM (in response to kwutzke)Bernard,
I will look at your server.log that you attached to the AS7-3423 jira and respond here. In an earlier version of the patch, I added a property for controlling whether the PU gets deployed or not. I removed that since it didn't seem to be needed but your report makes me think otherwise.
Scott
-
55. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
smarlow Feb 23, 2012 2:09 PM (in response to smarlow)Bernard,
I agree that you couldn't start the ehcache because the PU was started twice (once by the AS7 JPA container/subsystem and again by Hibernate).
I'll look at an additional change to address this (I'm thinking of a persistence.xml property "jboss.as.jpa.managed" that defaults to true but if set to false, the PU will not be started twice).
Scott
-
56. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
smarlow Feb 23, 2012 3:47 PM (in response to smarlow)Bernard, can you try your test again with the AS7-3423_deploymentWithJavaXPersistence_4 branch and add the 'jboss.as.jpa.managed' property to your persistence.xml:
<property name="jboss.as.jpa.managed" value="false"/>
I just pushed another change for this.
Thanks for reporting this issue.
Scott
-
57. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
smarlow Feb 23, 2012 4:56 PM (in response to smarlow)Bernard,
Thanks for the test case, i'll try testing the fix with that as well.
Scott
-
58. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
smarlow Feb 23, 2012 5:00 PM (in response to smarlow)Bernard,
Your test case deployed after I added the "<property name="jboss.as.jpa.managed" value="false"/>" property.
Scott
-
59. Re: Deploying Seam 2.2.2 WAR to JBoss AS 7 + bundled Hibernate 3 gives strange exceptions (CCE + NSME)
blabno Feb 24, 2012 1:48 AM (in response to smarlow)Scott,
I confirm that the sample works. Will this make into 7.1.1.Final?
Could you point me to docs what is managed PU and why was it initialized twice?
Thank you very much for lightning fast reaction so far.