[
https://issues.jboss.org/browse/WELD-510?page=com.atlassian.jira.plugin.s...
]
G B commented on WELD-510:
--------------------------
Is it correct, that I have to configure the org.jboss.weld.environment.servlet.Listener in
the web.xml in a portlet environment? If the listener is not configured I get following
exception:
java.lang.IllegalStateException: Singleton is not set
at
org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton.get(IsolatedStaticSingletonProvider.java:52)
at org.jboss.weld.Container.instance(Container.java:54)
at org.jboss.weld.jsf.WeldPhaseListener.instance(WeldPhaseListener.java:161)
at org.jboss.weld.jsf.WeldPhaseListener.activateConversations(WeldPhaseListener.java:98)
at org.jboss.weld.jsf.WeldPhaseListener.beforePhase(WeldPhaseListener.java:85)
Support for Portlet 2.0
-----------------------
Key: WELD-510
URL:
https://issues.jboss.org/browse/WELD-510
Project: Weld
Issue Type: Feature Request
Affects Versions: 1.0.1.Final
Reporter: Neil Griffin
Assignee: Marko Strukelj
Priority: Blocker
Fix For: 1.1.3.Final
Attachments: weld-510.zip
There are some folks trying to use the PortletFaces Bridge for JSF 2.0 + Portlet 2.0 in
Glassfish V3, but Weld is causing an issue.
Original Post:
http://www.portletfaces.org/community/forums/-/message_boards/message/430...
Here is a simple stacktrace of the problem:
Caused by: java.lang.IllegalStateException: Weld doesn not support using JSF in an
non-servlet environment
at org.jboss.weld.jsf.JsfHelper.getModuleBeanManager(JsfHelper.java:119)
at org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener
The code for the bridge API is here:
http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.brid...
The code for the bridge IMPL is here:
http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.brid...
And the code for a sample portlet is here:
http://svn.portletfaces.org/svn/portletfaces/portlets/sample/jsf-2.0-job-...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira