WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped

老子叫甜甜 提交于 2019-12-13 05:07:25

问题


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

来源:https://stackoverflow.com/questions/55389159/weld-001303-no-active-contexts-for-scope-type-javax-enterprise-context-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!