If you are using jdbc:odbc bridge and you're using MS Sql Server , the problem is driver .
jdbc:odbc bridge does not work properly with some EJB Containers .
try to use a type 4 driver , there is a free type 4 driver which microsoft bas been released :
www.microsoft.com/.../details.aspx