我添加了Debug / Run Configuration Local Tomcat。 我用过这个tutorial 雄猫7。 我使用Intellij。我试图运行我的项目并得到以下日志:
[2017-08-24 03:14:10,646] Artifact Spring trening:war exploded: Server is not connected. Deploy is not available.
Aug 24, 2017 3:14:11 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.81
....
Aug 24, 2017 3:14:11 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 178 ms
Connected to server
[2017-08-24 03:14:11,831] Artifact Spring trening:war exploded: Artifact is being deployed, please wait...
Aug 24, 2017 3:14:12 PM org.apache.catalina.deploy.WebXml setVersion
WARNING: Unknown version string [3.1]. Default version will be used.
Aug 24, 2017 3:14:12 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
Aug 24, 2017 3:14:12 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
[2017-08-24 03:14:12,212] Artifact Spring trening:war exploded: Error during artifact deployment. See server log for details.
Aug 24, 2017 3:14:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /home/pc/apache-tomcat-7.0.81/webapps/manager
Aug 24, 2017 3:14:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory /home/pc/apache-tomcat-7.0.81/webapps/manager has finished in 89 ms
我如何解决它?
我用Tomcat下载zip。在Idea中我指向了Tomcat。在我运行的控制台中出现此错误:
sudo apt-get upgrade libtcnative-1
在这个命令之后我得到了
....
insserv: loop involving service dns-clean at depth 1
insserv: Starting nifi depends on plymouth and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing package util-linux (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
util-linux
E: Sub-process /usr/bin/dpkg returned an error code (1)