Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting property 'antiJARLocking' to 'true' did not find a matching property

My context.xml file:

 <?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/candy"/>

How can i get rid of this warning? My project is running on Netbeans and Tomcat 8.0.9: Setting property 'antiJARLocking' to 'true' did not find a matching property

like image 371
BornForJava Avatar asked Jan 30 '15 02:01

BornForJava


2 Answers

antiJARLocking is an attribute in Tomcat 7, which has been removed in Tomcat 8.

So, for Tomcat 8, just use antiResourceLocking.

https://tomcat.apache.org/tomcat-7.0-doc/config/context.html

https://tomcat.apache.org/tomcat-8.0-doc/config/context.html

like image 179
George Avatar answered Sep 19 '22 16:09

George


Remove the attribute from the context.xml file. Tomcat does not support it.

like image 40
GreyBeardedGeek Avatar answered Sep 23 '22 16:09

GreyBeardedGeek