Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Error Handling in portlet (liferay 5.1.1 + seam 2.0.2 + facelets + jsf)
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:
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?
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?
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
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
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
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
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
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
Hi!
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:
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