为了账号安全,请及时绑定邮箱和手机立即绑定

一个古老的SSH程序问题

一个古老的SSH程序问题

有只小跳蛙 2019-02-21 16:29:20
有个很老的ssh程序,jdk是 1.6,tomcat 是 6.0.x,之前用的好好的,最近挂了,重启后,只要打开页面,填上信息点击登录,接着tomcat进程就没了,查看 日志如下 ,请问我该怎么处理这个问题? Hibernate 3.3.2 GA 挂的时候输出了个 Dec 23, 2017 7:38:10 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 Dec 23, 2017 7:38:11 AM org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina Dec 23, 2017 7:38:11 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Dec 23, 2017 7:38:12 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Dec 23, 2017 7:38:13 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated 1163392 [Thread-7] INFO org.hibernate.impl.SessionFactoryImpl - closing Dec 23, 2017 7:38:13 AM org.apache.coyote.http11.Http11Protocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 ps:我不是搞java的,我只想跑起来。。。。 root@2553d5a10f6c:/usr/local/tomcat/logs# cat localhost.2017-12-23.log Dec 23, 2017 7:18:49 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Dec 23, 2017 7:18:54 AM org.apache.catalina.core.ApplicationContext log INFO: Set web app root system property: 'apps.w' = [/usr/local/tomcat/webapps/ROOT/] Dec 23, 2017 7:18:54 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing log4j from [/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/log4j.properties] Dec 23, 2017 7:18:54 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf: null Dec 23, 2017 7:18:54 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok) Dec 23, 2017 7:38:13 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: destroy called Dec 23, 2017 7:38:13 AM org.apache.catalina.core.ApplicationContext log INFO: Shutting down log4j Dec 23, 2017 7:38:13 AM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext Dec 23, 2017 7:39:26 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Dec 23, 2017 7:39:27 AM org.apache.catalina.core.ApplicationContext log INFO: Set web app root system property: 'apps.w' = [/usr/local/tomcat/webapps/ROOT/] Dec 23, 2017 7:39:27 AM org.apache.catalina.core.ApplicationContext log INFO: Initializing log4j from [/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/log4j.properties] Dec 23, 2017 7:39:27 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf: null Dec 23, 2017 7:39:27 AM org.apache.catalina.core.ApplicationContext log INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok) Dec 23, 2017 7:18:44 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib Dec 23, 2017 7:18:44 AM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 23, 2017 7:18:44 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 922 ms Dec 23, 2017 7:18:44 AM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Dec 23, 2017 7:18:44 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.18 Dec 23, 2017 7:18:44 AM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive ROOT.war Dec 23, 2017 7:18:48 AM org.apache.catalina.core.StandardContext checkUnusualURLPattern INFO: Suspicious url pattern: "/webmana/left.do*" in context [] - see section SRV.11.2 of the Servlet specification 74 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GA 75 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found 83 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist 90 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling 210 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/config/EducationSysConfig.hbm.xml 367 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.config.entity.EducationSysConfig -> education_sys_config 391 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemPost.hbm.xml 422 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.post.entity.TSystemPost -> t_system_post 423 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemAtt.hbm.xml 433 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.attachment.entity.TSystemAtt -> t_system_att 434 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemRole.hbm.xml 441 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.role.entity.TSystemRole -> t_system_role 471 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemSource.hbm.xml 478 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.source.entity.TSystemSource -> t_system_source 478 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemOrg.hbm.xml 491 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.org.entity.TSystemOrg -> t_system_org 492 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemUser.hbm.xml 522 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.user.entity.TSystemUser -> t_system_user 527 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemFunction.hbm.xml 562 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.function.entity.TSystemFunction -> t_system_function 563 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemDict.hbm.xml 605 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.dict.entity.TSystemDict -> t_system_dict 606 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemPermission.hbm.xml 638 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.permission.entity.TSystemPermission -> t_system_permission 643 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemUserPermission.hbm.xml 667 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.permission.entity.TSystemUserPermission -> t_system_user_permission 668 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemLog.hbm.xml 714 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.log.entity.TSystemLog -> t_system_log 715 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemSearch.hbm.xml 745 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.function.entity.TSystemSearch -> t_system_search 745 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/system/TSystemDictType.hbm.xml 794 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.system.dict.entity.TSystemDictType -> t_system_dict_type 795 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/webmana/TCaizhengGzsj.hbm.xml 856 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.caizheng.entity.Gzsj -> t_caizheng_gzsj 879 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/webmana/TCaizhengYhxx.hbm.xml 961 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.caizheng.entity.Yhxx -> t_caizheng_yhxx 962 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/webmana/TCaizhengDwxx.hbm.xml 1013 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.caizheng.entity.Dwxx -> t_caizheng_dwxx 1013 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/webmana/TCaizhengSjgz.hbm.xml 1086 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.caizheng.entity.Sjgz -> t_caizheng_sjgz 1097 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from file: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/conf/mapping/webmana/TCaizhengRsxx.hbm.xml 1135 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: net.atrunning.caizheng.rsxx.entity.Rsxx -> t_caizheng_rsxx 1301 [main] WARN org.hibernate.cfg.Environment - Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately 1309 [main] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider 2027 [main] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.6.36 2027 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ ) 2101 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect 2118 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory 2119 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) 2119 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled 2119 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled 2120 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled 2120 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled 2120 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto 2120 [main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2 2120 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 3 2120 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled 2121 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled 2121 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled 2121 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory 2137 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory 2137 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {} 2137 [main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled 2137 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled 2137 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled 2137 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory 2137 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled 2138 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled 2163 [main] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout 2176 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled 2176 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled 2176 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo 2176 [main] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled 2405 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory 3355 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured Hibernate: select this_.ENAME as ENAME13_0_, this_.CNAME as CNAME13_0_, this_.TYPEDESC as TYPEDESC13_0_ from t_system_dict_type this_ order by this_.ENAME asc Hibernate: select this_.DNAME as DNAME8_0_, this_.TYPEID as TYPEID8_0_, this_.l_index as l3_8_0_, this_.DVALUE as DVALUE8_0_, this_.SORTNUM as SORTNUM8_0_ from t_system_dict this_ where this_.TYPEID=? order by this_.SORTNUM asc Hibernate: select tsystemdic0_.ENAME as ENAME13_0_, tsystemdic0_.CNAME as CNAME13_0_, tsystemdic0_.TYPEDESC as TYPEDESC13_0_ from t_system_dict_type tsystemdic0_ where tsystemdic0_.ENAME=? Hibernate: select this_.DNAME as DNAME8_0_, this_.TYPEID as TYPEID8_0_, this_.l_index as l3_8_0_, this_.DVALUE as DVALUE8_0_, this_.SORTNUM as SORTNUM8_0_ from t_system_dict this_ where this_.TYPEID=? order by this_.SORTNUM asc Hibernate: select tsystemdic0_.ENAME as ENAME13_0_, tsystemdic0_.CNAME as CNAME13_0_, tsystemdic0_.TYPEDESC as TYPEDESC13_0_ from t_system_dict_type tsystemdic0_ where tsystemdic0_.ENAME=? Hibernate: select this_.DNAME as DNAME8_0_, this_.TYPEID as TYPEID8_0_, this_.l_index as l3_8_0_, this_.DVALUE as DVALUE8_0_, this_.SORTNUM as SORTNUM8_0_ from t_system_dict this_ where this_.TYPEID=? order by this_.SORTNUM asc Hibernate: select tsystemdic0_.ENAME as ENAME13_0_, tsystemdic0_.CNAME as CNAME13_0_, tsystemdic0_.TYPEDESC as TYPEDESC13_0_ from t_system_dict_type tsystemdic0_ where tsystemdic0_.ENAME=? Hibernate: select this_.DNAME as DNAME8_0_, this_.TYPEID as TYPEID8_0_, this_.l_index as l3_8_0_, this_.DVALUE as DVALUE8_0_, this_.SORTNUM as SORTNUM8_0_ from t_system_dict this_ where this_.TYPEID=? order by this_.SORTNUM asc Hibernate: select tsystemdic0_.ENAME as ENAME13_0_, tsystemdic0_.CNAME as CNAME13_0_, tsystemdic0_.TYPEDESC as TYPEDESC13_0_ from t_system_dict_type tsystemdic0_ where tsystemdic0_.ENAME=? Hibernate: select this_.DNAME as DNAME8_0_, this_.TYPEID as TYPEID8_0_, this_.l_index as l3_8_0_, this_.DVALUE as DVALUE8_0_, this_.SORTNUM as SORTNUM8_0_ from t_system_dict this_ where this_.TYPEID=? order by this_.SORTNUM asc Hibernate: select tsystemdic0_.ENAME as ENAME13_0_, tsystemdic0_.CNAME as CNAME13_0_, tsystemdic0_.TYPEDESC as TYPEDESC13_0_ from t_system_dict_type tsystemdic0_ where tsystemdic0_.ENAME=? Dec 23, 2017 7:18:55 AM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Dec 23, 2017 7:18:55 AM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Dec 23, 2017 7:18:55 AM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/76 config=null Dec 23, 2017 7:18:55 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 11655 ms Hibernate: select this_.Id as Id0_0_, this_.varname as varname0_0_, this_.info as info0_0_, this_.groupid as groupid0_0_, this_.type as type0_0_, this_.value as value0_0_ from education_sys_config this_ where this_.varname like ? order by this_.Id asc Hibernate: select this_.Id as Id0_0_, this_.varname as varname0_0_, this_.info as info0_0_, this_.groupid as groupid0_0_, this_.type as type0_0_, this_.value as value0_0_ from education_sys_config this_ where this_.varname like ? order by this_.Id asc Hibernate: select this_.Id as Id0_0_, this_.varname as varname0_0_, this_.info as info0_0_, this_.groupid as groupid0_0_, this_.type as type0_0_, this_.value as value0_0_ from education_sys_config this_ where this_.varname like ? order by this_.Id asc Hibernate: select this_.Id as Id0_0_, this_.varname as varname0_0_, this_.info as info0_0_, this_.groupid as groupid0_0_, this_.type as type0_0_, this_.value as value0_0_ from education_sys_config this_ where this_.varname like ? order by this_.Id asc
查看完整描述

1 回答

?
慕码人8056858

TA贡献1803条经验 获得超6个赞

看不出什么,不过日志确实说服务停止了。启动也没什么大问题。hql语句也输出正常。不知道您所说的进程没了是指哪方面。您最好要hibernate与数据库的版本兼容要注意一下。我是java开发的,以前用的Mysql5.0,后来数据库升级为5.7以后以前的程序是可以跑起来,但是Hibernate不兼容。查出来都是空指针异常。您可以试着打印是否可以查的到数据库。虽然您的Hql是打印出来了,但不确保可以正常的访问数据库

查看完整回答
反对 回复 2019-03-01
  • 1 回答
  • 0 关注
  • 610 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信