How to configure context.xml in netbeans IDE?
Dear forum members,
I've been trying to configure context.xml but no matter what I do, I still get the below error:
cvc-elt.1: Cannot find the declaration of element 'Context' .
Here's what appeared in my context.xml.
<?xml version="1.0" encoding="UTF-8?>
<Context antiJARLOCKing= "true" path="Web" reloadable="true">
<Resource name="jdbc/Web auth="Container" type="javax.sql.DataSource" username="root" password="xxx" driverClassName="com.mysql.jdbc.Driver" url="jdbc://localhost:3306/pract1"></Reource>
I'm using Heidi mysql as my database. The J-connector driver jar file is added in the library.
I hope someone can advise me where I had gone wrong.
Re: How to configure context.xml in netbeans IDE?
it should be <context>, not <Context>