From: Thomas F. <tfo...@us...> - 2005-01-25 15:29:46
|
On Tue, 2005-01-25 at 14:37 +0100, sebastien wrote: > Actually it seems that the connection to the database is working > because some tables have been automatically > created. Also in the catalina logs I can see that tables have been > found. Sorry, I didn't read your stacktrace properly :) Are there any other exceptions logged in the log files? Could you also check that coefficient correctly inserted the default data (i.e. see what data you have in tables coefficient_role, coefficient_user, etc). See: src/za/org/coefficient/util/ejb/DataLoaderUtil.java (which is used by the HibernateUtil to load the default data) It looks like usersHighestRole is null in Configuration.canExecuteForRole(...) This should not be null, because it is set to SecurityUtil.getRoleForDescription(GUEST_ROLE_DESC) which can only be null if: - the default data wasn't properly loaded, or - the data could not be read from the db (unlikely) In either case, an exception should be logged (although, in the first case, this would have been at db init/creation time, and possibly overwritten in the logs). If the problem is that default data is missing, you could try dropping the database and restarting tomcat, so that hibernate will recreate the tables (and reload the data). Cheers T -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. |