Luminis & Hello World Portlet deployment issue

I am trying to deploy a hello world portlet to Luminis. I have a .war file.

I first ran

configman -s portlet.default.category Portlets
configman -s portlet.default.group public

and they were successful.

Then I tried cptool deploy portlet Portlet.war (Portlet.war is my war file name) & got the following response

[ladmin@lum1 ~]$ cptool deploy portlet Portlet.war
Going to deploy /home/ladmin/Portlet.war
Deploying "Portlet"...
The category selected for portlet auto-publishing via the property "portlet.default.category" does not exist or could not be reliably determined, so auto-publishing will not occur. Category is set to "Portlets".

I am not able to see my portlet via Modify Currently Published Channel menu. So how should I publish this portlet so I can see it there as well as in the home tab.

What am I missing?

Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I then created a new portlet

I then created a new portlet channel and gave the id as Portlet.HelloWorld as Portlet is my war file name and HelloWorld is my portlet name.

But after I deploy on the home tab, I get errors. The error is as follows

Inner exception:
org.jasig.portal.PortalException: Initialization of the portlet container failed. at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow(CPortletAdapter.java:272) at org.jasig.portal.channels.portlet.CPortletAdapter.setRuntimeData(CPortletAdapter.java:396) at campuspipeline.uportal.ScheduledChannelRenderer$ScheduledWorker.run(ScheduledChannelRenderer.java:684) at com.pipeline.uportal.ChannelRendererTaskInterceptor$1.run(ChannelRendererTaskInterceptor.java:154) at java.security.AccessController.doPrivileged(Native Method) at com.pipeline.uportal.ChannelRendererTaskInterceptor.run(ChannelRendererTaskInterceptor.java:138) at campuspipeline.uportal.ScheduledChannelRenderer$ScheduledWorker.execute(ScheduledChannelRenderer.java:1108) at campuspipeline.util.concurrent.ThreadPoolExecutor$ThreadPoolTask.execute(ThreadPoolExecutor.java:422) at campuspipeline.util.concurrent.ThreadPoolExecutor$LimitedExecutorTask.run(ThreadPoolExecutor.java:493) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.jasig.portal.PortalException: Unable to find portlet definition for ID 'Portlet.HelloWorld' at org.jasig.portal.channels.portlet.CPortletAdapter.initPortletWindow(CPortletAdapter.java:213) ... 11 more
Outer exception:
org.jasig.portal.PortalException: General channel rendering failure. at campuspipeline.uportal.ScheduledChannelRenderer.completeRendering(ScheduledChannelRenderer.java:518) at org.jasig.portal.ChannelManager.outputChannel(ChannelManager.java:472) at org.jasig.portal.CharacterCachingChannelIncorporationFilter.endElement(CharacterCachingChannelIncorporationFilter.java:348) at org.apache.xml.serializer.ToHTMLSAXHandler.endElement(ToHTMLSAXHandler.java:243) at org.apache.xml.dtm.ref.DTMTreeWalker.endNode(DTMTreeWalker.java:373) at org.apache.xml.dtm.ref.DTMTreeWalker.traverse(DTMTreeWalker.java:132) at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.dispatchToEvents(SAX2DTM.java:748) at org.apache.xalan.serialize.SerializerUtils.outputResultTreeFragment(SerializerUtils.java:139) at

What did I miss here?

My portlet.xml looks like this

<?xml version="1.0" encoding="UTF-8"?>

hello HelloWorld 0
HelloWorld

text/html VIEW

My web.xml is having some entries with pluto portlets which I am assuming we do not need.

Thanks.

Syndicate content