[ 
https://issues.apache.org/jira/browse/JS2-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Sean Taylor resolved JS2-688.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.1

I needed to add an API for the JetspeedPowerToolFactory, then you must use this 
interface in your portlet code, not the implementation from the jetspeed-portal 
jar.
In your portlet you can now safely request the JetspeedPowerToolFactory as:

import org.apache.jetspeed.layout.JetspeedPowerToolFactory;
...
JetspeedPowerToolFactory powerToolFactory = 
              
(JetspeedPowerToolFactory;)getPortletContext().getAttribute(CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY);


> Unable to use Jetspeed services
> -------------------------------
>
>                 Key: JS2-688
>                 URL: https://issues.apache.org/jira/browse/JS2-688
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Assembly/Configuration
>    Affects Versions: 2.2
>         Environment: WINXP
> MYSQL
> Jetspeed-2.2-dev
>            Reporter: Vivek
>         Assigned To: David Sean Taylor
>             Fix For: 2.1.1
>
>
> Hi 
> I am unable to use the "CommonPortletServices.CPS_JETSPEED_POWERTOOL_FACTORY"
> When ever i try to use this service Class cast exception occurred.
> I have already made a entry in jetspeed-portlet.xml as <js:service 
> name='Powertools'/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to