Finally got JBoss 3.2.6 to connect to DB2 7.1 under Linux

SQL1224N A database agent could not be started to service a request,
or was terminated as a result of a database system shutdown
or a force command. SQLSTATE=55032

This was the error I kept getting without being able to find out why. A couple of things I have tried:

  • Upgrading JBoss from 3.2.6 to 3.2.7 (which made me try point 2 since 3.2.6 doesn’t run under Java SDK 1.3.1 even though it says so on jboss.org)
  • Downgrading from Sun Java 1.4.2_07 to IBM Java 1.3.1
  • Upgrade to various DB2 Fixpacks culminating with Fixpack 13

I found the solution as technote 1044438 on IBM’s website (I also took a PDF print to make sure I could find it in the future). The technote only mentions AIX but the solution works on Linux as well.

The solution is to create another DB2 node pointing to the same DB2 server and cataloging the database using this “dummy” node instead of directly using the local protocol. I have not idea why this solves the problem.