启动服务出现如下错误:
WARN
-
JDBCExceptionReporter.logExceptions(
71
)
|
SQL Error:
0
, SQLState:
null
ERROR - JDBCExceptionReporter.logExceptions( 72 ) | Cannot create PoolableConnecti
onFactory ( [ Microsoft ][ SQLServer 2000 Driver for JDBC ] Error establishing socket.
)
WARN - SettingsFactory.buildSettings( 103 ) | Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact
ory ( [ Microsoft ][ SQLServer 2000 Driver for JDBC ] Error establishing socket.)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java: 855 )
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java: 540 )
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
getConnection(LocalDataSourceConnectionProvider.java: 80 )
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
72 )
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 1463
)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a: 1004 )
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
Factory(LocalSessionFactoryBean.java: 746 )
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPrope
rtiesSet(LocalSessionFactoryBean.java: 673 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java: 962 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java: 354 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 223 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 147 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java: 176 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java: 105 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 916 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java: 727 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java: 336 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 223 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 147 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java: 176 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java: 105 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 916 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java: 727 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java: 336 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 223 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 147 )
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java: 271 )
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java: 312 )
at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java: 134 )
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text (ContextLoader.java: 230 )
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java: 156 )
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java: 48 )
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java: 3805 )
at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4
321 )
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java: 823 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 80
7 )
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 595 )
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java: 277 )
at org.apache.catalina.core.StandardHost.install(StandardHost.java: 832 )
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava: 687 )
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 432
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java: 968 )
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
: 349 )
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java: 119 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1091 )
at org.apache.catalina.core.StandardHost.start(StandardHost.java: 789 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1083 )
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 478
)
at org.apache.catalina.core.StandardService.start(StandardService.java: 4
76 )
at org.apache.catalina.core.StandardServer.start(StandardServer.java: 231
3 )
at org.apache.catalina.startup.Catalina.start(Catalina.java: 556 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java: 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 284 )
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 422 )
Caused by : java.sql.SQLException: [ Microsoft ][ SQLServer 2000 Driver for JDBC ] Err
or establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection. < init > (Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection. open (Unknown Sou
rce)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
ource)
at com.microsoft.jdbc.base.BaseConnection. open (Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
erConnectionFactory.java: 37 )
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java: 290 )
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java: 877 )
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java: 851 )
56 more
ERROR - JDBCExceptionReporter.logExceptions( 72 ) | Cannot create PoolableConnecti
onFactory ( [ Microsoft ][ SQLServer 2000 Driver for JDBC ] Error establishing socket.
)
WARN - SettingsFactory.buildSettings( 103 ) | Could not obtain connection metadata
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFact
ory ( [ Microsoft ][ SQLServer 2000 Driver for JDBC ] Error establishing socket.)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java: 855 )
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java: 540 )
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.
getConnection(LocalDataSourceConnectionProvider.java: 80 )
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:
72 )
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 1463
)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a: 1004 )
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSession
Factory(LocalSessionFactoryBean.java: 746 )
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPrope
rtiesSet(LocalSessionFactoryBean.java: 673 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java: 962 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java: 354 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 223 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 147 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java: 176 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java: 105 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 916 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java: 727 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java: 336 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 223 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 147 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java: 176 )
at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java: 105 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java: 916 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java: 727 )
at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java: 336 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 223 )
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java: 147 )
at org.springframework.beans.factory.support.DefaultListableBeanFactory.
preInstantiateSingletons(DefaultListableBeanFactory.java: 271 )
at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java: 312 )
at org.springframework.web.context.support.AbstractRefreshableWebApplica
tionContext.refresh(AbstractRefreshableWebApplicationContext.java: 134 )
at org.springframework.web.context.ContextLoader.createWebApplicationCon
text (ContextLoader.java: 230 )
at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java: 156 )
at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java: 48 )
at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java: 3805 )
at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4
321 )
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java: 823 )
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 80
7 )
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 595 )
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
loyer.java: 277 )
at org.apache.catalina.core.StandardHost.install(StandardHost.java: 832 )
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava: 687 )
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 432
)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java: 968 )
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
: 349 )
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java: 119 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1091 )
at org.apache.catalina.core.StandardHost.start(StandardHost.java: 789 )
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 1083 )
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 478
)
at org.apache.catalina.core.StandardService.start(StandardService.java: 4
76 )
at org.apache.catalina.core.StandardServer.start(StandardServer.java: 231
3 )
at org.apache.catalina.startup.Catalina.start(Catalina.java: 556 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java: 39 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java: 25 )
at java.lang.reflect.Method.invoke(Method.java: 585 )
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 284 )
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 422 )
Caused by : java.sql.SQLException: [ Microsoft ][ SQLServer 2000 Driver for JDBC ] Err
or establishing socket.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSConnection. < init > (Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection. open (Unknown Sou
rce)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown S
ource)
at com.microsoft.jdbc.base.BaseConnection. open (Unknown Source)
at com.microsoft.jdbc.base.BaseDriver.connect(Unknown Source)
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv
erConnectionFactory.java: 37 )
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable
ConnectionFactory.java: 290 )
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java: 877 )
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java: 851 )
56 more
解决方案:
1) http://dev.csdn.net/article/70/70360.shtm
2)重新启动机器