请高手解决一个启动Tomcat服务器出现的错误!

jun_422 2012-03-28 12:58:15
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
...全文
272 10 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
五哥 2012-03-30
  • 打赏
  • 举报
回复
我看着怎么感觉数据库的listener 服务没起来一样哦
tt986101dpc 2012-03-30
  • 打赏
  • 举报
回复
C:\Tomcat 6.0\webapps\AWMonitor\WEB-INF\classes\com\rx\security\servlet\menuInit.xml


jdbcUrl=jdbc\:oracle\:thin\:@192.168.1.20\:1521\:orcl
这个貌似不对吧
jdbc:oracle:thin:@192.168.1.20:1521:orcl

jun_422 2012-03-30
  • 打赏
  • 举报
回复
这是我的数据库连接配置:
driverClass=oracle.jdbc.driver.OracleDriver
maxIdleTime=30000
maxPoolSize=10
minPoolSize=1
jdbcUrl=jdbc\:oracle\:thin\:@192.168.1.20\:1521\:orcl
user=awmonitor
password=000000
dialect=org.hibernate.dialect.Oracle9Dialect
dxqrr 2012-03-29
  • 打赏
  • 举报
回复
TNSlistener启动没
zhuli_java 2012-03-29
  • 打赏
  • 举报
回复
明显的是数据连接错误啊
z____y 2012-03-29
  • 打赏
  • 举报
回复
检查一下你的oracl包有没有导入,再查一查你的url和driver有没有写正确;
yuxihongliang 2012-03-28
  • 打赏
  • 举报
回复
localhost:1521:orcl
这就很明显了!!自己去找找原因。。什么都帖出来问 有意思?
  • 打赏
  • 举报
回复
找到报错信息+Google一下,多查查
qq574444572 2012-03-28
  • 打赏
  • 举报
回复
你这段错误的大致意思就是不知道目前这样的主机,也就是说你连接数据,没有配置好,仔细检查下
soli11722984 2012-03-28
  • 打赏
  • 举报
回复
数据连接连不上啊
确定地址或端口或SID没错?

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