`
zfwdl2005
  • 浏览: 232287 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

ssh tomcat启动过程中停住原因

    博客分类:
  • SSH
 
阅读更多
在做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,就说到这儿吧。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics