Does your app contain the j2ee resources? They must not do this. Don't forget, JBoss is using its own j2ee classes.
I'm deploying ear file in JBoss and in that ear file we have a war file and the servlets and other classes are put into a jar file and placed it in the WEB-INF/lib directory, when I'm testing my web application, it's giving error and the error is java.lang.NoClassDefFoundError error.
please help me in solving this problem
My app does not contain any j2ee resource.
Looks like, there is some class loading problem behind this issue.
I would really appericiate further inputs.
Provide some more information about your deployment configuration (jars, deployment descriptors, configuration of loader repositories, ...)
Looks like something has got corrupted in this thread, I remember replying to this thread but that was not my message above.