Originally Posted by
Sean4u
It's not something simple, like the fact that you've got comma-separated string fields just floating about in your element ("root" and "ABC"), and no space before the terminating '/', is it? Perhaps the XML parser has helped you out by turning them into child text nodes and so expects a closing tag? Just a guess.
I've tried to correct the statement to below :
<sql:setDataSource driver="com.mysql.jdbc.Driver" url="jdbc:mysql://
localhost:3306/pract1" user="root" password="tangara8"/>
and it works.
But, now I am getting another error:
java.lang.NoClassDefFoundError: org/netbeans/modules/web/project/ant/JspCSingle
Caused by: java.lang.ClassNotFoundException: org.netbeans.modules.web.project.ant.JspCSingle
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 07)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 52)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:320)
Could not find the main class: org.netbeans.modules.web.project.ant.JspCSingle. Program will exit.
I hope someone can advise why the above error message. Thanks.