I have developed a web service with authentication in java following the link Web Service Atuthentication The Same is runing fine if I am using JDK 1.6/JBoss 4.2 but when I
The exception is thrown because in your web application at least exists a jar which contains the javax.xml.namespace.QName
class and that class conflicts with the same one contained in one of the JBoss's jar.
You should remove that (these) jar(s) from your web application when deploying on JBoss.
A list of jars which contain the javax.xml.namespace.QName
class is at http://www.findjar.com/class/javax/xml/namespace/QName.html