|
Home > Archive > WebSphere Portal Server > February 2007 > Newbie Question: How to Configure A Portlet?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Newbie Question: How to Configure A Portlet?
|
|
| Athar Shiraz 2007-02-22, 7:16 pm |
| I have Portal 5.1.
I am trying to modify the parameters which may be stored in portlet.xml.
I add a parameter under <config-param>.
Then I go and add <param-name> and <param-value>
Then I restart Portal server and login, then go to Administration, then click on Portal Management and then Portlets.
But I don't see any settings for the portlet (which I defined in the portlet.xml).
I see an error message saying that "this portlet is unavailable".
The error from the log file is :
2007.02.22 15:37:12.172 E com.ibm.wps.pe.om.definition.impl.WebApplicationDefinitionImpl getServletContext
EJPPG0003E: ServletContext lookup for /wps/PA_1_0_36 returned the portal context. It has to be a different one.
2007.02.22 15:37:12.172 E com.ibm.wps.pe.pc.legacy.PortletContainerImpl initPage
EJPPG1023E: Portlet Control (7_0_CO [NAVIGATION_NODE:408], 6_0_3K [CONTENT_NODE:116], 100, null, xXmM) could not be logged in. - StackTrace follows...
2007.02.22 15:37:12.172 E com.ibm.wps.pe.pc.legacy.PortletContainerImpl initPage
javax.portlet.PortletException
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1445)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl. performPortletLogin(PortletContainerImpl
.java:404)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.initPage(PortletContainerImpl.java:361)
at com.ibm.wps.pe.pc.PortletContainerImpl.initPage(PortletContainerImpl.java:291)
at com.ibm.wps.engine.phases.WPRenderPhase.processInitPage(WPRenderPhase.java:158)
at com.ibm.wps.engine.phases.WPRenderPhase.execute(WPRenderPhase.java:122)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:93)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:713)
[...]
2007.02.22 15:37:12.172 E com.ibm.wps.pe.om.definition.impl.WebApplicationDefinitionImpl getServletContext
EJPPG0003E: ServletContext lookup for /wps/PA_1_0_36 returned the portal context. It has to be a different one.
2007.02.22 15:37:12.172 E com.ibm.wps.pe.pc.legacy.PortletContainerImpl initPage
EJPPG1023E: Portlet Control (7_0_CO [NAVIGATION_NODE:408], 6_0_3K [CONTENT_NODE:116], 100, null, xXmM) could not be logged in. - StackTrace follows...
2007.02.22 15:37:12.172 E com.ibm.wps.pe.pc.legacy.PortletContainerImpl initPage
javax.portlet.PortletException
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1445)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl. performPortletLogin(PortletContainerImpl
.java:404)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.initPage(PortletContainerImpl.java:361)
at com.ibm.wps.pe.pc.PortletContainerImpl.initPage(PortletContainerImpl.java:291)
at com.ibm.wps.engine.phases.WPRenderPhase.processInitPage(WPRenderPhase.java:158)
at com.ibm.wps.engine.phases.WPRenderPhase.execute(WPRenderPhase.java:122)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:93)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:713)
[...]
Nested Exception is javax.portlet.UnavailableException: WebApplication is stopped
at com.ibm.wps.pe.om.definition.impl.WebApplicationDefinitionImpl. getWebAppContext(WebApplicationDefinitio
nImpl.java:292)
at com.ibm.wps.pe.om.definition.impl.WebApplicationDefinitionImpl. getServletContext(WebApplicationDefiniti
onImpl.java:163)
at com.ibm.wps.pe.om.definition.impl.ServletDefinitionImpl. getRequestDispatcher(ServletDefinitionIm
pl.java:246)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.callMethod(PortletInvokerImpl.java:353)
at com.ibm.wps.pe.pc.legacy.invoker.impl.PortletInvokerImpl.endPage(PortletInvokerImpl.java:206)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.callPortletMethod(PortletContainerImpl.java:1434)
at com.ibm.wps.pe.pc.legacy.PortletContainerImpl.endPage(PortletContainerImpl.java:670)
at com.ibm.wps.pe.pc.PortletContainerImpl.endPage(PortletContainerImpl.java:180)
| |
|
| How did you alter the file?
I'll assume that you used RAD to alter the data in portlet.xml and then deployed it.
This error normally comes into play when you have updated data that is stored static in the portal (for instance config parameters in a portlet).
Usually the way to update a portlet is using the update functionality to alter a portlet. If you did so - congratulations, it won't solve your problem. You have to restart the server becuase you've altered data that is cached in the portal.
Another way, which works most of the time instead of rebooting, is using the was admin console. Go to enterprise applications, look for your app. You will se that is stopped. Check the box next to it and press start. An error will show that says it didn't
started because it's on a different server (WebSphere_Portal in comparison to server1 where the was admin is situated), but in reality it has started, was admin just don't know that. So refreshing your portal page, the alterations should be shown.
Hope that helps you.
/Jonas V
| |
| Athar Shiraz 2007-02-23, 1:18 pm |
| > How did you alter the file?
I just went in added the param name and param value for both concrete and abstract portlet but it is not showing up.
Is there something wrong with the way my server is configured?
> I'll assume that you used RAD to alter the data in
> portlet.xml and then deployed it.
Yes Rad 6.
I have restarted the server and used was admin. but I still don't see the ability to change values in portlet.xml.
I am attaching both the zipped application with:
1) screenshots and
2) the project zip (project interchange format)
The screen shots attempt to show that I cannot access the parameters in the the Administration window and the other screen shot shows that I cannot access the admin console of the WP 5.1 server.
> This error normally comes into play when you have
> updated data that is stored static in the portal (for
> instance config parameters in a portlet).
>
> Usually the way to update a portlet is using the
> update functionality to alter a portlet. If you did
> so - congratulations, it won't solve your problem.
> You have to restart the server becuase you've altered
> data that is cached in the portal.
>
> Another way, which works most of the time instead of
> rebooting, is using the was admin console. Go to
> enterprise applications, look for your app. You will
> se that is stopped. Check the box next to it and
> press start. An error will show that says it didn't
> started because it's on a different server
> (WebSphere_Portal in comparison to server1 where the
> was admin is situated), but in reality it has
> started, was admin just don't know that. So
> refreshing your portal page, the alterations should
> be shown.
>
>
> Hope that helps you.
>
> /Jonas V
| |
|
| Ok, so you're using the 5.1 UTE... That explains a lot.
First of all, you don't have access to the admin portlets, among many others, when using 5.1 UTE by default. And secondly RAD configures the test environment to cahce the data.
To fix the first problem edit the server config for the 5.1 UTE in the Portal tag check the box for 'Enable base portlets for Portal Administration and customization'.
The second one is a bit tricky if I'm correct, because generally using the UTE should never cache information, but it does anyway. There are no info about it if you're not digging deeply into the infocenter. A easy way, well sort fo anyway, is to remove t
he project from the server and then add it again.
A recommendation if you haven't done it is to update both RAD and UTE to it's newest version (for you that would be Rad 6.0.1.1 and UTE 5.1.0.3).
/Jonas V
| |
| Athar Shiraz 2007-02-26, 1:19 pm |
| See I had this checkbox checked along with a multitude of checkboxes and restarted the WAS Portal but there was no effect. Now that I am looking at this thing today I can see all the portlet configuration pages so it did work today ! (for some reason).
Thanks!
> Ok, so you're using the 5.1 UTE... That explains a
> lot.
>
> First of all, you don't have access to the admin
> portlets, among many others, when using 5.1 UTE by
> default. And secondly RAD configures the test
> environment to cahce the data.
>
> To fix the first problem edit the server config for
> the 5.1 UTE in the Portal tag check the box for
> 'Enable base portlets for Portal Administration and
> customization'.
> The second one is a bit tricky if I'm correct,
> because generally using the UTE should never cache
> information, but it does anyway. There are no info
> about it if you're not digging deeply into the
> infocenter. A easy way, well sort fo anyway, is to
> remove the project from the server and then add it
> again.
>
> A recommendation if you haven't done it is to update
> both RAD and UTE to it's newest version (for you that
> would be Rad 6.0.1.1 and UTE 5.1.0.3).
>
> /Jonas V
|
|
|
|
|