Warning: [Setcontextpropertiesrule]{context} Setting Property ' source ' to ' org.eclipse.jst.jee.server:JsonBlog ' do not find A matching property.

Source: Internet
Author: User
Tags apache tomcat

This problem has been troubling for a long time, visited a lot of forums, finally resolved

My console error is as follows:

MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log information: Server version:apache Tomcat/7.0. -MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log information: Server Built:jan -  -  the:Wuyi:TenUTC MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log information: Server number:7.0.59.0MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log info: OS name:windows7MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log information: OS Version:6.1MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log info: architecture:amd64 MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log info: Java home:d:\java\jre MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log information: JVM Version:1.7.0_80-B15 MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log information: JVM vendor:oracle Corporation MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log Info: catalina_base:d:\ddp\.metadata\.plugins\org.ecl IPSE.WST.SERVER.CORE\TMP1 MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log info: Catalina_home:d:\tomcat7.0MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-dcatalina.base=D:\DDP\.METADATA\.PLUGINS\ORG.ECLIPSE.WST.SERVER.CORE\TMP1 MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-dcatalina.home=d:\tomcat7.0MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-dwtp.deploy=D:\ddp\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-djava.endorsed.dirs=d:\tomcat7.0\endorsed MayTen, . 5: at:Genevapm Org.apache.catalina.startup.VersionLoggerListener Log message: Command line argument:-dfile.encoding=GBK MayTen, . 5: at:Genevaafternoon Org.apache.catalina.core.AprLifecycleListener lifecycleevent info: The APR based Apache Tomcat NativeLibrarywhich allows optimal performance in production environments was notFound on the java.Library. Path:d:\java\jre\bin; C:\Windows\Sun\Java\bin; C:\Windows\system32; C:\Windows; C:\Program Files (x86) \intel\icls client\; C:\Program Files\intel\icls client\; C:\Program Files (x86) \nvidia Corporation\physx\common; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Windows\System32\WindowsPowerShell\v1.0\; C:\Program Files\intel\intel (R) Management Engine components\dal; C:\Program Files\intel\intel (R) Management Engine components\ipt; C:\Program Files (x86) \intel\intel (R) Management Engine components\dal; C:\Program Files (x86) \intel\intel (R) Management Engine components\ipt; C:\Program Files (x86) \microsoft SQL Server\ the\tools\binn\; C:\Program Files (x86) \microsoft SQL Server\ -\dts\binn\; C:\Program Files (x86) \microsoft SQL Server\ -\tools\binn\; C:\Program Files (x86) \microsoft SQL Server\ -\tools\binn\vsshell\common7\ide\; C:\Program Files (x86) \microsoft Visual Studio8\common7\ide\privateassemblies\; C:\Program Files (x86) \microsoft SQL Server\ -\tools\binn\; C:\Program Files\Microsoft SQL Server\ -\tools\binn\; C:\Program Files\Microsoft SQL Server\ -\dts\binn\; C:\Program Files (x86) \microsoft Asp.net\asp.net Web Pages\v1.0\; C:\wamp\bin\php\php5.3.13;D: \java\jdk1.7.0_80\bin;d:\java\jdk1.7. 0_80\jre\bin;. MayTen, . 5: at:Genevapm Org.apache.coyote.AbstractProtocol init info: Initializing Protocolhandler ["http-bio-8888"] MayTen, . 5: at:Genevapm Org.apache.coyote.AbstractProtocol init info: Initializing Protocolhandler ["ajp-bio-8010"] MayTen, . 5: at:Genevapm Org.apache.catalina.startup.Catalina Load Info: initialization processed in481Ms MayTen, . 5: at:Genevapm Org.apache.catalina.core.StandardService startinternal Info: Starting service Catalina MayTen, . 5: at:Genevaafternoon Org.apache.catalina.core.StandardEngine startinternal info: Starting Servlet engine:apache Tomcat/7.0. -MayTen, . 5: at:Genevapm Org.apache.catalina.startup.HostConfig deploydescriptor Info: Deploying configuration Descriptor D:\ddp\. Metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\catalina\localhost\jsonblog.xml MayTen, . 5: at:GenevaAfternoon Org.apache.catalina.startup.SetContextPropertiesRulebeginwarning: [Setcontextpropertiesrule]{context} Setting Property'Source'To'Org.eclipse.jst.jee.server:JsonBlog'Did notfind a matching property. MayTen, . 5: at:Genevapm Org.apache.catalina.loader.WebappClassLoader validatejarfile Info: validatejarfile (D:\ddp\.metadata\.plugins\ Org.eclipse.wst.server.core\tmp1\wtpwebapps\jsonblog\web-inf\lib\javaee-api-7.0. jar)-jar notLoaded. See Servlet Spec3.0, section10.7.2. Offending class:javax/servlet/Servlet.class MayTen, . 5: at: topm Org.apache.catalina.core.ApplicationContext Log info: No Spring webapplicationinitializer types detected on Classpath MayTen, . 5: at: toafternoon Org.apache.catalina.startup.HostConfig Deploydescriptor Info: Deployment of configuration Descriptor D:\ddp\. Metadata\.plugins\org.eclipse.wst.server.core\tmp1\conf\catalina\localhost\jsonblog.xml have finished in1,164Ms MayTen, . 5: at: topm Org.apache.coyote.AbstractProtocol Start Info: Starting Protocolhandler ["http-bio-8888"] MayTen, . 5: at: topm Org.apache.coyote.AbstractProtocol Start Info: Starting Protocolhandler ["ajp-bio-8010"] MayTen, . 5: at: topm Org.apache.catalina.startup.Catalina Start info: Server startup in1568Ms
View Code

1, on-line solution: Double-click the server in the Servers view, select the "Publish module contexts to separate XML files" option in the server Options bar.

However, this solution in TOMCAT6 easy to use, not suitable for tomcat7;

2, there are ways to solve this:
Close Tomcat, remove the source property of the context in Server.xml, and then point the Docbase property to the corresponding item in the default Wtpwebapps directory, such as:
such as: <context docbase= ". /wtpwebapps/your project name "path="/"reloadable=" true "/>
How to see where your Wtpwebapps folder is:
Server Console: Right-click Properties-general See location is your Tomcat working directory, if displayed is your project directory, project/.metadata/.plugins/ Org.eclipse.wst.server.core/under a temporary folder named after temp+, in its directory found Wtpwebapps, there is your project.

But this, not with my appearance this time, at first I thought it was a cache problem, deliberately deleted my project, re-clean build, or not

3, inspiration to and blog: http://blog.csdn.net/generalyy0/article/details/7623882

My solution:

1) Remove the servers item first

2) Modify the configuration file of the Tomcat server

3) Delete the configuration of your project (no tube, direct operation next)

4) Re-clean build

5) The last step, add the item to servers

Warning: [Setcontextpropertiesrule]{context} Setting Property ' source ' to ' org.eclipse.jst.jee.server:JsonBlog ' do not find A matching property.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.