mons.dbcp.BasicDataSourcequot;gt;
lt;property name=quot;driverClassNamequot;
value=quot;oracle.jdbc.driver.OracleDriverquot;gt;
lt;/propertygt;
lt;property name=quot;uclquot;
value=quot;jdbc racle:thin 192.168.20.23:1521:testquot;gt;
lt;/propertygt;
lt;property name=quot;usernamequot; value=quot;testquot;gt;lt;/propertygt;
lt;property name=quot;passwordquot; value=quot;testquot;gt;lt;/propertygt;
lt;/beangt;
lt;bean id=quot;sesfactory1quot;
class=quot;org..orm.hibernate3.LocalSes sionFactoryBeanquot;gt;
lt;property name=quot;dataSourcequot;gt;
lt;ref bean=quot;datasource1quot; /gt;
lt;/propertygt;
lt;property name=quot;mappingResourcesquot;gt;
lt;listgt;
lt;valuegt;AgUser.hbm.xmllt;/valuegt;
lt;/listgt;
lt;/propertygt;
lt;property name=quot;hibernatePropertiesquot;gt;
lt;propsgt;
lt;prop key=quot;hibernate.dialectquot;gt;
org.hibernate.dialect.OracleDialect
lt;/propgt;
lt;prop key=quot;hibernate.show_sqlquot;gt;truelt;/propgt;lt;!--
lt;prop key=quot;hibernate.cache.provider_classquot;gt;
net.sf.ehcache.hibernate.SingletonEhCacheProvider
lt;/propgt;--gt;lt;/propsgt;
lt;/propertygt;
lt;/beangt;
lt;bean id=quot;transactionManager1quot;
class=quot;org..orm.hibernate3.Hibernat eTransactionManagerquot;gt;
lt;property name=quot;sessionFactoryquot;gt;
lt;ref local=quot;sesfactory1quot; /gt;
lt;/propertygt;
lt;/beangt;
lt;bean id=quot;userManagerquot;
class=quot;org..transaction.interceptor .TransactionProxyFactoryBeanquot;gt;
lt;property name=quot;transactionManagerquot;gt;
lt;ref local=quot;transactionManager1quot; /gt;
lt;/propertygt;
lt;property name=quot;targetquot;gt;
lt;ref local=quot;userManagerTargetquot; /gt;
lt;/propertygt;
lt;property name=quot;transactionAttributesquot;gt;
lt;propsgt;
lt;prop key=quot;get*quot;gt;
PROPAGATION_REQUIRED,readOnly,-com.Testexception
lt;/propgt;
lt;prop key=quot;insert*quot;gt;
PROPAGATION_REQUIRED,-com.Testexception
lt;/propgt;lt;/propsgt;
lt;/propertygt;
lt;/beangt;
lt;/beansgt;
java file:public class UserDAOImpl extends HibernateDaoSupport implements UserDAO{
public List getList()
{
Session ses=getHibernateTemplate().getSessionFactory().get CurrentSession(); System.out.println(quot;session isquot;+ses);return getHibernateTemplate().getSessionFactory().getCurr entSession().createQuery(quot;from AgUserquot;).list();
}
when i run this i am getting the abow error |