on 06-20-2007 7:52 AM
Hello Gurus,
I have used the following code and tried to run it using the URL
http://server:port/irj/servlet/prt/portal/prtroot/Special.UploadXML?filename=c: emp esting.xml&j_user=someuser&j_password=some_pass
Here is the link to the code I have used.
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/componenttouploadXMLfilewithPCD+objects&
But I am getting the following error:
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
Component : ibm.com.GenericCreator.GenericCreator
Component class : ibm.com.GenericCreator
Caused by: java.lang.NoClassDefFoundError: com.sapportals.portal.ivs.portalinitialization.IGenericCreatorService
Any help will be highly appreciated.
Regards
Deb
[Points guranteed for helpful answers]
Make sure you have the sharing reference to the IGenericCreatorService in your portalapp.xml file.
Akhilesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Praveen,
Thanks for ur answer. Now I have one more question. I am calling this application using the following URL from my desktop.
I am passing the filename=c:\temp\testing.xml.
When I run it from my local system, does that mean It will fetch the file from my local machine or it will look into the C drive of the Portal Server system.
Where we have to store the file?
Your suugestion will be well appreciated.
Regards
Deb
Dear experts,
I tried also to follow the steps mentioned on http://wiki.sdn.sap.com/wiki/display/Snippets/ComponenttouploadXMLfilewithPCD+objects and faced the error : "Could not find portal application com.sap.portal.ivs.init.genericcreator" ; also, I have the message 'the import com.sapportals.portal.ivs' can not be resolved.
So I create a shared reference for "com.sap.portal.ivs.init" but the error persists.
Could you please help me ?
Thank you very much.
The steps I followed to implement the code are the following :
1/ connect to NWDS and create a Portal application project
2/ create a new portal application object where I copied the code as it is
3/ create/export the PAR file
Regards
Eric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
dear experts,
please do not take into account my last post, I succeded in having an error free code for the application after adding a jar file to the application path. However, my problem now is that when I deploy the application and in the URL a reference of the xml file to upload + username + password, I do not have any result (the screens remains blank). Seems that my XML has not been uploaded to portal. Please do you know how to assist on this ? thanks very much and regards
User | Count |
---|---|
74 | |
10 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.