If you get this problem under JBoss, it's most likely due to the fact that JBoss bundles RESTeasy REST implementation as default. If you package your own REST library to EAR/WAR file, you need to disable the default RESTeasy for your deployed library to work.