Sending email using smtp authentication with Tomcat JNDI resource
I found this a little tricky to do and not very well documented on the Tomcat manual and so here is a quick how-to based on what I have working. Add a global resource to your server.xml Some key points...
View ArticleInstall Image Magick on Strawberry Perl
I’ve rarely needed to dip into Perl over the last few years and so only recently discovered Stawberry Perl. I’ve been working on a project with Perl 5.8 and discovered you have to pay to install older...
View ArticleConfigure the default HandlerMapping supplied by in Spring 3.2
In the Spring MVC framework XML based configuration the mvc namespace provides a number of handy elements for configuration your web application. If you include the following in your XML configuration...
View ArticleTomcat and Mysql and character encoding
… or the definitive guide to getting Tomcat and Mysql working correctly with character sets I thought I understood all you needed to know for taking user submitted data and storing it correctly in the...
View ArticleHow to restore Chrome’s most visited pages to new tab page after update 29
I opened a new tab this morning on Chrome and had quite a shock. Instead of seeing my most visited pages I got the Google search box. I also saw “Chrome has updated” across the bottom right of the...
View ArticleHow to check Java’s DNS cache policy without accessing internal sun class
Pre JDK6 Java would by default cache successful DNS lookups for ever. In JDK 6 & 7 it caches for 30 seconds by default or forever when running under a security manager. You can override the...
View ArticleFailed to process TLD / java.net.MalformedURLException: null on Tomcat
Just a quick post about this error I was receiving today as the error is very unhelpful and it took me a while to figure out what was wrong. I was trying to define a taglib in my web.xml as follows...
View ArticleParsing money with currency symbol on Moneta (JSR 354 reference implementation)
This took me a little while to work out. Moneta is the reference implementation of JSR 354 javax.money specification. It’s not particularly well documented. Here’s how to parse monetary amounts that...
View Articlecdk codepipeline docker asset publishing codebuild steps accessing codeartifact
Problem: you’re running a multibuild docker build in your cdk asset publishing step and it needs to pull down artifacts from codeartifact. Here how I got this working for a gradle build. codeartifact...
View Articlecdk docker image for local development
Here’s a Dockerfile I’m using for local cdk development. It installs Docker, CDK and the AWS CLI. It supports bundling with cdk synth and npm test. It’s important that your working directory in your...
View Article