I noticed that you have the following warnings
Quote:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
I recommend you get log4j working to help with debugging.
With respect to the file which contains your main() function, add the following import statements:
Quote:
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
And add the following 2 lines of code to your class declaration:
Quote:
static { BasicConfigurator.configure(); }
static Logger logger = Logger.getLogger(RoleTest.class);
You will need the following jar file:
Quote:
log4j-1.2.11.jar
(or some other version)
And as Martin said, I found that I could not connect as "root", so I created a user specific to the application and gave him rights specific to the application tables.