If the class is not found in a JAR packaged in a module defined by the server, find the JAR in your EAP5_HOME install or your prior server's
For example, if you see this
trace in the log:
Caused by: java.lang.NoClassDefFoundError: org/hibernate/validator/ClassValidator at java.lang.Class.getDeclaredMethods0(Native Method)
Find the JAR containing this class by doing the following:
Open a terminal and navigate to the
Issue the command:
grep 'org.hibernate.validator.ClassValidator' `find . \-name '*.jar'`
You might see more than one result. In this case, the following result is the JAR we need:
Binary file ./jboss-eap-5.1/seam/lib/hibernate-validator.jar matches
Copy this JAR to the application's
If you find that you need a large number of JARs, it may be easier to define a module for the classes. See Modules in the Get Started Developing Applications chapter of the Development Guide for JBoss Enterprise Application Platform 6 for details on how to do this.
Rebuild and redeploy the application.