Back Forum Reply New

executable jar, NoSuchBeanDefinition exception

mons.dbcp.BasicDataSourcequot; destroy-method=quot;closequot;gt;
lt;property name=quot;driverClassNamequot; value=quot;...quot;/gt;
lt;property name=quot;uclquot; value=quot;jdbcracle:thin: ... /gt;
lt;property name=quot;usernamequot; value=quot;...quot;/gt;
lt;property name=quot;passwordquot; value=quot;...quot;/gt;
lt;/beangt;

lt;bean id=quot;OracleDAOquot; class=quot;org.obis.dao.OracleDAOquot;gt;
lt;property name=quot;dataSourcequot;gt;lt;ref bean=quot;OracleDataSourcequot;/gt;lt;/propertygt;
lt;/beangt;

lt;/beansgt;

Thanks for any help or guidance.  I'm stuck so even wild guesses would be appreciated.

-=beeky

oracleDAO = (OracleDAO)ctx.getBean(quot;OracleDAOquot;) ; lt;== this line throws the exceptionTry this

oracleDAO = (OracleDAO)ctx.getBean(quot;oracleDAOquot;) ; lt;== this line throws the exception

do you added oracle jdbc jar for example ojdbc14-10.2.0.4.jar in your maven dependency ?

I'd start by posting the full stack trace of the error, that might help. When you post code/xml config/stack traces please remember to use [ CODE] [ /CODE] tags so that what you post remains readable.

also put your java class code see if it extends spring dao support class.
¥
Back Forum Reply New