October 27, 2007
When developing with Grails and GORM, if a domain class fails validation when calling the save() method, you won’t get an exception - save() just returns false! This is mentioned in the Gotchas page and to find out what went wrong, it suggests looking in the errors.allErrors property of your domain class.
To do this, would [...]
Read the full article →
October 20, 2007
Using Apache2 with named virtual hosts is standard, but what do you do when you want to put an application on Tomcat behind these hosts?
Thats simple too…
Lets say you have configured two virtual hosts in Apache:
host1.javathinking.com
host2.javathinking.com
and you have two java applications you want running in Tomcat behind these virtual hosts.
To configure Tomcat-5.5.20 with named virtual [...]
Read the full article →