some webapps cannot be hot deploy others can

Answered

i am using idea ultimate 2020.3

i added 9 web apps to one tomcat(local tomcat), these web apps are maven projects and packaged as war.

They are added as war exploded.

i choose "update classes and resources" for "on update action".

if i modified the .java of one webapp, e.g. A, then click "update tomcat application(Ctrl+F10)", the hot deploy works.

however, if i modified the .java of another webapp, e.g. B, then click "update tomcat application(Ctrl+F10)", the hot deploy doesn't work. I have to restart the tomcat or right click this webapp and select Redeploy to make changes take effect.

what i missing?

 

******** updated ************

missed one point: the hot deploy doesn't work happens when i modified the jsp file. so the question should be : change jsp file cannot be hot deploy while changing java file can

the idea.log looks like:

COMPILATION STARTED (BUILD PROCESS)
Using preloaded build process to compile D:/ideaProjects/trunk
COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 1221 ms: 0 min 1sec
COMPILATION STARTED (BUILD PROCESS)
Using preloaded build process to compile D:/ideaProjects/trunk
BUILDER_PROCESS [stdout]: Build process started. Classpath: D:/IntelliJ IDEA 2020.2.3/plugins/java/lib/jps-launcher.jar;D:/JDK/lib/tools.jar
BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
COMPILATION FINISHED (BUILD PROCESS); Errors: 0; warnings: 0 took 4555 ms: 0 min 4sec
BUILDER_PROCESS [stdout]: Build process started. Classpath: D:/IntelliJ IDEA 2020.2.3/plugins/java/lib/jps-launcher.jar;D:/JDK/lib/tools.jar
BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details

 

0
5 comments

Hello,

Are there any errors/warnings in idea.log ("Help | Show Log in...") when you click "update application" for project B?

0

@... there is no any errors/warnings in idea.log.

sorry, i missed one point, it should be : when i changed jsp file, it cannot be hot deploy.

plz see the log on the bottom of the post.

0

Am I got you right that JSP hot deploy doesn't work and it doesn't work for all projects?

0

@Yaroslav Bedrov i didn't test all projects. yesterday, i right click this project -> maven -> reload project, then it works, the jsp in it can be hot deploy. Without this step, whatever i do(run in debug mode, clean package again etc) cannot fix it. i don't know why this could help.

Thanks for your reply!

0

Probably there was some issue with project configuration that was fixed on reload. Please let me know if you face the issue again.

0

Please sign in to leave a comment.