I've just installed Jetspeed 1.3a2-release and I'm having trouble
deploying a "Hello World" portlet.
Per instructions, 1) I built this:
package mypackage;
import org.apache.jetspeed.portal.portlets.AbstractPortlet;
import org.apache.turbine.util.RunData;
import org.apache.ecs.ConcreteElement;
import org.apache.ecs.StringElement;
public class HelloPortlet extends org.apache.jetspeed.portal.portlets.AbstractPortlet {
public HelloPortlet() {
super();
}
public ConcreteElement getContent(RunData runData) {
return (new StringElement ("Hello World!"));
}
}
2) Created WEB_INF/classes/mypackage and placed the class file there.
3) Create an xreg file in WEB-INF/conf:
<?xml version="1.0" encoding="UTF-8"?>
<registry>
<portlet-entry name="HelloPortlet" hidden="false" type="ref"
<meta-info>
<title>HelloPortlet</title>
<description>My Portlet Example</description>
</meta-info>
<classname>mypackage.HelloPortlet<classname>
<media-type ref="html"/>
</portlet-entry>
</registry>
4) Added a line to TurbineResources.properties:
module.packages=mypackage
right after the jetspeed and turbine module lines.
5) Added [tomcat webapps dir]/jetspeed/WEB-INF/classes to the
CLASSPATH (not needed?)
6) Restart, login as "turbine", try to add portlets, but my
HelloPortlet is not listed.
Also (and this is wierd)... There are never any files write in
webapps/jetspeed/logs.
In addition I edited the anon files to try to add my portlet to the
default page, but it does not show up.
I think I'm following the instruction, plus a few other tips from the
email list, but still no portlet. Help?!
Thank you
---
Jeff Sexton
ODS Health Plans
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>