org.apache.catalina.startup.VersionLoggerListener.log Java Home /*/jre,后面多了一个jre

时间:2024-03-25 20:56:20

配置阿里云服务器的时候,将tomcat装好,jdk装好,然后运行tomcat,然后就是访问不了。

redhat的tomcat中java_home多了一个jre

查看日志发现JAVA_HOME 变为/u01/jdk1.8/jdk1.8.0_102/jre 后面有了jre。
14-Jul-2019 20:19:58.764 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.43
14-Jul-2019 20:19:58.766 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jul 4 2019 20:53:15 UTC
14-Jul-2019 20:19:58.766 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.43.0
14-Jul-2019 20:19:58.766 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.10.0-514.26.2.el7.x86_64
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /u01/jdk1.8/jdk1.8.0_102/jre
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_102-b14
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /u01/apache-tomcat-8.5.43
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /u01/apache-tomcat-8.5.43
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/u01/apache-tomcat-8.5.43/conf/logging.properties
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
14-Jul-2019 20:19:58.767 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
14-Jul-2019 20:19:58.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
14-Jul-2019 20:19:58.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
14-Jul-2019 20:19:58.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/u01/apache-tomcat-8.5.43
14-Jul-2019 20:19:58.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/u01/apache-tomcat-8.5.43
14-Jul-2019 20:19:58.768 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/u01/apache-tomcat-8.5.43/temp
14-Jul-2019 20:19:58.768 INFO [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: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]
14-Jul-2019 20:19:59.031 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
14-Jul-2019 20:19:59.053 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
14-Jul-2019 20:19:59.066 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8009”]
14-Jul-2019 20:19:59.067 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
14-Jul-2019 20:19:59.086 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 985 ms
14-Jul-2019 20:19:59.125 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
14-Jul-2019 20:19:59.125 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.43
14-Jul-2019 20:19:59.170 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/u01/apache-tomcat-8.5.43/webapps/manager]

但是就是正确配置了
org.apache.catalina.startup.VersionLoggerListener.log Java Home /*/jre,后面多了一个jre
以下这两个配置文件也都写了
/root/.bash_profile
org.apache.catalina.startup.VersionLoggerListener.log Java Home /*/jre,后面多了一个jre
/etc/profile
org.apache.catalina.startup.VersionLoggerListener.log Java Home /*/jre,后面多了一个jre


暂未解决。。。。。。。。。。。正在努力!有大佬知道吗?