Index: src/main/java/org/codehaus/mojo/tomcat/AbstractRunMojo.java
===================================================================
--- src/main/java/org/codehaus/mojo/tomcat/AbstractRunMojo.java	(revision 7169)
+++ src/main/java/org/codehaus/mojo/tomcat/AbstractRunMojo.java	(working copy)
@@ -79,6 +79,13 @@
      */
     private int port;
 
+    /**
+     * The path of the Tomcat context XML file.
+     *
+     * @parameter expression = "${project.build.directory}/${project.build.finalName}/META-INF/context.xml"
+     */
+    private File contextFile;
+
     // ----------------------------------------------------------------------
     // Fields
     // ----------------------------------------------------------------------
@@ -187,6 +194,9 @@
 
             copyFile( "/conf/tomcat-users.xml", new File( confDir, "tomcat-users.xml" ) );
             copyFile( "/conf/web.xml", new File( confDir, "web.xml" ) );
+            if(contextFile.exists()){
+            	FileUtils.copyFile( contextFile, new File(confDir,"context.xml") );
+            }
 
             File webappsDir = new File( configurationDirFile, "webapps" );
             webappsDir.mkdir();
@@ -227,6 +237,7 @@
     {
         // create server
         container = new Embedded();
+        container.setUseNaming(true);
         container.setCatalinaHome( configurationDir );
         container.setRealm( new MemoryRealm() );
 

