cancel
Showing results for 
Search instead for 
Did you mean: 

Calling RFC from JSP : development component

david_fryda2
Participant
0 Kudos

Hi everyone,

I created JSP that call RFC from SAP/R3.

I have problem with the DestinationService.

Without DCs, it worked very good.

But since I created a DC for my JSP project, I have exception at run time regarding

the java.lang.NoClassDefFoundError: com/sap/security/core/server/destinations/api/DestinationService.

Eventhough I add the specific jar, I get an excpetion.

Thanks for the help.

David

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Go to the application-j2ee-engine.xml file and add following reference:

<reference

reference-type="weak">

<reference-target

provider-name="sap.com"

target-type="interface">tcsecdestinations~interface</reference-target>

</reference>

david_fryda2
Participant
0 Kudos

Thanks guys for the help.

Adding the reference as Denis wrote, works very good.

Regards.

Answers (2)

Answers (2)

Former Member
0 Kudos

adding direct jar ref for a DC project is not recommended..you should instead add a Used DC reference...search in the three SWCs(JTech and other two) those come with your track for the JCo library

former_member187444
Participant
0 Kudos

Did you copy jco.jar to application server folder?

Because I had same error before, i copied jar to usr/j2ee/.. application server/lib folder and i solved problem