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 "Grant D. Gochnauer" <gr...@vodori.com> on 2006/02/06 16:18:24 UTC

Developing Spring based Portlets which leverage Jetspeed2 Services

I have been using the Spring Framework 2.0M2 to build a custom
registration Portlet. I am using the native Portlet libraries built into
the 2.0M2 release. For some reason, my Portlet is not recognizing the
Jetspeed services such as UserManager even though I am deploying the
jetspeed-portlet.xml with my Portlet WAR file. The jetspeed-portlet.xml
is based off the j2-admin source code so I am pretty sure my
<js:services> are setup correctly. 

 

The error I am seeing is that when I iterate through the
getPortletContext() attributes, I am not seeing any of the J2 services.
If I try to request one, using the same code used in the j2-admin
source, I get a null pointer exception.

 

Is there some special initialization my Portlet is not doing to get
access to the Jetspeed2 services? As an FYI, my web.xml is references
the Spring Portlet Dispatcher servlet. Perhaps there is something going
on behind the scenes in portals-bridges framework I am not aware of? Or
perhaps I am missing a step somewhere...

 

Trying to get this to work was the first step in trying to create my own
custom services and expose them to my Portlets.

 

Thanks in advance to anyone who can help out..

 

--Grant

 

 

Grant Gochnauer | Vodori Inc | grant.gochnauer@vodori.com
<ma...@vodori.com> 

 



This message may contain information that is legally privileged, proprietary, or otherwise private.  If you are not the intended recipient please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.