javax.naming.NameNotFoundException:尝试查找' jdbc.teradata'没有找到子上下文' jdbc'。已解决'&#39 ;;剩下的名字' jdbc / teradata'

时间:2017-05-02 08:02:31

标签: spring jdbc teradata weblogic12c

但是我可以打开Teradata所需的远程端口,我收到此错误,是因为在我部署应用程序的Weblogic中缺少所需的jdbc驱动程序库。

请注意,您可以在下面找到完整的错误。由于此失败,连续Spring Autowired Components也失败。

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

0 个答案:

没有答案