-
Recent Posts
Recent Comments
- Javascript utf-8 substr and length function - Acampora on Reloading Tiles2 Config in Spring 3.x
- How to configure validation in Spring MVC controllers | Vlad Carcu-Dobrin on Spring MVC Validation BindingResult
- sandeep on Debugging connection pool leak in Apache HTTP Client
- Bruce Edge on Programmatically getting the Maven version of your project
- Krishna on Spring MVC Validation BindingResult
Archives
- March 2018
- January 2018
- August 2017
- November 2014
- October 2014
- May 2014
- December 2013
- January 2013
- December 2012
- September 2011
- August 2011
- June 2011
- May 2011
- January 2011
- July 2009
- February 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- April 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- May 2004
- February 2004
- January 2004
Categories
Meta
Category Archives: java
Some thoughts on a dynamic (lazy) data access layer for web services
The problem I’ve been address in my most recent work block has been to develop an interface to a relational data store which can be used either as a local DB, or via webservices. The concept is quite straight forward, … Continue reading
I want the last 2 hours back!
I just spent a few hours writing an Acegi filter to get a certificate from a form post, and put it into a modified User Detail principle. All well and good, except after a redirect back to / I got … Continue reading
Posted in java, Spring
Leave a comment
Spring and JNDI (Tomcat or Jetty)
Recently I had need to deploy some Spring webapps which required predeploy configuration. Being the first time I had to find a serious answer I looked to the mythical JNDI for an answer. This document is meant to complement other … Continue reading
Posted in java, Maven, Spring
9 Comments
Maven classpath issues at compile time
Here’s a very weird Maven/Java issue. The error message (below) occurs in my build phase where JaxB is called to produce some Java objects from XML. JaxB calls HyperJaxB, and on some systems it crashes. [ERROR] XJC while compiling schema(s): … Continue reading
Posted in Archer, java, Maven
2 Comments
ManyToOne reference loading with JPA/Hibernate
In this example an InvestigationType has many SampleType’s. If I load an InvestigationType via em (entity manager) find it also loads the samples. 1. InvestigationType inv2 = (InvestigationType) em.find( 2. InvestigationType.class, inv.getId()); 3. System.out.println(“Inv2 ID=”+inv2.getId()); 4. System.out.println(“Inv2 Title=”+inv2.getTitle()); 5. assertTrue(inv2.getSample().size() … Continue reading
Hibernate, spring, and different jars
The situation is this. I had a working application which used Hibernate annotated classes, and JTA for data bindings, within a spring framework. Then I moved the annotated classes into a Jar file, and the application stopped working. Hibernate knew … Continue reading
Posted in java, programming, Spring
Leave a comment
Spring 2.0.6 and ACEGI
Because ACEGI depends on spring 1.2.6, we need to override a few dependencies if we want to use spring 2.0.6. To do this, we use the following exclusions: <dependency> <groupId>org.acegisecurity</groupId> <artifactId>acegi-security</artifactId> <version>1.0.5</version> <exclusions> <exclusion> <artifactId>spring-aop</artifactId> <groupId>org.springframework</groupId> </exclusion> <exclusion> <artifactId>spring-beans</artifactId> <groupId>org.springframework</groupId> … Continue reading
Setting up Tomcat behind Apache 2.2 in a hierarchical path
The situation I want to deal with is this: Public Web Root |-plone \-portals |-portal1 (server A) \-portal2 (server B) In apache 2.2 they (the writers of the Apache docs) seem to prefer the use of mod_proxy_ajp, which is an … Continue reading
Posted in java
Leave a comment
Maven-Ant hybrid
Some brief background. Ant is the stock standard Java build system, much as Make is for C/C++. Maven is a newer Java build system which tried to, amongst other things, solver the Jar dependency hell problem, as well as make … Continue reading
Posted in java, programming, technology
Leave a comment
Four things which would make my Linux wonderful
1. Presentation controller for my bluetooth phone In fact this already exists, in many forms apparently. The trick for me was to get it working. If I was to derive it from scratch I would have made a simple, mappable … Continue reading
Posted in bluetooth, java, linux, technology
6 Comments