Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FAIL - Failed to deploy application at context path

Before I explain the problem, I just want to point out that I am completely new to NetBeans and Tomcat and I am doing a school project. That being said, the problem is exactly what the title says. Here is the output when I try to run a simple Hello World jsp:

In-place deployment at C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\build\web Deployment is in progress... deploy?config=file%3A%2FC%3A%2FUsers%2Flostl%2FAppData%2FLocal%2FTemp%2Fcontext7180600714574256491.xml&path=/Project3 FAIL - Failed to deploy application at context path [/Project3] C:\Users\lostl\OneDrive\Documents\NetBeansProjects\Project3\nbproject\build-impl.xml:1058: The module has not been deployed. See the server log for details. BUILD FAILED (total time: 0 seconds)

I am using Apache NetBeans 11.2 and Tomcat 9 if it is relevant.

Here is what I tried:

  • I checked the server log and it displays absolutely nothing.
  • I tried setting the context path directly to Project3 (i.e. including the -C:/... before Project3) in the context.xml file under META-INF folder.
  • I tried restarting NetBeans and cleaning and building the project.
  • I tried running NetBeans under admin privileges.

I might seem like such an idiot for not knowing how to fix this since no one else seems to have this problem, but please help me out.

like image 600
Long Nguyen Avatar asked Oct 19 '25 03:10

Long Nguyen


2 Answers

If you have installed the Apache Tomcat appart from Netbeans, maybe your apache service is already running and it conflicts with Netbeans. You may stop the apache service and then run the application in Netbeans.
Because Netbeans start the apache service in a diffent way, so you don´t need to install the aplication on apache´s folder.

like image 92
Alynne Oya Kitamura Avatar answered Oct 22 '25 03:10

Alynne Oya Kitamura


Check out the Windows Services (Services App) and stop the Apache Tomcat if running, then from Netbeans menu select Run->Run Project. Netbean will start Tomcat and deploy your web app onto the Tomcat server.

like image 22
Darvin Avatar answered Oct 22 '25 04:10

Darvin