I have create a registration form in jsp file with jsf and I try to connect it with a web service in order to pass through this the elements to a database.
When I press
java.lang.NoClassDefFoundError: org/apache/commons/discovery/tools/DiscoverSingleton
This just means that the mentioned class (or a JAR file containing the class) is missing in the webapp's runtime classpath.
As the package name hints, the class is part of Apache Commons Discovery which is available for download at http://commons.apache.org/discovery. If you just drop its JAR file(s) in /WEB-INF/lib
of your webapp (which is covered by webapp's runtime classpath), then this error should disappear.
Note that this problem has nothing to do with JSF/JSP, let alone Java EE. It's just basic Java. The root cause of the exception also hints that; it's of the java.lang
package.