You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Thiwanka Wimalasuriya <th...@srilogic.com> on 2004/11/30 19:15:53 UTC
struts portlet "help page"
problem: struts portlet bridge did not support help mode
i fixed this. would somebody apply this patch to CVS
fix :
Index: StrutsPortlet.java
===================================================================
RCS file:
/home/cvspublic/jakarta-jetspeed-2/portals-bridges/struts/src/java/org/apach
e/portals/bridges/struts/StrutsPortlet.java,v
retrieving revision 1.7
diff -u -r1.7 StrutsPortlet.java
--- StrutsPortlet.java 27 Nov 2004 01:04:12 -0000 1.7
+++ StrutsPortlet.java 30 Nov 2004 06:06:08 -0000
@@ -43,6 +43,10 @@
*
* @author <a href="mailto:ate@douma.nu">Ate Douma</a>
* @version $Id: StrutsPortlet.java,v 1.7 2004/11/27 01:04:12 ate Exp $
+ *
+ * @author2 <a href="mailto:thiwanka@srilogic.com">thiwanka
wimalasuriya</a>
+ * 2004/11/30
+ *
*/
public class StrutsPortlet extends GenericPortlet
{
@@ -142,6 +146,9 @@
this.defaultCustomPage = getCustomPageParameter(config);
this.defaultEditPage = getEditPageParameter(config);
this.defaultViewPage = getViewPageParameter(config);
+ this.defaultHelpPage = getHelpPageParameter(config);
+
+
if (this.defaultViewPage == null)
{
// A Struts Portlet is required to have at least the
@@ -191,6 +198,12 @@
{
return config.getInitParameter(PARAM_VIEW_PAGE);
}
+
+ protected String getHelpPageParameter(PortletConfig config)
+ {
+ return config.getInitParameter(PARAM_HELP_PAGE);
+ }
+
public void doEdit(RenderRequest request, RenderResponse response)
throws PortletException, IOException
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: Tomcat startup & portlet applications
Posted by David Sean Taylor <da...@bluesunrise.com>.
Roger Ruttimann wrote:
> Sometimes it takes two restarts of tomcat to initialize newly deployed
> portlet applications. The error message is something like: failed to
> obtain RequestDispatcher for application.
>
> It's random (seen it with login portlet or with a custom portlet) but it
> seems like a timing issue between tomcat and Jetspeed.
>
> Has anybody seen this? Any ideas how this could be fixed/improved?
>
> Roger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>
>
I think its a race condition where the Tomcat autodeploy kicks in around
the same time as Jetspeeds. I see this occassionally to.
Try this setting in Tomcat's server.xml:
<Host name="localhost" debug="0" appBase="webapps"
unpackWARs="true" autoDeploy="false"
xmlValidation="false" xmlNamespaceAware="false">
specifically:
autoDeploy="false"
--
David Sean Taylor
Bluesunrise Software
david@bluesunrise.com
[office] +01 707 773 4646
[mobile] +01 707 529 9194
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: Tomcat startup & portlet applications
Posted by David Sean Taylor <da...@bluesunrise.com>.
Roger Ruttimann wrote:
> Sometimes it takes two restarts of tomcat to initialize newly deployed
> portlet applications. The error message is something like: failed to
> obtain RequestDispatcher for application.
>
> It's random (seen it with login portlet or with a custom portlet) but it
> seems like a timing issue between tomcat and Jetspeed.
>
> Has anybody seen this? Any ideas how this could be fixed/improved?
>
I've seen that with the security and pam apps, although its not
happening now...
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Tomcat startup & portlet applications
Posted by Roger Ruttimann <ro...@apache.org>.
Sometimes it takes two restarts of tomcat to initialize newly deployed
portlet applications. The error message is something like: failed to
obtain RequestDispatcher for application.
It's random (seen it with login portlet or with a custom portlet) but it
seems like a timing issue between tomcat and Jetspeed.
Has anybody seen this? Any ideas how this could be fixed/improved?
Roger
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
Re: struts portlet "help page"
Posted by Ate Douma <at...@douma.nu>.
Fixed.
Thanks for pointing this out.
Regards, Ate
Thiwanka Wimalasuriya wrote:
> problem: struts portlet bridge did not support help mode
>
> i fixed this. would somebody apply this patch to CVS
>
> fix :
>
> Index: StrutsPortlet.java
> ===================================================================
> RCS file:
> /home/cvspublic/jakarta-jetspeed-2/portals-bridges/struts/src/java/org/apach
> e/portals/bridges/struts/StrutsPortlet.java,v
> retrieving revision 1.7
> diff -u -r1.7 StrutsPortlet.java
> --- StrutsPortlet.java 27 Nov 2004 01:04:12 -0000 1.7
> +++ StrutsPortlet.java 30 Nov 2004 06:06:08 -0000
> @@ -43,6 +43,10 @@
> *
> * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
> * @version $Id: StrutsPortlet.java,v 1.7 2004/11/27 01:04:12 ate Exp $
> + *
> + * @author2 <a href="mailto:thiwanka@srilogic.com">thiwanka
> wimalasuriya</a>
> + * 2004/11/30
> + *
> */
> public class StrutsPortlet extends GenericPortlet
> {
> @@ -142,6 +146,9 @@
> this.defaultCustomPage = getCustomPageParameter(config);
> this.defaultEditPage = getEditPageParameter(config);
> this.defaultViewPage = getViewPageParameter(config);
> + this.defaultHelpPage = getHelpPageParameter(config);
> +
> +
> if (this.defaultViewPage == null)
> {
> // A Struts Portlet is required to have at least the
> @@ -191,6 +198,12 @@
> {
> return config.getInitParameter(PARAM_VIEW_PAGE);
> }
> +
> + protected String getHelpPageParameter(PortletConfig config)
> + {
> + return config.getInitParameter(PARAM_HELP_PAGE);
> + }
> +
>
> public void doEdit(RenderRequest request, RenderResponse response)
> throws PortletException, IOException
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org