|
Home > Archive > WebSphere Portal Server > March 2005 > Portal service broken in 5.1?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Portal service broken in 5.1?
|
|
| Bibhas Bhattacharya 2005-03-14, 5:58 pm |
| Has anyone developed a portal service in v5.1? The documentation in
http://publib.boulder.ibm.com/infoc...bm.wp.ent.doc/w
ps/wpsbsservice.html
appears to be wrong. If I follow it, I get a ClassCastException.
java.lang.ClassCastException: com.mycom.portal.service.HelloServiceImpl
at
com.ibm.wps.services.ServiceManager.createService(ServiceManager.java:318)
It appears that WPS is trying to cast the service class to
com.ibm.wps.services.Service. In fact that is how all out of the box
services are created - the service interface seems to extend
com.ibm.wps.services.Service.
When I do the same I get an error message "Caused by:
org.apache.jetspeed.portlet.PortletException: EJPPG0250E: The requested
portlet service com.mycom.portal.service.HelloService is not registered."
--
Bibhas Bhattacharya
WebSphere, WebLogic Training and Consulting
www.webagesolutions.com
| |
| Bibhas Bhattacharya 2005-03-14, 5:58 pm |
| Well, as it turns out the documentation is fairly correct. It was confusing
because some of the approaches are different for a service that needs to
support JSR 168 based portlets.
I was also bitten by the change of the service registration file. In v5.0.2
it was shared\app\config\services.properties. In v5.1, it is
shared\app\config\services\PortletServic
eRegistryService.properties.
Everything is working now!
--
Bibhas Bhattacharya
WebSphere, WebLogic Training and Consulting
www.webagesolutions.com
"Bibhas Bhattacharya" <bibhasNOSPAM@webagesolutions.com> wrote in message
news:d152di$3ana$1@news.boulder.ibm.com...
> Has anyone developed a portal service in v5.1? The documentation in
>
>
http://publib.boulder.ibm.com/infoc...bm.wp.ent.doc/w
> ps/wpsbsservice.html
>
> appears to be wrong. If I follow it, I get a ClassCastException.
>
> java.lang.ClassCastException: com.mycom.portal.service.HelloServiceImpl
> at
> com.ibm.wps.services.ServiceManager.createService(ServiceManager.java:318)
>
> It appears that WPS is trying to cast the service class to
> com.ibm.wps.services.Service. In fact that is how all out of the box
> services are created - the service interface seems to extend
> com.ibm.wps.services.Service.
>
> When I do the same I get an error message "Caused by:
> org.apache.jetspeed.portlet.PortletException: EJPPG0250E: The requested
> portlet service com.mycom.portal.service.HelloService is not registered."
>
> --
> Bibhas Bhattacharya
> WebSphere, WebLogic Training and Consulting
> www.webagesolutions.com
>
>
>
|
|
|
|
|