You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Stefan Wagner <wa...@ixtern.de> on 2001/05/10 13:54:55 UTC

Running HelloWorldPortlet

Hi!

I can't get the HelloWorld Portlet running. I compiled it, put it into a JAR, 
and copied it into the lib directory of Jetspeed (WEB-INF/lib)

Now I wrote the following entry in jetspeed-config.jcfg:

<portlet-entry type="instance" name="HelloWorld" >
         <classname>com.netoffix.HelloWorld</classname>
</portlet-entry>

I restart Tomcat.

But I can't see my portlet in the customize page.
Did I miss something?

Danke und ciao
Stefan

-------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: Running HelloWorldPortlet

Posted by Klaus Hildner <kl...@hildner.de>.
Hi Stefan,

> I can't get the HelloWorld Portlet running. I compiled it, put it into
a JAR,
> and copied it into the lib directory of Jetspeed (WEB-INF/lib)

To avoid the overhead of creating the *.jar you might want to put it in
C:\jakarta-tomcat-3.2.1\webapps\jetspeed\WEB-INF\classes (or similar)

> Now I wrote the following entry in jetspeed-config.jcfg:
>
> <portlet-entry type="instance" name="HelloWorld" >
>          <classname>com.netoffix.HelloWorld</classname>
> </portlet-entry>

Could be that the customizer cannot handle the entry without a title; so
you should define additional meta info:

        <portlet-entry type="instance" name="HelloWorld">
           <classname>com.netoffix.HelloWorld</classname>

           <meta-info>
              <title>(title)</title>
              <description>(description)</description>
           </meta-info>
        </portlet-entry>

The file would have to be saved in
...\WEB-INF\classes\com\netoffix\HelloWorld.class.

Kind regards

Klaus
--
klaus@hildner.de
mobile: +49-173-310-6491
accept-language: en-us, de


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org