Actually the web Servers and Application Servers are nothing but the resouce managers or you can say the containers which provide the environment for web applications.Web servers are the containers are basically
Servlet containers and they don't provide the environment or resources for managing EJBs but the Application Servers provide these resources.You can enhance your open source web servers and make your own application Application Server