Post archive for ‘Development’
i >= 1 && i <= 26
Almost 90 years after it happened, I’ve been forced to recognise partition for the first time in my life. And the irony is that it is the Irish government that is forcing me to do it. I’ve had to add some validation logic to a drop down list for an e-government web application I’m working [...]
Getting JSP EL to work on Google App Engine
I am developing an Spring 3.0 based web application that I intend to deploy to Google App Engine. But I’ve been banging my head against a brick wall for a day now trying to figure out why my ${xxx} expressions are not evaluating correctly. The source of the problem seems to be a bug with [...]
How to install Java 6 JDK on Ubuntu
It couldn’t be easier. Just execute the following commands in your favourite shell: sudo apt-get install sun-java6-jdk sun-java6-plugin update-java-alternatives -s java-6-sun And add the following /usr/lib/jvm/java-6-sun to the top of the list in your /etc/jvm file.
Building JBoss Service Archives (SARs) with Maven 2
I discovered the following Maven 2 plugins capabable of building JBoss Service ARchives (SARs). JBoss Maven Plugin Maven SAR Plugin The JBoss Maven Plugin is the better of the two because it will bundle the project dependencies into the generated SAR along with the compiled classes and resources. Whereas the Maven SAR plugin only bundles [...]
Deploying Archiva to JBoss 4.2
After jumping through a few hoops I managed to get Archvia 1.1.3 successfully deployed to JBoss 4.2.3. Set the appserver.base and appserver.home properties by adding the following lines to $JBOSS_HOME/bin/run.sh and restart JBoss. JAVA_OPTS=”-Dappserver.home=$JBOSS_HOME -Dappserver.base=$JBOSS_HOME $JAVA_OPTS” Now create data source deployment descriptors for the archiva and users databases and copy them to $JBOSS_HOME/server/default/deploy. I am [...]
Strike One
I decided to use JavaFX for part of the the solution I am currently developing. I’m not really sure I need all the whistlesand bells that JavaFX gives. But this is an opportunity to learn without a deadline hahnging over my head. I’m an Eclipse fanatic and I was disappointed when I couldn’t find the [...]
Kilroy was here
As a novice programmer on maintenance project the I would invariably reformat the code code before working on a new feature or fixing a bug. Too many cooks The trouble was that at least half a dozen different programmers had a hand writing the code over an number of years and it had become totally [...]
Keeping source code neat without incurring RSI
I believe that good quality code is neat code. To that end I use the Eclipse Checkstyle Plug-in as I mentioned in yesterday’s post. This handy plug-in highlights my coding violations just like they are warnings or errors. The drawback with this approach is that keeping things neat while I am belting out a lot of [...]
Enforcing consistent coding styles with Eclipse and Checkstyle
I use CheckStyle to enforce a consistent coding style on my projects. There are two plug-ins that I know of for Eclipse that will highlight violations while you work on the code. I started out with Marco van Meegan‘s Checkeclipse Plugin, which I will refer to as Checkeclipse. Nowadays I use David Schneider’s Eclipse Checkstyle Plug-in, which I [...]
Testing @Configurable using the Maven Surefire plugin
I am using the @Configurable annotation to inject dependencies using AspectJ load time weaving and I still want to be able to unit test my code using the Maven Surefire plugin. The following plugin configuration ensures the spring-agent dependency downloaded to my local Maven repository and configures the command line for the JVM. <plugin> <groupId>org.apache.maven.plugins</groupId> [...]