`
Julysea
  • 浏览: 128800 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Server.xml中Context的Source属性问题

阅读更多
写道

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

使用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"选项。
 

我也遇到了这样问题。似乎是Eclipse的问题,我查了Context的属性集,没发现这个属性。报错是肯定的,为什么不是重大异常有些不明白。算是Eclipse的小Bug吧

 

分享到:
评论

相关推荐

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

    出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属性:&lt;Context docBase="…" path="/…" source="org.eclipse.jst.j2ee.server:…"/&gt; 解决方法是在Servers视图里双击创建...

    tomcat权威指南第二版.pdf

    context.xml 335 8. Debugging and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 Reading Logfiles 336 Hunting for Errors 337 URLs and the ...

    Java Jndi数据连接池,sql2000或者sql2005数据库

    dbcon = source.getConnection(); 需要导的包 import javax.naming.Context; import javax.naming.InitialContext; import javax.sql.DataSource; import java.sql.Connection; 5.给工程导包 ------sql2000...

    Spring中文帮助文档

    4.7.2. Application context构造器中资源路径的通配符 4.7.3. FileSystemResource 说明 5. 校验,数据绑定,BeanWrapper,与属性编辑器 5.1. 简介 5.2. 使用Spring的Validator接口进行校验 5.3. 从错误代码到...

    Maven权威指南 很精典的学习教程,比ANT更好用

    本例中所用的技术 7.2. simple-parent项目 7.3. simple-model模块 7.4. simple-weather模块 7.5. simple-persist模块 7.6. simple-webapp模块 7.7. 运行这个Web应用 7.8. simple-command模块 7.9. 运行这...

    Spring API

    4.7.2. Application context构造器中资源路径的通配符 4.7.3. FileSystemResource 说明 5. 校验,数据绑定,BeanWrapper,与属性编辑器 5.1. 简介 5.2. 使用Spring的Validator接口进行校验 5.3. 从错误代码到...

    JavaEE 5.0 Tutorial.pdf

    XML .............................................................................................................................................. 51 SOAP Transport Protocol .............................

    spring-boot-reference.pdf

    15.2. Importing XML Configuration 16. Auto-configuration 16.1. Gradually Replacing Auto-configuration 16.2. Disabling Specific Auto-configuration Classes 17. Spring Beans and Dependency Injection 18. ...

    spring-framework-reference4.1.4

    Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...

    ZendFramework中文文档

    5.4. Zend_Config_Xml 6. Zend_Console_Getopt 6.1. Getopt 简介 6.2. 声明 Getopt 规则 6.2.1. 用短语法声明选项 6.2.2. 用长语法声明选项 6.3. 读取(Fetching)选项和参数 6.3.1. 操作 Getopt 异常 6.3.2...

    spring-framework-reference-4.1.2

    Composing XML-based configuration metadata .......................................... 25 Using the container .......................................................................................... ...

    Jetty中文手册

    jetty.xml–Server configuration jetty-web.xml–Web App configuration jetty-env.xml–JNDI configuration webdefault.xml–Pre-web.xml configuration override-web.xml–Post-web.xml configuration 特性参考 ...

    [Go语言入门(含源码)] The Way to Go (with source code)

    The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................

    python3.6.5参考手册 chm

    PEP 3333: Python Web Server Gateway Interface v1.0.1 Other Language Changes New, Improved, and Deprecated Modules email elementtree functools itertools collections threading datetime and time ...

    hibernate3.6 文档(pdf 格式)

    截至 2011-08-29 官方公布的最新 hibernate 文档,此为英文版,配套中文版下载地址:http://download.csdn.net/source/3557584。 详细信息: 版本:3.6.3.Final,作者:Gavin King, Christian Bauer, Max Rydahl ...

    +Flex+集成到+Java+EE+应用程序的最佳实践(完整源代码)

    Property 的 SOURCE 属性由 BlazeDS 读取 XML 配置文件获得: 清单 12. 配置 destination 的 id &lt;destination id="flexService"&gt; &lt;properties&gt; &lt;factory&gt;flexFactory&lt;/factory&gt; &lt;source&gt;flexService&lt;/...

    将 Flex 集成到 Java EE 应用程序的最佳实践(完整源代码)

    Property 的 SOURCE 属性由 BlazeDS 读取 XML 配置文件获得: 清单 12. 配置 destination 的 id &lt;destination id="flexService"&gt; &lt;properties&gt; &lt;factory&gt;flexFactory&lt;/factory&gt; &lt;source&gt;flexService&lt;/...

    Araxis Merge Professional 2012.4162 (x86/x64).part1

    Use it to compare and merge source code, web pages, XML and other text files with native application performance. Directly open and compare the text from Microsoft Office (Word and Excel), ...

    Araxis Merge Professional 2012.4162 (x86/x64).part2

    Use it to compare and merge source code, web pages, XML and other text files with native application performance. Directly open and compare the text from Microsoft Office (Word and Excel), ...

Global site tag (gtag.js) - Google Analytics