Seam, JPA & Resin
These days I am transportting some seam-jpa based web applications from jboss to resin. But found there is a bug for seam to create EntityManagerFactory in resin:
[19:34:46.510]org.jboss.seam.InstantiationException: Could not instantiate Seam
component: application_form_Database
[19:34:46.510] at org.jboss.seam.Component.newInstance(Component.java:2144)
[19:34:46.510] at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
...
Selenium-RC and https certification
It realy waste me several days to find a way to test our https application. Each time I start it manually I must add an exception of certificatioin into firefox, so it can't be ran in an automated test system. Until I found this:
http://townx.org/blog/elliot/dealing-self-signed-ssl-certificates-when-r...
Just in case of lost this article, I copied the solution here:
By default selinux will decline system services to read unknow files, and it will cause apache can't enalbe mod_jk, the solution is:
------------------------------------------------------------------
/etc/rc3.d/S15httpd -------->
It's very important to keep a backup of system configuration files, and it's more useful if we can track it's changing history. I don't know if there has any traditional backup solution, but at least bzr(bazaar) or other modern DVCS like hg(mercurial) did it well.
My backup script:
---------------------------------------------------------------
#!/bin/sh
echo "Start backup /etc"
base_dir=~/backup/jianyu.net/etc
rsync -av --delete --exclude '.bzr' /etc/ $base_dir
Reading THE EVOLUTION OF PHYSICS
THE EVOLUTION OF PHYSICS
( ALBERT EINSTEIN )
THE PHILOSOPHICAL BACKGROUND P.55