`

[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property...

阅读更多
转载自     一块宝田      http://hi.baidu.com/tthy0315/blog/item/029f91333e4da745ac4b5f73.html
[SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property...
2008-08-28 09:46

使用Tomcat 6.0.16搭配eclipse创建Dynamic Web Project后,在项目上按右键,选择Run As -> Run on Server方式启动Tomcat服务器。在Console工作台中就会出现如下的红色警告信息,让人不爽。

2008-6-4 21:49:00 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:cont' did not find a matching property.
2008-6-4 21:49:00 org.apache.catalina.core.AprLifecycleListener init
2008-6-4 21:49:00 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080

在网上查找答案,有的说将Tomcat的版本换成6.0.14就可以了;还有的说在建立Dynamic Web Project时把"Dynamic Web Module"选项后面的版本号由2.5改成2.4也行。不过这些回答好像都不能真正地解决问题。只能自己想办法查找解决方法。

出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属性

<Context docBase="..." path="/cont" source="org.eclipse.jst.j2ee.server:cont"/>

 

解决方法是在Server的配置界面中选中"Publish module contexts to separate XML files"选项。

分享到:
评论

相关推荐

    警告: [SetPropertiesRule]

    这个是教你怎么处理这个错误的一个解说。我的问题解决了。 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source'

    java基础知识,基础知识

    警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jwgl' did not find a matching property. 3月 17, 2019 10:51:41 上午 org.apache....

    maven tomcat

    [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property'source'to'org.eclipse.jst.j2ee.server:mavenWeb'did not find a matching property. ``` - 双击新添加的Server,进入配置界面。 -...

    解决eclpise中启动tomcat6出现红色警告的问题

    警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TestTomcat6.0.16' did not find a matching property. ``` 此外,还会收到关于Apache...

    struts-2.3.8+spring-3.2.1+mybatis-3.2.2架构

    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:autofactory' did not find a matching property. 九月 18, 2013 11:39:02 上午 org...

Global site tag (gtag.js) - Google Analytics