Question: What's the correct form to set up a maven webapp project? 

It should be able to:

* Run with the eclipse embedded tomcat (available in the servers tab).
This way I can run/debug the application like a regular webapp.
* Run with the maven plugin tomcat7. So far I can only run the run-war
goal, couldnt make the "run" goal work =/

I have followed some tutorials, but couldnt make all these things to work properly. 
When I follow the [MkYong](http://www.mkyong.com/maven/how-do-use-maven-to-create-a-dynamic-web-project-in-eclipse/) suggestion, I can run with the embedded tomcat, but the project dependencies are changed to classpath variables. This is not a good consequence at all, since the project loses the ability to dynamically set the dependencies.

I use Eclipse Juno (I'd rather wait Kepler for a couple of months to check it is really stable), m2e and m2e-wtp plugins, and have 2 kinds of projects: one is based in JSF (the front-end) and another in Apache CXF (the back-end). I hope these two can be hot deployed (when a resource changes, embedded tomcat automatically publishes it) in development environment to improve productivity.

Answer: 
From Suumit Bhatanagar at <https://community.dynamics.com/crm/f/117/p/113149/228873.aspx>

You may collect verbose level of traces , would direct you in the right direction. Simply reproducing the issue by clicking on the button and then stop the traces.

For traces , you may look into : <http://support.microsoft.com/kb/907490>
From Roshan Mehta at <http://social.microsoft.com/Forums/en-US/55c22571-0187-4a64-9cc1-94954fa8bdf7/how-to-find-which-security-permission-is-preventing-a-user-from-doing-something>

Check the Event Viewer. This usually gives sufficient information about missing privileges when a plugin fails to run under user context.

Alternatively, you can run the plugin under SYSTEM context in which case this error will not occur. To do this, pass a null value into the CreateOrganizationService method when instantiating service objects in your plugin.