HotSwap Wicket HTML Files does not work in Intellij maven + tomcat












2














My HotSwap run configuration just works for java and not for html.



I am running a Wicket application on Tomcat, which I start with mvn tomcat7:run.



In my runner Configuration (Runner Tab VM Options) I entered:



-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=61515


Here is the run configuration:



enter image description here



Also I created a Remote Starter



enter image description here



Now I start (not debug) Tomcat Local H2 and after that I start as debug the Tomcat Hotswap Run configuration.



When I change a java class it works after CTRL+SHIFT+F9, but when I change some html files it will not be rebuild.



Does anyone have a suggestion what I do wrong?










share|improve this question



























    2














    My HotSwap run configuration just works for java and not for html.



    I am running a Wicket application on Tomcat, which I start with mvn tomcat7:run.



    In my runner Configuration (Runner Tab VM Options) I entered:



    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=61515


    Here is the run configuration:



    enter image description here



    Also I created a Remote Starter



    enter image description here



    Now I start (not debug) Tomcat Local H2 and after that I start as debug the Tomcat Hotswap Run configuration.



    When I change a java class it works after CTRL+SHIFT+F9, but when I change some html files it will not be rebuild.



    Does anyone have a suggestion what I do wrong?










    share|improve this question

























      2












      2








      2







      My HotSwap run configuration just works for java and not for html.



      I am running a Wicket application on Tomcat, which I start with mvn tomcat7:run.



      In my runner Configuration (Runner Tab VM Options) I entered:



      -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=61515


      Here is the run configuration:



      enter image description here



      Also I created a Remote Starter



      enter image description here



      Now I start (not debug) Tomcat Local H2 and after that I start as debug the Tomcat Hotswap Run configuration.



      When I change a java class it works after CTRL+SHIFT+F9, but when I change some html files it will not be rebuild.



      Does anyone have a suggestion what I do wrong?










      share|improve this question













      My HotSwap run configuration just works for java and not for html.



      I am running a Wicket application on Tomcat, which I start with mvn tomcat7:run.



      In my runner Configuration (Runner Tab VM Options) I entered:



      -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=61515


      Here is the run configuration:



      enter image description here



      Also I created a Remote Starter



      enter image description here



      Now I start (not debug) Tomcat Local H2 and after that I start as debug the Tomcat Hotswap Run configuration.



      When I change a java class it works after CTRL+SHIFT+F9, but when I change some html files it will not be rebuild.



      Does anyone have a suggestion what I do wrong?







      java html intellij-idea wicket hotswap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 '18 at 9:46









      kism3tkism3t

      698418




      698418
























          1 Answer
          1






          active

          oldest

          votes


















          2














          You need to run Wicket in Development mode to update the HTML, otherwise Wicket caches the loaded markup on the first load and never checks again the file system.



          If you are already running in DEV mode then make sure the updated HTML files end up in the classpath of your application, i.e. IDEA should copy them from your sources folder to the WEB-INF/classes/** folder when you make your module/project. Wicket will reload them from there if the modification time of an HTML is newer than the last time it was loaded.






          share|improve this answer

















          • 1




            Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
            – kism3t
            Nov 12 '18 at 12:16






          • 1




            targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
            – martin-g
            Nov 12 '18 at 19:44










          • Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
            – kism3t
            Nov 13 '18 at 13:50










          • Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
            – martin-g
            Nov 13 '18 at 14:05











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259485%2fhotswap-wicket-html-files-does-not-work-in-intellij-maven-tomcat%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          You need to run Wicket in Development mode to update the HTML, otherwise Wicket caches the loaded markup on the first load and never checks again the file system.



          If you are already running in DEV mode then make sure the updated HTML files end up in the classpath of your application, i.e. IDEA should copy them from your sources folder to the WEB-INF/classes/** folder when you make your module/project. Wicket will reload them from there if the modification time of an HTML is newer than the last time it was loaded.






          share|improve this answer

















          • 1




            Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
            – kism3t
            Nov 12 '18 at 12:16






          • 1




            targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
            – martin-g
            Nov 12 '18 at 19:44










          • Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
            – kism3t
            Nov 13 '18 at 13:50










          • Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
            – martin-g
            Nov 13 '18 at 14:05
















          2














          You need to run Wicket in Development mode to update the HTML, otherwise Wicket caches the loaded markup on the first load and never checks again the file system.



          If you are already running in DEV mode then make sure the updated HTML files end up in the classpath of your application, i.e. IDEA should copy them from your sources folder to the WEB-INF/classes/** folder when you make your module/project. Wicket will reload them from there if the modification time of an HTML is newer than the last time it was loaded.






          share|improve this answer

















          • 1




            Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
            – kism3t
            Nov 12 '18 at 12:16






          • 1




            targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
            – martin-g
            Nov 12 '18 at 19:44










          • Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
            – kism3t
            Nov 13 '18 at 13:50










          • Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
            – martin-g
            Nov 13 '18 at 14:05














          2












          2








          2






          You need to run Wicket in Development mode to update the HTML, otherwise Wicket caches the loaded markup on the first load and never checks again the file system.



          If you are already running in DEV mode then make sure the updated HTML files end up in the classpath of your application, i.e. IDEA should copy them from your sources folder to the WEB-INF/classes/** folder when you make your module/project. Wicket will reload them from there if the modification time of an HTML is newer than the last time it was loaded.






          share|improve this answer












          You need to run Wicket in Development mode to update the HTML, otherwise Wicket caches the loaded markup on the first load and never checks again the file system.



          If you are already running in DEV mode then make sure the updated HTML files end up in the classpath of your application, i.e. IDEA should copy them from your sources folder to the WEB-INF/classes/** folder when you make your module/project. Wicket will reload them from there if the modification time of an HTML is newer than the last time it was loaded.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 12 '18 at 11:34









          martin-gmartin-g

          12k1825




          12k1825








          • 1




            Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
            – kism3t
            Nov 12 '18 at 12:16






          • 1




            targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
            – martin-g
            Nov 12 '18 at 19:44










          • Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
            – kism3t
            Nov 13 '18 at 13:50










          • Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
            – martin-g
            Nov 13 '18 at 14:05














          • 1




            Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
            – kism3t
            Nov 12 '18 at 12:16






          • 1




            targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
            – martin-g
            Nov 12 '18 at 19:44










          • Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
            – kism3t
            Nov 13 '18 at 13:50










          • Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
            – martin-g
            Nov 13 '18 at 14:05








          1




          1




          Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
          – kism3t
          Nov 12 '18 at 12:16




          Thanks for your answer. I am running in DEV mode. The files (compiled Java classes as well) are within projectNametargetclasse. If I open html within that path and update it works, but if I edit original and save or STRG+SHIFT+F9, it will not update the file within target.
          – kism3t
          Nov 12 '18 at 12:16




          1




          1




          targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
          – martin-g
          Nov 12 '18 at 19:44




          targetclasses folder tells me that you use Maven as a build tool. Are the HTML files in srcmainresources` folder ? If they are in srcmainjava` then you need to add buildresources section in your build to include *.html. Then in IDEA do Build > Build Module. This will copy them to the target folder.
          – martin-g
          Nov 12 '18 at 19:44












          Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
          – kism3t
          Nov 13 '18 at 13:50




          Hey Martin, my html files are within srcmainwebappspages . I figured out, that If I am within Project View and right click on the folder of contained html file and Rebuild, it will refresh. Your solution will build (I think) all files. Both work. What I was looking for was, that If I save the html file or click CTRL+SHIFT+F9 only the HTML-File is rebuild and updated.
          – kism3t
          Nov 13 '18 at 13:50












          Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
          – martin-g
          Nov 13 '18 at 14:05




          Do you have a configured IResourceFinder (like WebApplicationPath) for this folder in YourApplication#init() method ? I guess you do, otherwise it won't work at all. But if you have it then it should be used by Wicket to see that the markup files have changed.
          – martin-g
          Nov 13 '18 at 14:05


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53259485%2fhotswap-wicket-html-files-does-not-work-in-intellij-maven-tomcat%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Full-time equivalent

          さくらももこ

          13 indicted, 8 arrested in Calif. drug cartel investigation