EJB modules don't go into web app's WEB-INF/lib directory. That would
not create a correct class-loader structure.
I don't know anything about the capabilities of Glassfish, but you
probably want to create an ear project and reference the ejb and the web
project from the ear project's J2EE Module Dependencies page. You would
then publish the ear to the server, which would container your two modules.