Archetype: RichFaces 4.1.0.Final + Spring 3.1.0.RELEASE + Hibernate 3.3.0

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.1.0.RELEASE Framework Servlet-API 2.5 JSF 2.0 (mojarra 2.1.2) RichFaces 4.1.0.Final ploinFaces 1.6 ploinMailFactory 1.3.1 Hibernate 3.3.0 TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is annotation-driven. It is deployed on the PLOIN Repository-Server http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “Archetype: RichFaces 4.1.0.Final + Spring 3.1.0.RELEASE + Hibernate 3.3.0”

Archetype: RichFaces 4.0.0.M1 + Spring 3.0.5.RELEASE + Hibernate 3.3.0

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.0.5.RELEASE Framework Servlet-API 2.5 JSF 2.0 (mojarra 2.1.2) RichFaces 4.0.0.M1 ploinFaces 1.6 ploinMailFactory 1.3.1 Hibernate 3.3.0 TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is annotation-driven. It is deployed on the PLOIN Repository-Serve http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “Archetype: RichFaces 4.0.0.M1 + Spring 3.0.5.RELEASE + Hibernate 3.3.0”

SqlServer 2008 with Hibernate 3.6.4

The current stable version if Hibernate is 3.6.4.FINAL. In this version the Dialect for the SqlServer 2008 from Microsoft looks like this: A litle bit short. If you have some problems with this Dialect you should write your own Dialect. This class here is a customized SqlServerDialect from the Hibernate 4 Project. For me itContinue reading “SqlServer 2008 with Hibernate 3.6.4”

Customized MySql5Dialect for Hibernate

By default the MySqlDialect who is coming with Hibernate does MySQL not force to UTF. And by default all binary columns are mapped to “tinyblob”. That’s why I wrote my own Dialect. It is very easy to do. Just a fiew lines of code. Here is my own MySql5Dialect. You can use by adding thisContinue reading “Customized MySql5Dialect for Hibernate”

Could not initialize class JavaReflection

By migrating to Hibernate 3.6.4.FINAL and Spring 3.0.5.RELEASE I got this Exception: Could not initialize class org.hibernate.annotations.common.reflection.java.JavaReflection I could solve the problem by adding this to my pom.        <dependency>             <groupId>org.slf4j</groupId>             <artifactId>slf4j-simple</artifactId>             <version>1.6.1</version>             <scope>compile</scope>         </dependency>

MySQL to PostgresSQL migration

Today I migrated a 10 MB database from MySQL to PostgresSQL. I used the “ESF Database Migration Toolkit – Standard 6.5.06”. It works pretty good for me. I access the database with a spring/hibernate based java application. After some litle changes on the applicationContext.xml I could successfully start my app and access the postgresSQL database.Continue reading “MySQL to PostgresSQL migration”

Hibernate 3.3.2.GA + Spring 3.0.0.RELEASE

This maven2 archetype contains a little sample application with the new Spring 3.0.0.RELEASE Framework and Hibernate 3.3.2.GA. The configuration is xml-driven. It is deployed on the PLOIN Repository-Server on http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetype with the following command: mvn archetype:generate -DarchetypeGroupId=org.ploin.archetype -DarchetypeArtifactId=tempSpringHibernate -DarchetypeVersion=1.7 -DarchetypeRepository=http://www.ploin-m2.de/nexus/content/groups/public/ -DgroupId=org.ploin -DartifactId=demoSpringHibernate The archetype contains the HSQLDBContinue reading “Hibernate 3.3.2.GA + Spring 3.0.0.RELEASE”

IceFaces 1.8.2 + Spring 3.0.4.RELEASE + Hibernate 3.3.4.GA

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.0.4.RELEASE Framework Servlet-API 2.5 MyFaces-Core 1.2.8 IceFaces 1.8.2 Facelets 1.11 ploinFaces 1.4.6 ploinMailFactory 1.3.1 Hibernate 3.3.4.GA TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is xml-driven. It is deployed on the PLOIN Repository-Server http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “IceFaces 1.8.2 + Spring 3.0.4.RELEASE + Hibernate 3.3.4.GA”

RichFaces 3.3.2.GA + Spring 3.0.0.RELEASE + Hibernate 3.3.0

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.0.0.RELEASE Framework Servlet-API 2.5 MyFaces-Core 1.2.8 RichFaces 3.3.2.GA Facelets 1.1.14 ploinFaces 1.4.7.8 ploinMailFactory 1.4.1 Hibernate 3.3.0 TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is xml-driven. It is deployed on the PLOIN Repository-Server http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “RichFaces 3.3.2.GA + Spring 3.0.0.RELEASE + Hibernate 3.3.0”

IceFaces 2.0 ALPHA + Spring 3.0.0.RELEASE + Hibernate 3.3.2.GA

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.0.0.RELEASE Framework Servlet-API 2.5 JSF 2.0 (mojarra 2.0.2) IceFaces 2.0 ploinFaces 1.6 ploinMailFactory 1.3.1 Hibernate 3.3.2.GA TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is xml-driven. It is deployed on the PLOIN Repository-Serve http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “IceFaces 2.0 ALPHA + Spring 3.0.0.RELEASE + Hibernate 3.3.2.GA”

RichFaces 4.0.0.ALPHA1 + Spring 3.0.0.RELEASE + Hibernate 3.3.0

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.0.0.RELEASE Framework Servlet-API 2.5 JSF 2.0 (mojarra 2.0.2) RichFaces 4.0.0.ALPHA1 ploinFaces 1.6 ploinMailFactory 1.3.1 Hibernate 3.3.0 TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is annotation-driven. It is deployed on the PLOIN Repository-Serve http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “RichFaces 4.0.0.ALPHA1 + Spring 3.0.0.RELEASE + Hibernate 3.3.0”

SQLException: Can’t call commit when autocommit=true

In einem Projekt bei einem grossen Energieversorger habe ich Hibernate 3.X zusammen mit Spring 2.5 konfiguriert, nach der Beschreibung von Eberhard Wolf. Dier Persistenzschicht hat wunderbar funktioniert, bis ich einen Stresstest mit jMeter gemacht habe. Als ich einen aufgezeichneten Testfall in zehn Threads gestartet habe, trat bei einigen Threads folgender Fehler auf: hibernate java.sql.SQLException: Can’tContinue reading “SQLException: Can’t call commit when autocommit=true”

Archetype: RichFaces 4.0.0.M1 + Spring 3.0.4.RELEASE + Hibernate 3.3.0

This maven2 archetype contains a little sample web application with this Frameworks: Spring 3.0.4.RELEASE Framework Servlet-API 2.5 JSF 2.0 (mojarra 2.0.2) RichFaces 4.0.0.M1 ploinFaces 1.6 ploinMailFactory 1.3.1 Hibernate 3.3.0 TestNG 5.8 Log4J 1.2.15 HSQLDB 1.8.0.7 The configuration is annotation-driven. It is deployed on the PLOIN Repository-Serve http://www.ploin-m2.de/nexus/content/groups/public/ you can create a project from the archetypeContinue reading “Archetype: RichFaces 4.0.0.M1 + Spring 3.0.4.RELEASE + Hibernate 3.3.0”