Home > Back-end >  Tomcat project deployment issues
Tomcat project deployment issues

Time:09-24

41.696 严重 [main] org.apache.catalina.startup.Catalina.stopServer Could not contact [localhost:[8006]]. Tomcat may not be running.11-May-2020 21:24:45.147 严重 [main] org.apache.catalina.startup.Catalina.initDirs Cannot find specified temporary folder at [C:\admin\temp]11-May-2020 21:24:46.506 警告 [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'redirectPort' to '8444 ' did not find a matching property.11-May-2020 21:24:46.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.3211-May-2020 21:24:46.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 20 2018 19:50:35 UTC11-May-2020 21:24:46.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.32.011-May-2020 21:24:46.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows Server 201611-May-2020 21:24:46.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.011-May-2020 21:24:46.725 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd6411-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.8.0_131\jre11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_131-b1111-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\admin11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\admin11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\admin\conf\logging.properties11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=204811-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\admin11-May-2020 21:24:46.740 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\admin11-May-2020 21:24:46.756 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\admin\temp11-May-2020 21:24:46.756 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_131\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;%JAVA_HOME%\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;;.]11-May-2020 21:24:47.693 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-63214"]11-May-2020 21:24:48.240 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read11-May-2020 21:24:48.303 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8010"]11-May-2020 21:24:48.318 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read11-May-2020 21:24:48.318 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 3162 ms11-May-2020 21:24:48.459 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]11-May-2020 21:24:48.459 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.3211-May-2020 21:24:48.553 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\admin\webapps\admin.war]11-May-2020 21:24:56.397 信息 [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.11-May-2020 21:25:05.178 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file11-May-2020 21:25:05.194 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/admin] startup failed due to previous errors11-May-2020 21:25:05.240 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [admin] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.11-May-2020 21:25:05.240 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [admin] 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.11-May-2020 21:25:05.240 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [admin] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143) com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)11-May-2020 21:25:05.240 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [admin] appears to have started a thread named [Druid-ConnectionPool-Create-126857671] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2156) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2090) com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:795) com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44) sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:423) com.mysql.jdbc.Util.handleNewInstance(Util.java:404) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:327) com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148) com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211) com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142) com.alibaba.druid.filter.FilterAdapter.connection_connect(FilterAdapter.java:785) com.alibaba.druid.filter.FilterEventAdapter.connection_connect(FilterEventAdapter.java:38) com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142) com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211) com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142) com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1410) com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1464) com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1995)11-May-2020 21:25:05.256 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [admin] appears to have started a thread named [Druid-ConnectionPool-Destroy-126857671] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) com.alibaba.druid.pool.DruidDataSource$DestroyConnectionThread.run(DruidDataSource.java:2062)11-May-2020 21:25:05.287 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\admin\webapps\admin.war] has finished in [16,734] ms11-May-2020 21:25:05.303 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-63214"]11-May-2020 21:25:05.334 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8010"]11-May-2020 21:25:05.334 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 17022 ms
Couldn't log card here moved to visit the project page

CodePudding user response:

There are bosses come and watch

CodePudding user response:

Server will only run the tomcat you? If run multiple tomcat, conflict of ports are changed

CodePudding user response:

refer to the second floor ITjavaman response:
server will only run the tomcat you? If you run multiple tomcat, conflicts of ports are changed?

Is this a tomcat

CodePudding user response:

Modify tomcat cataline. Sh file in catalina. Sh first line increase JAVA_OPTS=- Djava. Security. Or egd=file:/dev/./urandom try,

CodePudding user response:

Or try to enter the JDK installation path, modify its directory/jre/lib/security/under "Java. Security" in the file "securerandom. Source=file:/dev/random" for "securerandom. Source=file:/dev/./urandom", directly modify the JDK configuration is a bit too much

CodePudding user response:

Check the shutdown and the redirectPort port have been occupied, and then to run tomcat can look at it, I feel or environmental conflict problems lead to the project you didn't come

CodePudding user response:

refer to 6th floor ITjavaman response:
check shutdown and redirectPort port have been occupied, and then to run tomcat can look at it, I feel the project or environmental conflict cause you don't come to

Is in the virtual machine is a running MYSQL source

CodePudding user response:

reference 5 floor got to have you give reply:
or try to enter the JDK installation path, modify its directory/jre/lib/security/under "Java. Security" in the file "securerandom. Source=file:/dev/random" for "securerandom. Source=file:/dev/./urandom", directly modify the JDK configuration is a bit too much

Still no such

CodePudding user response:

Change a tomcat web page 404

CodePudding user response:

refer to 7th floor rain god reply:
Quote: refer to the sixth floor ITjavaman response:
check shutdown and redirectPort port have been occupied, and then to run tomcat can look at it, I feel the project or environmental conflict cause you don't come to

Is in the virtual machine is installed a running MYSQL source

The virtual machine memory allocated enough

CodePudding user response:

references to the tenth floor ITjavaman response:
Quote: refer to 7th floor rain god reply:

Quote: refer to the sixth floor ITjavaman response:
check shutdown and redirectPort port have been occupied, and then to run tomcat can look at it, I feel the project or environmental conflict cause you don't come to

Is in the virtual machine is installed a running MYSQL source

Virtual machine memory allocated enough

Well, the distribution of don't know where to look for 4 g, isn't it

CodePudding user response:

You the problem of this project? Is what configuration there is a problem in the project, tomcat should be good

CodePudding user response:

The
refer to 12 floor mr_jy reply:
you the problem of this project? Is what configuration there is a problem in the project, tomcat should be good

Project is through the others should be no problem of testing is to use tencent cloud containing Java MYSQL win2012 r2 test initially thought system changed

CodePudding user response:

references from 13 floor, the rain god reply:
Quote: refer to 12 floor mr_jy reply:
you the problem of this project? Is what configuration there is a problem in the project, tomcat should be good

Project is through the others should be no problem of testing is to use tencent cloud containing Java MYSQL win2012 r2 test at first thought system problems not changed

But look inside the error and the database connection as if there were problems, or you could try the tomcat memory, don't feel like a memory leak problem,

CodePudding user response:

有个shutdown文件打开报错"C:\admin\bin\bootstrap.jar;C:\admin\bin\tomcat-juli.jar"13-May-2020 17:55:23.244 严重 [main] org.apache.catalina.startup.Catalina.stopServer Could not contact [localhost:[8006]]. Tomcat may not be running.13-May-2020 17:55:23.244 严重 [main] org.apache.catalina.startup.Catalina.stopServer Catalina.stop: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at java.net.Socket.connect(Socket.java:538) at java.net.Socket.(Socket.java:434) at java.net.Socket.(Socket.java:211) at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:497) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:406) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:495

CodePudding user response:

Connect the mysql error, check the database connection, the user name, password, and so on
  • Related