ORA-12519 connection errors and JUnit tests

In my current project we are running hundreds of JUnit tests which load a Spring application context, a Hibernate session factory and a c3p0 pool. The entire suite runs fine everywhere except a single machine where some tests will occasionally fail with a "ORA-12519, TNS:no appropriate service handler found" on an Oracle XE. The cause[1,2] … Continue reading ORA-12519 connection errors and JUnit tests

The jsp-file directive

The jsp-file directive in web.xml allows mapping of JSPs to concrete URLs: <servlet> <servlet-name>My Hidden Page</servlet-name> <jsp-file>/mydir/foo.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>My Hidden Page</servlet-name> <url-pattern>/hidden</url-pattern> </servlet-mapping> Shame on me, I didn't know about this. As seen here: http://mail-archives.apache.org/mod_mbox/tomcat-users/200107.mbox/%3CPine.BSF.4.21.0107271807540.7976-100000@localhost%3E

Liferay diaries: Help! My validation errors are not showing!

While still battling form submissions in my Liferay/Spring MVC Form controller/Multi-portlet beast, I noticed that the Spring form tags would not display errors. As this post [1] explains, the reason is that the form backing object must be named exactly as the class consituting the backing object, but with the first letter in lowercase. Thus … Continue reading Liferay diaries: Help! My validation errors are not showing!

Liferay diaries: Help! My form post parameters are empty!

While hacking a Spring & Liferay prototype, I'm suddenly wondering about why during a form submission there are no parameters (not even empty or null) submitted by the form. Turns out that I got bitten once more by the two phases of the portlet lifecycle [1] and naivly were handling form submission in the handleRenderRequest … Continue reading Liferay diaries: Help! My form post parameters are empty!