Bob,put your java file(portlet) under jetspeed->WEB-INF->classes folder.
Then to compile it just go to command prompt and navigate to this folder,
once in this folder type:javac FirstPortlet.java(or whatever you named it).
That should create a .class file in that dir.Then all you need to do is
create a file called local-portlets.xreg under the conf folder(look at
portlets.xreg for ideas)Then place this in the file local-portlets.xreg:
<?xml version="1.0" encoding="UTF-8"?>
<registry>
<portlet-entry name="FirstPortlet" hidden="false" type="instance"
application="false">
<meta-info>
<title>TBMCS Portlet</title>
</meta-info>
<classname>FirstPortlet</classname>
<media-type ref="html"/>
</portlet-entry>
//Bob this is an example of how to register a jsp. Dont put this in unless
you have a jsp to use,make sure you change name //and title above.From what
the users have said jetspeed looks in this .xreg before the portlets.xreg so
all of your portlets
//you create go in here
<portlet-entry name="pexjsp1" hidden="false" type="ref" parent="JSP"
application="false">
<meta-info>
<title>Pex</title>
<description>Pex JSP portlet</description>
</meta-info>
<parameter name="template" value="/pexjsp1.jsp" hidden="false"/>
<media-type ref="html"/>
</portlet-entry>
</registry>
As far as your error I got that too but I cant even venture a guess as I am
a newbie.
Graham
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 1:59 PM
To: [EMAIL PROTECTED]
Subject: Horrible Exception under Jetspeed Content...
Once I login to the Jetspeed homepage and browse to Admin -> Jetspeed
Content it throws a Horrible Exception. The error output is...
Horrible Exception: java.lang.NullPointerException
at
org.apache.turbine.services.template.TurbineTemplateService.getCachedName(Tu
rbineTemplateService.java:548)
at
org.apache.turbine.services.template.TurbineTemplateService.getScreenTemplat
eName(TurbineTemplateService.java:412)
at
org.apache.turbine.services.template.TurbineTemplate.getScreenTemplateName(T
urbineTemplate.java:92)
at
org.apache.turbine.modules.screens.VelocityScreen.buildTemplate(VelocityScre
en.java:129)
at
org.apache.turbine.modules.screens.TemplateScreen.doBuild(TemplateScreen.jav
a:130)
at org.apache.turbine.modules.Screen.build(Screen.java:99)
at
org.apache.turbine.modules.ScreenLoader.eval(ScreenLoader.java:129)
at
org.apache.turbine.modules.layouts.VelocityOnlyLayout.doBuild(VelocityOnlyLa
yout.java:98)
at org.apache.turbine.modules.Layout.build(Layout.java:91)
at
org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:166)
at org.apache.turbine.modules.Page.build(Page.java:90)
at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
at org.apache.turbine.Turbine.doGet(Turbine.java:447)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:484)
I'm not too sure what the error actually means other than I'm assuning that
there is nothing in this directory?? Or is there something I haven't
configured properly? Also, I followed the 'How to Write a Portlet' doc but
I'm still unsure of how to compile and configure it into Jetspeed. Any
advice on where to look or how to do this?
I'm just trying to understand Jetspeed now that I have it installed and can
login. If anyone knows of any links about documentation regarding
understanding and developing in Jetspeed from this point on, could you let
me know of them?
All help is great appreciated!!
Thanks,
Bob.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]