Foren

Home » Liferay IDE » English

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
X Man
JSF portlet development and deployment
31. Januar 2012 04:31
Antwort

X Man

Rang: Junior Member

Nachrichten: 41

Eintrittsdatum: 5. Januar 2012

Neue Beiträge

Hello
I developed JSF portlet but when I deploy it and add this portlet to a page I got this Exception:

12:11:13,154 ERROR [render_portlet_jsp:154] javax.faces.FacesException: The FacesServlet cannot have a url-pattern of /*. Please define a different url-pattern.

If I will change the URL, what will be this change?
How to solve this problem.
Gregory Amerson
RE: JSF portlet development and deployment
31. Januar 2012 16:48
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

There have been some fixes applied in this area for JSF portlets. See this JIRA ticket: http://issues.liferay.com/browse/LPS-24723

If you look about half way down in the comments you can see Neil Griffin has posted with some workaround for the current version of portal 6.1.0. For 6.1.1 it will contain a fix but until then you can grab a nightly build of the portal. http://releases.liferay.com/portal/nightly/

Also there is a new nightly build of the IDE that also addresses some JSF portlet deployment issues here: http://releases.liferay.com/tools/ide/eclipse/indigo/nightly/
X Man
RE: JSF portlet development and deployment
1. Februar 2012 06:31
Antwort

X Man

Rang: Junior Member

Nachrichten: 41

Eintrittsdatum: 5. Januar 2012

Neue Beiträge

Gregory Amerson,Thank you very much.
Jubril Adisa
RE: JSF portlet development and deployment
9. Februar 2012 08:54
Antwort

Jubril Adisa

Rang: Junior Member

Nachrichten: 35

Eintrittsdatum: 9. Februar 2012

Neue Beiträge

Your suggestions did not work for me greg, i downloaded a new IDE and i also downloaded the 6.2 but still getting that same error emoticon
Gregory Amerson
RE: JSF portlet development and deployment
9. Februar 2012 16:59
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

Hi Jubril,

What version of the Liferay IDE plugins are you using?
Jubril Adisa
RE: JSF portlet development and deployment
9. Februar 2012 17:30
Antwort

Jubril Adisa

Rang: Junior Member

Nachrichten: 35

Eintrittsdatum: 9. Februar 2012

Neue Beiträge

Hello,
I am using eclipse_Liferay_IDE_1.5.0_v201202080242-linux-x86_64.tar.gz
Gregory Amerson
RE: JSF portlet development and deployment
9. Februar 2012 17:39
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

Can you send me an example JSF portlet project that you are having trouble deploying and I can try to replicate on my side.
Jubril Adisa
RE: JSF portlet development and deployment
10. Februar 2012 06:03
Antwort

Jubril Adisa

Rang: Junior Member

Nachrichten: 35

Eintrittsdatum: 9. Februar 2012

Neue Beiträge

Please find attached project as a zip file
Anhänge: rotimi-portlet.zip (5.695,0k)
X Man
RE: JSF portlet development and deployment
15. Februar 2012 02:52
Antwort

X Man

Rang: Junior Member

Nachrichten: 41

Eintrittsdatum: 5. Januar 2012

Neue Beiträge

Hello every one
I think problem solved, you can download the attached file and follow the steps to be able to create JSF portlet
Anhänge: CreateLiferayJsfPortlet.docx (403,1k)
William Gosse
RE: JSF portlet development and deployment
15. Februar 2012 14:12
Antwort

William Gosse

Rang: Regular Member

Nachrichten: 108

Eintrittsdatum: 4. Juli 2010

Neue Beiträge

The problem is caused by the fact the portlet.xml entry for the portlet that is generated when the project is originally created seems to be incorrect.
This original entry looks something like this:
<portlet>
<portlet-name>icetest3</portlet-name>
<display-name>Icetest3</display-name>
<portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class>
<init-param>
<name>view-template</name>
<value>/xhtml/portletViewMode.xhtml</value>
</init-param>
...

Changing the name of the init-param to be the following corrects the issue:
<portlet>
<portlet-name>icetest3</portlet-name>
<display-name>Icetest3</display-name>
<portlet-class>org.portletfaces.bridge.GenericFacesPortlet</portlet-class>
<init-param>
<name>javax.portlet.faces.defaultViewId.view</name>
<value>/xhtml/portletViewMode.xhtml</value>
</init-param>
...

This is why subsequent JSF portlets added to the project work correctly when deployed. Their init-parm name element is being correctly set to javax.portlet.faces.defaultViewId.view.
Gregory Amerson
RE: JSF portlet development and deployment
15. Februar 2012 17:14
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

Correct, and that issue of the initial jsf portlet that is created in the project has been fixed, so with 6.1.1 is release (6.1 GA2) it will include that fix.
Oliver Bayer
RE: JSF portlet development and deployment
16. Februar 2012 01:19
Antwort

Oliver Bayer

Rang: Liferay Master

Nachrichten: 862

Eintrittsdatum: 18. Februar 2009

Neue Beiträge

Hi Greg,

thanks for the info.

Is there any release date set for the GA2 release? I've seen a lot of important/ critical bug fixes that's why I'm really looking forward to the next CE release.

Greets Oli
Gregory Amerson
RE: JSF portlet development and deployment
16. Februar 2012 01:25
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

Hey Oli,

Right now GA2 is schedule for March 23rd.
Oliver Bayer
RE: JSF portlet development and deployment
16. Februar 2012 01:50
Antwort

Oliver Bayer

Rang: Liferay Master

Nachrichten: 862

Eintrittsdatum: 18. Februar 2009

Neue Beiträge

Ok, thanks for the quick reply. I hope there will be no delays as the end of march is set as deadline for one of our projects emoticon.
Gregory Amerson
RE: JSF portlet development and deployment
16. Februar 2012 01:54
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

You should be able to grab nightly builds as the time is approaching the release to get those fixes you need.

Of course, our very next release is the Enterprise Edition for 6.1. 6.1.10, which would of course contain those fixes, but that requires purchasing EE. This does include many other benefits if you haven't checked it out. There will also be a trial download of EE available once it releases next week. Otherwise you should be able to wait until GA2 for community edition.

Good luck with your launch!
X Man
RE: JSF portlet development and deployment
16. Februar 2012 04:36
Antwort

X Man

Rang: Junior Member

Nachrichten: 41

Eintrittsdatum: 5. Januar 2012

Neue Beiträge

Good Job
William Gosse
RE: JSF portlet development and deployment
16. Februar 2012 05:05
Antwort

William Gosse

Rang: Regular Member

Nachrichten: 108

Eintrittsdatum: 4. Juli 2010

Neue Beiträge

This would seem to be a fix that needs to be applied to the IDE and not to the 6.1 GA. It seems to be a simple matter of changing the init-parm name element in the portllet.xml file to be correctly set to javax.portlet.faces.defaultViewId.view when a new JSF porlet project is created in the IDE. Am I missing something here?
Gregory Amerson
RE: JSF portlet development and deployment
16. Februar 2012 05:20
Antwort

Gregory Amerson

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 911

Eintrittsdatum: 16. Februar 2010

Neue Beiträge

The project templates are from the SDK and the IDE just delegates to SDK to generate the project content so it takes a new SDK to get the fix. However, it is pretty easy to upgrade to the latest SDK even with the current version of the portal.