Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Tobias Liefke
liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
2 août 2013 03:57
Réponse

Tobias Liefke

Rang: New Member

Publications: 13

Date d'inscription: 23 novembre 2012

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
Neil Griffin
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
2 août 2013 11:47
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2137

Date d'inscription: 26 juillet 2005

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
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
17 novembre 2013 18:00
Réponse

lpu123 xyz

Rang: New Member

Publications: 2

Date d'inscription: 22 août 2010

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
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
4 février 2014 11:24
Réponse

Jakob Munih

Rang: New Member

Publications: 4

Date d'inscription: 22 janvier 2013

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?
Neil Griffin
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
4 février 2014 13:53
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2137

Date d'inscription: 26 juillet 2005

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
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
4 février 2014 23:42
Réponse

Jakob Munih

Rang: New Member

Publications: 4

Date d'inscription: 22 janvier 2013

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:
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]
Pièces jointes: jsf-cdi-exception.log (5,9k), portlet-exception.log (23,8k)
Neil Griffin
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
6 février 2014 09:01
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2137

Date d'inscription: 26 juillet 2005

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:

1<repository>
2    <id>portletfaces-thirdparty</id>
3    <url>http://repository.portletfaces.org/content/repositories/thirdparty</url>
4</repository>


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

1mvn -P jboss clean install



Kind Regards,

Neil
Jakob Munih
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
7 février 2014 15:18
Réponse

Jakob Munih

Rang: New Member

Publications: 4

Date d'inscription: 22 janvier 2013

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
Neil Griffin
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
10 février 2014 10:38
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2137

Date d'inscription: 26 juillet 2005

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
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
10 février 2014 13:45
Réponse

Jakob Munih

Rang: New Member

Publications: 4

Date d'inscription: 22 janvier 2013

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.
Neil Griffin
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
10 février 2014 13:51
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2137

Date d'inscription: 26 juillet 2005

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
Neil Griffin
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
4 mars 2014 10:27
Réponse

Neil Griffin

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2137

Date d'inscription: 26 juillet 2005

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
Tobias Liefke
RE: liferay-faces branch for Liferay 6.2.0 and JSF 2.2?
23 juillet 2014 04:14
Réponse

Tobias Liefke

Rang: New Member

Publications: 13

Date d'inscription: 23 novembre 2012

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.