Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback, please email oracle-forums_moderators_us@oracle.com

org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.Ses

user-3cekgMay 30 2023

Error: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped

The SessionScoped CDI is working fine until the server is restarted. Although redeploy through WebLogic admin console can solve it, but this is not a good option. Please advise what is missing?

WebLogic Server: 12.2.1.0.0
web-app: 3.1
CDI beans: 1.1

<May 29, 2023 2:48:40 AM CDT> <Emergency> <javax.enterprise.resource.webcontainer.jsf.context> <BEA-000000> </index.xhtml: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped
javax.el.ELException: /index.xhtml: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped
at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:90)
at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:82)
at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:183)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1859)
Truncated. see log file for complete stacktrace
Caused By: org.jboss.weld.context.ContextNotActiveException: WELD-001303: No active contexts for scope type javax.enterprise.context.SessionScoped
at org.jboss.weld.manager.BeanManagerImpl.getContext(BeanManagerImpl.java:708)
at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:95)
at org.jboss.weld.bean.ContextualInstanceStrategy$CachingContextualInstanceStrategy.get(ContextualInstanceStrategy.java:178)
at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:761)
Truncated. see log file for complete stacktrace

Comments
Post Details
Added on May 30 2023
0 comments
820 views