cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError

Former Member
0 Kudos

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]

Accepted Solutions (1)

Accepted Solutions (1)

former_member394902
Contributor
0 Kudos

Make sure you have the sharing reference to the IGenericCreatorService in your portalapp.xml file.

Akhilesh

Former Member
0 Kudos

Hello Akhilesh,

Can you tell me exatcly what I have to add in the sharing reference. I don't have much development exp. so it will be gr8 if you can give the exact details.

Regards

Deb

Former Member
0 Kudos

Hello,

Can any1 provide solution to the problem.

Its urgent.

Regards

Deb

[Points Guranteed]

0 Kudos

Hi,

You should add <b>com.sap.portal.ivs.init</b> in your sharing reference in your portalapp.xml

/thread/191371 [original link is broken]

Greetings,

Praveen Gudapati

Former Member
0 Kudos

Hello Praveen,

Thanks for ur answer. Now I have one more question. I am calling this application using the following URL from my desktop.

http://server:port/irj/servlet/prt/portal/prtroot/Special.UploadXML?<b>filename=c:\temp\testing.xml<...

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

0 Kudos

Hi,

As the portal component you are calling is running on the server, it will ofcourse look for the file in server's <b>C</b> drive.

Greetings,

Praveen Gudapati

Former Member
0 Kudos

Hello Praveen,

Thanks for ur suggestions. Will try it tomorrow and get back to you.

Regards

Deb

[Will change it to 10 pointers if things worked]

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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