No, I made a mistake in the new Hibernate2 build script. That was
fixed in CVS already. Sorry if that wasted your time.... :(




                                                                                       
                                               
                    "Viktor Szathmary"                                                 
                                               
                    <[EMAIL PROTECTED]>                 To:     "Gavin King" <[EMAIL 
PROTECTED]>                                   
                    Sent by:                                cc:     [EMAIL PROTECTED]  
                           
                    [EMAIL PROTECTED]       Subject:     Re: [Hibernate] hib2 - 
Hibernate.configure()                 
                    eforge.net                                                         
                                               
                                                                                       
                                               
                                                                                       
                                               
                    12/02/03 06:58 AM                                                  
                                               
                                                                                       
                                               
                                                                                       
                                               




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




**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.

This email, including all attachments, is confidential.  If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments.  Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error.  If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************





-------------------------------------------------------
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


Reply via email to