Error creating logs directory in Apache Tomcat

java.util.logging.ErrorManager: 4: Unable to create [c:pache-tomcat-7.0.30 -Dcatalina.home=c:pache-tomcat-7.0.30\logs\]

I was getting this error recently, and found that it was caused by having a trailing backslash on my CATALINA_HOME variable.

i.e.
Incorrect:

set CATALINA_HOME=c:pache-tomcat-7.0.30\

Correct:

set CATALINA_HOME=c:pache-tomcat-7.0.30
Tomcat 

Tapestry and JMeter

I was recently tasked with setting up some load tests for our Tapestry (4.1.6) web application. I chose to use Apache JMeter because it is open-source and is flexible enough to do what we needed, and doesn’t cost $12,000/month like some load testing tools. I set up an HTTP Proxy Manager to record a simple navigation through the site and reconfigured my browser to use the proxy. The proxy recorded the requests without a hitch. [Read More]

Personal projects

I recently started working on a personal project - a web application - and faced a difficult decision. What technology stack do I use? I like my personal projects to both fulfil a requirement and to teach me something in the process. Java is my native language, so I initially thought I’d build it in wicket-spring-hibernate. The problem is that I can only work on the project for a few hours a week, and I find that developing in Java just takes too long. [Read More]
Ruby 

Tapestry: UpdateComponents, Eventlistener and Script files

This week I encountered an interesting issue in Tapestry when I tried to dynamically load a component using Tapestry’s built-in EventListener functionality. The component in question had a .script file associated with it, which Tapestry loaded dynamically, but the JavaScript functions in the .script file were “not found” when I tried to execute them. After a bit of digging around, a colleague of mine noticed that Tapestry was loading the . [Read More]

JRebel and Tapestry working together

I’ve recently started trialling JRebel at work. JRebel is a piece of software that hot-swaps your code so that changes made in your IDE are reflected in your application server without requiring a restart. The benefits of this idea are fairly obvious. I no longer have to wait 1 - 2 minutes for JBoss to restart each time I correct a spelling mistake etc. The time saved by not restarting probably make the product worth the $US149 licensing fee. [Read More]