I've been having the same problem today. I was able to get a portlet working
with our oracle database using 1.3a1, but now I'm using the nightly builds
(1.3a2 ? ) so I can use Velocity.
I also created a local-portlet.xreg, and put it into the conf directory with
the portlet.xreg file ( Is that right?, I was going off of a previous email
of Bob's). I then created a servlet and put it into the class directory
classes/com/bp/pipelines_na/noms/actions/NewWebNoms.class (the package name
comforms to the dir structure), and I put a velocity template in the
templates directory with the other portlets vm's.
In the local-portlet.xreg how should I specify the servlet to be called?
Just the class name, or the how package name? Will Jetspeed transverse the
class directory untill it finds the file? I added my package to the
TurbineResource.properties file:
module.packages=com.bp.pipelines_na.noms.actions
When I look at the jetspeed log I can see the the portlet is getting
registered ( I assume that it's just reading the xreg file ), but when I
select the portlet to be used it is never called. Nothing in the logs about
exceptions, or anything.
Is there any updated documentation I should be looking at? I took the
HelloVelocity example from the portlets.xreg as a template.
Win2k setup.
Tomcat 3.x
On Monday 24 September 2001 07:08, you wrote:
> My portlet is located in
> /usr/local/etc/tomcat_3.2.3/webapps/jetspeed/WEB-INF/classes. The code of
> my HelloWorldPortlet.java is as follows...
>
> import org.apache.jetspeed.portal.portlets.AbstractPortlet;
> import org.apache.turbine.util.RunData;
> import org.apache.ecs.*;
>
> public class HelloWorldPortlet extends AbstractPortlet
> {
> publicConcreteElement getContent (RunData aRunData)
> {
> return (new StringElement ("Hello World!!"));
> }
> }
>
>
> I compiled the 'HelloWorldPortlet.java' file in the same directory to get
> the 'HelloWorldPortlet.class' file. Then I created a file called
> 'local-portlets.xreg' in the directory
> /usr/local/etc/tomcat_3.2.3/webapps/jetspeed/WEB-INF. However, at this
> point I'm not sure if there is something more that I have to do??
> Ideas/help??
>
> Thanks,
> Bob.
>
>
>
> -----Original Message-----
> From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 24, 2001 3:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Portlet example help...
>
> > <classname>HelloWorldPortlet</classname>
>
> What package is 'HelloWorldPortlet' in?
> Where is the .class file, is it in the WEB-INF/classes directory?
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 24, 2001 11:40 AM
> Subject: Portlet example help...
>
> > Hi All,
> >
> > I have been having problems at creating a portlet to deploy...in fact I'm
> > trying to do the simple 'Hello World' example. I have followed the
>
> example
>
> > however I cannot get the portlet to show up.
> >
> > HOWEVER, I am successful in being able to login to Jetspeed as well as
> > create some user accounts. After creating the HelloWorldPortlet.java
> > file
>
> I
>
> > compile it to get HelloWorldPortlet.class and both files reside in the
> > TOMCAT_HOME/webapps/jetspeed/WEB-INF/classes directory. I then created a
> > portlet entry in my 'local-portlet.xreg' file with the following code...
> >
> > <portlet-entry name="HelloWorldPortlet" hidden="false" type="instance"
> > application="false">
> > <meta-info>
> > <title>Hello World Example</title>
> > </meta-info>
> > <classname>HelloWorldPortlet</classname>
> > <media-type ref="html"/>
> > </portlet-entry>
> >
> >
> > After restarting Tomcat and logging into Jetspeed as 'admin', nav to
> > Customize->AddPortlet...I can see the HelloWorldPortlet in the list of
> > available portlets. I select it and save my settings and go to my
>
> Homepage
>
> > to see the portlet BUT it does not show up. I'm not sure what I am doing
> > wrong might anyone know what I am doing wrong?? Do I have to make
> > entries/modifications to any other files??
> >
> > Any help is greatly appreciated!!
> >
> > Thanks,
> > Bob Wilson.
>
> ---------------------------------------------------------------------
> 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]