
SSH整合,原来项目部署运行正常的,后来突然报这样的错误,项目在别的电脑运行正常。
SSH整合,原来项目部署运行正常的,后来突然报这样的错误,重装了几次编程软件也不行。而且现在项目在别的电脑部署运行都正常,就是在我的电脑不行。我使用并且重装了几次的软件包...
SSH整合,原来项目部署运行正常的,后来突然报这样的错误,重装了几次编程软件也不行。而且现在项目在别的电脑部署运行都正常,就是在我的电脑不行。
我使用并且重装了几次的软件包括:myeclipse 7.0,Tomcat 6.0, oracle 10.2, java JDK。我摘抄的错误具体信息如下(2个warn+严重exception),如果有不全请告知,我会补上。
曾经在网上查到了一些错误信息类似的,并且尝试例如:删除某些jar,在web.xml里面增加一段代码,把某些代码合并写成一行等等,都不行,也许因为它们大都是一开始就出错的,并非原来正常,后来才突然出错的。
log4j:WARN No appenders could be found for logger(org.springframework.util.ClassUtils)
log4j:WARN please initialize the log4j system properly
严重: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 'planManager' defined in ServletContext resource [/web-inf/applicationContext-plan.xml]:Invocation of init method failed;nested exception is org.springframework.transaction.CannotCreatTransactionException:Could not open Hibernate Session for transaction;nested exception is org.hibernate.exception.GenericJDBCException:Cannot open connection
at org.springframework.beans.factory.support.AbstractAutowireCapableBea.......
..........................
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardContext.........
.......................
at sun.reflect.NativeMethodAccessorImpl.invoke......
.............................
at java.lang.reflect.Method.invoke(Unknown Source)
Caused by:org.springframework.transaction.CannotCreateTransactionException:Could not open Hibernate...............
at org.springframework.................
........................
at $Proxy27.findAllStandbyColumn(Unknown Source)
Caused by:org.hibernate.exception.GenericJDBCException:Cannot open connection
at org.hibernate.exception.SQLStaeConverter..............
..............................
Caused by:java.sql.SQLException:Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
Localhost:1521:planMng
at oracle.jdbc.driver.DatabaseError............
at java.sql.DriverManager............
at org.hibernate.connection..........
........................
错误信息如上,其中后面关于oracle的错误应该是重装之后才多出来的错误。
请高手们帮忙,看看到底是什么原因,另外,oracle重装的时候应该如何设置?
感激不尽!! 展开
我使用并且重装了几次的软件包括:myeclipse 7.0,Tomcat 6.0, oracle 10.2, java JDK。我摘抄的错误具体信息如下(2个warn+严重exception),如果有不全请告知,我会补上。
曾经在网上查到了一些错误信息类似的,并且尝试例如:删除某些jar,在web.xml里面增加一段代码,把某些代码合并写成一行等等,都不行,也许因为它们大都是一开始就出错的,并非原来正常,后来才突然出错的。
log4j:WARN No appenders could be found for logger(org.springframework.util.ClassUtils)
log4j:WARN please initialize the log4j system properly
严重: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 'planManager' defined in ServletContext resource [/web-inf/applicationContext-plan.xml]:Invocation of init method failed;nested exception is org.springframework.transaction.CannotCreatTransactionException:Could not open Hibernate Session for transaction;nested exception is org.hibernate.exception.GenericJDBCException:Cannot open connection
at org.springframework.beans.factory.support.AbstractAutowireCapableBea.......
..........................
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.StandardContext.........
.......................
at sun.reflect.NativeMethodAccessorImpl.invoke......
.............................
at java.lang.reflect.Method.invoke(Unknown Source)
Caused by:org.springframework.transaction.CannotCreateTransactionException:Could not open Hibernate...............
at org.springframework.................
........................
at $Proxy27.findAllStandbyColumn(Unknown Source)
Caused by:org.hibernate.exception.GenericJDBCException:Cannot open connection
at org.hibernate.exception.SQLStaeConverter..............
..............................
Caused by:java.sql.SQLException:Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
Localhost:1521:planMng
at oracle.jdbc.driver.DatabaseError............
at java.sql.DriverManager............
at org.hibernate.connection..........
........................
错误信息如上,其中后面关于oracle的错误应该是重装之后才多出来的错误。
请高手们帮忙,看看到底是什么原因,另外,oracle重装的时候应该如何设置?
感激不尽!! 展开
展开全部
你确定的Oracle的服务都启动了?那你看看你连接数据库的配置信息,无非就是用户名、密码、数据库IP、数据库SID,看看这些有没有错。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
不能够打开Connection、不能够打开Hibernate、不能够打开Session
都是和连接数据库有关的,肯定是和数据库连接时的错误,换成别的数据库试试
都是和连接数据库有关的,肯定是和数据库连接时的错误,换成别的数据库试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
org.hibernate.exception.GenericJDBCException:Cannot open connection
可以肯定是数据库连接方面的问题,试一下数据库是否能够访问,连接字符串对不对?
可以肯定是数据库连接方面的问题,试一下数据库是否能够访问,连接字符串对不对?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
'planManager' SPRING 配置文件的BEAN 有问题吧
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询