I've tried to install sun-j2ee from binary. Only after emerging lib-compat it worked. But this was not listed on emerge -ep sun-j2ee. PS: I've not used emerge sun-j2ee since I've tried the beta 1.4 but I assume ebuild is also affected.
Thanks for reporting this. Fixed in new -r1 ebuild; also added 'doc' use flag for API docs.
I see no reason for sun-j2ee to need lib-compat to emerge so I removed it from DEPEND. It may be RDEPEND at most but it wasn't specified there.