Dear forum members,

I'd like to seek advise on my context.xml and find out the proper way to do things.


<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/WebApplication1"/>
 
<?xml version='1.0' encoding='ISO-8859-1' ?>
<Context reloadable="true">
  <!--
    maxActive: Maximum number of dB connections in pool. Set to -1 for no limit.
    maxIdle: Maximum number of idle dB connections to retain in pool. Set to -1 for no limit.
    maxWait: Maximum milliseconds to wait for a dB connection to become available
             Set to -1 to wait indefinitely.
  -->
  <Resource name="jdbc/WebApplication1" auth="Container" type="javax.sql.DataSource"
 
     username="root" password="123" driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://localhost:3306/pract1" />
</Context>

The error message from NetBeans IDE is:

\web\META-INF\context.xml seems to be broken. Please make sure it is parseable and valid.
See the server log for details.

Caused by: java.lang.RuntimeException: DOM graph creation failed: org.netbeans.modules.schema2beans.Schema2BeansRunt imeException: Failed to create the XML-DOM Document. Check your XML to make sure it is correct.
The processing instruction target matching "[xX][mM][lL]" is not allowed.


I would like to know if this is causing my jstl page not working.

Hope to hear from someone soon.
Thanks.