Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
How to kill javaw.exe

I am learning Spring MVC using Maven project and I facing a problem. This is my controller:

@Controller
public class HelloWorldController {

    @RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("greeting", "Hello Spring MVC");
        return "helloworld";
    }
}

I run my project by this way (I am using Eclip Neon): Right click on project > Run as > Run configurations > Right click on Maven Build > New > Enter name, base directory and goals > Apply > Run. Done.

When I access this url

http://localhost:8080/DemoSpringMVC/hello

the "helloworld" page will be displayed, this is simple.

Now I want to change @RequestMapping("/hello") to @RequestMapping("/hello1"), like this

@Controller
public class HelloWorldController {

    @RequestMapping("/hello1")
    public String hello(Model model) {
        model.addAttribute("greeting", "Hello Spring MVC");
        return "helloworld";
    }
}

I run my project again, access this url and I got error "The requested resource is not available."

http://localhost:8080/DemoSpringMVC/hello1

I try to access this and "helloworld" still be displayed

http://localhost:8080/DemoSpringMVC/hello

I open Task manager and I figure out that the "javaw.exe" create a new instance every time I run my project, but the older version is always get affect. I try to kill all "javaw.exe" processes by hand, run the project again and it works.

So the question is, how to kill old "javaw.exe" process everytime I run my project??? Or maybe I build or run Maven project wrong way?

RESOLVED: I realize I can run a maven project follow the normal way (By tomcat), then the problem resolved. Thank you all.

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Instead of running a second time, you probably want to redeploy your running code. See https://www.mkyong.com/eclipse/how-to-configure-hot-deploy-in-eclipse/

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda