问题
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:
- Clean and build (*)
- Run
- 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
来源:https://stackoverflow.com/questions/55389159/weld-001303-no-active-contexts-for-scope-type-javax-enterprise-context-requests