When I checked one of my websites this morning I discovered it had stopped responding. All it did was sit there then time out with a standard Tomcat error page. So I logged in to check the logs and found that tomcat was complaining about “Too many open files”. Now a few days earlier I […]Read more "Java 8 running out of file handles on Linux"
For all of my servers I use Debian, however that distribution has a few problems, mainly the packages can be a bit behind the cutting edge. Now this is usually a good thing if you are looking for stability – cutting edge software can have issues, especially from new features etc, so for a live […]Read more "Installing Java 7 on Debian Squeeze"
In the past whenever you wrote a Servlet you had a lot of work to do. First you wrote your servlet, then you had to add configuration for that servlet into web.xml so that your application would use it. For simple applications this was fine but the more servlets you wrote the harder it became […]Read more "Writing Servlets the J2EE 6 / Servlet 3.0 way"
Usually you wouldn’t mix versions. Build environments like Maven should handle this for you – although even maven can get things wrong. Yesterday I was playing with Apache TomEE looking at migrating some webapp’s away from Apache Tomcat 7. The impetus for this was to get Rest services working and one of the TomEE profiles […]Read more "The problem of mixing library versions"
After a second crash of my EC2 instance which was running Amazon‘s own Linux distribution I had to rebuild so this time I decided to put the latest official Ubuntu AMI on it. Everything ran fine until I fired up an application which takes a feed from Twitter using their stream api. When I fired […]Read more "How to fix OpenJDK-7 certificates on Ubuntu 11.10 running on Amazon EC2"
Usually maven will download an artefact on it’s own however there are times when you need to do this manually – in this instance the local Nexus installation is down for maintenance so I had no choice but do it the hard way. In this instance I needed the exec-maven-plugin which my local repository didn’t have but fortunately the […]Read more "Manually downloading an artefact in Maven"
Over the weekend I needed to write a script in groovy which first downloaded a file from a remote webserver then, if that file was retrieved & different copy it to a final location. Now as Groovy is based on Java you could have done this in the usual manner but I wanted to find […]Read more "Downloading URL or copying Files using Categories in Groovy"