TestConnection feature works on the node agent process instead of the app server. So you will have to re-start the node everytime you want to
test it via that button.
But you are getting class not found exception.
If you are not using any WAS variables and are pointing to the jar directly then check if WAS Unix user can see the jar file.