Federica Legger escribió:
>
> > Federica,
> >
> > Maybe it's just a typo in your post, but it should "instance", not
> > "istance"...
>
> Thanks, it was a typo in my jetspeed-config.jcfg :)
> Now I hope it's correct:
>
> <portlet-entry type="instance" name="Hello World">
> <classname>sample.HelloWorldPortlet</classname>
> </portlet-entry>
>
> Anyway, I'm still trying to get it working:
>
> 1) I put the class file under
>
> %TOMCAT_HOME%\webapps\jetspeed\web-inf\lib\sample\HelloWorldPortlet.class
>
It looks like a CLASSPATH issue. The above is wrong. You should instead
place your class in WEB-INF/classes (create it) with the package
structure, like WEB-INF/classes/sample/HelloWorldPortlet.class
This SHOULD NOT be in the classpath. The classloader for the webapp will
take care of it automagically.
> 2)Set classpath in Tomcat.bat:
>
> set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\jetspeed\web-inf\lib
Again, DON'T do that.
>
> 3) In jetspeed.log I get
>
> snip:
>
> Exception: java.lang.NoClassDefFoundError:
> org/apache/jetspeed/portal/portlets/AbstractPortlet
> Stack Trace follows:
> java.lang.NoClassDefFoundError:
> org/apache/jetspeed/portal/portlets/AbstractPortlet
> at java.lang.ClassLoader.defineClass0(Native Method)
> ....
>
> Exception: org.apache.jetspeed.portal.PortletException:
> org/apache/jetspeed/portal/portlets/AbstractPortlet
> Stack Trace follows:
> org.apache.jetspeed.portal.PortletException:
> org/apache/jetspeed/portal/portlets/AbstractPortlet
> .....
>
These exceptions arise because of the mixture of classpaths in your
settings.
Summarising:
No jetspeed related jars in tomcat/lib
All webapp related jars in WEB-INF/lib or WEB-INF/classes
It should work.
> Now, AbstractPortlet.class should be in jetspeed-1.3a1.jar, but if I set my
> classpath:
>
> set
> CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\jetspeed\web-inf\lib\jetspeed-1.
> 3a1.jar
>
> Tomcat says it can't start jetspeed servlet...
> Any tip?
>
> TIA
>
> Federica
>
> >
> > Cheers,
> > Thomas B.
> >
> > ----- Original Message -----
> > From: "Federica Legger" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 23, 2001 15:24
> > Subject: Hello World Portlet
> >
> >
> > > Hi everybody,
> > > I've installed Jetspeed-1.3a1 war + tomcat 3.2.1and I'm trying to get
> the
> > > Hello World Portlet to work. I added the line:
> > >
> > > <portlet-entry type="istance" name="Hello World">
> > > <classname>SamplePortlet.HelloWorldPortlet</classname>
> > > </portlet-entry>
> > >
> > > in jetspeed-config.jcfg, and I selected it from the Customize page.
> > > But it doesn't show up in my home page and tomcat gives the error
> > >
> > > Error=CustomizePortlet: Could not get Portlet HelloWorld from
> > > PortletFactory!
> > >
> > > Have I missed something?
> > > TIA
> > >
> > > Federica Legger
> > >
> > >
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Search: <http://www.mail-archive.com/[email protected]/>
> > > List Help?: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/[email protected]/>
> > List Help?: [EMAIL PROTECTED]
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/[email protected]/>
> List Help?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?: [EMAIL PROTECTED]