Three suggestions:
1) Extract the class from the jar and put it under web-inf\classes directory. Having 
it only in a jar file may not work. Although logically speaking this should work...i'm 
actually going to try it that way and see where it takes me...but this is just to have 
the classes just as jetspeed has them. It extracts all of them to the web-inf\classes 
directory.
2) Your module definition should be before the apache definitions like this:
module.packages=claudia.modules,de.vit.bullkat.modules,org.apache.turbine.modules. 
Again this may not matter...but that is how the comment indicates in the properties 
file.
3) THIS IS IMPORTANT (it will not work if this particular point is not followed) 
:Under the modules is your class under a directory called "actions". For e.g. the 
BullkatAction class should be here based on your given module definition: 
claudia.modules.actions or de.vit.bullkat.modules.actions. 

Note: If this is a portlet action class then i would suggest that you have the 
following directroy structure (again this is how the jetspeed structure is. It is 
better to follow that structure just as  a design rule.):
claudia.modules.actions.portlets where the BullKatAction class will be at this 
location and in your .xreg file you can refer to this class as 
portlets.BullkatAction.class

Well hopefully this helps.

Regards,
Archana





Actually i'm going to try to see if the jar version does work



>>> [EMAIL PROTECTED] 01/19/04 02:07AM >>>
Hello,

I have write a Velocity-Portlet with an Action-Class. My Problem is,
that the Tomcat says he cant find the Action-Class, but he looks
in the correct modules.packages.path:

java.lang.ClassNotFoundException:

     Requested Action not found: BullkatActions
     Turbine looked in the following modules.packages path:
     [org.apache.jetspeed.modules,
org.apache.turbine.modules,claudia.modules,de.vit.bullkat.modules,
org.apache.turbine.modules]

     at
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
     at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)


In the local-portlet.xreg I wrote:

portlet-entry name="Bull" hidden="false" type="ref"
        parent="Velocity" application="false">
        <meta-info>
            <title>Bull-velocity</title>
            <description>Velocity-Portlet</description>
        </meta-info>

<classname>org.apache.jetspeed.portal.portlets.VelocityPortlet</classname>
        <parameter name="template" value="start" hidden="true"
            cachedOnName="true" cachedOnValue="true"/>
        <parameter name="action" value="BullkatActions" hidden
="false"
            cachedOnName="true" cachedOnValue="true"/>
        <media-type ref="html"/>
        <url cachedOnURL="true"/>
    </portlet-entry>

and in the TurbineResources.properties:

module.packages=org.apache.jetspeed.modules
module.packages=org.apache.turbine.modules,claudia.modules,de.vit.bullkat.modules

The BullkatActions.class is in a jar-Archiv in the Folder
Portal/WEB_INF/lib and in Portal/WEB_INF/classes....

What can be wrong? Why can't Jetspeed find the Class? And Sorry, my
English is not very good.

Thanks
Claudia


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to