Unable to deploy Maven WAR project to JBoss: The selection did not contain any resources that can be run on a server

I'm using JBoss 7.1 AS, Eclipse Indigo, Maven 3.0.3 on a Mac OSX Lion. I have successfully registered JBoss 7.1 as a local server within Eclipse. I installed the JBoss tools for Eclipse, right clicked my Maven project, selected "Mark as deployable", but then the problem arises. When I right click on "Run As" -> "Run on Server", I'm greeted with the error

 The selection did not contain any resources that can be run on a server

Any ideas what additional steps I should take to make this bad boy deploy? Let me know what other information I should provide.


Sometimes this happens to me when I'm dealing with Maven projects too.

Try the following: In Package Explorer right-click on your project pom.xml then use "Maven > Update project". After that you should click on menu "Project > Clean...".

Now try to add/remove again.

By the way, you should't need to mark your entire project as deployable under normal conditions.

Need Your Help

Template page css overriding my original css

javascript jquery css angularjs

I have template page template.html with css, css includes body{ font-family:'Arial'}. This page included in my application using 'ng-include' when page renders my applications fonts get changed.

Create database in Symfony2

php mysql symfony doctrine-orm

I've inherited a Symfony project that uses a MySQL DB. I need to create a second database. I've changed the …/htdocs/projectFolder/app/config/parameters.yml to have a new dbName.