Hi!
You have to use a "Dynamic Web Project" in Eclipse, so the bean is packaged in a war. Furthermore make sure you have an EE6-server (and not EE7 because you will have a different version of JAX-RS).
I have used Glassfish 3.1.2 as it includes Jersey (and
you should know about Jersey on the exam).
This code example runs without problems:
URL:
http://localhost:8080/[insert name of dynamic web project]/jax/rs/add/1/3
Output:
4
By the way: you can better ask questions on the Enthuware forums (
http://enthuware.com/forum/viewforum.php?f=40 ) because I will receive an email instantly.