主题 : 用jeecmsv9.3-src源码编译打包启动报错
级别: 童生
UID: 74578
积分:21 加为好友
威望: 0 精华: 0
主题:1 回复:14
注册时间:2015-04-23
在线时长:0
1#   发表于:2019-09-10 11:53:21  IP:27.211.*.*
环境:
1、JDK: java version "1.8.0_161"
2、Tomcat:apache-tomcat-8.5.12
3、maven:apache-maven-3.6.0(连阿里云仓库)
直接,用 mvn install 打包生成 war 包,放到 tomcat webapps 目录下,启动报错。

Connected to server
[2019-09-10 11:08:14,332] Artifact jeecmsv9f:war exploded: Artifact is being deployed, please wait...
10-Sep-2019 11:08:23.940 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\INS\tomcat\apache-tomcat-8.5.12\webapps\manager
10-Sep-2019 11:08:24.312 信息 [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
10-Sep-2019 11:08:24.360 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\INS\tomcat\apache-tomcat-8.5.12\webapps\manager has finished in 419 ms
10-Sep-2019 11:08:42.964 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
10-Sep-2019 11:09:01.746 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
10-Sep-2019 11:09:01.748 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/jeecmsv9f] startup failed due to previous errors
10-Sep-2019 11:09:01.778 警告 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [jeecmsv9f] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
[2019-09-10 11:09:01,796] Artifact jeecmsv9f:war exploded: Error during artifact deployment. See server log for details.
10-Sep-2019 11:09:02.397 信息 [Abandoned connection cleanup thread] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:986)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

10-Sep-2019 11:09:07.357 信息 [Timer-0] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.io.IndentedWriter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.io.IndentedWriter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1293)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner.getMultiLineStatusString(ThreadPoolAsynchronousRunner.java:281)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner.access$100(ThreadPoolAsynchronousRunner.java:36)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run(ThreadPoolAsynchronousRunner.java:616)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Exception in thread "Timer-0" java.lang.NoClassDefFoundError: com/mchange/v2/io/IndentedWriter
at com.mchange.v2.async.ThreadPoolAsynchronousRunner.getMultiLineStatusString(ThreadPoolAsynchronousRunner.java:281)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner.access$100(ThreadPoolAsynchronousRunner.java:36)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector.run(ThreadPoolAsynchronousRunner.java:616)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.io.IndentedWriter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1295)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1158)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
... 5 more
Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [com.mchange.v2.io.IndentedWriter]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1305)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1293)
... 7 more
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
2#   发表于:2019-09-10 11:55:29  IP:117.68.*.*
您是开源版本的还是授权版本的?
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 74578
积分:21 加为好友
威望: 0 精华: 0
主题:1 回复:14
注册时间:2015-04-23
在线时长:0
3#   发表于:2019-09-10 13:28:50  IP:27.211.*.*
开源版本 jeecmsv9.3-src.zip
我改成
1、JDK: jdk1.7.0_79
2、Tomcat:apache-tomcat-7.0.50
3、maven:apache-maven-3.6.0(连阿里云仓库)
4、mysql:mysql-5.6.36-winx64(驱动:mysql-connector-java-5.1.33-bin.jar)
一样报错。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
4#   发表于:2019-09-10 13:40:37  IP:117.68.*.*
本地运行源码会报错吗?
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 74578
积分:21 加为好友
威望: 0 精华: 0
主题:1 回复:14
注册时间:2015-04-23
在线时长:0
5#   发表于:2019-09-10 14:06:37  IP:27.211.*.*
就是本地运行源代码,会报错。打成WAR包放到webapps目录下启动也会报错。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
6#   发表于:2019-09-10 14:17:33  IP:117.68.*.*
http://www.jeecms.com/rjaz/757.htm
您本地部署是这个步骤吗?
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 74578
积分:21 加为好友
威望: 0 精华: 0
主题:1 回复:14
注册时间:2015-04-23
在线时长:0
7#   发表于:2019-09-10 15:29:09  IP:121.124.*.*
jeecmsv9.3-src.zip 源码包 按说明 jeecmsv9.3-src.zip\说明.doc 步骤部署,如下截图。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
8#   发表于:2019-09-10 15:35:28  IP:117.68.*.*
能发下您的截图吗?
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 74578
积分:21 加为好友
威望: 0 精华: 0
主题:1 回复:14
注册时间:2015-04-23
在线时长:0
9#   发表于:2019-09-10 16:07:31  IP:121.124.*.*
级别: 童生
UID: 74578
积分:21 加为好友
威望: 0 精华: 0
主题:1 回复:14
注册时间:2015-04-23
在线时长:0
10#   发表于:2019-09-10 16:08:05  IP:121.124.*.*
按如上文档步骤。
1 2 > >| 共2页