当前位置: 代码迷 >> Java Web开发 >> 满地翻滚求大神们帮忙解决
  详细解决方案

满地翻滚求大神们帮忙解决

热度:27   发布时间:2016-04-16 22:06:28.0
满地打滚求大神们帮忙解决
2014.07.24 15:40:04  INFO ContextLoader(272):? Root WebApplicationContext: initialization started
 2014.07.24 15:40:04  INFO XmlWebApplicationContext(500):? Refreshing Root WebApplicationContext: startup date [Thu Jul 24 15:40:04 CST 2014]; root of context hierarchy
 2014.07.24 15:40:04  INFO XmlBeanDefinitionReader(315):? Loading XML bean definitions from file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\webapps\Students\WEB-INF\classes\applicationContext.xml]
 2014.07.24 15:40:04  INFO DefaultListableBeanFactory(581):? Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@77eb97: defining beans [SQLServerDataSource,sessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,allServiceMethod,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,txAdvice,siteTableEntityDAOImpl,news]; root of factory hierarchy
 2014.07.24 15:40:04  INFO Environment(514):? Hibernate 3.2.6
 2014.07.24 15:40:04  INFO Environment(547):? hibernate.properties not found
 2014.07.24 15:40:04  INFO Environment(681):? Bytecode provider name : cglib
 2014.07.24 15:40:04  INFO Environment(598):? using JDK 1.4 java.sql.Timestamp handling
 2014.07.24 15:40:04  INFO HbmBinder(300):? Mapping class: po.SiteTableEntity -> SiteTable
 2014.07.24 15:40:04  INFO LocalSessionFactoryBean(780):? Building new Hibernate SessionFactory
 2014.07.24 15:40:04  INFO ConnectionProviderFactory(72):? Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
 2014.07.24 15:40:19  WARN JDBCExceptionReporter(77):? SQL Error: 0, SQLState: null
 2014.07.24 15:40:19 ERROR JDBCExceptionReporter(78):? Cannot create PoolableConnectionFactory (通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“Connection refused: connect。请验证连接属性。确保 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP 连接。”。)
 2014.07.24 15:40:19  WARN SettingsFactory(117):? Could not obtain connection metadata
 org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (通过端口 1433 连接到主机 localhost 的 TCP/IP 连接失败。错误:“Connection refused: connect。请验证连接属性。确保 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP 连接。”。)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:863)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:782)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:591)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
.......
  相关解决方案