This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
You cannot. A stand-alone Java application cannot be deployed to JBoss As as a web application.
Or are you saying you have a plain Java project in and IDE, but that project is really a web app, and now you want to deploy it to JBoss AS within the IDE? If so, you will have ot first create a new Dynamic Web App project, copy all of your sources to it, and then deploy that.