2

I have added following params to web.xml;

<context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
</context-param>
<context-param>
    <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>
    <param-value>1</param-value>
</context-param>
<context-param>
    <param-name>facelets.REFRESH_PERIOD</param-name>
    <param-value>1</param-value>
</context-param>
<context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
</context-param>

changed this line in standalone.xml as needed;

<jsp-config development="true"/>

In Intellij, under server configuration, I set "On frame deactivation" to "Update classes and resources". Under Settings > HotSwap, "Reload classes after compilation" is set to "Always". Also I'm pretty sure that the ".ear exploded" ones are being deployed in order to see any code changes. The problem is that I cannot see any web resource change even after restarting the server. Clearing browser cache also didn't help. Note that java class file changes are being correctly replaced by IDE, web resources aren't.

kiziltas
  • 86
  • 5

2 Answers2

0

Some things you might want to try if you haven't already.

In project structure > modules, make sure that all of your resource directories are tagged properly as resources.

Under artifacts, make sure that your exploded artifact is including all the files you need.

What happens when you click the reload button on the debug or run window? Does it say "X resources reloaded"?

Tea Curran
  • 2,923
  • 2
  • 18
  • 22
  • 3
    I marked webapp directories (that's a multi-module project) as resources but that didn't work. Clicking update says "Loaded classes are up to date. Nothing to reload." – kiziltas Jul 13 '16 at 08:07
0

Had the same issue with deployment of .ear (.war worked fine). I had to check "Unpack nested archives" of the .ear in the File->Project Structure: enter image description here

krizajb
  • 1,715
  • 3
  • 30
  • 43