tomcat 7出现warning信息WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context}

eclipse 出现warning 纠结了好处。后来自己试着去找下原因,后来大胆试了一下,问题果然解决。


我的解决方法如下:

出现的是这个警告信息:

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Test' did not find a matching property.

说是找不到匹配属性。

然后就去看了一下worksapce/.metadata上的服务目标也是没有解决。后来大胆尝试,在项目的servier文件夹下有一个servier.xml,在最后的一行有这个上下文信息。




图中阴影部分删除掉,就问题解决,保存,重新启动tomcat就可以了。










[SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'sourc

08-11

求大佬指点rn八月 11, 2018 4:52:48 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:808web-1' did not find a matching property.rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/8.0.39rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Nov 9 2016 08:48:39 UTCrn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 8.0.39.0rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 10rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 10.0rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: D:\Java\JDK1.8\jrern八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.8.0_101-b13rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: G:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\tomcat-8.0.39rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=G:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\tomcat-8.0.39rn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=G:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebappsrn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\tomcat-8.0.39\endorsedrn八月 11, 2018 4:52:48 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=GBKrn八月 11, 2018 4:52:48 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\JDK1.8\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;D:/Java/JDK1.8/bin/../jre/bin/server;D:/Java/JDK1.8/bin/../jre/bin;D:/Java/JDK1.8/bin/../jre/lib/amd64;D:\Java\JDK1.8\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\;D:\MySQL Serve r5.5\bin;D:\MySQL Server5.5\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Users\MY\AppData\Local\Microsoft\WindowsApps;;D:\eclipse;;.rn八月 11, 2018 4:52:49 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-nio-8080"]rn八月 11, 2018 4:53:10 下午 org.apache.coyote.AbstractProtocol initrn严重: Failed to initialize end point associated with ProtocolHandler ["http-nio-8080"]rnjava.io.IOException: Unable to establish loopback connectionrn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)rn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.nio.ch.PipeImpl.(PipeImpl.java:171)rn at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)rn at java.nio.channels.Pipe.open(Pipe.java:155)rn at sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127)rn at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)rn at java.nio.channels.Selector.open(Selector.java:227)rn at org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector(NioSelectorPool.java:70)rn at org.apache.tomcat.util.net.NioSelectorPool.open(NioSelectorPool.java:145)rn at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:385)rn at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:760)rn at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)rn at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)rn at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)rn at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)rn at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:580)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:603)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)rnCaused by: java.net.ConnectException: Connection timed out: connectrn at sun.nio.ch.Net.connect0(Native Method)rn at sun.nio.ch.Net.connect(Net.java:454)rn at sun.nio.ch.Net.connect(Net.java:446)rn at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)rn at java.nio.channels.SocketChannel.open(SocketChannel.java:189)rn at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)rn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)rn ... 28 morernrn八月 11, 2018 4:53:10 下午 org.apache.catalina.core.StandardService initInternalrn严重: Failed to initialize connector [Connector[HTTP/1.1-8080]]rnorg.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8080]]rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)rn at org.apache.catalina.core.StandardService.initInternal(StandardService.java:568)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)rn at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:871)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:580)rn at org.apache.catalina.startup.Catalina.load(Catalina.java:603)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)rnCaused by: org.apache.catalina.LifecycleException: Protocol handler initialization failedrn at org.apache.catalina.connector.Connector.initInternal(Connector.java:962)rn at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)rn ... 12 morernCaused by: java.io.IOException: Unable to establish loopback connectionrn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)rn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.nio.ch.PipeImpl.(PipeImpl.java:171)rn at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)rn at java.nio.channels.Pipe.open(Pipe.java:155)rn at sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127)rn at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)rn at java.nio.channels.Selector.open(Selector.java:227)rn at org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector(NioSelectorPool.java:70)rn at org.apache.tomcat.util.net.NioSelectorPool.open(NioSelectorPool.java:145)rn at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:385)rn at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:760)rn at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:476)rn at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)rn at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)rn ... 13 morernCaused by: java.net.ConnectException: Connection timed out: connectrn at sun.nio.ch.Net.connect0(Native Method)rn at sun.nio.ch.Net.connect(Net.java:454)rn at sun.nio.ch.Net.connect(Net.java:446)rn at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)rn at java.nio.channels.SocketChannel.open(SocketChannel.java:189)rn at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)rn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)rn ... 28 morernrn八月 11, 2018 4:53:10 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-nio-8009"]rn八月 11, 2018 4:53:31 下午 org.apache.coyote.AbstractProtocol initrn严重: Failed to initialize end point associated with ProtocolHandler ["ajp-nio-8009"]rnjava.io.IOException: Unable to establish loopback connectionrn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)rn at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.nio.ch.PipeImpl.(PipeImpl.java:171)rn at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)rn at java.nio.channels.Pipe.open(Pipe.java:155)rn at sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127)rn at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)rn at java.nio.channels.Selector.open(Selector.java:227)rn at org 论坛

[SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source

07-19

rn2011-7-19 2:31:36 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:myloginstruts' did not find a matching property.rn2011-7-19 2:31:36 org.apache.catalina.core.AprLifecycleListener initrn信息: 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\jre1.6.0_03\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jre1.6.0_03/bin/client;C:/Program Files/Java/jre1.6.0_03/bin;E:\Oracle1\app\oracle\product\10.2.0\server\bin;E:\oracle\product\10.2.0\db_1\bin;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_03\bin;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\StormII\Codec;C:\Program Files\StormIIrn2011-7-19 2:31:36 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2011-7-19 2:31:36 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 425 msrn2011-7-19 2:31:36 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-7-19 2:31:36 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.18rn2011-7-19 2:31:36 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-7-19 2:31:36 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-7-19 2:31:36 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/16 config=nullrn2011-7-19 2:31:36 org.apache.catalina.startup.Catalina startrn信息: Server startup in 415 ms 论坛

没有更多推荐了,返回首页