Struts2 Spring2.5 Hibernate 配置出错
控制台信息如下:2010-06-2323:14:45,182ERROR(org.springframework.web.context.ContextLoader:215...
控制台信息如下:
2010-06-23 23:14:45,182 ERROR (org.springframework.web.context.ContextLoader:215) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryCache' defined in class path resource [spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ideal.platform.suport.dict.DictionaryCache]: Constructor threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: StatementCallback; uncategorized SQLException for SQL [select DATA_ID as dataId, CODE_ID as codeId, DATA_DESC as dataDesc, CODE_DESC as codeDesc from DATA_CODE]; SQL state [null]; error code [17002]; Io 异常: The Network Adapter could not establish the connection; nested exception is java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:243)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
等等。。
求解,感谢回答。 展开
2010-06-23 23:14:45,182 ERROR (org.springframework.web.context.ContextLoader:215) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryCache' defined in class path resource [spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ideal.platform.suport.dict.DictionaryCache]: Constructor threw exception; nested exception is org.springframework.jdbc.UncategorizedSQLException: StatementCallback; uncategorized SQLException for SQL [select DATA_ID as dataId, CODE_ID as codeId, DATA_DESC as dataDesc, CODE_DESC as codeDesc from DATA_CODE]; SQL state [null]; error code [17002]; Io 异常: The Network Adapter could not establish the connection; nested exception is java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:243)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:923)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:833)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
等等。。
求解,感谢回答。 展开
4个回答
2010-06-24
展开全部
异常: The Network Adapter could not establish the connection; nested exception is java.sql.SQLException: Io 异常: The Network Adapter could not establish the connection
at
SQL语句不对或者是 数据库根本就没连接上
at
SQL语句不对或者是 数据库根本就没连接上
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2010-06-24
展开全部
applicationContext.xml 你的这个文件中有错误,建议在开发工具中调试。比如myeclipse 什么的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
sql语句不对吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
spring中定义的bean的struts的action路径找不到。?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询