关于Mac版idea16连接tomcat服务器的问题。

hmy0416 发布于 2017/03/08 21:07
阅读 551
收藏 0

程序如图,一个简单的程序,原来可以直接在浏览器上显示的,但是连接了idea后一编译就变成下面这样了。浏览器也会打开,可是只有“$END$”,望知情大神解答下!!

/Library/apache-tomcat-7.0.75/bin/catalina.sh run
[2017-03-08 08:44:22,275] Artifact untitled2:war exploded: Server is not connected. Deploy is not available.
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.75
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Jan 18 2017 20:54:42 UTC
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.75.0
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Mac OS X
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            10.12.2
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          x86_64
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_121-b13
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         /Users/liuzhilong/Library/Caches/IntelliJIdea2016.1/tomcat/Tomcat_7_0_75_untitled2
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         /Library/apache-tomcat-7.0.75
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=/Users/liuzhilong/Library/Caches/IntelliJIdea2016.1/tomcat/Tomcat_7_0_75_untitled2/conf/logging.properties
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote=
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=/Library/apache-tomcat-7.0.75/endorsed
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=/Users/liuzhilong/Library/Caches/IntelliJIdea2016.1/tomcat/Tomcat_7_0_75_untitled2
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=/Library/apache-tomcat-7.0.75
三月 08, 2017 8:44:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=/Library/apache-tomcat-7.0.75/temp
三月 08, 2017 8:44:24 下午 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: /Users/liuzhilong/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
三月 08, 2017 8:44:25 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
三月 08, 2017 8:44:25 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
三月 08, 2017 8:44:25 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1639 ms
三月 08, 2017 8:44:25 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
三月 08, 2017 8:44:25 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.75
三月 08, 2017 8:44:25 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
三月 08, 2017 8:44:25 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
三月 08, 2017 8:44:25 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 82 ms
Connected to server
[2017-03-08 08:44:25,560] Artifact untitled2:war exploded: Artifact is being deployed, please wait...
三月 08, 2017 8:44:25 下午 org.apache.catalina.deploy.WebXml setVersion
警告: Unknown version string [3.1]. Default version will be used.
[2017-03-08 08:44:26,079] Artifact untitled2:war exploded: Artifact is deployed successfully
[2017-03-08 08:44:26,080] Artifact untitled2:war exploded: Deploy took 520 milliseconds
三月 08, 2017 8:44:35 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory /Library/apache-tomcat-7.0.75/webapps/manager
三月 08, 2017 8:44:35 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory /Library/apache-tomcat-7.0.75/webapps/manager has finished in 64 ms

 

加载中
0
晨儿
晨儿

正常情况下就是如此,因为index页面上写的就是$END$

返回顶部
顶部