zoukankan      html  css  js  c++  java
  • Myeclipse中启动tomcat 异常

    信息: Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
    2014-5-8 14:35:30 org.hibernate.connection.ConnectionProviderFactory initializeConnectionProviderFromConfig

    信息: Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider

     
    等了几分钟,出现:
    java.sql.SQLException: The Network Adapter could not establish the connection
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
    Caused by: java.net.ConnectException: Connection timed out: connect
     
    错误信息表示数据库连接失败
     
    原因:
    tomcat 的 webapps目录下,部署的工程目录为mamp,里面的配置也没问题
    但是同级目录下有mamp.myeclipse.bak这个目录,里面的配置和代码是改了之前的(配置:数据库连接信息等)
    Eclipse中启动tomcat的时候,默认启动了mamp.myeclipse.bak
     
    解决办法:把mamp.myeclipse.bak删去
     
    解决思路:
    1. SVN更新
    2. 正确的配置文件改错了重启,看是否报错
    3. odbc jar包去掉重启,看是否报错
    4. tomcat的lib下可能有odbc的jar去掉重启
    5. 检查tomcat中配置文件
    6. tomcat的webapp目录下不用的工程删除
     
    注:  在第 6 步中发现了问题
  • 相关阅读:
    [vue Debugger] sourcemap
    [vuex]持久化存储
    [vuex]字典值封装到vuex缓存
    [vue]常用指令集合
    VSCode插件集合
    [element-ui] 表格点击出现编辑效果实现
    [pdf] 插件实现pdf上传预览、打印
    [html] 特殊字符
    [element-ui] 穿梭框对象重复不添加方案
    Redis持久化
  • 原文地址:https://www.cnblogs.com/-wangjiannan/p/3723169.html
Copyright © 2011-2022 走看看