spring使用tomcat的数据源链接报错
spring配置
tomcat配置
web.xmL配置
启动后报错信息
2013-9-21 12:28:22 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;E:\Workspaces\tomcat-6.0.18\apache-tomcat-6.0.18\bin
2013-9-21 12:28:23 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2013-9-21 12:28:23 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 491 ms
2013-9-21 12:28:23 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2013-9-21 12:28:23 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.18
log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
log4j:WARN Please initialize the log4j system properly.
2013-9-21 12:28:23 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2013-9-21 12:28:24 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/classes/config/spring/spring-common.xml]: Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: Name jdbcgold is not bound in this Context
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)