Jeremy Ford
From: "Gregory Joseph" <[EMAIL PROTECTED]> Reply-To: "Jetspeed Users List" <[EMAIL PROTECTED]> To: "Jetspeed Users List" <[EMAIL PROTECTED]> Subject: Requested Action Not Found Date: Wed, 3 Sep 2003 19:34:37 +0200
Hi list again,
I'm running through a probably simple problem:
I've made my own simple HelloWorld portlet, consisting of a jsp and an Action
class. But i keep on getting the following in the logs: (and indeed the
template is rendered without the request attributes that should have been set
by the action)
GenericMVCPortlet - error executing actionjava.lang.ClassNotFoundException: Requested Action not found: HelloWorldJSPPortletAction Turbine looked in the following modules.packages path: [com.company.web.helloworld, org.apache.jetspeed.modules, org.apache.turbine.modules]
I added this line in my local properties file module.packages=com.company.web.helloword
My action class looks like [see end of this mail] My local-portlets.xreg looks like [see end of this mail]
Well, I really have no clue what could be going on. In my project's compile
path, I used to have the servlet2.2.jar from jetspeed's war. I read in some
archived mail someone solved his by problem by using a servlet2.3.jar, which
I tried with no results.
Hope this hasn't been discussed over&over, but I can't seem to find a solution that works for me in the archives.
Thanks for any idea,
greg
------ My action class: package com.company.web.helloworld;
import org.apache.jetspeed.modules.actions.portlets.JspPortletAction; import org.apache.jetspeed.portal.Portlet; import org.apache.turbine.util.RunData;
public class HelloWorldJSPPortletAction extends JspPortletAction { protected void buildNormalContext(Portlet portlet, RunData rundata) throws Exception { rundata.getRequest().setAttribute("result", new Integer(8)); } }
------- My local-portlets.xreg: <?xml version="1.0" encoding="UTF-8"?> <registry>
<portlet-entry name="HelloWorld" hidden="false" type="ref" parent="JSP" application="false"> <meta-info> <title>Greg's HelloWorld in Jetspeed</title> <description> Chalala pededepepe </description> </meta-info> <parameter name="template" value="helloworld.jsp" hidden="true"/> <parameter name="action" hidden="true" value="HelloWorldJSPPortletAction" /> <media-type ref="html"/> <category>demo</category> <category>jsp.demo</category> </portlet-entry>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________ MSN 8: Get 6 months for $9.95/month. http://join.msn.com/?page=dept/dialup
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
