It will not work as you dont have any Deployment Descriptors like web.xml were the exact mapping need to be done.
Is the EJB packed in .war or jar or .ear??
This probably should help you:
As of Java EE 6, you can put EJBs into a web application so they are deployed as part of a single WAR file -- the classes simply go into the WEB-INF/classes or packaged into jars and placed in WEB-INF/lib directory.
Putting servlets in an EJB JAR file won't work outright since the web container doesn't recognize a jar as a web application.
I know the setup is kind of wierd, but I do have the servlets registered and mapped in a web app web.xml in .war. But the servlet classes are packed in the EJB project .jar. Both the web app and EJB project are in the same EAR. I will try to add the EJB project to the web app WEB-INF/lib.