问题
However I could open up the required remote port for Teradata
, I am getting this error, is it because the required jdbc driver library is missing in the Weblogic in which I am deploying my Application.
Please advise, you can find complete error below. Because of this failure consecutive Spring Autowired Components
are also failing.
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'teradataDataSource' defined in ServletContext resource [/WEB-INF/async-db-config.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: While trying to lookup 'jdbc.teradata' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/teradata'
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
Truncated. see log file for complete stacktrace
来源:https://stackoverflow.com/questions/43732983/javax-naming-namenotfoundexception-while-trying-to-lookup-jdbc-teradata-didn