N
N
Nikolai Baranenko2017-04-16 12:35:42
IntelliJ IDEA
Nikolai Baranenko, 2017-04-16 12:35:42

Why doesn't the Tomcat project immediately reflect changes to servlet classes?

Hello.
I work in IDEA 2017.1, I write an application under Tomcat (I use 9.0.0.M19), I test it in the Google Chrome browser Version 57.0.2987.133 (64-bit).
I noticed today one "little thing" when I wrote a servlet to upload a file to the server.
I make changes to the servlet, deploy, the application continues to return an error to me, which, in theory, should not be.
I poked around in the code, tried to find an error, nothing.
Then he made an attempt - completely wiped the project from WabApps Tomcat and IDEA re-spilled it and the errors were gone.
Why aren't changes in servlet classes immediately applied? What's wrong?
ps
deployment settings
d031505d981a44d7ae2085e617462724.jpg
artifacts
4a156b9f917148b8acab256e0f15ff14.jpg
visually check changes in the directory with classes, the date is fresh
cd3c6407f8b14b1287635f97a8554137.jpg
to exclude factors - buffer caching, etc. launched from IE11 (not used before), the problem is reproduced there as well.
In previous versions, it seems that this was not noticed according to my feelings ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Baranenko, 2017-04-16
@drno-reg

found a solution by activating the reloadable parameter
in particular for this project would be like this

<Context path="/um" docBase="C:\Server\Tomcat\webapps\um\" reloadable="true">
        </Context>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question