Thanks!!! Now it works... Greetings Christine
-----Urspr�ngliche Nachricht----- Von: Luta, Raphael (VUN) [mailto:Raphael.Luta@;groupvu.Com] Gesendet: Donnerstag, 24. Oktober 2002 12:26 An: 'Jetspeed Users List' Betreff: RE: problem with using own actions The way turbine loads "module" is that based on modules package path you provide, it will append the type of module and module name to look up the class Hence if you define "modules.myactions" in the pmodule path and look for a TestAction action, Turbine will look for: modules.myactions.actions.TestAction and not find it :) So you need to keep the "actions, "controls", "portlets", etc... package name in your module package, otherwise Turbine/Jetspeed won't load them. To fix your issue, simply rename "myactions" to "actions" and use a custom "net.gmx.portal.modules" package (or whatever you like) to store them. Add net.gmx.portal.modules at the *beginning* of the modules path in TR.p so that you can override default actions if you don't like the behavior of those provided by Jetspeed and/or Turbine. > -----Message d'origine----- > De : Christine Q. [mailto:Bella-C@;gmx.net] > Envoy� : jeudi 24 octobre 2002 12:12 > � : [EMAIL PROTECTED] > Objet : problem with using own actions > > > Hi all, > > i'm using tomcat 4.1 and jetspeed-1.4b1-release-war.zip. Now > I tried to > develop my own portlets and my own actions. > > I wrote a jspportlet which should use an action class developed by my > own. My problem is that Turbine seems to have a problem with locating > the new action class. I got the following error: > > Horrible Exception: java.lang.ClassNotFoundException: > > Requested Action not found: TestAction > Turbine looked in the following modules.packages path: > [org.apache.jetspeed.modules, org.apache.turbine.modules, > modules.myactions] > > at > org.apache.turbine.modules.ActionLoader.getInstance(ActionLoad > er.java:17 > 4) > at > org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122) > at > org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPa > ge.java:14 > 3) > .......... > > In the local-portlets.xreg file I inserted the portlet-entry > like this: > > <portlet-entry name="Test" hidden="false" type="ref" > application="false"> > <meta-info> > <title>Test</title> > <description>Test</description> > </meta-info> > > <classname>org.apache.jetspeed.portal.portlets.JspPortlet</classname> > <parameter name="template" value="test.jsp" > hidden="false" cachedOnName="true" cachedOnValue="true"/> > <parameter name="action" value="TestAction" > hidden="false" cachedOnName="false" > cachedOnValue="false"/> > <media-type ref="html"/> > <url cachedOnURL="true"/> > <category group="Jetspeed">demo</category> > <category group="Jetspeed">jsp.demo</category> > </portlet-entry> > > The action class named TestAction extends > org.apache.turbine.modules.ActionEvent and is located in the package > modules.myactions under the WEB-INF\classes directory > > In the TurbineResources.properties file I added the following entry: > > module.packages=modules.myactions > > If someone has an idea please help me!!! > I've spend a lot of time in searching the reason for the > described error > > Christine > > > -- > To unsubscribe, e-mail: <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>
