0
剛升級的軟件在我的數字海洋Ubuntu 14.04液滴上 sudo apt-get update和sudo apt-get upgrade。不幸的是,我沒有正確地閱讀這個問題 - 關於tomcat7和java的一些東西。由於這個tomcat7沒有響應端口8080 - 最終超時。tomcat7在Ubuntu上升級後沒有綁定到端口8080 14.04
PS英法| grep的tomcat的:
tomcat7 1711 1 2 15:16 ? 00:00:53 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx256m -Xms48m -XX:SoftRefLRUPolicyMSPerMB=36000 -XX:MaxPermSize=128m -XX:+UseConcMarkSweepGC -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start
tree-ma+ 2056 1596 0 15:53 pts/1 00:00:00 grep --color=auto tomcat
catalina.out的輸出:
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 657 ms
Apr 25, 2017 3:16:19 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 25, 2017 3:16:19 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/geoserver.war
log4j:WARN File option not set for appender [geoserverlogfile].
log4j:WARN Are you using FileAppender instead of ConsoleAppender?
Apr 25, 2017 3:16:36 PM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup occured, but ApplicationContext is unset.
catalina.2017-04-25.log:
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared], exists: [false], isDirectory: [false], canRead: [false]
Apr 25, 2017 3:16:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 657 ms
Apr 25, 2017 3:16:19 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Apr 25, 2017 3:16:19 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Apr 25, 2017 3:16:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /var/lib/tomcat7/webapps/geoserver.war
Apr 25, 2017 3:16:36 PM org.geoserver.platform.GeoServerExtensions checkContext
WARNING: Extension lookup occured, but ApplicationContext is unset.
的netstat -na | grep -e 8080給出:
tcp6 0 0 :::8080 :::* LISTEN
tcp6 510 0 95.85.22.89:8080 176.71.34.121:49840 CLOSE_WAIT
tcp6 510 0 95.85.22.89:8080 176.71.34.121:49837 CLOSE_WAIT
tcp6 380 0 95.85.22.89:8080 83.248.187.2:46220 CLOSE_WAIT
tcp6 510 0 95.85.22.89:8080 176.71.34.121:49841 CLOSE_WAIT
tcp6 510 0 95.85.22.89:8080 176.71.34.121:49836 CLOSE_WAIT
tcp6 379 0 95.85.22.89:8080 83.248.187.2:46355 ESTABLISHED
tcp6 510 0 95.85.22.89:8080 176.71.34.121:49839 CLOSE_WAIT
tcp6 510 0 95.85.22.89:8080 176.71.34.121:49838 CLOSE_WAIT
83.248.187.2是我的家。
NMAP 95.85.22.89從我的電腦顯示:
Starting Nmap 6.40 (http://nmap.org) at 2017-04-25 16:46 CEST
Nmap scan report for 95.85.22.89
Host is up (0.067s latency).
Not shown: 991 closed ports
PORT STATE SERVICE
25/tcp filtered smtp
80/tcp open http
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
443/tcp open https
445/tcp filtered microsoft-ds
1025/tcp filtered NFS-or-IIS
6129/tcp filtered unknown
8080/tcp open http-proxy
所以8080是開放的。 我有一個web應用程序 - geoserver(v2.5.5.8我認爲,但不能得到它只是!) 任何想法?
您能夠訪問Tomcat主頁@ http://主機名:8080嗎? – VivekRatanSinha
否 - 請求超時 – minisaurus
通過在$ {catalina.base} /conf/logging.properties文件中添加org.apache.catalina.level = FINEST來啓用catalina的FINEST日誌記錄。這可能會揭示一些原因。 – VivekRatanSinha