hi, > On Tue, 11 Feb 2003 22:35:13 +1100 (EST), "Gavin King" <[EMAIL PROTECTED]> > said: > > > > new Configuration.configure().buildSessionFactory(); > > i tried that too, didn't seem to make a difference.. in fact i see no > indication in the method where it would do the JNDI bind (it just creates > the SessionFactory, and returns it):
ok, i realize this is not true, as the SessionFactoryImpl constructor is registering the new instance with SessionFactoryObjectFactory... i turns out the problem in this case was an exception: java.lang.SecurityException: Authentication for user db2 denied in realm weblogic at weblogic.security.acl.Realm.authenticate(Realm.java:212) at weblogic.security.acl.Realm.getAuthenticatedName(Realm.java:233) at weblogic.security.acl.internal.Security.authenticate(Security.java:135) at weblogic.security.acl.Security.doAsPrivileged(Security.java:481) at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:127) at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:54) at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:154) at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:557) ... which didn't make any sense to me, since i never-ever specified "db2" anywhere... it turns out that there's a "hibernate.properties" bundled in the hibernate.jar which had this in it.. i removed this file from hibernate.jar, everything's cool now... why is this file bundled with hibernate.jar? was it always the case? best regards, viktor -- http://fastmail.fm - Choose from over 50 domains or use your own ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel