Error Handling in portlet (liferay 5.1.1 + seam 2.0.2 + facelets + jsf)

thumbnail
1039549, modified 17 Years ago. Liferay Master Posts: 621 Join Date: 7/7/08 Recent Posts
Hello!

Just managed to setup development of wortlets with Liferay 5.1.1 + Seam 2.0.2 + Facelets + JSF 1.2
Everything looks very nice except one thing - error-handling.

If something happens wronge (for example mistake in facelets xhtml file) whole page in portal is not loaded and I'm receiving many exception (followed to initial exception) in log like:


ApplicationDispatcher[/nib-portlet] PWC1231: Servlet.service() for servlet jsp threw exception
java.io.FileNotFoundException: /html/common/themes/portlet.jsp
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:446)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
...



19:17:32,044 ERROR [InsertTag:897] Can't insert page '/html/common/themes/portlet.jsp' : /html/common/themes/portlet.jsp
java.io.FileNotFoundException: /html/common/themes/portlet.jsp
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:446)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
...


So, how it is possible to catch the error, so, if something wronge happens - only failed portlet will not be displayed and some message somethere will notice user about problem?
thumbnail
1456927, modified 17 Years ago. New Member Posts: 14 Join Date: 10/20/08 Recent Posts
Hi Alexey,

Im also working on Seam2 and liferay integration, are you able integrate both? I really need help on this.
please upload some sample liferay seam2 plugin

thanks
raghu
thumbnail
1039549, modified 17 Years ago. Liferay Master Posts: 621 Join Date: 7/7/08 Recent Posts
Hi!
Looks I already answered in Seam Framework forum.

So, in two words - I managed Seam to be working under Liferay - but only partially.
After some experimenting - it looks like it is not best idea to use seam under Liferay - too many problems.

I will try to prepeare example project for you during this week
thumbnail
1456927, modified 17 Years ago. New Member Posts: 14 Join Date: 10/20/08 Recent Posts
Hi Alexey
Thanks for your update. I frustratingly worked on this integration. Then finally I gave-up this for little while .

Please update your portal plugin once you finished. This is really difficult for me as I'm novice in both the technologies.
But it's really difficult.
Liferay team & Seam team should work on this integration. I think both technologies are conflicting at servlet listener level.
Icefaces is workaround for this issue but not solution. And I'm not intrested in Icefaces (bcoz of D2D which increases server load).

thanks
raghu
thumbnail
1039549, modified 17 Years ago. Liferay Master Posts: 621 Join Date: 7/7/08 Recent Posts
Hi!
Raghu N N:
Hi Alexey
Thanks for your update. I frustratingly worked on this integration. Then finally I gave-up this for little while .

I will try to update it - but I'm afraid I will able to do it only at the beginning of next week.
If you need short advise (but it is really only my opinion) - do not use Seam + Liferay for now:
* Too many problems
* Not all seam functionality is working
* Even part of functionality is working - I really not sure it will work stable.

Raghu N N:

Please update your portal plugin once you finished. This is really difficult for me as I'm novice in both the technologies.
But it's really difficult.
Liferay team & Seam team should work on this integration. I think both technologies are conflicting at servlet listener level.
Icefaces is workaround for this issue but not solution. And I'm not intrested in Icefaces (bcoz of D2D which increases server load).

thanks
raghu