2 sxg0205 sxg0205 于 2014.12.05 21:47 提问

tomcat7.0运行报错:No rules found 'Server/Service/...

tomcat7.0下运行工程报错:No rules found matching 'Server/Service/Engine/Host/Resource'

我的web工程中有个配置:
在contextConfigLocation中配置加载app-context.xml

然后在app-context.xml文件中有个配置:
<
jee:jndi-lookup id="mDS" jndi-name="java:comp/env/jdbc/MDS" />

然后我在ecplice的service标签下配置tomcat后,修改tomcat的context.xml文件,在<
Context中添加了一个Resource配置如下:
<
Resource driverClassName="org.gjt.mm.mysql.Driver"
maxActive="8" maxIdle="4" name="jdbc/MDS"
type="javax.sql.DataSource"
url="jdbc:mysql://localhost:3306/mdb?characterEncoding=UTF-8"
username="root" password="root" />

其余就没有配置了,然后再启动tomcat的时候就报了如下的错误:

2014-12-5 21:40:23 org.apache.catalina.core.AprLifecycleListener init
信息: 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.6.0_43\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jdk1.6.0_43/bin/../jre/bin/server;C:/Program Files/Java/jdk1.6.0_43/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_43/bin/../jre/lib/amd64;C:\Program Files\Java\jdk1.6.0_43\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;D:\software\apache-maven-3.2.1\bin;D:\tools\SVN\bin;D:\tools\MYSQL\MySQL Utilities 1.4.4\;D:\tools\MYSQL\MySQL Utilities 1.4.4\Doctrine extensions for PHP\;.;;D:\eclipse;;.;;.
2014-12-5 21:40:23 org.apache.tomcat.util.digester.Digester endElement
警告: No rules found matching 'Server/Service/Engine/Host/Resource'.
2014-12-5 21:40:23 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:m' did not find a matching property.

按照网上的各种方法试了都不行,请为下各位大神是什么原因,我用的tomcat7.0,jdk是jdk1.6.0_43,ecplise版本是Kepler Service Release 2,实在是黔驴技穷了,求帮助~~

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!