警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TestTomcat

简介:  警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.

 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:TestTomcat6.0.16' did not find a matching property 收藏
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/jdk1.5.0_06/bin;.;C:/WINDOWS/system32;C:/WINDOWS;D:/study tools/Java/jdk1.5.0_06/bin/../jre/bin/client

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


出现SetPropertiesRule警告的原因是因为Tomcat在server.xml的Context节点中不支持source属性:<Context docBase="…" path="/…" source="org.eclipse.jst.j2ee.server:…"/>

注意:

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

使用上面红色字的方法决绝了上面的问题

debug属性具体配置在web.xml中,如下

<init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>


具体“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.

 

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/jinxinxin1314/archive/2009/08/11/4433134.aspx

目录
相关文章
|
5月前
|
XML 应用服务中间件 Android开发
【已解决】eclipse导入项目出错 Server Tomcat v7.0 Server at localhost failed to start
【已解决】eclipse导入项目出错 Server Tomcat v7.0 Server at localhost failed to start
50 0
|
Android开发
eclipse怎么调出server布局窗口
eclipse怎么调出server布局窗口
82 0
|
开发工具 Android开发 git
|
XML 应用服务中间件 Android开发
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
434 0
Eclipse出现Tomcat无法启动:Server Tomcat v8.5 Server at localhost failed to start问题
|
应用服务中间件 Apache Android开发
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server。
272 0
eclipse在导入一个Web项目后,配置好Tomcat发现项目打红叉,而WebContent和其他内容没有错误,但是右键run并没有run on Server
|
6月前
|
Java Maven Android开发
在Eclipse里配置Maven插件
Maven是一款比较常用的Java开发拓展包,它相当于一个全自动jar包管理器,会导入用户开发时需要使用的相应jar包。使用Maven开发Java程序,可以极大提升开发者的开发效率。下面我就跟大家介绍一下如何在Eclipse里安装和配置Maven插件。
145 0
|
6月前
|
XML Java Maven
eclipse 、idea 安装activiti插件
eclipse 、idea 安装activiti插件
151 0
|
11月前
|
Java Android开发
eclipse安装SpringBoot插件的无敌办法
eclipse安装SpringBoot插件的无敌办法
125 0
|
11月前
|
Java Android开发 Spring
在 Eclipse 中安装 SpringTools 插件
在 Eclipse 中安装 SpringTools 插件
124 0