Forums de discussion

liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

thumbnail
Tobias Liefke, modifié il y a 10 années.

liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Junior Member Publications: 78 Date d'inscription: 23/11/12 Publications récentes
Hi Neil,

I know that liferay-faces 3.2.2 is built against Liferay 6.2.0(-M6) and JSF 2.1.
And liferay-faces 4.1.0 is build against Liferay 6.1.1 and JSF 2.2.

But are you intending to create a version against Liferay 6.2.0(-M6) and JSF 2.2?
Is there any information available, which version of JBoss will be bundled with 6.2.0-final?

I already deployed Liferay 6.2.0-M6 to the current alpha of Wildfly 8 (which seems to work, as long as one replaces "undertow" with "jboss-web").
But I had to patch liferay-faces 4.1.0 to use liferay.version 6.2.0 for building my JSF application.

I had to patch ExternalContextImpl as well to support the following new API functions

public String getApplicationContextPath()
public String getSessionId(boolean create)
public ClientWindow getClientWindow()
public void setClientWindow(ClientWindow window)

Should I add a bug report for that one or is that on your agenda anyway?

Tobias
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2? (Réponse)

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Tobias,

Thanks so much for your post. It's really exciting for us to see such pro-active interest in the community for Liferay 6.2 and JSF! emoticon

As of this writing (August 2, 2013) the Liferay Faces master branch is for Liferay 4.1, which is JSF 2.2 + Liferay 6.1. But this branch has not yet reached stability. For news updates, please click on the "watch" link in JIRA for the following issues: FACES-1459, FACES-1531.

As you noted, the 3.2.x branch is for JSF 2.1 + Liferay 6.2. This branch was stable but the fix for LPS-35309 has introduced a new strict parameter namespacing requirement. Although LPS-37706 is a switch to turn off the strict namespacing, there are still other issues that are preventing the 3.2.x from being stable. Please click on the "watch" link in JIRA for FACES-1653 for updates.

But are you intending to create a version against Liferay 6.2.0(-M6) and JSF 2.2?


Once the 4.1.x (currently master) and 3.2.x branches stabilize, we will create a separate 4.1.x branch, and then the master branch will be for 4.2.x (JSF 2.2 + Liferay 6.2). It will probably be a beta version of 6.2 though.

Is there any information available, which version of JBoss will be bundled with 6.2.0-final?


I don't have any official answers about JBoss at this time, but my best guess is that WildFly will not be the default bundle since it is currently in Alpha status.

Should I add a bug report for that one or is that on your agenda anyway?


No need to open any bug reports yet -- we are actively working on these issues.

Thanks again!

Neil
lpu123 xyz, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

New Member Publications: 2 Date d'inscription: 22/08/10 Publications récentes
Tobias Liefke:

. . .
I already deployed Liferay 6.2.0-M6 to the current alpha of Wildfly 8 (which seems to work, as long as one replaces "undertow" with "jboss-web").
. . .


Hi Tobias,

I follow: http://www.liferay.com/documentation/liferay-portal/6.2/user-guide/-/ai/installing-liferay-on-jboss-7-liferay-portal-6-2-user-guide-15-en
I try to deploy Liferay-6.2.0-ce-ga1 on Wildfly 8! But the start is broken !
I think the problem is the "undertow"-part in "standalone.xml"

Can you post/attach your "standalone.xml" of Wildfly.8, please ! Most important part is the "undertow"-part!

Below are my 2 tries of "undertow" in "standalone.xml".
I do not know, where is the mistake ?!

Thanks

=======
1)
<subsystem xmlns="urn:jboss:domain:undertow:1.0">
<buffer-caches>
<buffer-cache name="default" buffer-size="1024" buffers-per-region="1024" max-regions="10"/>
</buffer-caches>
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost" default-web-module="ROOT.war">
</host>
</server>
<servlet-container name="default" default-buffer-cache="default" stack-trace-on-error="local-only">
<jsp-config/>
<persistent-sessions path="persistent-web-sessions" relative-to="jboss.server.data.dir"/>
</servlet-container>
</subsystem>

2)
<subsystem xmlns="urn:jboss:domain:undertow:1.0">
<buffer-caches>
<buffer-cache name="default" buffer-size="1024" buffers-per-region="1024" max-regions="10"/>
</buffer-caches>
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost" default-web-module="ROOT.war">
<location name="/" handler="liferay-portal"/>
</host>
</server>
<servlet-container name="default" default-buffer-cache="default" stack-trace-on-error="local-only">
<jsp-config/>
<persistent-sessions path="persistent-web-sessions" relative-to="jboss.server.data.dir"/>
</servlet-container>
<handlers>
<file name="liferay-portal" path="${jboss.home.dir}/standalone/deployments/ROOT.war" directory-listing="true"/>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content" directory-listing="true"/>
</handlers>
</subsystem>
Jakob Munih, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

