In 4.0.2, the datasource-mapping for Derby directs JBoss to convert JDBC BIT to SQL BOOLEAN. However, Derby has no BOOLEAN datatype.Changing this to SMALLINT seems to work, though.