WELD-001303: No active contexts for scope type jav

2019-08-17 19:28发布

问题:

Using NetBeans 8.2 with JSF2.2 on GlassFish4.1.1, without (Prime || ICE || Rich) && faces :)

I have NB configured so every time I save any file, it re-deploys the project so the changes are "automatically" reflected when F5 on the browser.

This is done by checking Deploy on save under Right click on project icon > Properties > Run, which

If selected, files are compiled and deployed when you save them.

This option saves you time when you run or debug your application in the IDE.

So far, this is why I don't want to get rid of this option.

Problem:

EVERY TIME I make a change in one of the backend files, namely the .java files under Source Packages, it re-deploys as usual but, when I refresh in the browswer: THE TITLE happens.

Current tedious solution:

  1. Clean and build (*)
  2. Run
  3. Refresh browser

then it works.

(*) When this step is done, NB's output window shows this error:

D:\path\to\project\ProjectName\nbproject\build-impl.xml:1431: Unable to delete file D:\path\to\project\ProjectName\build\web\WEB-INF\lib\commons-validator-1.6.jar

BUILD FAILED (total time: 7 seconds)

Nevertheless, it is required for the problem to go away.


Any insight is welcome, but hopefully it doesn't suggest switching IDEs.

Thanx