New Member Publications: 4 Date d'inscription: 22/01/13 Publications récentes
I tried with latest WildFly 8 build. LR starts up after seting ulimit to at least to 10.000. Later CDI does not render the portlet request, failing wiht WELD-000340 even setting the require-bean-descriptor to true. Anyone made it?
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
As of the time of this writing, the Liferay Faces master branch is now set to <version>4.2.0-m1-SNAPSHOT</version> and is designed for Liferay 6.2 + JSF 2.2.

Snapshot jars are available in the Snapshot Repository.
Jakob Munih, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

New Member Publications: 4 Date d'inscription: 22/01/13 Publications récentes
I tried with the last buidl of WildFly https://ci.jboss.org/hudson/job/WildFly-latest-master/ and 4.2.0-m1-SNAPSHOT before posting.
* portlet-exception log shows the stactrace of the exception or my cdi portlet request
* jsf-cdi-portlet.log shows the exceptions by deploying the demos/jsf2-cdi-portlet example

PS: the 4.2.0-m1-snapshot does nor build completly as some deps are missing:
[ERROR] Failed to execute goal on project bridge-tck-lifecycle-set-portlet: Could not resolve dependencies for project com.liferay.faces.test:bridge-tck-lifecycle-set-portlet:war:4.2.0-m1-SNAPSHOT: Could not find artifact org.apache.myfaces.portlet-bridge:portlet-bridge-tck-section3-2-lifecycle-set:war:jsr329-1.0.1-liferay in central (http://repo.maven.apache.org/maven2) -> [Help 1]
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
H Jakob,

Thanks again for trying this bleeding-edge combination of Liferay 6.2 + JSF 2.2 on WildFly.

Regarding this error:

The tag named passThroughAttribute from namespace http://xmlns.jcp.org/jsf/core has a null handler-class defined


This might be a problem with the JBoss-repackaged version of Mojarra 2.2. For more info, see this answer by BalusC at stackoverflow.com

Regarding the build error, you need to include all of the repositories mentioned the Building Liferay Faces From Source wiki article. Specifically, the settings.xml file needs the following:

<repository>
	<id>portletfaces-thirdparty</id>
	<url>http://repository.portletfaces.org/content/repositories/thirdparty</url>
</repository>


Note that when you build Liferay Faces from source for WildFly, please use the "jboss" profile. For example:

mvn -P jboss clean install



Kind Regards,

Neil
Jakob Munih, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

New Member Publications: 4 Date d'inscription: 22/01/13 Publications récentes
I made the jsf2-cdi-portlet work on WildFly 8 snapshot build #938 from Feb 6, 2014 5:36:54 AM with JSF 2.2., Servlet 3.1 and CDI 1.1. In order to make it work you need:
* the Wildfly profile in liferay-faces: https://github.com/liferay/liferay-faces/pull/131/files
* patch Weld bounded with Widlfly 8: https://issues.jboss.org/browse/WELD-1601
* if you have troubles with too many open file descriptors in deploying Liferay https://issues.liferay.com/browse/LPS-44052
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Jakob,

Thanks so much for the contribution for WildFly support! When you get a chance, please follow the instructions outlined in the Contributing to Liferay Faces wiki article. I took the liberty of creating FACES-1859 in order for you to contribute the work.

Kind Regards,

Neil
Jakob Munih, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

New Member Publications: 4 Date d'inscription: 22/01/13 Publications récentes
I will. Btw JAVASERVERFACES-3031 seems not ported to jsf 2.2. A comment in the original issue asks to open a separete issue for 2.2 branch but I cannot find any reference to it.
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Jakob,

Wow! I didn't know that anyone was watching JAVASERVERFACES-3031. It is my responsibility to open a new issue and provide a patch for Mojarra 2.2. That is one of the first tasks I will be focussed on after we get the Liferay Faces release done. emoticon

Neil
thumbnail
Neil Griffin, modifié il y a 10 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
Hi Jakob,

The work for the JSF 2.2 forward-port has been contributed via JAVASERVERFACES-3184.

Also, we released Liferay Faces 4.x M1 with support for JSF 2.2. For more details, see the blog announcement.

Kind Regards,

Neil
thumbnail
Tobias Liefke, modifié il y a 9 années.

RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?

Junior Member Publications: 78 Date d'inscription: 23/11/12 Publications récentes
Despite the fact that the question from lpu123 xyz is a bit old (I didn't recieved any mail about the new posts), I'd like to answer for the sake of completeness:
I've used the last alpha of WildFly which still contained the jboss-web module, as the first undertow versions were really buggy. All beta versions and the final version didn't include jboss-web anymore.