Hi Hanna,
I guess you have to identify which appserver's JAR has this APIs in there and put that JAR in the Eclipse classpath...
For e.g. in,
1. Sun ONE app server there are two files,
appserv-ext.jar
appserv-rt.jar that has content expected from j2ee.jar
2.
JBoss, its jboss-j2ee.jar found in <<Jboss home>>/server/all/lib
Hope you get the ugly picture
Regards
Maulin