日期:2014-05-19  浏览次数:20720 次

请高手解决一个启动Tomcat服务器出现的错误!
TSAIP] [ERROR] 2012-03-28 12:58:31,328 org.hibernate.util.JDBCExceptionReporter(JDBCExceptionReporter.java:78) -5860 [main] - 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:orcl

 [TSAIP] [ERROR] 2012-03-28 12:58:33,468 org.hibernate.util.JDBCExceptionReporter(JDBCExceptionReporter.java:78) -8000 [main] - 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:orcl

 [TSAIP] [ERROR] 2012-03-28 12:58:33,468 org.hibernate.util.JDBCExceptionReporter(JDBCExceptionReporter.java:78) -8000 [main] - 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:orcl

 [TSAIP] [ERROR] 2012-03-28 12:58:33,609 org.springframework.web.context.ContextLoader(ContextLoader.java:215) -8141 [main] - Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'menuInit' defined in file [C:\Tomcat 6.0\webapps\AWMonitor\WEB-INF\classes\com\rx\security\servlet\menuInit.xml]: Invocation of init method failed; nested exception is org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; 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:orcl
; nested exception is 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:orcl

------解决方案--------------------
localhost:1521:orcl
这就很明显了!!自己去找找原因。。什么都帖出来问 有意思?