Archives for January 2006

Java SE 6 update

Planned release of Java SE 6, known as Mustang, slips to Autumn 2006 as indicated in this blog.

org.hibernate.HibernateException: Wrong column type

If you are getting the following exception:
org.hibernate.HibernateException: Wrong column type…
when Hibernate 3.1 validates your MySQL 4.1 database schema using
<property name=”hbm2ddl.auto”>validate</property>
in your hibernate.cfg.xml check whether you have custom sql-type in your Hibernate mappings and whether it is written in lower case as in example below (sql-type=”mediumblob”):
<component name=”photo” class=”com.mpxsys.sample.model.user.BinaryData”>
<property name=”data” type=”binary”>
<column [...]

java.lang.NoSuchMethodError getHibernateLazyInitializer()

We seem to be affected by java.lang.NoSuchMethodError problem described more in Hibernate forum and Hibernate Jira.
The solution that works for us is switching to the server VM using -server switch while starting Tomcat. It works for our production VM, which is:
java version “1.5.0_06″Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)Java HotSpot(TM) Server VM (build 1.5.0_06-b05, [...]

Edgewall Trac for Fedora Core

Edgewall Trac and Clearsilver are finally available for Fedora Core 4 as prepackaged RPMs for installation with yum: http://download.fedora.redhat.com/pub/fedora/linux/extras/4/i386/

Hibernate lazy fetching with Tapestry 3.x

The best references for Hibernate lazy fetching with Tapestry are Open Session in View pattern and, if you use Hibernate 3.1, generic DAO pattern with the latest Caveat Emptor constantly updated for Hibernate in Action 2nd edition, covering Hibernate 3.0 and 3.1
It is up to you to choose between session-per-request and session-per-conversation approach, but with [...]

Blojsom short URL’s with Apache httpd and Tomcat

Probably there are not many people who like the way default Blojsom URLs look:
http://localhost/blojsom/blog/default
The easiest way to remedy this situation is to use standard Apache HTTP proxy by adding the following lines into your Apache conf file (be it httpd.conf orsomething else):
ProxyPass /blog http://localhost:8082/blojsom/blog/default/
ProxyPassReverse /blog http://localhost:8082/blojsom/blog/default/<

ProxyPass /blojsom http://localhost:8082/blojsom
ProxyPassReverse /blojsom http://localhost:8082/blojsom
The only thing that needs to [...]