Recently upgraded from Hibernate 1.x to 2.1 and am getting this Exception msg: could not instantiate id generator
I am deploying to JBoss 3.0.2 using xdoclet to do the hibernate stuff.
My startup servlet does this when the error occurs:
Code:
InputStream in = getClass().getClassLoader().getResourceAsStream("hibernate.properties");
Properties props = new Properties();
props.load(in);
Configuration cfg = new Configuration()
.addClass(Account.class)
.addClass(Customer.class);
SessionFactory sessionFactory = cfg.setProperties(props).buildSessionFactory();
This last line is where the exception is, i've traced the error to the IdentifierGeneratorFactory hibernate class but can't see what I've missed.
Anyone have a clue as to what I might have missed?
Thanks...