Hello,

I figured this one out myself.  It's apparently a class loader issue.  I
had my portlet class in my classpath, which turned out to be a
mistake.  Now I've got the portlet off of the directory
TOMCAT_HOME/webapps/jetspeed/WEB-INF/classes, and everything works fine.

Walter Brameld
[EMAIL PROTECTED]

On Fri, 6 Jul 2001, Walter Brameld wrote:

> 
> Hello,
> 
> I'm running Jetspeed from CVS on Tomcat 3.2.1 with JDK 1.2.2 on a RedHat
> 7.0 box.
> 
> After I added my own portlet, I got the following message when I logged in
> to Jetspeed and went to the Customize page:
> 
> org.apache.turbine.util.TurbineException: Error rendering Velocity
> template: /controls/html/jetspeed.vm: Error rendering Velocity
> template: /controls/html/jetspeed.vm: Invocation of method 'getContent' in
> class org.apache.jetspeed.portal.portlets.customize.CustomizePortlet threw
> exception class java.lang.NoClassDefFoundError
> 
> I determined (after modifying the Jetspeed source to print out a stack
> trace) that the class it cannot find is
> org.apache.jetspeed.portal.portlets.AbstractPortlet
> 
> Again, this only happens when I try to add my own portlet to
> Jetspeed.  The portlet itself compiles with no errors.  Here is the .xreg
> file that adds the portlet:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <registry>
>     <portlet-entry name="Jetspeed Users"
>                    hidden="false" type="instance"
>                    application="false">
>         <classname>com.newrivernet.portlets.HelloWorldPortlet2</classname>
>         <meta-info>
>             <title>Jetspeed Users</title>
>             <description>list of registered users</description>
>         </meta-info>
>     </portlet-entry>
> </registry>
> 
> Any ideas why Jetspeed would have trouble finding the class
> AbstractPortlet, and only when I add my own portlet (which extends
> AbstractPortlet)?
> 
> Walter Brameld
> [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to