在做SSH整合的时候,遇到一个问题,在tomcat启动过程中,启动一半停住不动了,看下面的输出信息
23:56:19,350 INFO Environment:560 - Hibernate 3.3.2.GA
23:56:19,365 INFO Environment:578 - loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.hsqldb.jdbcDriver, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=sa, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:hsqldb:./build/db/hsqldb/hibernate, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1}
23:56:19,365 INFO Environment:609 - using java.io streams to persist binary types
23:56:19,365 INFO Environment:771 - Bytecode provider name : javassist
23:56:19,381 INFO Environment:652 - using JDK 1.4 java.sql.Timestamp handling
23:56:19,600 DEBUG DTDEntityResolver:64 - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
23:56:19,600 DEBUG DTDEntityResolver:66 - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
23:56:19,600 DEBUG DTDEntityResolver:76 - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
23:56:19,694 INFO HbmBinder:322 - Mapping class: com.wangdl.cn.webpro.entity.UserInfo -> userinfo
23:56:19,741 DEBUG HbmBinder:1289 - Mapped property: userId -> userid
23:56:19,756 DEBUG HbmBinder:1289 - Mapped property: username -> username
23:56:19,756 DEBUG HbmBinder:1289 - Mapped property: password -> password
23:56:19,756 DEBUG Configuration:1167 - processing extends queue
23:56:19,756 DEBUG Configuration:1171 - processing collection mappings
23:56:19,756 DEBUG Configuration:1182 - processing native query and ResultSetMapping mappings
23:56:19,756 DEBUG Configuration:1190 - processing association property references
23:56:19,756 DEBUG Configuration:1212 - processing foreign key constraints
23:56:19,756 DEBUG Configuration:1332 - Preparing to build session factory with filters : {}
23:56:19,756 DEBUG Configuration:1167 - processing extends queue
23:56:19,756 DEBUG Configuration:1171 - processing collection mappings
23:56:19,756 DEBUG Configuration:1182 - processing native query and ResultSetMapping mappings
23:56:19,756 DEBUG Configuration:1190 - processing association property references
23:56:19,756 DEBUG Configuration:1212 - processing foreign key constraints
23:56:19,881 INFO ConnectionProviderFactory:95 - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
通过不断的寻找,发现了问题的原因,原因是我在配置数据Url的时候,将端口信息配置错误,本来mysql的端口是3306,而我在项目中写的是8080,这次8080呢又很特别,特别之处就是在于tomcat启动的端口也是,这样就造成了查询到了8080端口是开启的,但就是连接不了, 由此造成这样的问题,兄弟们如果遇到这类问题,也可以看看是不是因为数据库的相关参数配置有问题,ok,就说到这儿吧。
分享到:
相关推荐
首先,在server.xml文件中添加Context元素,然后使用ssh连接到Tomcat服务器,并重启Tomcat服务。 四、JVM内存分配机制 JVM将内存分为不同的区,包括Heap space、PermGen space等。Heap space用于存放对象,GC会...
关于SSH,详情参见如下:https://zh.wikipedia.org/zh-cn/Secure_ShellSSH无法正常启动的几种报错信息ssh相关文件权
ssh整合的时候 启动tomcat常见的错误
这是我学习SSH时候做的案例,非常适合学习,这是按照标准的java EE规范写的代码。价值很大。欢迎参考和下载。只需要设计一张数据库表直接导入myeclipse可以直接中。类库齐全。现在和大家分享,共同学习和进步。
在CentOS7下,设置ssh自启动,修改ssh监听端口
通过A服务器自动登录其他服务器自动传输文件、删除文件、自动检测tomcat启动状态,控制启动和停止、可配置多条服务器进行同步处理,适合集群管理
远程启动服务 博文链接:https://memorymyann.iteye.com/blog/243447
SSH配置过程,介绍SSH的详细配置过程
ssh修改端口启动失败
下面将详细介绍 Ubuntu 中 SSH 服务的配置过程。 首先,在 Ubuntu 系统中,需要安装 openssh-server 软件包,以便启动 SSH 服务。可以使用 apt-get 工具来安装该软件包。打开终端命令行,输入以下命令: $ sudo ...
直接替换原先项目的Tomcat,将JavaWeb项目(Servlet、SSH、SSM框架的项目)直接部署到该Tomcat8中即可,无需做其他的额外的操作。 运行教程: 可以通过命令行catalina start启动,但是如果使用的是eclipse和IDEA工具...
NULL 博文链接:https://weizhilizhiwei.iteye.com/blog/1462592
tomcat struts2 spring hibernate java ee 源代码 文件来源 hibernate-release-4.1.3.Final.zip(官方下载) spring-framework-3.1.1.RELEASE-with-docs.zip(官方下载) struts-2.3.4-all.zip(官方下载...
很好的SSH框架实现过程,很好的SSH框架实现过程,很好的SSH框架实现过程,很好的SSH框架实现过程
一、 SSH启动失败的原因 SSH启动失败可能是由于权限问题引起的。例如,在 Linux 系统中,默认的私钥文件权限可能过于开放,导致 SSH 服务无法启动。在本文中,我们将看到如何解决这个问题。 二、 解决方法 1. ...
ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ssh shhs ssh ...
SSH整合_-简单登录过程详解SSH整合_-简单登录过程详解
ssh_jdk1.8+tomcat8.5,jdk1.7和jdk1.8 支持的框架版本不一样 还在为环境搭建发愁嘛|?一个文件夹帮你走出困境,朋友加油!你一定行!!!!!!