File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Portals and Portlets and the fly likes Deployed portlets do not show up in Jetspeed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Deployed portlets do not show up in Jetspeed" Watch "Deployed portlets do not show up in Jetspeed" New topic
Author

Deployed portlets do not show up in Jetspeed

George Randall
Greenhorn

Joined: Jan 21, 2010
Posts: 2
I'm trying to use Jetspeed as a development platform for portlets that would eventually be used in WebSphere. I know it's not the best approach but Jetspeed is light on resources so can be run locally.

Basically deploying to both portals works fine, but the portlets do not show up in the portlet list of Jetspeed.

Here's the console output after placing the war files in C:\Apache\Jetspeed2\webapps\jetspeed\WEB-INF\deploy:


Note that i tried both the CompaniesAndPeoplePortlet (essentially a HelloWorld portlet) and ImageDisplayPortlet povided by Cameron McKenzie in a similar thread:
http://www.coderanch.com/t/203654/Portals-Portlets/java/Portal-Deployed-but-cant-see

I noticed that Cameron's output did not end with the initialization done message, but also included the following lines (for yet another MyAjax portlet) which seems to be exactly what i'm missing here:


I've never seen anyone mention the registry entries in the tutorials. As I said deploying ImageDisplayPortlet fails about the same way so to me it looks like the problem with Jetspeed configuration.

Please share your ideas,
George
Brad Gardner
Greenhorn

Joined: May 21, 2009
Posts: 1
What version of jetspeed are you using? Also, could you post your web.xml and portlet.xml? Lastly, if you look in your webapps folder, there should be a deployed instance of your portlet, does it have a generated jetspeed-portlet.xml?
George Randall
Greenhorn

Joined: Jan 21, 2010
Posts: 2
Brad Gardner wrote:What version of jetspeed are you using? Also, could you post your web.xml and portlet.xml? Lastly, if you look in your webapps folder, there should be a deployed instance of your portlet, does it have a generated jetspeed-portlet.xml?

It's jetspeed 2.2.0. The file jetspeed-potlet.xml is NOT generated. I also noticed there's a folder deploy\local which has the following README.txt
This is the default auto deployment folder where you can put portlet application
war files to be automatically deployed as local portlet application by Jetspeed
without a "jetspeed-" prefix in the name as is required for local portlet application
when deployed in the "normal" auto deployment folder (by default this parent deploy folder).

Well, I see no activity in the terminal if I drop a war file here. And the behavior is the same as before if I drop into deploy folder whether or not the file name or <portlet-name> is prefixed with jetspeed-.

Once again the very same archive works just fine under websphere. Thanks!

web.xml


portlet.xml
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

there may be some more information in jetspeed-deployment.log

(C:\Apache\jetspeed-2.2.0\logs )
Noms Dom
Greenhorn

Joined: Jan 30, 2009
Posts: 5
I came to this thread searching for a solution . Did not find it . But i have a work around for my situation. well i am able to deploy my application also the portlet also is listed in the Registry applicatin list. However i am not able to add it to the page . So i just cloned the ported and used that namei n finder and i was able to see the portlet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployed portlets do not show up in Jetspeed