欢迎您, 来到 宁时修博客.^_^

运行Tomcat,无法访问项目的异常处理

2018/07/16 林木立 Tomcat 963
运行Tomcat,无法访问项目的异常处理

        使用Tomcat来运行Java项目时,Tomcat启动成功,无异常,却访问不了web界面,一直显示加载。

        查看catalina.out:

0    [16-Jul-2018 09:53:10] WARN  (ThreadPoolAsynchronousRunner.java:608) com.mchange.v2.async.ThreadPoolAsynchronousRunner  - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2c67624b -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
8    [16-Jul-2018 09:53:10] WARN  (ThreadPoolAsynchronousRunner.java:624) com.mchange.v2.async.ThreadPoolAsynchronousRunner  - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2c67624b -- APPARENT DEADLOCK!!! Complete Status: 
	Managed Threads: 3
	Active Threads: 3
	Active Tasks: 
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@9c3a78b (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7b112c0e (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@17b8b190 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
	Pending Tasks: 
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7fc83c0
		com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1397834b
Pool thread stack traces:
	Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
		java.lang.Thread.sleep(Native Method)
		
...................................................................................
...................................................................................

22387 [16-Jul-2018 09:53:32] WARN  (HqlSqlWalker.java:929) org.hibernate.hql.internal.ast.HqlSqlWalker  - [DEPRECATION] Encountered positional parameter near line 1, column 59.  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
22498 [16-Jul-2018 09:53:32] WARN  (HqlSqlWalker.java:929) org.hibernate.hql.internal.ast.HqlSqlWalker  - [DEPRECATION] Encountered positional parameter near line 1, column 61.  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
22518 [16-Jul-2018 09:53:32] WARN  (HqlSqlWalker.java:929) org.hibernate.hql.internal.ast.HqlSqlWalker  - [DEPRECATION] Encountered positional parameter near line 1, column 117.  Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.


    原因:80%是数据库连接配置或数据库等类似问题。

    1、jdbc.properties文件中数据库连接配置错误:

jdbc.url = 数据库地址
jdbc.username = 数据库账户
jdbc.password = 数据库密码


    2、要连接的数据库还不存在

点赞
说说你的看法

所有评论: (1)