title: run web application in netbeans
body: <p>I am using netbeans and apache tomcat in order to run web application. I keep getting this error:</p>
  
  <pre><code>In-place deployment at C:\WorkingDirectory\Projects\GreenWheelsProject\GreenWheels-Java\green-wheels-project\share-wheels\target\share-wheels
  deploy?config=file%3A%2FC%3A%2FDOCUME%7E1%2F0DD4%7E1%2FLOCALS%7E1%2FTemp%2Fcontext600644043101946969.xml&amp;path=/
  FAIL - Deployed application at context path / but context failed to start
  The module has not been deployed.
  See the server log for details.
      at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
      at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:179)
      at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131)
      at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
      at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
  </code></pre>
  
  <p>The server log is:</p>
  
  <pre><code>אפר 14, 2012 3:55:00 PM org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Error configuring application listener of class com.sun.faces.config.ConfigureListener
  java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
      at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
      at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
      at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:126)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
      at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)
  
  אפר 14, 2012 3:55:00 PM org.apache.catalina.core.StandardContext listenerStart
  SEVERE: Skipped installing application listeners due to previous error(s)
  </code></pre>
  
  <p>and the output of the sever is:</p>
  
  <pre><code>אפר 14, 2012 3:54:59 PM org.apache.catalina.util.LifecycleBase stop
  INFO: The stop() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] after stop() had already been called. The second call will be ignored.
  אפר 14, 2012 3:54:59 PM org.apache.catalina.startup.HostConfig checkResources
  INFO: Undeploying context []
  אפר 14, 2012 3:54:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
  INFO: Deploying configuration descriptor ROOT.xml from C:\Documents and Settings\נאור\.netbeans\7.1.1\apache-tomcat-7.0.22.0_base\conf\Catalina\localhost
  אפר 14, 2012 3:54:59 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
  INFO: validateJarFile(C:\WorkingDirectory\Projects\GreenWheelsProject\GreenWheels-Java\green-wheels-project\share-wheels\target\share-wheels\WEB-INF\lib\javaee-api-6.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.startup.TaglibUriRule body
  INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
  אפר 14, 2012 3:55:00 PM org.apache.catalina.core.StandardContext startInternal
  SEVERE: Error listenerStart
  אפר 14, 2012 3:55:00 PM org.apache.catalina.core.StandardContext startInternal
  SEVERE: Context [] startup failed due to previous errors
  </code></pre>
  
  <p>This is my POM:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.success&lt;/groupId&gt;
    &lt;artifactId&gt;share-wheels&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;share-wheels Maven Webapp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;finalName&gt;share-wheels&lt;/finalName&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>What is wrong here??..</p>
  
  <p><em><strong>EDIT:</em></strong><br>
  This problem accures when I add the following to thw pom file:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax&lt;/groupId&gt;
      &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
      &lt;version&gt;6.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Why is this? I need this dependency for HttpServletRequest. How can I fix this?</p>