Tuesday, January 24, 2012

Gradle

A few years ago I read The Pragmatic Programmer.  The Pragmatic Programmer may not be the GoF book, but it's almost as valuable.

Andy Hunt and Dave Thomas recommend learning a new language every year. I started with Groovy.

Being a Java developer I thought Groovy would give me the most bang-for-the-buck. After all Groovy is part of the Java spec so there is no excuse not to learn it.

I think Groovy delivered. I used to think that Groovy was worth learning for XML parsing/writing alone. XMLSlurper and MarkupBuilder are by far the best things I've used for dealing with XML.

Gradle changed my mind. Gradle is a fantastic build tool. Maven solves some problems, but it is a whole set of problems itself. Gradle can run Ant tasks so you keep Ant's functionality. 

As for the one language per year thing I picked up Python next and got a Django app into production. I'm on Ruby now, but I'm behind schedule. I'll get to Scala soon...

No bundle plugin resource available to handle deployment for bundle type

The first time I tried deploying a bundle with a fresh server and JBoss Operations Network agent I got the following error :

java.lang.Exception:No bundle plugin resource available to handle deployment for bundle type [BundleType[id=10001,name=Ant Bundle]]. Ensure the bundle plugin is deployed and its resource is imported into inventory.

I restarted the agent and everything was fine.

If I can reproduce this its time to login to Bugzilla.  I thought I'd post here first in case anyone Googles the Exception though.

Happy coding

Thursday, December 15, 2011

PAE kernel

I use virtual machines a lot and really need more memory (more than 3.7GiB.)

Unfortunately I'm still running 32 bit Fedora 14.  I tried the 64 bit version, but had some problems with Firefox and Eclipse.



I've put off upgrading because of Gnome 3.  I tried out the Live Disc for 15.  It didn't convince me.

Since then I've heard enough good things about Gnome Shell that I'm willing to bite the bullet.  But just to play it safe I've been waiting until I have a few days with no meetings.  So meanwhile...

I added memory and installed the PAE kernel.

sudo yum install kernel-PAE

Pretty simple and my machine immediately recognized the extra memory.

Tuesday, November 15, 2011

SELinux and WebEx playback

While trying to watch a WebEx recording I got only sound and an SELinux alert.

I had to set SELinux to "Permissive" :

# setenforce Permissive 

A small price to pay.

The WebEx, btw, was Kris Verlaen's presentation on jBPM5.

Monday, November 14, 2011

JBUG ATL or Atlanta JBoss Users Group

The Atlanta JBug kicks off December 14.

The meeting will be held at :
Shadow-Soft
8200 Roberts Drive, Suite 201, Atlanta, GA

Thursday, October 27, 2011

How to change the ports that JBoss uses

The easiest way is to simply pass a command line argument. This takes care of any desktop/laptop/development purposes.

run -Djboss.service.binding.set=ports-01
run -Djboss.service.binding.set=ports-02

 For more complete changes check out the official docs under, 1.7 The Service Binding Manager .

Wednesday, October 26, 2011

Where did the drools-api.jar go?

JBoss BRMS 5.2 is out so naturally I started a new project in it.

The first thing I noticed after updating my pom.xml was that there was no drools-api-version.jar.

All of the api classes are now in knowledge-api-version.jar.  Be sure to update your pom!