<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Marko?<br><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [weld-dev] [JBoss JIRA] (WELD-510) Support for Portlet 2.0</b><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">April 20, 2012 3:51:32 PM GMT+02:00<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Pete Muir &lt;<a href="mailto:pmuir@bleepbleep.org.uk">pmuir@bleepbleep.org.uk</a>&gt;<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 1.0);"><b>Cc: </b></span><span style="font-family:'Helvetica'; font-size:medium;">Weld-Dev List &lt;<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a>&gt;<br></span></div><br><div>Great, any ETA?<br><br>On 20 Apr 2012, at 19:14, Pete Muir wrote:<br><br><blockquote type="cite">Guys, We still don't have portlet support? Ales, can you work with Marko on this as you are close to each other?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Begin forwarded message:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">From: "Adam Michalik (JIRA)" &lt;<a href="mailto:jira-events@lists.jboss.org">jira-events@lists.jboss.org</a>&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Subject: [JBoss JIRA] (WELD-510) Support for Portlet 2.0<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Date: 20 April 2012 19:13:17 GMT+05:30<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">To: <a href="mailto:pmuir@bleepbleep.org.uk">pmuir@bleepbleep.org.uk</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;[ <a href="https://issues.jboss.org/browse/WELD-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12686068#comment-12686068">https://issues.jboss.org/browse/WELD-510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12686068#comment-12686068</a> ] <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Adam Michalik edited comment on WELD-510 at 4/20/12 9:41 AM:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-------------------------------------------------------------<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I have attached a test project.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Steps to reproduce:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1) Download Liferay Portal Community Edition 6.1.0 CE budled with Tomcat from <a href="http://www.liferay.com/downloads/liferay-portal/available-releases">http://www.liferay.com/downloads/liferay-portal/available-releases</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">2) Unpack to - let's call it - ${LIFERAY_HOME}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">3) Start Liferay with {LIFERAY_HOME}/tomcat-xxx/bin/startup.sh<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">4) Go to <a href="http://localhost:8080">http://localhost:8080</a> to finish setup<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">5) Unzip the attached project, run mvn package<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">6) Copy the war file to ${LIFERAY_HOME}/deploy<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">7) Log in as the admin user and add the weld-510 portlet<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">8) Observe stacktrace in Liferay's logs ({LIFERAY_HOME}/tomcat-xxx/logs/catalina.out)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The portlet works fine without Weld:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1) In web.xml disable the WeldCrossContextFilter filter and filter-mapping<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">2) In HelloWorld class toggle from @Model to @ManagedBean<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">3) run mvn package -P!weld<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">4) deploy to Liferay<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">5) The portlet appears fine<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;was (Author: hattifnat):<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> &nbsp;Steps to reproduce:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1) Download Liferay Portal Community Edition 6.1.0 CE budled with Tomcat from <a href="http://www.liferay.com/downloads/liferay-portal/available-releases">http://www.liferay.com/downloads/liferay-portal/available-releases</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">2) Unpack to - let's call it - ${LIFERAY_HOME}<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">3) Start Liferay with {LIFERAY_HOME}/tomcat-xxx/bin/startup.sh<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">4) Go to <a href="http://localhost:8080">http://localhost:8080</a> to finish setup<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">5) Unzip the attached project, run mvn package<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">6) Copy the war file to ${LIFERAY_HOME}/deploy<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">7)Log in as the admin user and add the weld-510 portlet<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">8) Observe stacktrace in Liferay's logs ({LIFERAY_HOME}/tomcat-xxx/logs/catalina.out)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">The portlet works fine without Weld:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">1) In web.xml disable the WeldCrossContextFilter filter and filter-mapping<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">2) In HelloWorld class toggle from @Model to @ManagedBean<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">3) run mvn package -P!weld<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">4) deploy to Liferay<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">5) The portlet appears fine<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Support for Portlet 2.0<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-----------------------<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Key: WELD-510<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;URL: <a href="https://issues.jboss.org/browse/WELD-510">https://issues.jboss.org/browse/WELD-510</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Project: Weld<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Issue Type: Feature Request<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> Affects Versions: 1.0.1.Final<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reporter: Neil Griffin<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assignee: Marko Strukelj<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Priority: Blocker<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fix For: 1.1.3.Final<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Attachments: weld-510.zip<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">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.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Original Post:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://www.portletfaces.org/community/forums/-/message_boards/message/43041#_19_message_43038">http://www.portletfaces.org/community/forums/-/message_boards/message/43041#_19_message_43038</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Here is a simple stacktrace of the problem:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Caused by: java.lang.IllegalStateException: Weld doesn not support using JSF in an non-servlet environment<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">at org.jboss.weld.jsf.JsfHelper.getModuleBeanManager(JsfHelper.java:119)<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">at org.jboss.weld.jsf.WeldPhaseListener.initiateSessionAndConversation(WeldPhaseListener<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The code for the bridge API is here:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.api/">http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.api/</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">The code for the bridge IMPL is here:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.impl/">http://svn.portletfaces.org/svn/portletfaces/bridge/org.portletfaces.bridge.impl/</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">And the code for a sample portlet is here:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://svn.portletfaces.org/svn/portletfaces/portlets/sample/jsf-2.0-job-application-portlet/">http://svn.portletfaces.org/svn/portletfaces/portlets/sample/jsf-2.0-job-application-portlet/</a><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">--<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This message is automatically generated by JIRA.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">If you think it was sent incorrectly, please contact your JIRA administrators: <a href="https://issues.jboss.org/secure/ContactAdministrators!default.jspa">https://issues.jboss.org/secure/ContactAdministrators!default.jspa</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">For more information on JIRA, see: <a href="http://www.atlassian.com/software/jira">http://www.atlassian.com/software/jira</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">weld-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/weld-dev">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br></blockquote><br><br>_______________________________________________<br>weld-dev mailing list<br><a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/weld-dev<br></div></blockquote></div><br></body></html>