Frequently asked questions about J2EE with Web Server
How can I make EJB calls to the Glassfish or Sun Java Systems Application Server's EJB container?
It is not possible to make calls to the Glassfish EJB container from Web Server 7.0. The web containers used in both products, while not identical, share a common ancestry and class and method conflicts occur. If you need to host servlets or JSPs in a web container and make calls to EJB 2.1 - EJB 3.x, please host your servlet or JSP in the Glassfish web container instead of the Web Server.