Hi,
My hibernate.cfg.xml looks like
----------------
<property name="hibernate.session_factory_name">SessionFactory</property>
<property name="hibernate.connection.datasource">com/DB</property>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hbm2ddl.auto">validate</property>
<property name="hibernate.current_session_context_class">thread</property>
----------------
Now i am trying to bind the SessionFactory to JNDI also retrieving as follows
sessionFactory = new Configuration().configure(HIBERNATE_CFG_FILE).buildSessionFactory();
Issue
when i am trying to do this i am getting some authentication error as follows
The role-based authorization check failed for naming-authz operation NameServer:rebind_java_object. The user UNAUTHENTICATED (unique ID: unauthenticated) was not granted any of the following required roles: CosNamingCreate, CosNamingDelete, CosNamingWrite.
1-Actually in my server side basic authentication has been set, so my query is should i need to change anything in my src code, to access the same as before authentication it was working fine.
2-Similiary while retrieving the session factory what should be my sample jndi code from context?
Thanks
Sid
|