Ok let's get going again, open the ejb project in your intellij IDE and follow these simple steps:
- Click file -> new module
- Create new module from scratch -> next
- name the module webclient -> next
- create source directory src -> next
- select application server and web application (should be checked when you check application server). Again make sure to select your jboss 6.1.0 final server.
- Click finish