A stack trace would be useful. There's nothing I can tell from these items.
JSF doesn't contribute to this sort of issue, so I've moved this
thread to the DBMS/JDBC forum.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.