1 Replies Last post: Jun 6, 2008 4:52 PM by Knut Hamang  
Knut Hamang Newbie 11 posts since
Apr 21, 2008
Currently Being Moderated

Jun 5, 2008 12:56 PM

Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

I am trying to switch to Oracle and have the following error/StackTrace.

TeamCity is installed in c:\TeamCity. The BuildServer is configured for c:\TeamCity\BuildServer_conf

Works perfect for HSQLDB, but not when switching to Oracle. Running against Oracle 10G. Also tried to install Oracle 10G client.

Classpath problem ?

 

Stack Trace:

05.jun.2008 10:50:44 org.apache.catalina.core.StandardContext listenerStart

SEVERE: 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 'buildServer' defined in URL jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml: Cannot resolve reference to bean 'dbFacade' while setting bean property 'db'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbFacade' defined in URL jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class jetbrains.buildServer.serverSide.impl.DBFacade: Constructor threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'oracle.jdbc.driver.OracleDriver'

Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dbSettings' defined in URL jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml: Unsatisfied dependency expressed through constructor argument with index 0 of type java.lang.String: No unique bean of type java.lang.String is defined: Unsatisfied dependency of type class java.lang.String: expected at least 1 matching bean

Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dbSettings' defined in URL jar:file:/C:/TeamCity/webapps/ROOT/WEB-INF/lib/server.jar!/META-INF/buildServerSpring.xml: Unsatisfied dependency expressed through constructor argument with index 0 of type java.lang.String: No unique bean of type java.lang.String is defined: Unsatisfied dependency of type class java.lang.String: expected at least 1 matching bean

     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:274)

     at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)

     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)

     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)

     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)

     at java.security.AccessController.doPrivileged(Native Method)

     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)

     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)

     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)

     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)

     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)

     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

     at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)

     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)

     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)

     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)

     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

     at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)

     at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)

     at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)

     at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)

     at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

     at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

     at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

     at org.apache.catalina.core.StandardService.start(StandardService.java:516)

     at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

     at org.apache.catalina.startup.Catalina.start(Catalina.java:578)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

     at java.lang.reflect.Method.invoke(Method.java:585)

     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

More Like This

  • Retrieving data ...