The fastest way to create a web project with ejb in Eclipse is using a Enterprise Application Project:
First u create Enterprise Application Project after that u create an EJB project where u put yours ejb components. In the end u create Dynamic Web Project with yours servlet.