<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>@RequestScoped JSF Bean exception</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112138563" />
  <subtitle>@RequestScoped JSF Bean exception</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112138563</id>
  <updated>2026-04-06T19:38:19Z</updated>
  <dc:date>2026-04-06T19:38:19Z</dc:date>
  <entry>
    <title>RE: @RequestScoped JSF Bean exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112246415" />
    <author>
      <name>Pavle Milić</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112246415</id>
    <updated>2019-02-06T08:50:45Z</updated>
    <published>2019-02-06T08:50:45Z</published>
    <summary type="html">Thank you Abraham!&lt;br /&gt;&lt;br /&gt;This solved the problem, and now I can use RequestScoped beans. Turns I had this configuration before in web.xml but I deleted it because I was thinking it was not necessary since my ViewScoped beans worked.</summary>
    <dc:creator>Pavle Milić</dc:creator>
    <dc:date>2019-02-06T08:50:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: @RequestScoped JSF Bean exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112240118" />
    <author>
      <name>Abraham Duffidall</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112240118</id>
    <updated>2019-02-05T13:25:37Z</updated>
    <published>2019-02-05T13:25:37Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Pavle,&lt;br&gt;&lt;br&gt;I got the same error, because I forgot to set the appropriate config in web.xml.&lt;br&gt;However ViewScoped beans were still working....&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;    &amp;lt;filter&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;filter-name&amp;gt;WeldCrossContextFilter&amp;lt;/filter-name&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;filter-class&amp;gt;org.jboss.weld.servlet.WeldCrossContextFilter&amp;lt;/filter-class&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;/filter&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;filter-mapping&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;filter-name&amp;gt;WeldCrossContextFilter&amp;lt;/filter-name&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;dispatcher&amp;gt;INCLUDE&amp;lt;/dispatcher&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;dispatcher&amp;gt;FORWARD&amp;lt;/dispatcher&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;dispatcher&amp;gt;ERROR&amp;lt;/dispatcher&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;/filter-mapping&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;listener&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;listener-class&amp;gt;org.jboss.weld.environment.servlet.Listener&amp;lt;/listener-class&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;&amp;lt;/listener&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Cheers&lt;br&gt;Abraham&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Abraham Duffidall</dc:creator>
    <dc:date>2019-02-05T13:25:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: @RequestScoped JSF Bean exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112240085" />
    <author>
      <name>Pavle Milić</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112240085</id>
    <updated>2019-02-05T12:59:55Z</updated>
    <published>2019-02-05T12:59:55Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Neil,&lt;br&gt;thank you for replying and sorry for my late reply. I still have this problem.&lt;br&gt;I'm using Liferay v7.1, and yes, I do have weld-servlet dependency jar inside my generated.war/WEB-INF/lib. The maven dependency:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;dependency&amp;gt;
	&amp;lt;groupid&amp;gt;org.jboss.weld.servlet&amp;lt;/groupid&amp;gt;
	&amp;lt;artifactid&amp;gt;weld-servlet&amp;lt;/artifactid&amp;gt;
	&amp;lt;version&amp;gt;2.3.3.Final&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Could it be the version, or do I need some additional configuration to make it work?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Pavle Milić</dc:creator>
    <dc:date>2019-02-05T12:59:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: @RequestScoped JSF Bean exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112139160" />
    <author>
      <name>Neil Griffin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112139160</id>
    <updated>2019-01-25T15:56:25Z</updated>
    <published>2019-01-25T15:56:25Z</published>
    <summary type="html">&lt;p&gt;Hi Pavle,&lt;/p&gt;
&lt;p&gt;I'm the developer that is working on integration of CDI scopes within
  Liferay's portlet container implementation. What version of Liferay
  Portal are you using? Also, do you have WEB-INF/weld-servlet.jar
  embedded in your JSF portlet WAR?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;</summary>
    <dc:creator>Neil Griffin</dc:creator>
    <dc:date>2019-01-25T15:56:25Z</dc:date>
  </entry>
  <entry>
    <title>@RequestScoped JSF Bean exception</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112138562" />
    <author>
      <name>Pavle Milić</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112138562</id>
    <updated>2019-01-25T15:16:55Z</updated>
    <published>2019-01-25T15:16:55Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;I tried using&amp;nbsp;&lt;code&gt;
    &amp;lt;span style=""&amp;gt;javax.enterprise.context.RequestScoped&amp;lt;/span&amp;gt;&lt;/code&gt;&amp;nbsp;in
  combination with&amp;nbsp;&lt;code&gt;javax.inject.Named&lt;/code&gt; annotation on my
  backing bean but I get the following exception:&lt;/p&gt;
&lt;p&gt;
  &lt;code&gt;WELD-001303: No active contexts for scope type javax.enterprise.context.RequestScoped&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;There is no way I can get it to work. It works just fine
  with&amp;nbsp;&lt;code&gt;javax.faces.view.ViewScoped&lt;/code&gt;&amp;nbsp;, but this scope is
  unnecessary for most of my portlets and is only wasting memory. Could
  it be that Liferay JSF doesn't support CDI RequestScoped beans at all?
  I investigated and searched for this info, but couldn't find the answer.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Pavle Milić</dc:creator>
    <dc:date>2019-01-25T15:16:55Z</dc:date>
  </entry>
</feed>
