Setup application server in ‘New Project’ wizard
IntelliJ IDEA 10 includes an option to setup an application server right in the New Project Wizard. You only need to specify a directory where the server is installed:
IntelliJ IDEA will create a sample application, setup it accordingly for the selected server and will add a corresponding Run Configuration. Once project is created you can just click Run button to start the server.