on 10-07-2008 3:46 PM
I have implemented portal service. While starting it, the following exception is generated.
Server 2858450:Error in the listener class com.sap.ip.portal.admin.portalanywhere.QueryHandler during the process of handleTopic.
pls. help in resolving it.
thanks for your support.
my problem of calling the service from the same component is solved.
the problem was with the service name.
the key defined in interface ISnowService was incorrect -
initially, i set it to
KEY = "SnowService" ;
i changed it to
KEY = "SnowComponent|SnowService" ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your responses. I have gone through the threads. Need your help...
My portalapp.xml is given below
<?xml version="1.0" encoding="UTF-8"?>
<application>
<application-config>
<property name="startup" value="true"/>
<property name="Vendor" value="apl.com"/>
</application-config>
<components>
<component name="SnowComponent">
<component-config>
<property name="ClassName" value="com.sap.portal.tutorial.snow.SnowComponent"/>
</component-config>
<component-profile/>
</component>
</components>
<services>
<service name="SnowService" >
<service-config>
<property name="className" value="com.sap.portal.tutorial.service.SnowService"/>
<property name="startup" value="true"/>
</service-config>
<service-profile>
<property name="MyProperty " value="true"/>
</service-profile>
</service>
</services>
</application>
When I deploy the par with the above portalapp.xml I am able to start the service. I do not have any issue in starting the service.
Now, I want to use the said service from my Portal Component - SnowComponent which is in the same appp
what chagnes i will have to make in my portalapp.xml ?
pls. also provide the details pertaining to accessing this service from other portal apps too :
is it somthing related to application config ?
<application-config>
<property name="SharingReference" value="SnowComponent">
<application-config>
do i have to import jar for the following interface declartion ?
import com.sap.portal.tutorial.service.ISnowService ;
ISnowService snowService = (ISnowService) request.getService(ISnowService.KEY);
i hope the above is clear.
pls. help .......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Generally portal service is maintained as separate project only. Create a new project and use this portal service in the component of this project. You can check an example application here
Regards,
Harini S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Santosh ,
Check the below thread and contact the person to resolve issue.Mostly you have to set portal app.xml correctly .
/thread/788769 [original link is broken]
Koti Reddy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.