I am working in eclipse and using Jboss-server4.2. Even after adding external mysql-connector jar in build path I am getting the error classnotfoundexception. Even I have tried to place mysql-connector jar inside /web-inf/lib folder.
My-Code looks like

Please, if you are going to start a discussion at multiple places it is polite to post links at each to the others. That way everyone taking part in the discussion knows what else is being said. Be aware that some people will not respond to cross posts for fear wasting their time on something that has been dealt with elsewhere. (It is also not good form to post the same thing to two different forums within the same site. Again, it just causes confusion for those taking part.)

Please, if you are going to start a discussion at multiple places it is polite to post links at each to the others. That way everyone taking part in the discussion knows what else is being said. Be aware that some people will not respond to cross posts for fear wasting their time on something that has been dealt with elsewhere. (It is also not good form to post the same thing to two different forums within the same site. Again, it just causes confusion for those taking part.)