jQuery in Action, 2nd edition*
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23" Watch "Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23" New topic
Author

Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23

bhavithra sakthivel
Greenhorn

Joined: Jan 25, 2012
Posts: 2
Netbeans - failed to deploy web application in Tomcat

I have netbeans 7.0.1 and Tomcat server 7.0.23.
when I try to run a web application, it shows the following:
init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\web\WEB-INF\classes
Copying 43 files to C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\web
library-inclusion-in-archive:
Copying 238 files to C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\web\WEB-INF\lib
Copied 85 empty directories to 1 empty directory under C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\web\WEB-INF\lib
library-inclusion-in-manifest:
Created dir: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\empty
Created dir: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\generated-sources\ap-source-output
compile:
compile-jsps:
Created dir: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\generated\src
Created dir: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\generated\classes
Compiling 6 source files to C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\generated\classes
Note: C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\generated\src\org\apache\jsp\failure_jsp.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
Undeploying ...
undeploy?path=/loginproj
FAIL - Unable to delete [C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj]. The continued presence of this file may cause problems.
In-place deployment at C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\web
C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\build\web\META-INF\context.xml (The system cannot find the path specified)
C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj\nbproject\build-impl.xml:762:
The module has not been deployed.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:106)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
BUILD FAILED (total time: 17 seconds)

not able to proceed, Please anyone help me
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

According to this error:

FAIL - Unable to delete [C:\Program Files (x86)\Apache Software Foundation\apache-tomcat-7.0.23\webapps\loginproj]. The continued presence of this file may cause problems.


it would appear that Windows had a problem deleting the old copy of the app. Try deleting it manually. You might have to stop Tomcat and/or NetBeans to convince Windows to allow you to delete the directory.


JBoss In Action
 
wood burning stoves
 
subject: Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23
 
Similar Threads
Using Netbean 6.8 to create a Servlet app that queries a database
Problem while deploying Web Service on Tomcat (in netbeans)
I cannot run a jsp page (NetBeans)
JSP deployment Error
Deployment and TomCat Error