I finally got to the bottom of my issue of my pages not rendering in WebSphere Portal Server 5.1.  I actually had 2 problems:

1. My default classloading is set to PARENT_LAST  on the portal server, but it is PARENT_FIRST in the RAD debugger.  I found this one thanks to Ryan's hello world jsf portlet which somehow rendered in debug, but not when I deployed.  After setting the classloading to PARENT_FIRST I was able to get to the next error.

2. Relative links in my jsp(s) that do not start with a "/" cause an IllegalStateException.  This exception is neatly caught and wrapped in a PortletException, which is wrapped in a FacesException, never to be heard from again (see PortletExternalContextImpl.dispatch(String path)  ).  The page just stops rendering and returns blank.  I have one portlet now rendering and I am chasing down the last of the rougue links in the other.


Thanks


Louis M. Burroughs III


Ryan Wynn <[EMAIL PROTECTED]>

12/19/2005 08:17 AM
Please respond to "MyFaces Discussion"


       
        To:        MyFaces Discussion <[email protected]>
        cc:        
        bcc:        
        Subject:        Re: MyFaces Portlet Issue on WebSphere 5.1



On 12/17/05, Ryan Wynn <[EMAIL PROTECTED]> wrote:
> On 12/16/05, Louis Burroughs <[EMAIL PROTECTED]> wrote:
> >
> > I posted on this forum a couple of days ago about issues I was having
> > running a MyFaces app as a portlet and someone sent me a hello world ear
> > called SamEar.ear to test with.  Unfortunately my inbox got wiped out and I
> > cannot find the thread of emails, nor did I find it in the archives and I
> > have a question:
> >
> > Can you tell me if the portlet ran in WebSphere 5.1.0.0, 5.1.0.1 or 5.1.0.2?
> >
> > The hello world portlet fails to render as well, even though I do not get
> > any errors.  I am running WebSphere 5.1.0.0.
> >
> > Thanks,
> > Louis M. Burroughs III
>
> Louis, I sent you that sample.  Somone else was having a problem using
> myfaces with wps 5.1 so I cooked up that portlet.  It worked fine in
> the other person's case.  I am actually not positive right now what
> exact version of 5.1 I am running at work.  I will let you know on
> Monday.  I am pretty sure it's the base 5.1.0 version.
>
> Are you sure you are setting the correct permissions on the portlet in
> order to be able to see it.  It sounds like a dumb question, but since
> you didn't see any errors I thought I would check.
>
> You can also try it in the WPS 5.1 Test Environment for RAD if that is
> available to you.
>
> Ryan
>


Here is the version info that I have

product=IBM WebSphere Portal Server
version=5.1.0.0
fixlevel=0
mode=standard
buildnumber=wp510_083

Reply via email to