java异常情况:[SetContextPropertiesRule]

1.警告:

 [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:
 SalesMangement' did not find a matching property.

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

解决方法:在Servers视图里双击创建的server,然后在其server的配置界面中选中"Publish module contexts to separate XML files"选项。

具体“Publish module contexts to separate XML files”是什么意思,请看Tomcat Publishing Options介绍:

Two new options which affect publishing are now available in the Server Options section of the Tomcat server editor. The Tomcat server must be 5.0.x or later for these options to be enabled. The Serve modules without publishing option does what it says. Web content will be served directly from the “WebContent” folder of the Dynamic Web Project.A customized context is used to make the project’s dependencies available in the Web application’s classloader. The Publish module contexts to separate XML files option will publish contexts using the preferred method of separate XML files under the “conf/Catalina/localhost” directory, rather than keeping them in the “server.xml” file. A couple of improvements for this option are noted in Bugs 180931 and 180936.

在Tomcat服务器编辑器的服务器选项部分,现在可以使用两个影响发布的新选项。Tomcat服务器必须是5.0.x或以后才能启用这些选项。没有发布选项的服务模块执行它所说的操作。Web内容将直接从动态Web项目的“WebContent”文件夹中提供。定制上下文用于使项目的依赖项在Web应用程序的类加载器中可用。Publish module context to separate XML files选项将使用首选的方法在“conf/Catalina/localhost”目录下发布上下文,而不是将它们保存在“服务器”中。xml”文件。在bug 180931和180936中注意到了这个选项的一些改进。

但问题是Context标签是不支持source这个属性的,所以跳出了警告,所以大家也发现的是,尽管有警告,但是大部分人的程序是依然可以运行没有问题的,但少部分人的不能够运行。

待解决(可忽略)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值