在服务器用 Apache Tomcat/8.5.6的解压版部署网站,加载不了网站,并且服务器了退出

渊兮 发布于 2016/10/20 22:03
阅读 1K+
收藏 0

我在服务器用 Apache Tomcat/8.5.6的解压版搭建网站,在没加入网站代码时,手动startup.bat,可以访问tomcat的默认网页,应该是成功的;但将网站代码放入webapps后,手动启动就卡在加载网站上,直接闪退。可是在自己的电脑上运行的很好,没出错,不知道哪出错了。

这是catalina.2016-10-20.log上的记录:

20-Oct-2016 21:26:50.317 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version:        Apache Tomcat/8.5.6
20-Oct-2016 21:26:50.442 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Oct 6 2016 20:15:31 UTC
20-Oct-2016 21:26:50.442 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number:         8.5.6.0
20-Oct-2016 21:26:50.442 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Windows Server 2008 R2
20-Oct-2016 21:26:50.442 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            6.1
20-Oct-2016 21:26:50.458 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\websoft\Java\jdk1.7.0_80\jre
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.7.0_80-b15
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\websoft\apache-tomcat-8.5.6
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         C:\websoft\apache-tomcat-8.5.6
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\websoft\apache-tomcat-8.5.6\conf\logging.properties
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\websoft\apache-tomcat-8.5.6
20-Oct-2016 21:26:50.473 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\websoft\apache-tomcat-8.5.6
20-Oct-2016 21:26:50.489 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\websoft\apache-tomcat-8.5.6\temp
20-Oct-2016 21:26:50.489 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library 1.2.10 using APR version 1.5.2.
20-Oct-2016 21:26:50.489 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
20-Oct-2016 21:26:50.489 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
20-Oct-2016 21:26:51.270 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized (OpenSSL 1.0.2j  26 Sep 2016)
20-Oct-2016 21:26:52.223 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
20-Oct-2016 21:26:52.364 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
20-Oct-2016 21:26:52.380 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
20-Oct-2016 21:26:52.395 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
20-Oct-2016 21:26:52.395 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 4249 ms
20-Oct-2016 21:26:52.505 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
20-Oct-2016 21:26:52.505 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.6
20-Oct-2016 21:26:52.536 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\websoft\apache-tomcat-8.5.6\webapps\docs
20-Oct-2016 21:26:54.442 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\websoft\apache-tomcat-8.5.6\webapps\docs has finished in 1,906 ms
20-Oct-2016 21:26:54.442 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\websoft\apache-tomcat-8.5.6\webapps\examples
20-Oct-2016 21:26:55.645 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory C:\websoft\apache-tomcat-8.5.6\webapps\examples has finished in 1,203 ms
20-Oct-2016 21:26:55.645 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory C:\websoft\apache-tomcat-8.5.6\webapps\fenxiangs

百度了好久,基本上没什么用。希望在这里得到大家的帮助,谢谢!!!!



加载中
0
554330833a
554330833a
没看出什么,把javaw.exe进程关掉再试一下
554330833a
554330833a
回复 @渊兮 : 那你换成Tomcat7或者其他版本可以吗?
渊兮
渊兮
回复 @554330833a : 不是这里的问题。java_home的配置没错。单个解压版tomcat也不用配置 CATALINA_HOM
554330833a
554330833a
回复 @渊兮 : 那试一下 在bin\startup.bat文件中的第一行前面加入: SET JAVA_HOME=(JDK目录) SET CATALINA_HOME=(解压后Tomcat的目录) 运行一下
渊兮
渊兮
额。tomcat都没启动成功,哪来的javaw.exe.....
返回顶部
顶部