Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic