cancel
Showing results for 
Search instead for 
Did you mean: 

How To add a library to an adapter

Former Member
0 Kudos

Hello!

I'm trying to build a custom adapter and do my first steps:

I want to add some libraries to the sample_ra.sda but don't know where or how to add the jars...

If I place them here I get a NoClassDefFoundException:

- sample_ra.sda

| - META-INF

| - sample_ra.rar

| | - META-INF

| | - sample_ra.jar

| | - lib_1.jar

| | - lib_2.jar

| | - ...

Any hints??

THANK YOU!

Regards,

Christian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Check this thread...

Anand

Answers (1)

Answers (1)

Former Member
0 Kudos

First: Thank you for your answer!

But I wasn't able to find the information I need.

I just need to know where to put the jars/libs needed by my adapter.

I think it's a must have to ship them inside the sda, isn't it?

Do I have to reference the jars inside a xml file?

THANKS & Regards,

Christian

Former Member
0 Kudos

Hi,

What version of the server are you running? You will most likely need to add a line to an xml file included in the sda in order for the jars that you add to the sda to be recognized. Let me know what version you are running and I can help you further, or you can just have a look for the xml file in the sda and try modifying it directly.

Cheers,

Steve

-


If you find a post useful, please help keep the community going by setting a good example and rewarding the poster with points.

Former Member
0 Kudos

Hello,

I'am running SAP WAS 6.40 and XI 3.0 SP11.

I tried to include a "provider.xml" in the sda to let WAS recognize the jars... but without success.

Thanks in advance.

Regards,

Christian

Message was edited by: Christian Frölich

Former Member
0 Kudos

Problem solved... thank you guys.

The solution was to add the provider.xml to the .rar file inside the sda and to add the relevant jars to the .rar.

A description of the provider.xml is available @ help.sap.com!

Hope it helps somebody.

Regards Christian