linux tomcat server died after i moved new class file

Viewed 30

` org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file

org.apache.catalina.core.StandardContext.startInternal Context [/alpha] startup failed due to previous errors

org.apache.catalina.core.StandardContext.reload Reloading Context with name [/alpha] is completed `

i was moving new project's controller class file to old project.

the controller class has autowired service class file but i didn't move it.

tomcat tried reload, got an error and showed 404 error.

i deleted the controller file but tomcat doesnt try reload and catalina showed upper's error.

how can i automatically reload tomcat without restart tomcat?

1 Answers

Tomcat by default observes an application's WEB-INF/web.xml

If you touch that file, chances are that tomcat attempts another start of that app.

But naturally, you'll have to fix your app first, and hopefully you haven't changed the default

Another alternative is to completely remove your webapp from tomcat's webapps directory, and after a short while move it back.

Related